1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 16:25:32 +08:00

Fix weird state changes of footer buttons.

This commit is contained in:
Dean Herbert 2017-02-06 20:46:53 +09:00
parent a5e3586c48
commit 86205c35a4
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -97,7 +97,6 @@ namespace osu.Game.Screens.Select
HoverLost?.Invoke();
light.ScaleTo(new Vector2(1, 1), Footer.TRANSITION_LENGTH, EasingTypes.OutQuint);
light.FadeColour(DeselectedColour, Footer.TRANSITION_LENGTH, EasingTypes.OutQuint);
box.FadeOut(Footer.TRANSITION_LENGTH, EasingTypes.OutQuint);
}
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
@ -106,6 +105,12 @@ namespace osu.Game.Screens.Select
return base.OnMouseDown(state, args);
}
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
{
box.FadeOut(Footer.TRANSITION_LENGTH, EasingTypes.OutQuint);
return base.OnMouseUp(state, args);
}
protected override bool OnClick(InputState state)
{
box.ClearTransformations();