mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09: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:
@ -222,7 +222,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
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()
|
||||||
|
Reference in New Issue
Block a user