mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Do not propagate positional input to subtree
This commit is contained in:
parent
8264dd49de
commit
8b27741cb0
@ -76,10 +76,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
modeButtons.Add(new ToolbarRulesetButton
|
modeButtons.Add(new ToolbarRulesetButton
|
||||||
{
|
{
|
||||||
Ruleset = r,
|
Ruleset = r,
|
||||||
Action = delegate
|
Action = delegate { ruleset.Value = r; }
|
||||||
{
|
|
||||||
if (!ruleset.Disabled) ruleset.Value = r;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,6 +105,8 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
public override bool HandleNonPositionalInput => !ruleset.Disabled && base.HandleNonPositionalInput;
|
public override bool HandleNonPositionalInput => !ruleset.Disabled && base.HandleNonPositionalInput;
|
||||||
public override bool HandlePositionalInput => !ruleset.Disabled && base.HandlePositionalInput;
|
public override bool HandlePositionalInput => !ruleset.Disabled && base.HandlePositionalInput;
|
||||||
|
|
||||||
|
public override bool PropagatePositionalInputSubTree => false;
|
||||||
|
|
||||||
private void disabledChanged(bool isDisabled) => this.FadeColour(isDisabled ? Color4.Gray : Color4.White, 300);
|
private void disabledChanged(bool isDisabled) => this.FadeColour(isDisabled ? Color4.Gray : Color4.White, 300);
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user