mirror of https://github.com/ppy/osu
make buttons only accept input when expanded
both other states are "inactive"/invisible so should never accept keyboard input
This commit is contained in:
parent
f59eef072d
commit
3ece54e1c3
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue