| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2020-5-5 |
| 在线时间 | 41 小时 |
- 梦石
- 0
- 星屑
- 60
- 在线时间
- 41 小时
- 注册时间
- 2008-3-5
- 回帖
- 1992
|
发表于 2008-6-6 08:03:37
|
显示全部楼层
Window_Command里
#--------------------------------------------------------------------------
# ● 描绘项目
# index : 项目编号
# color : 文字色
#--------------------------------------------------------------------------
def draw_item(index, color)
color1 = Color.new(0,0,255,255)
color2 = Color.new(0,255,0,255)
color3 = Color.new(255,0,0,255)
self.contents.font.color = color
if @commands[index] == "新游戏"
self.contents.font.color = color1
elsif @commands[index] == "继续"
self.contents.font.color = color2
elsif @commands[index] == "退出"
self.contents.font.color = color3
end
rect = Rect.new(4, 32 * index, self.contents.width - 8, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
self.contents.draw_text(rect, @commands[index])
end
禾西也来了,呵呵~~~~{/hx} |
|