Project1
标题:
修改文章字体颜色
[打印本页]
作者:
永远的绿儿
时间:
2008-3-15 19:57
提示:
作者被禁止或删除 内容自动屏蔽
作者:
IamI
时间:
2008-3-15 20:00
在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[X]时的字体颜色,随便自己修改(颜色值是红,绿,蓝,透明度)
作者:
永远的绿儿
时间:
2008-3-15 20:03
提示:
作者被禁止或删除 内容自动屏蔽
作者:
IamI
时间:
2008-3-15 20:04
以下引用
永远的绿儿于2008-3-15 12:03:29
的发言:
[]里什么数字代表什么颜色
是的,比如0对应Color.new(255, 255, 255, 255),即不透明的黑色 [LINE]1,#dddddd[/LINE]
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者:
永远的绿儿
时间:
2008-3-15 20:07
提示:
作者被禁止或删除 内容自动屏蔽
作者:
IamI
时间:
2008-3-15 20:10
太老了,过期了……有言道:
“现在是ftp3的时代!!!”
作者:
永远的绿儿
时间:
2008-3-15 20:11
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1