Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # // Last Modified :06/08/2011
- #==============================================================================#
- # Window_EquipHelp
- #==============================================================================#
- class Window_EquipHelp < IRS::Sprite_Help ; end
- #==============================================================================#
- # Scene_Equip
- #==============================================================================#
- class Scene_Equip < Scene_Base
- #--------------------------------------------------------------------------#
- # * overwrite method :start
- #--------------------------------------------------------------------------#
- def start()
- super()
- create_menu_background()
- @actor = $game_party.members[@actor_index]
- @help_window = Window_EquipHelp.new( 0, 0, Graphics.width, 32 )
- create_item_windows()
- @status_window = Window_EquipStatus.new( 0, 32, @actor )
- @equip_window = Window_Equip.new( @status_window.width, 32, @actor )
- @equip_window.help_window = @help_window
- @equip_window.index = @equip_index
- @inputhelp_window = Window_EquipHelp.new( 0, Graphics.height-32, Graphics.width, 32 )
- @inputhelp_window.align = 1
- @inputhelp_window.set_text("Use A and S to switch Characters")
- # // ----------------------------------------------------------------- // #
- @menuback_sprite.bitmap = Cache.system( "Menu_background" )
- @menuback_sprite.opacity= 255
- end
- #--------------------------------------------------------------------------#
- # * overwrite method :terminate
- #--------------------------------------------------------------------------#
- def terminate()
- super()
- dispose_menu_background()
- @help_window.dispose()
- @equip_window.dispose()
- @status_window.dispose()
- dispose_item_windows
- @inputhelp_window.dispose()
- end
- #--------------------------------------------------------------------------#
- # * overwrite method :create_item_windows
- #--------------------------------------------------------------------------#
- def create_item_windows()
- @item_windows = []
- for i in 0...EQUIP_TYPE_MAX
- @item_windows[i] = Window_EquipItem.new(0, 208-32, 544, 208, @actor, i)
- @item_windows[i].help_window = @help_window
- @item_windows[i].visible = (@equip_index == i)
- @item_windows[i].y = 208 - 32
- @item_windows[i].height = 208
- @item_windows[i].active = false
- @item_windows[i].index = -1
- end
- end
- #--------------------------------------------------------------------------#
- # * overwrite method :update_equip_selection
- #--------------------------------------------------------------------------#
- def update_equip_selection()
- if Input.trigger?(Input::B)
- Sound.play_cancel
- return_scene
- elsif Input.trigger?(Input::Y)
- Sound.play_cursor
- next_actor
- elsif Input.trigger?(Input::X)
- Sound.play_cursor
- prev_actor
- elsif Input.trigger?(Input::C)
- if @actor.fix_equipment
- Sound.play_buzzer
- else
- Sound.play_decision
- @equip_window.active = false
- @item_window.active = true
- @item_window.index = 0
- end
- end
- end
- end
- #=*==========================================================================*=#
- # ** END OF FILE
- #=*==========================================================================*=#
Advertisement
Add Comment
Please, Sign In to add comment