mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Fix selection is being possible even in disabled state
This commit is contained in:
parent
3150b5cfb4
commit
8d8615773c
@ -25,10 +25,10 @@ namespace osu.Game.Overlays.Toolbar
|
||||
private RulesetStore rulesets;
|
||||
private readonly Bindable<RulesetInfo> globalRuleset = new Bindable<RulesetInfo>();
|
||||
|
||||
public override bool HandleNonPositionalInput => !Current.Disabled && base.HandleNonPositionalInput;
|
||||
public override bool HandlePositionalInput => !Current.Disabled && base.HandlePositionalInput;
|
||||
public override bool HandleNonPositionalInput => !globalRuleset.Disabled && base.HandleNonPositionalInput;
|
||||
public override bool HandlePositionalInput => !globalRuleset.Disabled && base.HandlePositionalInput;
|
||||
|
||||
public override bool PropagatePositionalInputSubTree => !Current.Disabled && base.PropagatePositionalInputSubTree;
|
||||
public override bool PropagatePositionalInputSubTree => !globalRuleset.Disabled && base.PropagatePositionalInputSubTree;
|
||||
|
||||
private void disabledChanged(bool isDisabled) => this.FadeColour(isDisabled ? Color4.Gray : Color4.White, 300);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user