03-09-2013, 10:57 PM
Oh it's you again! Hi!
I played around with this a bit, and noticed that the windowskin of one of my custom windows didn't change either. Then I found this in Window_Base:
And I figured out what I need to do. If you window has an 'update' method, make sure it calls 'super' at the end of it. That way it will run Window_Base's 'update' and properly change the windowskin.
I played around with this a bit, and noticed that the windowskin of one of my custom windows didn't change either. Then I found this in Window_Base:
Code:
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
# Reset if windowskin was changed
if $game_system.windowskin_name != @windowskin_name
@windowskin_name = $game_system.windowskin_name
self.windowskin = RPG::Cache.windowskin(@windowskin_name)
end
end
And I figured out what I need to do. If you window has an 'update' method, make sure it calls 'super' at the end of it. That way it will run Window_Base's 'update' and properly change the windowskin.