1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 21:27:24 +08:00

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

View File

@ -222,7 +222,7 @@ namespace osu.Game.Screens.Menu
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;
protected override void Update()