mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-04-22 03:34:10 -04:00
Implement Pico results (good animation)
This commit is contained in:
parent
e32fcee77c
commit
7fbc765403
2 changed files with 5 additions and 5 deletions
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit 0351610af02b45eb25e4bbfef0380f6f1d8cf737
|
||||
Subproject commit 859186eea46c8b70deb3530c25304ba875b7b34a
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue