TheoAllen

Shortcut Menu

Jun 12th, 2013
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.77 KB | None | 0 0
  1. # REQUIRES : Cidiomar - Input full ~
  2. module AMA
  3.   module CUT
  4.    
  5.     ITEM  = :I
  6.     SKILL = :S
  7.     EQUIP = :E
  8.     STATS = :T
  9.    
  10.   end
  11. end
  12.  
  13. class Scene_Map < Scene_Base
  14.  
  15.   alias ama_shortcut_menu update_scene
  16.   def update_scene
  17.     ama_shortcut_menu
  18.     update_shortcut_menu unless scene_changing?
  19.   end
  20.  
  21.   def update_shortcut_menu
  22.     return if $game_map.interpreter.running?
  23.     if Input.trigger?(AMA::CUT::ITEM)
  24.       SceneManager.call(Scene_Item)
  25.     elsif Input.trigger?(AMA::CUT::SKILL)
  26.       SceneManager.call(Scene_Skill)
  27.     elsif Input.trigger?(AMA::CUT::EQUIP)
  28.       SceneManager.call(Scene_Equip)
  29.     elsif Input.trigger?(AMA::CUT::STATS)
  30.       SceneManager.call(Scene_Status)
  31.       # add your own here if neccessary
  32.     end
  33.   end
  34.  
  35. end
Advertisement
Add Comment
Please, Sign In to add comment