作为插件脚本使用,放在这两个脚本的下方
class Scene_Base alias c create_help_ex def create_help_ex c @wu_window.help_ex_window = @help_ex_window if @wu_window @fang_window.help_ex_window = @help_ex_window if @fang_window end end class Scene_Qiang < Scene_MenuBase alias s start def start s create_help_ex end alias qw qiangwu_cancel def qiangwu_cancel qw @help_ex_window.hide end alias qf qiangfang_cancel def qiangfang_cancel qf @help_ex_window.hide end alias qwo qiangwu_ok def qiangwu_ok qwo @help_ex_window.hide end alias qfo qiangfang_ok def qiangfang_ok qfo @help_ex_window.hide end end
class Scene_Base
alias c create_help_ex
def create_help_ex
c
@wu_window.help_ex_window = @help_ex_window if @wu_window
@fang_window.help_ex_window = @help_ex_window if @fang_window
end
end
class Scene_Qiang < Scene_MenuBase
alias s start
def start
s
create_help_ex
end
alias qw qiangwu_cancel
def qiangwu_cancel
qw
@help_ex_window.hide
end
alias qf qiangfang_cancel
def qiangfang_cancel
qf
@help_ex_window.hide
end
alias qwo qiangwu_ok
def qiangwu_ok
qwo
@help_ex_window.hide
end
alias qfo qiangfang_ok
def qiangfang_ok
qfo
@help_ex_window.hide
end
end
|