赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 1775 |
最后登录 | 2016-4-9 |
在线时间 | 79 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 79 小时
- 注册时间
- 2006-7-19
- 帖子
- 76
|
4楼
楼主 |
发表于 2011-7-26 18:48:00
|
只看该作者
本帖最后由 战圣王子 于 2011-7-26 18:48 编辑
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- x = 4
- self.contents.font.color = normal_color
- cx = contents.text_size(@exp.to_s).width
- self.contents.draw_text(x, 0, cx, 32, @exp.to_s)
- x += cx + 4
- self.contents.font.color = system_color
- cx = contents.text_size("经验").width
- self.contents.draw_text(x, 0, 64, 32, "经验")
- x += cx + 16
- self.contents.font.color = normal_color
- cx = contents.text_size($game_variables[3].to_s).width
- self.contents.draw_text(x+16, 0, cx, 32,$game_variables[3].to_s,2)
- self.contents.draw_text(x, 0, cx, 32, @gold.to_s)
- x += cx + 4
- self.contents.font.color = system_color
- self.contents.draw_text(x- 0, 0, 128, 32, "灵魄",2) 怎么设置啊?
- self.contents.draw_text(x, 0, 128, 32, $data_system.words.gold)
- y = 32
- self.contents.font.color = normal_color
-
- self.contents.font.color = system_color
-
- y = 64
- for item in @treasures
- draw_item_name(item, 4, y)
- y += 32
- end
- end
- end
复制代码 |
|