Implement Pico results (good animation)

This commit is contained in:
EliteMasterEric 2024-07-04 03:32:50 -04:00
parent e32fcee77c
commit 7fbc765403
2 changed files with 5 additions and 5 deletions
assets
source/funkin/play

2
assets

@ -1 +1 @@
Subproject commit 0351610af02b45eb25e4bbfef0380f6f1d8cf737
Subproject commit 859186eea46c8b70deb3530c25304ba875b7b34a

View file

@ -187,22 +187,22 @@ class ResultState extends MusicBeatSubState
if (animData.loopFrameLabel != null)
{
animation.anim.onComplete = () -> {
animation.onAnimationFinish.add((_name:String) -> {
if (animation != null)
{
animation.playAnimation(animData.loopFrameLabel ?? ''); // unpauses this anim, since it's on PlayOnce!
}
}
});
}
else if (animData.loopFrame != null)
{
animation.anim.onComplete = () -> {
animation.onAnimationFinish.add((_name:String) -> {
if (animation != null)
{
animation.anim.curFrame = animData.loopFrame ?? 0;
animation.anim.play(); // unpauses this anim, since it's on PlayOnce!
}
}
});
}
// Hide until ready to play.