| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2015-3-14 |
| 在线时间 | 11 小时 |
空靈
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 11 小时
- 注册时间
- 2006-7-27
- 回帖
- 458
|
楼主 |
发表于 2008-8-30 00:10:31
|
显示全部楼层
以下引用灯笼菜刀王于2008-8-29 15:27:32的发言:
WINDOW COMMAND里
def draw_item(index, color)
self.contents.font.color = color
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
这段
红色的部分改为self.contents.draw_text(rect, @commands[index],1)
不过,这样有副作用-。-,所有的菜单都居中对齐了~~
效果不大好呢。。-V- |
|