赞 | 0 |
VIP | 4 |
好人卡 | 4 |
积分 | 1 |
经验 | 21393 |
最后登录 | 2017-7-15 |
在线时间 | 586 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 52
- 在线时间
- 586 小时
- 注册时间
- 2012-5-31
- 帖子
- 768
|
应该是在金钱显示窗口( Window_Gold)那改下.在刷新那改下- def refresh
- self.contents.clear
- a = $game_party.gold/10000 #金
- b = ($game_party.gold - a*10000) /100 #银
- c = $game_party.gold - a*10000 - b * 100 #铜
- cx = contents.text_size($data_system.words.gold).width
- self.contents.font.color = Color.new(0,0,0,255)
- self.contents.draw_text(4, 0, 120-cx-2, 32, a.to_s, 2)
- self.contents.font.color = Color.new(0,0,0,255)
- self.contents.draw_text(24, 0, 120-cx-2, 32, "金", 2)
- self.contents.font.color = Color.new(0,0,0,255)
- self.contents.draw_text(54, 0, 120-cx-2, 32, b.to_s, 2)
- self.contents.font.color = Color.new(0,0,0,255)
- self.contents.draw_text(84, 0, 120-cx-2, 32, "银", 0)
- self.contents.font.color = Color.new(0,0,0,255)
- self.contents.draw_text(104, 0, 120-cx-2, 32, c.to_s, 2)
- self.contents.font.color = Color.new(0,0,0,255)
- self.contents.draw_text(144, 0, 120-cx-2, 32, "铜", 0)
-
- end
复制代码 |
|