mirror of https://github.com/ppy/osu
ease out input drum animation and add delay before fading out
This commit is contained in:
parent
d335c01553
commit
a870f99877
|
@ -159,8 +159,8 @@ public bool OnPressed(KeyBindingPressEvent<TaikoAction> e)
|
||||||
const float up_time = 50;
|
const float up_time = 50;
|
||||||
|
|
||||||
target.Animate(
|
target.Animate(
|
||||||
t => t.FadeTo(Math.Min(target.Alpha + alpha_amount, 1), down_time)
|
t => t.FadeTo(Math.Min(target.Alpha + alpha_amount, 1), down_time, Easing.Out)
|
||||||
).Then(
|
).Delay(100).Then(
|
||||||
t => t.FadeOut(up_time)
|
t => t.FadeOut(up_time)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue