mirror of
https://github.com/ppy/osu.git
synced 2026-05-27 10:50:11 +08:00
Disallow interacting with the global track state in Player and Editor
This commit is contained in:
@@ -68,6 +68,8 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
public override bool? ApplyModTrackAdjustments => false;
|
||||
|
||||
public override bool? AllowGlobalTrackControl => false;
|
||||
|
||||
protected override bool PlayExitSound => !ExitConfirmed && !switchingDifficulty;
|
||||
|
||||
protected bool HasUnsavedChanges
|
||||
|
||||
@@ -71,6 +71,8 @@ namespace osu.Game.Screens.Play
|
||||
// We are managing our own adjustments (see OnEntering/OnExiting).
|
||||
public override bool? ApplyModTrackAdjustments => false;
|
||||
|
||||
public override bool? AllowGlobalTrackControl => false;
|
||||
|
||||
private readonly IBindable<bool> gameActive = new Bindable<bool>(true);
|
||||
|
||||
private readonly Bindable<bool> samplePlaybackDisabled = new Bindable<bool>();
|
||||
|
||||
@@ -36,6 +36,8 @@ namespace osu.Game.Screens.Ranking
|
||||
|
||||
public override bool DisallowExternalBeatmapRulesetChanges => true;
|
||||
|
||||
public override bool? AllowGlobalTrackControl => true;
|
||||
|
||||
// Temporary for now to stop dual transitions. Should respect the current toolbar mode, but there's no way to do so currently.
|
||||
public override bool HideOverlaysOnEnter => true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user