mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08: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
|
||||
{
|
||||
Ruleset = r,
|
||||
Action = delegate
|
||||
{
|
||||
if (!ruleset.Disabled) ruleset.Value = r;
|
||||
}
|
||||
Action = delegate { ruleset.Value = r; }
|
||||
});
|
||||
}
|
||||
|
||||
@ -108,6 +105,8 @@ namespace osu.Game.Overlays.Toolbar
|
||||
public override bool HandleNonPositionalInput => !ruleset.Disabled && base.HandleNonPositionalInput;
|
||||
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);
|
||||
|
||||
protected override void Update()
|
||||
|
Loading…
Reference in New Issue
Block a user