# ============================================================================= # TheoAllen - Windowskin Changer # Version : 1.0 # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com # (English Documentation) # ============================================================================= ($imported ||= {})[:Theo_WindowskinChanger] = true # ============================================================================= # CHANGE LOGS: # ----------------------------------------------------------------------------- # 2013.07.02 - Started and Finished script # ============================================================================= =begin Introduction : This script allow you to change windowskin during the game. The windowskin name saved in $game_variables How to use : Put this script below material but above main. Edit the configuration To change windowskin during the game, just change the value of variable in ID that you choose. Remember. The windowskin must be exist in Graphics/system Terms of use : Feel free to edit by your own or even using for commercial purposes. Credit isn't required. But I'll be thankful if you put my name in your credit list. =end # ============================================================================= # Configuration : # ============================================================================= module THEO module WINDOW VAR_ID = 2 # Variable ID SKIN = { # Value => "Windowskin name", 0 => "Window", 1 => "Window2", 2 => "Window3", 3 => "Window4", # Add more here ~ # And here ~ } # <-- Don't touch this end end # ============================================================================= # End of configuration ~ # ============================================================================= class Window_Base < Window include THEO::WINDOW alias pre_windowskin_init initialize def initialize(*args) pre_windowskin_init(*args) update_windowskin end alias pre_update_windowskin update def update pre_update_windowskin update_windowskin end def update_windowskin return unless SKIN.include?($game_variables[VAR_ID]) self.windowskin = Cache.system(SKIN[$game_variables[VAR_ID]]) end end