mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +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:
parent
f59eef072d
commit
3ece54e1c3
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user