class Window_Base < Window
def initialize(x, y, width, height)
super
self.windowskin = Cache.system(windowskin_filename)
update_padding
update_tone
create_contents
@opening = @closing = false
end
def windowskin_filename
return "Window" unless $game_variables
case $game_variables[1] # 1号变量
when 0 # 为0时
"Window" # 使用 System 文件夹的 Window.png
when 1 # 为1时
"Window1"
when 2 # 为2时
"Window2"
# 可自行添加
else # 不是以上情况时
"Window"
end
end
end
class Window_Base < Window
def initialize(x, y, width, height)
super
self.windowskin = Cache.system(windowskin_filename)
update_padding
update_tone
create_contents
@opening = @closing = false
end
def windowskin_filename
return "Window" unless $game_variables
case $game_variables[1] # 1号变量
when 0 # 为0时
"Window" # 使用 System 文件夹的 Window.png
when 1 # 为1时
"Window1"
when 2 # 为2时
"Window2"
# 可自行添加
else # 不是以上情况时
"Window"
end
end
end