Skip to content

Commit

Permalink
Move fade more local to avoid fading twice
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jan 25, 2024
1 parent 6070eac commit d0421fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osu.Game/Skinning/LegacyJudgementPieceOld.cs
Expand Up @@ -44,7 +44,6 @@ public virtual void PlayAnimation()
const double fade_out_length = 600;

this.FadeInFromZero(fade_in_length);
this.Delay(fade_out_delay).FadeOut(fade_out_length);

if (result.IsMiss())
{
Expand Down Expand Up @@ -74,6 +73,8 @@ public virtual void PlayAnimation()
this.RotateTo(0);
this.RotateTo(rotation, fade_in_length)
.Then().RotateTo(rotation * 2, fade_out_delay + fade_out_length - fade_in_length, Easing.In);

this.Delay(fade_out_delay).FadeOut(fade_out_length);
}
}
else
Expand All @@ -87,6 +88,8 @@ public virtual void PlayAnimation()
// so we need to force the current value to be correct at 1.2 (0.95) then complete the
// second half of the transform.
.ScaleTo(0.95f).ScaleTo(finalScale, fade_in_length * 0.2f); // t = 1.4

this.Delay(fade_out_delay).FadeOut(fade_out_length);
}
}

Expand Down

0 comments on commit d0421fe

Please sign in to comment.