mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 23:12:56 +08:00
Improve animation for legacy skins
This commit is contained in:
parent
9b383e3276
commit
d2716d8557
@ -65,22 +65,32 @@ namespace osu.Game.Skinning
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.ScaleTo(1.6f);
|
bool isTick = result != HitResult.Miss;
|
||||||
this.ScaleTo(1, 100, Easing.In);
|
|
||||||
|
|
||||||
decimal? legacyVersion = skin.GetConfig<SkinConfiguration.LegacySetting, decimal>(SkinConfiguration.LegacySetting.Version)?.Value;
|
if (isTick)
|
||||||
|
|
||||||
if (legacyVersion >= 2.0m)
|
|
||||||
{
|
{
|
||||||
this.MoveTo(new Vector2(0, -5));
|
this.ScaleTo(0.6f);
|
||||||
this.MoveToOffset(new Vector2(0, 80), fade_out_delay + fade_out_length, Easing.In);
|
this.ScaleTo(0.3f, 100, Easing.In);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.ScaleTo(1.6f);
|
||||||
|
this.ScaleTo(1, 100, Easing.In);
|
||||||
|
|
||||||
float rotation = RNG.NextSingle(-8.6f, 8.6f);
|
decimal? legacyVersion = skin.GetConfig<SkinConfiguration.LegacySetting, decimal>(SkinConfiguration.LegacySetting.Version)?.Value;
|
||||||
|
|
||||||
this.RotateTo(0);
|
if (legacyVersion >= 2.0m)
|
||||||
this.RotateTo(rotation, fade_in_length)
|
{
|
||||||
.Then().RotateTo(rotation * 2, fade_out_delay + fade_out_length - fade_in_length, Easing.In);
|
this.MoveTo(new Vector2(0, -5));
|
||||||
|
this.MoveToOffset(new Vector2(0, 80), fade_out_delay + fade_out_length, Easing.In);
|
||||||
|
}
|
||||||
|
|
||||||
|
float rotation = RNG.NextSingle(-8.6f, 8.6f);
|
||||||
|
|
||||||
|
this.RotateTo(0);
|
||||||
|
this.RotateTo(rotation, fade_in_length)
|
||||||
|
.Then().RotateTo(rotation * 2, fade_out_delay + fade_out_length - fade_in_length, Easing.In);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user