mirror of
https://github.com/ppy/osu.git
synced 2025-01-21 08:12:56 +08:00
Fix weird state changes of footer buttons.
This commit is contained in:
parent
a5e3586c48
commit
86205c35a4
@ -97,7 +97,6 @@ namespace osu.Game.Screens.Select
|
|||||||
HoverLost?.Invoke();
|
HoverLost?.Invoke();
|
||||||
light.ScaleTo(new Vector2(1, 1), Footer.TRANSITION_LENGTH, EasingTypes.OutQuint);
|
light.ScaleTo(new Vector2(1, 1), Footer.TRANSITION_LENGTH, EasingTypes.OutQuint);
|
||||||
light.FadeColour(DeselectedColour, 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)
|
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||||
@ -106,6 +105,12 @@ namespace osu.Game.Screens.Select
|
|||||||
return base.OnMouseDown(state, args);
|
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)
|
protected override bool OnClick(InputState state)
|
||||||
{
|
{
|
||||||
box.ClearTransformations();
|
box.ClearTransformations();
|
||||||
|
Loading…
Reference in New Issue
Block a user