| 
 
| 赞 | 289 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 85 |  
| 经验 | 0 |  
| 最后登录 | 2019-7-14 |  
| 在线时间 | 775 小时 |  
 Lv4.逐梦者 
	梦石0 星屑8498 在线时间775 小时注册时间2017-11-10帖子1231 | 
| 复制代码module CategoryEquip
Text1 = "更換人物目前的武器及裝備。"
Text2 = "由系統代替你更換人物武器及裝備。"
Text3 = "將人物目前的武器及裝備放回包裹。"
end
#==============================================================================
# ■ Window_EquipCommand
#------------------------------------------------------------------------------
#  技能画面中,选择指令(更换装备/最强装备/全部卸下)的窗口。
#==============================================================================
include CategoryEquip
class Window_EquipCommand < Window_HorzCommand
  #--------------------------------------------------------------------------
  # ● 初始化对象
  #--------------------------------------------------------------------------
  def initialize(x, y, width)
    @window_width = width
    super(x, y)
  end
  #--------------------------------------------------------------------------
  # ● 获取窗口的宽度
  #--------------------------------------------------------------------------
  def window_width
    @window_width
  end
  #--------------------------------------------------------------------------
  # ● 获取列数
  #--------------------------------------------------------------------------
  def col_max
    return 3
  end
  #--------------------------------------------------------------------------
  # ● 生成指令列表
  #--------------------------------------------------------------------------
  def make_command_list
    add_command(Vocab::equip2,   :equip)
    add_command(Vocab::optimize, :optimize)
    add_command(Vocab::clear,    :clear)
  end
  #--------------------------------------------------------------------------
  # ● 更新帮助内容
  #--------------------------------------------------------------------------
  def update_help
    case self.index
    when 0
      @text = Text1
    when 1
      @text = Text2
    when 2
      @text = Text3
    end
    @help_window.set_text(@text)
  end
end
说明用语请自己改吧...
 | 
 评分
查看全部评分
 |