ST_DimWindowControl.js v1.1.0
by Stahltier (me)
by Stahltier (me)
Introduction
There's many plugins that change the general window opacity, but I found that none of them seem to work for me when it comes to changing the "Dim" background window style to fully opaque. I wanted to avoid the partially transparent windows and also didn't want there to be a gradient, so I found the functions that define the dimmed window opacities and wrote a little plugin that overwrites them to use dynamic values.
Features
- Plugin Parameters to set the dimmed windows' content opacity and the opacity of the gradient that surrounds it
- Plugin Commands to change these settings on the fly and to reset them back to your plugin parameter values
Screenshots
(The art assets aka tilesets, characters, and face image of this screenshot are not included, they are from an asset pack that I own and are only shown for demonstration purposes.)
How to Use
- Download the javascript file, put it into your project's "plugins" folder
- Enable it via the plugin manager
- Set the desired default values
- If needed, use the provided plugin commands to change the settings on the fly
Plugin Commands / Script Calls
- "Change Dimmed Window Opacity" - lets you set the two opacity values during eventing
- "Reset Dimmed Window Opacity" - lets you reset the two values back to your plugin parameters
Demo
None, see screenshots for how to use the plugin commands in events.
Download
Available on itch.io and attached to this thread!
Changelog
- v1.1.0 - fixed an oversight with the variable scope that could lead to crashes if used together with certain other plugins
- v1.0.0 - initial upload
Terms and Credits
(copied from plugin's help section)
Coded by Stahltier. No genAI was used.
This plugin is free to use in your games, please give credit to Stahltier if you use it in your commercial projects. You don't need to give credit in non-commercial projects.
If you share this plugin outside of it being part of a game, please don't remove the credits. You can edit this plugin to suit your project's needs, but don't publicly share edited versions of my code.
I test my plugins, but I am not responsible for your project breaking if you use them, especially if you use them in non-intended ways or made any changes to them.