MS 对话时 对话的文字颜色 不能改变(除非\C[N])
原版的 Window_Message 是可以做到的……
不要说 改 BASE 那里
我已经试过了 (囧到 把BASE里 所有带数字和COLOR的 都几乎改了 囧)
求高手 来看 {/fd}作者: hitlerson 时间: 2008-6-24 21:55
color = $1.to_i
if color >= 0 and color <= 7
self.contents.font.color = text_color(color)
end
不就是window_base里的吗?作者: redant 时间: 2008-6-24 22:05
def text_color(n)
case n
when 0
return Color.new(255, 255, 255, 255)
when 1
return Color.new(255, -255, -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, 141, 0, 255)
when 7
return Color.new(80, 73, 127, 255)
else
normal_color
end
end