Advertisement
Guest User

FF9 Help Plugin: Window_EquipSlot 1.11

a guest
Feb 11th, 2017
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.11 KB | None | 0 0
  1. module Config
  2.   module FF9_Help
  3.     Window_EquipSlot = Window_Selectable
  4.   end
  5. end
  6.  
  7. class Window_EquipSlot < Window_Selectable
  8.  
  9.   alias :griver_ff9_help_window_equipslot_process_handling :process_handling
  10.   def process_handling
  11.     griver_ff9_help_window_equipslot_process_handling
  12.     return unless open? && active
  13.     if @actor
  14.       if $ff9_help_active
  15.         Config::FF9_Help::Deactivate_SE.play if ff9_help_open? && Input.trigger?(Config::FF9_Help::Toggle_Key) if Config::FF9_Help::Deactivate_SE != nil
  16.         return ff9_help_toggle if Input.trigger?(Config::FF9_Help::Toggle_Key)
  17.       else
  18.         Config::FF9_Help::Activate_SE.play if ff9_help_avalaible? && Input.trigger?(Config::FF9_Help::Toggle_Key) if Config::FF9_Help::Activate_SE != nil
  19.         return ff9_help_toggle if ff9_help_avalaible? && Input.trigger?(Config::FF9_Help::Toggle_Key)
  20.       end
  21.     end
  22.   end
  23.  
  24.   def ff9_help_text
  25.     Config::FF9_Help::Window_EquipSlot[@actor.equips[index].name]
  26.   end
  27.  
  28.   def ff9_help_avalaible?
  29.     Config::FF9_Help::Window_EquipSlot.include?(@actor.equips[index].name) rescue return
  30.   end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement