查看: 1226|回复: 2

怎么修改系统默认的文字颜色呢?

  [复制链接]
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-6-20
回帖
61
发表于 2009-5-6 22:00:51 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
RT,修改了窗口外观,白色的字看不到,想改成黑色的,求教。
版务信息:本贴由楼主自主结贴~

梦·贤者

梦石
0
星屑
50
在线时间
1141 小时
注册时间
2007-12-15
回帖
4075
发表于 2009-5-6 22:04:32 | 显示全部楼层
Window_Base里面有这一段:
  1.   #--------------------------------------------------------------------------
  2.   # ● 获取文字色
  3.   #     n : 文字色编号 (0~7)
  4.   #--------------------------------------------------------------------------
  5.   def text_color(n)
  6.     case n
  7.     when 0
  8.       return Color.new(255, 255, 255, 255)
  9.     when 1
  10.       return Color.new(128, 128, 255, 255)
  11.     when 2
  12.       return Color.new(255, 128, 128, 255)
  13.     when 3
  14.       return Color.new(128, 255, 128, 255)
  15.     when 4
  16.       return Color.new(128, 255, 255, 255)
  17.     when 5
  18.       return Color.new(255, 128, 255, 255)
  19.     when 6
  20.       return Color.new(255, 255, 128, 255)
  21.     when 7
  22.       return Color.new(192, 192, 192, 255)
  23.     else
  24.       normal_color
  25.     end
  26.   end
  27.   #--------------------------------------------------------------------------
  28.   # ● 获取普通文字色
  29.   #--------------------------------------------------------------------------
  30.   def normal_color
  31.     return Color.new(255, 255, 255, 255)
  32.   end
  33.   #--------------------------------------------------------------------------
  34.   # ● 获取无效文字色
  35.   #--------------------------------------------------------------------------
  36.   def disabled_color
  37.     return Color.new(255, 255, 255, 128)
  38.   end
  39.   #--------------------------------------------------------------------------
  40.   # ● 获取系统文字色
  41.   #--------------------------------------------------------------------------
  42.   def system_color
  43.     return Color.new(192, 224, 255, 255)
  44.   end
  45.   #--------------------------------------------------------------------------
  46.   # ● 获取危机文字色
  47.   #--------------------------------------------------------------------------
  48.   def crisis_color
  49.     return Color.new(255, 255, 64, 255)
  50.   end
  51.   #--------------------------------------------------------------------------
  52.   # ● 获取战斗不能文字色
  53.   #--------------------------------------------------------------------------
  54.   def knockout_color
  55.     return Color.new(255, 64, 0)
  56.   end
复制代码

可能都要改。你先改一个试试:
  def normal_color
    return Color.new(255, 255, 255, 255)
  end

改为:
  def normal_color
    return Color.new(0, 0, 0, 255)
  end

系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
http://rpg.blue/home.php?mod=space&uid=34951&do=blog&id=12799
回复

使用道具 举报

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-6-20
回帖
61
 楼主| 发表于 2009-5-6 22:18:10 | 显示全部楼层
谢啦!改好了已经!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部