mirror of https://github.com/ppy/osu
Adjust legacy skin judgement transforms to match stable
This commit is contained in:
parent
57eaee27ae
commit
8be31f4805
|
@ -14,6 +14,8 @@ public class LegacyJudgementPiece : CompositeDrawable, IAnimatableJudgement
|
|||
{
|
||||
private readonly HitResult result;
|
||||
|
||||
private bool hasParticle;
|
||||
|
||||
public LegacyJudgementPiece(HitResult result, Drawable drawable)
|
||||
{
|
||||
this.result = result;
|
||||
|
@ -37,6 +39,8 @@ public virtual void PlayAnimation()
|
|||
if (animation?.FrameCount > 1)
|
||||
return;
|
||||
|
||||
const double animation_length = 500;
|
||||
|
||||
switch (result)
|
||||
{
|
||||
case HitResult.Miss:
|
||||
|
@ -49,8 +53,19 @@ public virtual void PlayAnimation()
|
|||
break;
|
||||
|
||||
default:
|
||||
this.ScaleTo(0.9f);
|
||||
this.ScaleTo(1, 500, Easing.OutElastic);
|
||||
if (!hasParticle)
|
||||
{
|
||||
this.ScaleTo(0.6f).Then()
|
||||
.ScaleTo(1.1f, animation_length * 0.8f).Then()
|
||||
.ScaleTo(0.9f, animation_length * 0.4f).Then()
|
||||
.ScaleTo(1f, animation_length * 0.2f);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ScaleTo(0.9f);
|
||||
this.ScaleTo(1.05f, animation_length);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue