| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 2 |  
| 积分 | 1 |  
| 经验 | 1384 |  
| 最后登录 | 2014-2-18 |  
| 在线时间 | 40 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间40 小时注册时间2011-7-7帖子39 | 
| 本帖最后由 fux2 于 2011-7-30 16:00 编辑 
 我想把它显示的颜色都为  黑色  。字号都为11?怎么弄的颜色?复制代码#==============================================================================
# ■ Window_EquipLeft
#------------------------------------------------------------------------------
#  装备画面的、显示角色能力值变化的窗口。
#==============================================================================
class Window_EquipLeft < Window_Base
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #     actor : 角色
  #--------------------------------------------------------------------------
  def initialize(actor)
    super(0, 0, 280, 192)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.color=Color.new(0,0,0,255)
    @actor = actor
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.font.size=15
    self.contents.font.color=Color.new(0,0,0,255)
    draw_actor_name(@actor, 4, 0)
    draw_actor_level(@actor, 4, 32)
    draw_actor_parameter(@actor, 4, 64, 0)
    draw_actor_parameter(@actor, 4, 96, 1)
    draw_actor_parameter(@actor, 4, 128, 2)
    if @new_atk != nil
      self.contents.font.color = Color.new(0,0,0,255)
      self.contents.draw_text(160, 64, 40, 32, "→", 1)
      self.contents.font.color = Color.new(0,0,0,255)
      self.contents.draw_text(200, 64, 36, 32, @new_atk.to_s, 2)
    end
    if @new_pdef != nil
      self.contents.font.color = Color.new(0,0,0,255)
      self.contents.draw_text(160, 96, 40, 32, "→", 1)
      self.contents.font.color = Color.new(0,0,0,255)
      self.contents.draw_text(200, 96, 36, 32, @new_pdef.to_s, 2)
    end
    if @new_mdef != nil
      self.contents.font.color = Color.new(0,0,0,255)
      self.contents.draw_text(160, 128, 40, 32, "→", 1)
      self.contents.font.color = Color.new(0,0,0,255)
      self.contents.draw_text(200, 128, 36, 32, @new_mdef.to_s, 2)
    end
  end
还有怎么添加其他的属性进去?
 draw_actor_name(@actor, 4, 0)
 draw_actor_level(@actor, 4, 32)
 draw_actor_parameter(@actor, 4, 64, 0)
 draw_actor_parameter(@actor, 4, 96, 1)
 draw_actor_parameter(@actor, 4, 128, 2)
 后面的数字0,1,2,分别代表的是攻击,物理防御,魔法防御?
 怎么改颜色
 | 
 |