Got a mod with an ImGUI window that really doesn't need to be on screen? Or just want to give your users the option to hide it anyway? Also, yes, this hides CET mod overlay windows so it can be useful for everyone :)
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou are allowed to use the assets in this file without permission as long as you credit me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
You are allowed to use any of included the code in any way, as long as it's not for a similar mod (mods that add a way to toggle overlay window visibility)...
Of course, you are allowed to use the code to add buttons to this mod's window...
To the CET dev team (if you read this): If you could include something like this in CET and negate the need for authors to update their mods for it to work, that'd be pretty awesome and I would not be mad at you at all (and you can even use some of my code if it's helpful)... It'd be really awesome if you could even just add a button in CET somewhere to toggle this window (of course, checking if this mod is installed first and only adding the button if so)...
__________________
File credits
Thanks to the CET team and everyone else that has worked on it or added to it with external libraries/helper scripts/documentation/etc
Thanks to everyone (like 2 people... You know who you are) that has helped me with my noob questions in the modding Discord
And special thanks to TheCyanideX for listening to my nonsensical ramblings and for really liking the idea of this mod, which is what gave me the motivation to actually make it work properly...lol
__________________
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.02
Removed warning about showing hidden windows, as I figured out how to make it check and show hidden windows if this mod is uninstalled... Also added info to readme file for how to do this...
Version 1.01
Added some text in the window telling people to make sure they show their hidden windows before uninstalling this mod... This can probably be prevented by setting everything up in the other mods better, and I will be looking into this and will update my mods if so...
Version 1.0
Removed the included button for "CET Crosshair Overlay" and added it in through that mod's script in an update to it...
THIS MOD DOES NOTHING EXCEPT CREATE A BLANK WINDOW... OTHER MODS CAN ADD BUTTONS TO THIS WINDOW TO SHOW/HIDE THEIR MOD WINDOW... ANY MOD AUTHOR CAN ADD THEM FROM THEIR OWN SCRIPTS...
New "Other Mods Addon" file available... I figured out (a while ago) that I can add support for other mods if they return the their "open" variable's state in their script... So far, though, I have only found a few mods that return the needed values, and only one worth hiding, that being "FreeFly" (by u/NexusGuy999)... So, as of v0.1-oma of this addon, it currently only supports hiding FreeFly's window... More may be added in the future if I find more that return their values...
To mod authors:
This includes a basic API to allow you to add buttons to it's ImGui window (technically only really used to check if this mod is installed to add the button), as well as a readme file with instructions on how to add it and set everything up in your script to use it (readme is in the form of a sample script)
It's pretty simple to use, as long as you have some basic knowledge of CET/ImGui, which I assume you do if you're going to try to use this... If you need any help, though, just ask...
The new "Dev Tool Addon" file makes it even simpler to add support for hiding your mod windows... This makes a new window in CET overlay (can be hidden, of course) with the ability to name your menu listing and your mod, then export to a "NewScript.lua" file (in this mod folder) that contains everything you need to add to your script (or use as a base to build your script off of)...
To mod users:
This allows you to toggle the visibility of CET overlay windows entirely... No more collapsed windows everywhere (assuming other mod authors take advantage, anyway)
This doesn't contain any buttons on it's own (as of v1.0), but buttons are added to the menu from other mod scripts
Currently has support for all of my own mods that have overlay windows...
If you want this to support mods from other authors, ask them to make a button for it :)