class Scene_Map alias :update_cong :update unless $! def update update_cong # 于是【开关3】可以控制显示与否... @hp_window.visible = @hp_slide.visible = @hp_bor.visible = $game_switches[3] end def draw_hp @hp_window = Window_Sta.new @hp_window.back_opacity = 160 @viewport_bor= Viewport.new(91, 26, 55, 32) @viewport_bor.z = 220 @hp_slide = Plane.new(@viewport_bor) @hp_slide.bitmap = RPG::Cache.title("life") @hp_bor = Sprite.new(@viewport_bor) @hp_bor.bitmap = RPG::Cache.title("life_bor") @hp_bor.z = 240 end end
class Scene_Map
alias :update_cong :update unless $!
def update
update_cong
# 于是【开关3】可以控制显示与否...
@hp_window.visible = @hp_slide.visible = @hp_bor.visible = $game_switches[3]
end
def draw_hp
@hp_window = Window_Sta.new
@hp_window.back_opacity = 160
@viewport_bor= Viewport.new(91, 26, 55, 32)
@viewport_bor.z = 220
@hp_slide = Plane.new(@viewport_bor)
@hp_slide.bitmap = RPG::Cache.title("life")
@hp_bor = Sprite.new(@viewport_bor)
@hp_bor.bitmap = RPG::Cache.title("life_bor")
@hp_bor.z = 240
end
end
|