1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Remove unnecessary AllowTrackAdjustments overrides, add true to SongSelect

This commit is contained in:
AbstractQbit 2021-09-15 13:12:57 +03:00
parent 1181317c72
commit f0439ef50b
7 changed files with 2 additions and 12 deletions

View File

@ -24,8 +24,6 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
private OsuDirectorySelector directorySelector;
public override bool? AllowTrackAdjustments => false;
/// <summary>
/// Text to display in the header to inform the user of what they are selecting.
/// </summary>

View File

@ -23,8 +23,6 @@ namespace osu.Game.Screens.Import
{
public override bool HideOverlaysOnEnter => true;
public override bool? AllowTrackAdjustments => false;
private OsuFileSelector fileSelector;
private Container contentContainer;
private TextFlowContainer currentFileText;

View File

@ -36,8 +36,6 @@ namespace osu.Game.Screens.Menu
public override bool AllowExternalScreenChange => true;
public override bool? AllowTrackAdjustments => false;
private Screen songSelect;
private MenuSideFlashes sideFlashes;

View File

@ -24,8 +24,6 @@ namespace osu.Game.Screens.OnlinePlay
[Cached]
protected readonly OverlayColourProvider ColourProvider = new OverlayColourProvider(OverlayColourScheme.Plum);
public override bool? AllowTrackAdjustments => false;
public override bool CursorVisible => (screenStack?.CurrentScreen as IOnlinePlaySubScreen)?.CursorVisible ?? true;
// this is required due to PlayerLoader eventually being pushed to the main stack

View File

@ -10,8 +10,6 @@ namespace osu.Game.Screens.Play
{
protected override BackgroundScreen CreateBackground() => new BackgroundScreenBeatmap(Beatmap.Value);
public override bool? AllowTrackAdjustments => true;
public void ApplyToBackground(Action<BackgroundScreenBeatmap> action) => base.ApplyToBackground(b => action.Invoke((BackgroundScreenBeatmap)b));
}
}

View File

@ -53,6 +53,8 @@ namespace osu.Game.Screens.Select
protected virtual bool DisplayStableImportPrompt => stableImportManager?.SupportsImportFromStable == true;
public override bool? AllowTrackAdjustments => true;
/// <summary>
/// Can be null if <see cref="ShowFooter"/> is false.
/// </summary>

View File

@ -16,8 +16,6 @@ namespace osu.Game.Screens
public override bool CursorVisible => false;
public override bool? AllowTrackAdjustments => false;
protected override OverlayActivation InitialOverlayActivationMode => OverlayActivation.Disabled;
}
}