class Scene_Map < Scene_Base
#----------------------------------------------------------------------------
# * 重命名方法
#----------------------------------------------------------------------------
alias sm_sta start
#----------------------------------------------------------------------------
# * 开始处理
#----------------------------------------------------------------------------
def start
sm_sta
@owt = Window_MapStatus.new
end
end
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
class Window_MapStatus < Window_Base
def initialize
super(0, 0, 273,144)
self.opacity = 0
refresh
end
#----------------------------------------------------------------------------
# * 刷新画面
#----------------------------------------------------------------------------
def update
super
refresh if $refresh
$refresh = false
end
#----------------------------------------------------------------------------
# * 更新内容
#----------------------------------------------------------------------------
def refresh
self.contents.clear
draw_actor_hp($game_party.members[0], 60, 35, self.contents.width - 101)
draw_actor_mp($game_party.members[0], 60, 95, self.contents.width - 101)
end
end
#######################################################
class Game_Actor < Game_Battler
#----------------------------------------------------------------------------
# * 重命名方法
#----------------------------------------------------------------------------
alias ms_refresh refresh
#--------------------------------------------------------------------------
# * 刷新
#---------------------------------------------------------------------
def refresh
ms_refresh
$refresh = true
end
end