赞 | 0 |
VIP | 7 |
好人卡 | 0 |
积分 | 1 |
经验 | 1000 |
最后登录 | 2014-10-15 |
在线时间 | 82 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 82 小时
- 注册时间
- 2006-1-28
- 帖子
- 996
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
我把def normal_color
return Color.new(255, 255, 255, 255)
end
改成了(0,0,0,255)
应该是黑色才对,但是文章里面的text仍然是白色,但是在文章前加\c[n]却可以改变,难道不能把默认字体颜色直接改掉吗
#--------------------------------------------------------------------------
# ● 获取文字色
# n : 文字色编号 (0~7)
#--------------------------------------------------------------------------
def text_color(n)
case n
when 0
return Color.new(177, 255, 255, 255)
when 1
return Color.new(128, 128, 255, 255)
when 2
return Color.new(255, 128, 128, 255)
when 3
return Color.new(128, 255, 128, 255)
when 4
return Color.new(128, 255, 255, 255)
when 5
return Color.new(255, 128, 255, 255)
when 6
return Color.new(255, 255, 128, 255)
when 7
return Color.new(192, 192, 192, 255)
else
normal_color
end
end
#--------------------------------------------------------------------------
# ● 获取普通文字色
#--------------------------------------------------------------------------
def normal_color
return Color.new(0, 0, 0, 255)
end
#----------------------------------------- 版务信息:本贴由楼主自主结贴~ |
|