以下引用黑之翅膀于2009-3-28 18:44:27的发言:
吖。。。。XP或VX版
class Scene_Map < Scene_Base
alias hpmpwindow_start start
def start
hpmpwindow_start
@hpmpwindow = Window_Base.new(0, 336, 152, 80)
end
alias hpmpwindow_update update
def update
actor = $game_party.members[0]
if @temp_hp != actor.hp or @temp_mp != actor.mp
@hpmpwindow.contents.clear
@hpmpwindow.draw_actor_hp(actor, 0, 0)
@hpmpwindow.draw_actor_mp(actor, 0, 24)
@temp_hp = actor.hp
@temp_mp = actor.mp
end
@hpmpwindow.update
hpmpwindow_update
end
alias hpmpwindow_terminate terminate
def terminate
@hpmpwindow.dispose
hpmpwindow_terminate
end
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |