Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ** Window_MenuCommand
- #------------------------------------------------------------------------------
- # This command window appears on the menu screen.
- #==============================================================================
- class Window_MenuCommand < Window_Command
- #--------------------------------------------------------------------------
- # * For Adding Original Commands
- #--------------------------------------------------------------------------
- def add_original_commands
- @list.insert(0, {:name => "Tack", :symbol => :tack, :enabled => true, :ext => nil})
- @list.insert(1, {:name => "Supplies", :symbol => :item, :enabled => true, :ext => nil})
- end
- end
- #==============================================================================
- # ** Scene_Menu
- #------------------------------------------------------------------------------
- # This class performs the menu screen processing.
- #==============================================================================
- class Scene_Menu < Scene_MenuBase
- #--------------------------------------------------------------------------
- # * Alias Listing
- #--------------------------------------------------------------------------
- alias archeia_scene_menu_command create_command_window
- #--------------------------------------------------------------------------
- # * Create Command Window
- #--------------------------------------------------------------------------
- def create_command_window
- # Run Original Method
- archeia_scene_menu_command
- # Add Custom Handler
- @command_window.set_handler(:tack, lambda { SceneManager.goto(Scene_Map) })
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement