WINDOW COLOR OPACITY

RPG Maker VX Ace

Adjust the transparency of ingame windows

  • Melkino
  • 05/14/2012 02:22 AM
  • 17991 views
Not being a fan of VX Ace's semitransparent windows, I tried to change it up a bit! This script lets you change the opacity of the color tone for your game's windows. The window borders are left alone.

Feature
Can improve the readability of in-game text,depending on windowskins and fonts.

Updates
Apr 12, 2014 - v.1.1 - Added compatibility for Yanfly's System Options
May 9, 2012 - v.1.0 - Started & finished script

Instructions
1) Paste the script somewhere below Materials and above Main.
2a) If you are using Yanfly's System Options, set the variable in the module. To add it to the option screen, read the instructions concerning the "Custom Variables" section in his script.
2b) If you're not using it, set "OPACITY" to a number between 0 and 255. You don't need to mess with the variable.

More details are contained in the script itself.

Compatibility
Unknown for custom scenes. Other than that, this should work fine

Screenshot

A quick example of opacity = 255

Posts

Pages: 1
That, or you can go to Tools > Script Editor > Scene_MenuBase

Look for this line:

#--------------------------------------------------------------------------
# * Create Background
#--------------------------------------------------------------------------
def create_background
@background_sprite = Sprite.new
@background_sprite.bitmap = SceneManager.background_bitmap
@background_sprite.color.set(16, 16, 16, 255)
end

And switch the 160 (default) to 255 as above.
Thanks god I found this. I'm getting really tired of the window opacity right now.
Any tips on how to work this into YanFly's System options screen?
Melkino
solos collectors on purpose
2021
I've been trying to add an option where the opacity value can be set to a variable, which can then be used in his options script, but I haven't gotten it to work right yet.

It's been a long time since I touched this thing, and I'm busy with other things as well, so it might take me some time to relearn ruby to update/rewrite this script. >_>

edit: oh neat, I think I got it figured out already. will upload an update soon
Thanks for the nice update, The only problem now is that the opacity defaults to 0 at boot-up. I've also noticed that event triggered change only kicks in once the menu has been opened. Any idea how to start it at a custom number upon game launch?
Melkino
solos collectors on purpose
2021
Right now I'm not sure, sorry about that. I've been trying to fix it, but it seems to be outside my scripting knowledge right now. I'll update the script if I can fix it, though.
I've been looking for this! Thank you :3

author=Starke
That, or you can go to Tools > Script Editor > Scene_MenuBase

Look for this line:

#--------------------------------------------------------------------------
# * Create Background
#--------------------------------------------------------------------------
def create_background
@background_sprite = Sprite.new
@background_sprite.bitmap = SceneManager.background_bitmap
@background_sprite.color.set(16, 16, 16, 255)
end

And switch the 160 (default) to 255 as above.


Btw I also tried doing that and it changes the background when opening, not the window's opacity. But that's still useful though. ;)
Pages: 1