| 赞 | 0  | 
 
| VIP | 0 | 
 
| 好人卡 | 0 | 
 
| 积分 | 1 | 
 
| 经验 | 2534 | 
 
| 最后登录 | 2015-6-26 | 
 
| 在线时间 | 54 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 50 
 
        - 在线时间
 - 54 小时
 
        - 注册时间
 - 2012-11-27
 
        - 帖子
 - 20
 
 
 
 | 
	
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员  
 
x
 
# ■ Window_Base 
#============================================================================== 
class Window_Base < Window 
  def draw_item_name(item, x, y, enabled = true, width = 172) 
    if item != nil 
      n = item.note 
      a = n.split{/<(?:Quality|品质)\s*(.+)>/i} 
      c = a[1].to_i 
      if c <= 1 
        color = PS0::Window_Base_Itemcolor::Color1 
      elsif c == 2 
        color = PS0::Window_Base_Itemcolor::Color2 
      elsif c == 3 
        color = PS0::Window_Base_Itemcolor::Color3 
      elsif c == 4 
        color = PS0::Window_Base_Itemcolor::Color4 
      elsif c == 5 
        color = PS0::Window_Base_Itemcolor::Color5 
      elsif c == 6 
        color = PS0::Window_Base_Itemcolor::Color6 
      elsif c == 7 
        color = PS0::Window_Base_Itemcolor::Color7 
      else 
        color = Color.new(0, 0, 0, 0) 
      end 
      self.contents.fill_rect(x, y, 24, 1, color) 
      self.contents.fill_rect(x, y, 1, 24, color) 
      self.contents.fill_rect(x, y+23, 24, 1, color) 
      self.contents.fill_rect(x+23, y, 1, 24, color) 
      draw_icon(item.icon_index, x, y, enabled) 
      change_color(color, enabled) 
      draw_text(x + 24, y, width, line_height, item.name) 
    end 
  end 
end 
求帮助啊 |   
 
 
 
 |