Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ■ Simplified Equip
- # @version 0.1 11/12/18
- # @author sabakan
- # @license: MIT License
- #------------------------------------------------------------------------------
- # Removes equipment command window on equip
- #==============================================================================
- class Scene_Equip < Scene_MenuBase
- #--------------------------------------------------------------------------
- # ● Create command window
- #--------------------------------------------------------------------------
- def create_command_window
- wy = @help_window.height
- @command_window = Window_Base.new(0, wy, 0, 0)
- @command_window.visible = false
- end
- #--------------------------------------------------------------------------
- # ● Create slot window
- #--------------------------------------------------------------------------
- alias saba_nooptimize_create_slot_window create_slot_window
- def create_slot_window
- saba_nooptimize_create_slot_window
- @slot_window.set_handler(:cancel, method(:return_scene))
- @slot_window.set_handler(:pagedown, method(:next_actor))
- @slot_window.set_handler(:pageup, method(:prev_actor))
- @slot_window.select(0)
- @slot_window.activate
- end
- #--------------------------------------------------------------------------
- # ● Actor change
- #--------------------------------------------------------------------------
- alias saba_nooptimize_on_actor_change on_actor_change
- def on_actor_change
- saba_nooptimize_on_actor_change
- @slot_window.activate
- end
- end
- class Window_EquipSlot
- #--------------------------------------------------------------------------
- # ● Visible lines number displayed
- #--------------------------------------------------------------------------
- def visible_line_number
- return 7
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement