def main_window
@opacity = 200
@hud_dummy = []
for i in 0...4
y = $game_party.actors.size - 1
x = 240 - (y * 80)
if $center_hud == true
@hud_dummy = Window_Base.new(160 * i + x, 0,160, 108)
else
@hud_dummy = Window_Base.new(160 * i, 0,160, 108)
end #if
@hud_dummy.opacity = @opacity
@hud_dummy.visible = false
end #for
@hud_window = Window_HUD.new
for i in 0...$game_party.actors.size
@hud_dummy.visible = $game_party.actors != nil
end #for
@hud = true
end #def
def initialize
super(0, -370, 800, 600)
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 0
for i in 0...$game_party.actors.size
actor = $game_party.actors
eval("@old_hp#{i+1} = actor.hp; @old_sp#{i+1} = actor.sp; @old_exp#{i+1} = actor.now_exp")
end #for
refresh
end #def
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |