module Reisen def self.window_skin @window_skin = "Window.png" unless @window_skin return @window_skin end def self.window_skin=(new_skin) @window_skin = new_skin end end class Window_Base < Window #-------------------------------------------------------------------------- # ● 初始化对像 # x : 窗口 X 座标 # y : 窗口 Y 座标 # width : 窗口宽度 # height : 窗口高度 #-------------------------------------------------------------------------- alias :reisen_window_skin_initialize :initialize def initialize(x, y, width, height) reisen_window_skin_initialize(x, y, width, height) self.windowskin = Cache.system(Reisen.window_skin) end end
module Reisen
def self.window_skin
@window_skin = "Window.png" unless @window_skin
return @window_skin
end
def self.window_skin=(new_skin)
@window_skin = new_skin
end
end
class Window_Base < Window
#--------------------------------------------------------------------------
# ● 初始化对像
# x : 窗口 X 座标
# y : 窗口 Y 座标
# width : 窗口宽度
# height : 窗口高度
#--------------------------------------------------------------------------
alias :reisen_window_skin_initialize :initialize
def initialize(x, y, width, height)
reisen_window_skin_initialize(x, y, width, height)
self.windowskin = Cache.system(Reisen.window_skin)
end
end
事件 -> 脚本 -> Reisen.window_skin = "...." 就可以修改窗口样式了. |