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
1 changed files with 6 additions and 1 deletions

View File

@ -97,7 +97,6 @@ protected override void OnHoverLost(InputState state)
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 @@ protected override bool OnMouseDown(InputState state, MouseDownEventArgs 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)
{
box.ClearTransformations();