赞 | 0 |
VIP | 4 |
好人卡 | 0 |
积分 | 2 |
经验 | 31715 |
最后登录 | 2021-9-11 |
在线时间 | 829 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 180
- 在线时间
- 829 小时
- 注册时间
- 2010-6-26
- 帖子
- 671
|
- #encoding:utf-8
- #==============================================================================
- # ■ Scene_Equip
- #------------------------------------------------------------------------------
- # 装备画面
- #==============================================================================
- class Scene_EquipEX < Scene_Equip
- #--------------------------------------------------------------------------
- # ● 生成指令窗口
- #--------------------------------------------------------------------------
- def create_command_window
- # wx = @status_window.width #删除
- # wy = @help_window.height #删除
- # ww = Graphics.width - @status_window.width #删除
- # @command_window = Window_EquipCommand.new(wx, wy, ww) #删除
- # @command_window.viewport = @viewport #删除
- # @command_window.help_window = @help_window #删除
- # @command_window.set_handler(:equip, method(:command_equip)) #删除
- # @command_window.set_handler(:optimize, method(:command_optimize)) #删除
- # @command_window.set_handler(:clear, method(:command_clear)) #删除
- # @command_window.set_handler(:cancel, method(:return_scene)) #删除
- # @command_window.set_handler(:pagedown, method(:next_actor)) #删除
- # @command_window.set_handler(:pageup, method(:prev_actor)) #删除
- end
- #--------------------------------------------------------------------------
- # ● 生成装备栏窗口
- #--------------------------------------------------------------------------
- def create_slot_window
- wx = @status_window.width
- wy = @help_window.height# @command_window.y + @command_window.height
- ww = Graphics.width - @status_window.width
- @slot_window = Window_EquipSlot.new(wx, wy, ww)
- @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.set_handler(:cancel, method(:return_scene)) #添加
- @slot_window.set_handler(:pagedown, method(:next_actor)) #添加
- @slot_window.set_handler(:pageup, method(:prev_actor)) #添加
- @slot_window.activate #添加
- @slot_window.select(0) #添加
- #####################################################
- end
- #--------------------------------------------------------------------------
- # ● 切换角色
- #--------------------------------------------------------------------------
- def on_actor_change
- @status_window.actor = @actor
- @slot_window.actor = @actor
- @item_window.actor = @actor
- # @command_window.activate
- ##############################
- @slot_window.activate #添加
- @slot_window.select(0) #添加
- ##############################
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Scene_Menu
- #------------------------------------------------------------------------------
- # 菜单画面
- #==============================================================================
- class Scene_Menu < Scene_MenuBase
- #--------------------------------------------------------------------------
- # ● 个人指令“确定”
- #--------------------------------------------------------------------------
- def on_personal_ok
- case @command_window.current_symbol
- when :skill
- SceneManager.call(Scene_Skill)
- when :equip
- # SceneManager.call(Scene_Equip) #删除
- ###################################
- SceneManager.call(Scene_EquipEX) #添加
- ###################################
- when :status
- SceneManager.call(Scene_Status)
- end
- end
- end
复制代码 大概是这样改,坐标自己调吧 |
评分
-
查看全部评分
|