#encoding:utf-8 #============================================================================== # ■ Window_MenuCommand #------------------------------------------------------------------------------ # 菜单画面中显示指令的窗口 #============================================================================== class Window_MenuCommand < Window_Command #-------------------------------------------------------------------------- # ● [别名修改]独自添加指令用 #-------------------------------------------------------------------------- alias add_original_commands_for_load add_original_commands def add_original_commands add_original_commands_for_load add_command("倒回记忆", :load_game, DataManager.save_file_exists?) end end #============================================================================== # ■ Scene_Menu #------------------------------------------------------------------------------ # 菜单画面 #============================================================================== class Scene_Menu < Scene_MenuBase #-------------------------------------------------------------------------- # ● [别名修改]生成指令窗口 #-------------------------------------------------------------------------- alias create_command_window_for_load create_command_window def create_command_window create_command_window_for_load @command_window.set_handler(:load_game, method(:command_load_game)) end #-------------------------------------------------------------------------- # ● [追加]读取存档 #-------------------------------------------------------------------------- def command_load_game SceneManager.call(Scene_Load) end end
#encoding:utf-8
#==============================================================================
# ■ Window_MenuCommand
#------------------------------------------------------------------------------
# 菜单画面中显示指令的窗口
#==============================================================================
class Window_MenuCommand < Window_Command
#--------------------------------------------------------------------------
# ● [别名修改]独自添加指令用
#--------------------------------------------------------------------------
alias add_original_commands_for_load add_original_commands
def add_original_commands
add_original_commands_for_load
add_command("倒回记忆", :load_game, DataManager.save_file_exists?)
end
end
#==============================================================================
# ■ Scene_Menu
#------------------------------------------------------------------------------
# 菜单画面
#==============================================================================
class Scene_Menu < Scene_MenuBase
#--------------------------------------------------------------------------
# ● [别名修改]生成指令窗口
#--------------------------------------------------------------------------
alias create_command_window_for_load create_command_window
def create_command_window
create_command_window_for_load
@command_window.set_handler(:load_game, method(:command_load_game))
end
#--------------------------------------------------------------------------
# ● [追加]读取存档
#--------------------------------------------------------------------------
def command_load_game
SceneManager.call(Scene_Load)
end
end
|