| 
 
| 赞 | 0 |  
| VIP | 13 |  
| 好人卡 | 65 |  
| 积分 | 1 |  
| 经验 | 58644 |  
| 最后登录 | 2017-10-23 |  
| 在线时间 | 1281 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间1281 小时注册时间2006-8-27帖子590 | 
| 本帖最后由 wbsy8241 于 2010-11-26 19:29 编辑 
 LS 的实现复制代码#==============================================================================
# ■ Window_Help
#------------------------------------------------------------------------------
#  特技及物品的说明、角色的状态显示的窗口。
#==============================================================================
class Window_Help < Window_Base
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 544, WLH + 32+24)
  end
  #--------------------------------------------------------------------------
  # ● 设置文字
  #  text  : 显示于窗口内的字符串
  #  align : 对其 (0..靠左对齐, 1..居中对齐, 2..靠右对齐)
  #--------------------------------------------------------------------------
  def set_text(text, align = 0)
    if text != @text or align != @align
      self.contents.clear
      self.contents.font.color = normal_color
      y = 0
      for str in text.split(/\\n/)
        self.contents.draw_text(4, y*WLH, self.width - 40, WLH, str, align)
        y += 1
      end
      @text = text
      @align = align
    end
  end
end
 | 
 评分
查看全部评分
 |