def show_congrat
congrat = Sprite.new
congrat.bitmap = Bitmap.new("Graphics/System/战斗胜利")
congrat.opacity = 0
wait1 = 0
wait2 = 72
panding = 0
a = 0
@ani_sprite = Sprite_Base.new
@animation = $data_animations[159]
@ani_sprite.start_animation(@animation)
loop do
Audio.bgm_play("Audio/BGM/" + "Victory_Fanfare", a, 100) unless a == 100
if a < 100 and panding < 2
a += 4
end
if wait1 > 72 and panding == 0
@animation = nil
@ani_sprite.dispose
@ani_sprite = nil
panding = 1
elsif wait1 <= 72 and panding == 0
@ani_sprite.update unless @ani_sprite.nil?
end
congrat.opacity += 10 if wait1 < 40
Graphics.update
$game_map.update
@spriteset.update
wait1 += 1 unless wait1 > 72
break if wait1 == 73
end
if Input.trigger?(Input::C)
loop do
Audio.bgm_play("Audio/BGM/" + "Victory_Fanfare", a, 100) unless panding == 3
if a > 0
a -= 4
if a == 0
Audio.bgm_stop
panding = 3
end
end
congrat.opacity -= 10 if wait2 > 72
wait2 += 1
break if wait2 == 100
end
end
congrat.dispose
end