class Scene_Equip < Scene_MenuBase
#--------------------------------------------------------------------------
# ● 开始处理
#--------------------------------------------------------------------------
def start
super
create_help_window
create_status_window
create_slot_window
create_item_window
end
alias help_ex_start start
def start
help_ex_start
create_help_ex
end
#--------------------------------------------------------------------------
# ● 生成装备栏窗口
#--------------------------------------------------------------------------
def create_slot_window
wx = @status_window.width
wy = @help_window.height
ww = Graphics.width - @status_window.width
@slot_window = Window_EquipSlot.new(wx, wy, ww)
@slot_window.height = @status_window.height
@slot_window.viewport = @viewport
@slot_window.help_window = @help_window
@slot_window.status_window = @status_window
@slot_window.actor = @actor
@slot_window.set_handler(:ok, method(:on_slot_ok))
@slot_window.set_handler(:cancel, method(:on_slot_cancel))
@slot_window.activate
@slot_window.select(0)
end
def on_slot_cancel
@slot_window.unselect
return_scene
end
alias help_ex_on_slot_cancel on_slot_cancel
def on_slot_cancel
help_ex_on_slot_cancel
@help_ex_window.hide
end
end