查看: 1387|回复: 8

伸手党求助!!谢谢 很简单的问题吧..

  [复制链接]
梦石
0
星屑
70
在线时间
3 小时
注册时间
2007-4-23
回帖
27
发表于 2008-2-21 21:14:36 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
{/hx}如何把字体变成黑颜色的??  我用对话加强脚本 里面没有黑色的...{/ll}
版务信息:本贴由楼主自主结贴~

御灵的宠物

梦石
12
星屑
8481
在线时间
94 小时
注册时间
2006-12-11
回帖
3101

第2届TG大赛亚军

发表于 2008-2-21 21:16:08 | 显示全部楼层
晕,给错了
你在window_base搜索def text_color(n)
  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

改成
  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)
    when 8
      return Color.new(0, 0, 0, 255)
    else
      normal_color
    end
  end
这样打\c[8]就可以改成黑色……
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
我的Lofter:http://nightoye.lofter.com/

回复

使用道具 举报

冰王子

梦石
0
星屑
50
在线时间
34 小时
注册时间
2008-1-27
回帖
1810
发表于 2008-2-21 21:16:51 | 显示全部楼层
搜索def text_color(n)那段改成
  1. def text_color(n)
  2.     case n
  3.     when 0
  4.       return Color.new(255, 255, 255, 255)
  5.     when 1
  6.       return Color.new(128, 128, 255, 255)
  7.     when 2
  8.       return Color.new(255, 128, 128, 255)
  9.     when 3
  10.       return Color.new(128, 255, 128, 255)
  11.     when 4
  12.       return Color.new(128, 255, 255, 255)
  13.     when 5
  14.       return Color.new(255, 128, 255, 255)
  15.     when 6
  16.       return Color.new(255, 255, 128, 255)
  17.     when 7
  18.       return Color.new(192, 192, 192, 255)
  19.     when 8
  20.       return Color.new(0,0,0,255)
  21.     else
  22.       normal_color
  23.     end
  24.   end
复制代码
不常在线,有事PM
回复

使用道具 举报

很傻很天真

梦石
0
星屑
55
在线时间
3 小时
注册时间
2007-3-13
回帖
3614
发表于 2008-9-13 19:05:31 | 显示全部楼层
re:主题:《有没有上百度Hi的朋友?》
转水……
这里是VX技术提问区……
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-8-7
回帖
27
发表于 2008-9-13 20:29:42 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

忆颐

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-4-26
回帖
1953
发表于 2008-9-13 20:40:10 | 显示全部楼层
re:主题:《有没有上百度Hi的朋友?》
无理取闹。
我已经没有当时刚来6R时的那种激情了啊。
看来6R中的人又变了一轮,让我很陌生。
当时我只是路过,什么都没留下。
因为记得我的人已经不多了吧。
http://hi.baidu.com/fantasylen
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2006-11-23
回帖
426
发表于 2008-9-13 21:33:39 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

静

梦石
0
星屑
49
在线时间
157 小时
注册时间
2007-12-16
回帖
3031
发表于 2008-9-13 21:48:21 | 显示全部楼层
re:主题:《有没有上百度Hi的朋友?》
合并之
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-8-7
回帖
27
发表于 2008-9-13 18:35:40 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部