| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2012-10-8 |
| 在线时间 | 333 小时 |
穿越一季:朔
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 333 小时
- 注册时间
- 2007-4-11
- 回帖
- 5052

|
发表于 2009-3-30 17:45:06
|
显示全部楼层
x = 4; y = 0
for c in text.scan(/./)
if x + self.contents.text_size(c).width >= self.width - 40
x = 4; y += 32
end
self.contents.draw_text(x, y, 40, 32, c, align)
x += self.contents.text_size(c).width
end
貌似可以考虑挤一挤
|
|