Project1

标题: 怎么让对话框的字体为黑色 [打印本页]

作者: sudongg    时间: 2008-6-16 01:10
提示: 作者被禁止或删除 内容自动屏蔽
作者: hitlerson    时间: 2008-6-16 01:23
黑色.....

我也不会
作者: 灯笼菜刀王    时间: 2008-6-16 02:31
在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

挑个自己不用的颜色把括号里的换成(0,0,0,255) 就是黑色的了。

或者添加when 8,不过比较麻烦些。

或者,把这个
def normal_color
    return Color.new(255, 255, 255, 255)
  end
改成
def normal_color
    return Color.new(0,0,0, 255)
  end
默认使用的就是黑色的字。如果后面的脚本有重新定义normal_color。那就改后面的def normal_color。
[LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: sudongg    时间: 2008-6-16 02:41
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1