mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09: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))
|
using (BeginDelayedSequence(slider.Duration, true))
|
||||||
{
|
{
|
||||||
Body.FadeOut(160);
|
Body.FadeOut(450, Easing.OutQuint);
|
||||||
Ball.FadeOut(160);
|
Ball.FadeOut(450, Easing.OutQuint);
|
||||||
|
|
||||||
this.FadeOut(800)
|
switch (state)
|
||||||
.Expire();
|
{
|
||||||
|
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…
x
Reference in New Issue
Block a user