CHANGE ALL TEXT WINDOWS FROM BOTTOM TO MIDDLE WITH SCRIPT?
Posts
Pages:
1
I'm using RPG Maker VX Ace.
In my current project, I have all text windows set to dark, bottom.
Let's say I wanted to switch them all to dark, middle. Rather than manually editing each event (thousands of them at this point), is there a way to quickly do this with a custom script?
Thank you!
In my current project, I have all text windows set to dark, bottom.
Let's say I wanted to switch them all to dark, middle. Rather than manually editing each event (thousands of them at this point), is there a way to quickly do this with a custom script?
Thank you!
If you're looking to change literally every single message window in the game to be that setup, regardless of what is actually used for the Show Text event-command, my first guess would be to do it through Window_Message. A bit of testing on my end has come up with...
...this.
class Window_Message < Window_Base #-------------------------------------------------------------------------- # * Update Window Background #-------------------------------------------------------------------------- def update_background #@background = $game_message.background @background = 1 self.opacity = @background == 0 ? 255 : 0 end #-------------------------------------------------------------------------- # * Update Window Position #-------------------------------------------------------------------------- def update_placement #@position = $game_message.position @position = 2 self.y = @position * (Graphics.height - height) / 2 @gold_window.y = y > 0 ? 0 : Graphics.height - @gold_window.height end end
...this.
Pages:
1