mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 14:42:56 +08:00
Adjust legacy skin judgement transforms to match stable
This commit is contained in:
parent
57eaee27ae
commit
8be31f4805
@ -14,6 +14,8 @@ namespace osu.Game.Skinning
|
|||||||
{
|
{
|
||||||
private readonly HitResult result;
|
private readonly HitResult result;
|
||||||
|
|
||||||
|
private bool hasParticle;
|
||||||
|
|
||||||
public LegacyJudgementPiece(HitResult result, Drawable drawable)
|
public LegacyJudgementPiece(HitResult result, Drawable drawable)
|
||||||
{
|
{
|
||||||
this.result = result;
|
this.result = result;
|
||||||
@ -37,6 +39,8 @@ namespace osu.Game.Skinning
|
|||||||
if (animation?.FrameCount > 1)
|
if (animation?.FrameCount > 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
const double animation_length = 500;
|
||||||
|
|
||||||
switch (result)
|
switch (result)
|
||||||
{
|
{
|
||||||
case HitResult.Miss:
|
case HitResult.Miss:
|
||||||
@ -49,8 +53,19 @@ namespace osu.Game.Skinning
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
this.ScaleTo(0.9f);
|
if (!hasParticle)
|
||||||
this.ScaleTo(1, 500, Easing.OutElastic);
|
{
|
||||||
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user