Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =============================================================================
- # ~ In game load menu by TheoAllen ~
- # =============================================================================
- # Description :
- # This script allow you to load saved games in game menu.
- # -----------------------------------------------------------------------------
- # Instruction :
- # Insert this script above main and below Material.
- # -----------------------------------------------------------------------------
- # Terms of use :
- # You may use and edit this script for both commercial and non-commercial.
- # Credit isn't necessary. But if yu wish to, you can put "TheoAllen" in your
- # credit list.
- # =============================================================================
- # Configuration :
- # =============================================================================
- module THEOLIZED
- LOAD_MENU = "Load" # load menu
- end
- # =============================================================================
- # Do not edit unless you know what to do ~
- # =============================================================================
- class Window_MenuCommand < Window_Command
- #--------------------------------------------------------------------------
- # ~ Redefine Command list
- #--------------------------------------------------------------------------
- def make_command_list
- add_main_commands
- add_formation_command
- add_original_commands
- add_save_command
- add_load_command
- add_game_end_command
- end
- #--------------------------------------------------------------------------
- # ~ Add load command
- #--------------------------------------------------------------------------
- def add_load_command
- add_command(THEOLIZED::LOAD_MENU, :continue, main_commands_enabled)
- end
- end
- class Scene_Menu < Scene_MenuBase
- #--------------------------------------------------------------------------
- # Redefine Command Window
- #--------------------------------------------------------------------------
- def create_command_window
- @command_window = Window_MenuCommand.new
- @command_window.set_handler(:item, method(:command_item))
- @command_window.set_handler(:skill, method(:command_personal))
- @command_window.set_handler(:equip, method(:command_personal))
- @command_window.set_handler(:status, method(:command_personal))
- @command_window.set_handler(:formation, method(:command_formation))
- @command_window.set_handler(:save, method(:command_save))
- @command_window.set_handler(:continue, method(:command_continue))
- @command_window.set_handler(:game_end, method(:command_game_end))
- @command_window.set_handler(:cancel, method(:return_scene))
- end
- #--------------------------------------------------------------------------
- # ~ [Load] Command
- #--------------------------------------------------------------------------
- def command_continue
- SceneManager.call(Scene_Load)
- end
- end
- # =============================================================================
- # End of script
- # =============================================================================
Advertisement
Add Comment
Please, Sign In to add comment