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:
parent
bde957940d
commit
ffc7f7ecf4
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user