赞 | 8 |
VIP | 0 |
好人卡 | 1 |
积分 | 7 |
经验 | 1038 |
最后登录 | 2023-9-28 |
在线时间 | 55 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 742
- 在线时间
- 55 小时
- 注册时间
- 2017-8-8
- 帖子
- 34
|
在Window_ActorCommand
第37行 58-60行 加#号就行了
- #encoding:utf-8
- #==============================================================================
- # ■ Window_ActorCommand
- #------------------------------------------------------------------------------
- # 战斗画面中,选择角色行动的窗口。
- #==============================================================================
- class Window_ActorCommand < Window_Command
- #--------------------------------------------------------------------------
- # ● 初始化对象
- #--------------------------------------------------------------------------
- def initialize
- super(0, 0)
- self.openness = 0
- deactivate
- @actor = nil
- end
- #--------------------------------------------------------------------------
- # ● 获取窗口的宽度
- #--------------------------------------------------------------------------
- def window_width
- return 128
- end
- #--------------------------------------------------------------------------
- # ● 获取显示行数
- #--------------------------------------------------------------------------
- def visible_line_number
- return 4
- end
- #--------------------------------------------------------------------------
- # ● 生成指令列表
- #--------------------------------------------------------------------------
- def make_command_list
- return unless @actor
- add_attack_command
- add_skill_commands
- # add_guard_command
- add_item_command
- end
- #--------------------------------------------------------------------------
- # ● 添加攻击指令
- #--------------------------------------------------------------------------
- def add_attack_command
- add_command(Vocab::attack, :attack, @actor.attack_usable?)
- end
- #--------------------------------------------------------------------------
- # ● 添加技能指令
- #--------------------------------------------------------------------------
- def add_skill_commands
- @actor.added_skill_types.sort.each do |stype_id|
- name = $data_system.skill_types[stype_id]
- add_command(name, :skill, true, stype_id)
- end
- end
- #--------------------------------------------------------------------------
- # ● 添加防御指令
- #--------------------------------------------------------------------------
- #def add_guard_command
- # add_command(Vocab::guard, :guard, @actor.guard_usable?)
- #end
- #--------------------------------------------------------------------------
- # ● 添加物品指令
- #--------------------------------------------------------------------------
- def add_item_command
- add_command(Vocab::item, :item)
- end
- #--------------------------------------------------------------------------
- # ● 设置
- #--------------------------------------------------------------------------
- def setup(actor)
- @actor = actor
- clear_command_list
- make_command_list
- refresh
- select(0)
- activate
- open
- end
- end
复制代码 |
|