make buttons only accept input when expanded

both other states are "inactive"/invisible so should never accept keyboard input
This commit is contained in:
FreezyLemon 2018-04-14 00:08:54 +02:00
parent f59eef072d
commit 3ece54e1c3
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ private void trigger()
boxHoverLayer.FadeOut(800, Easing.OutExpo); boxHoverLayer.FadeOut(800, Easing.OutExpo);
} }
public override bool HandleKeyboardInput => state != ButtonState.Exploded; public override bool HandleKeyboardInput => state == ButtonState.Expanded;
public override bool HandleMouseInput => state != ButtonState.Exploded && box.Scale.X >= 0.8f; public override bool HandleMouseInput => state != ButtonState.Exploded && box.Scale.X >= 0.8f;
protected override void Update() protected override void Update()