1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:52:55 +08:00

Add a better slider "hit" state fade out animation

This commit is contained in:
Dean Herbert 2018-01-04 20:10:13 +09:00
parent bde957940d
commit ffc7f7ecf4

View File

@ -161,11 +161,21 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
using (BeginDelayedSequence(slider.Duration, true))
{
Body.FadeOut(160);
Ball.FadeOut(160);
Body.FadeOut(450, Easing.OutQuint);
Ball.FadeOut(450, Easing.OutQuint);
this.FadeOut(800)
.Expire();
switch (state)
{
case ArmedState.Idle:
break;
case ArmedState.Hit:
Ball.ScaleTo(HitObject.Scale * 1.5f, 450, Easing.OutQuint);
break;
case ArmedState.Miss:
break;
}
this.FadeOut(800, Easing.Out).Expire();
}
}