- 注册时间
- 2006-11-5
- 最后登录
- 2007-6-24
⑥精研
- 积分
- 4699
|
发表于 2007-1-5 19:53:52
|
显示全部楼层
脚本Window_Base里面调颜色
def text_color(n)
case n
when 0
return Color.new(255, 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
调用这些颜色用\\c[n],在文章内容里使用。 |
|