赞 | 0 |
VIP | 10 |
好人卡 | 3 |
积分 | 1 |
经验 | 3584 |
最后登录 | 2015-10-25 |
在线时间 | 134 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 134 小时
- 注册时间
- 2009-3-29
- 帖子
- 470
|
本帖最后由 黑之翅膀 于 2011-10-21 01:08 编辑
- class Scene_Map < Scene_Base
- alias hpmpexpwindow_start start
- def start
- hpmpexpwindow_start
- @hpmpexpwindow = Window_Base.new(0, 336, 152, 80)
- end
- alias hpmpexpwindow_update update
- def update
- actor = $game_party.members[0]
- if @temp_hp != actor.hp or @temp_mp != actor.mp or @temp_exp != actor.exp
- @hpmpexpwindow.contents.clear
- @hpmpexpwindow.draw_actor_hp(actor, 0, 0)
- @hpmpexpwindow.draw_actor_mp(actor, 0, 24)
- @hpmpexpwindow.draw_actor_exp(actor, 0, 48)
- @temp_hp = actor.hp
- @temp_mp = actor.mp
- @temp_exp = actor.exp
- end
- @hpmpexpwindow.update
- hpmpexpwindow_update
- end
- alias hpmpexpwindow_terminate terminate
- def terminate
- @hpmpexpwindow.dispose
- hpmpexpwindow_terminate
- end
- end
复制代码 |
|