Help - Search - Members - Calendar
Full Version: Changing the window skin?
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Ace Discussion
Adrien.
How would I, in the script editor change the window skin - if I was making a script for users to use? There is the Window class with windowskin, but im not sure how to utilize that.
Night5h4d3
The windowskin is a native property of the Window class. To set the windowskin of a window you'd use
CODE
.windowskin = Cache.system(<WINDOWSKINFILE>)


ie:

CODE
@command_window.windowskin = Cache.system("Window2")
Adrien.
is that people use to change the window skin of say a particular window?
Night5h4d3
not exactly sure what you mean, but yes, you change singular windows' skins with that.
Adrien.
For example: Shop window skin is one window skin, status is another, text box is another, and so on. I am assuming the same way?
Melosx
for each window you add this line
self.windowskin = Cache.system("WINDOWSKINNAME")
in
def initialize
For example in Window_TitleCommand

class Window_TitleCommand < Window_Command
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
def initialize
super(0, 0)
update_placement
select_symbol(:continue) if continue_enabled
self.openness = 0
self.windowskin = Cache.system("WindowSkinName")
open
end
Adrien.
I was hoping it wasn't that way....I wanted to avoid that. but o well. it actually worked this time >_>
Kread-EX
Closed at OP request.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.