赞 | 451 |
VIP | 56 |
好人卡 | 75 |
积分 | 427 |
经验 | 124650 |
最后登录 | 2024-12-23 |
在线时间 | 7616 小时 |
Lv5.捕梦者 (管理员) 老黄鸡
- 梦石
- 0
- 星屑
- 42681
- 在线时间
- 7616 小时
- 注册时间
- 2009-7-6
- 帖子
- 13506
|
回复 falef 的帖子
- class Scene_Map
- alias:fux2:main
- def main
- @info_fux2 = Fux2.new
- fux2
- @info_fux2.dispose
- end
-
- alias fux2update update
- def update
- @info_fux2.update
- fux2update
- end
- end
- class Fux2 < Window_Base
- def initialize
- super(20,20,300,132)
- self.opacity = 0
- self.back_opacity = 0
- self.contents_opacity = 255
- self.contents = Bitmap.new(244, 96)
- @oldhp = nil
- @oldmp = nil
- @oldmoney = nil
- end
- def update
- if @oldhp != $game_party.members[0].hp or @oldmp != $game_party.members[0].mp or @oldmoney != $game_party.gold
- self.contents.clear
- self.contents.draw_text(0,0,300,50,"生命:#{$game_party.members[0].hp}")
- self.contents.draw_text(0,28,300,50,"魔法:#{$game_party.members[0].mp}")
- self.contents.draw_text(0,56,300,50,"金币:#{$game_party.gold}")
- @oldhp,@oldm, @oldmoney= $game_party.members[0].hp,$game_party.members[0].mp,$game_party.gold
- end
- end
- end
-
复制代码 |
|