1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 23:00:48 +08:00

Disallow interacting with the global track state in Player and Editor

This commit is contained in:
Dean Herbert
2023-07-25 20:00:31 +09:00
Unverified
parent 6146f30541
commit 3485b72eaa
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -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
+2
View File
@@ -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;