| 赞 | 10 |
| VIP | |
| 好人卡 | |
| 积分 | 40 |
| 经验 | |
| 最后登录 | 2025-9-8 |
| 在线时间 | 604 小时 |
- 梦石
- 0
- 星屑
- 4017
- 在线时间
- 604 小时
- 注册时间
- 2017-4-21
- 回帖
- 177
|
楼主 |
发表于 2018-9-11 19:24:30
|
显示全部楼层
。。。经过搜索,自己也发现了一个方法
- if $data_mapinfos[@id].name.include?("#") == false
- self.contents.font.size = 15
- self.contents.draw_text(4, 0 , width - 40, 10, "------------------------", 1)
- self.contents.font.size = 22
- self.contents.draw_text(4, 0 , width - 40, 42, $data_mapinfos[@id].name.split(/#/)[0], 1)
- self.contents.font.size = 15
- self.contents.draw_text(4, 0 , width - 40, 72, "------------------------", 1)
- else
- self.contents.font.size = 22
- self.contents.draw_text(4, 0 , width - 40, 32, $data_mapinfos[@id].name.split(/#/)[0], 1)
- self.contents.font.size = 15
- self.contents.draw_text(4, 0 , width - 40, 62, "------------------------", 1)
- self.contents.draw_text(4, 0 , width - 40, 81, $data_mapinfos[@id].name.split(/#/)[1], 1)
- end
复制代码 |
|