diff --git a/osu.Game.Tournament/Screens/Editors/TournamentEditorScreen.cs b/osu.Game.Tournament/Screens/Editors/TournamentEditorScreen.cs index 0fb6c1367b..8d221b1818 100644 --- a/osu.Game.Tournament/Screens/Editors/TournamentEditorScreen.cs +++ b/osu.Game.Tournament/Screens/Editors/TournamentEditorScreen.cs @@ -1,8 +1,6 @@ // Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. -#nullable disable - using System.Collections.Specialized; using System.Diagnostics; using System.Linq; @@ -27,17 +25,18 @@ public abstract partial class TournamentEditorScreen : Tourna { protected abstract BindableList Storage { get; } - private FillFlowContainer flow; + private FillFlowContainer flow = null!; - [Resolved(canBeNull: true)] - private TournamentSceneManager sceneManager { get; set; } + [Resolved] + private TournamentSceneManager? sceneManager { get; set; } - protected ControlPanel ControlPanel; + protected ControlPanel ControlPanel = null!; - private readonly TournamentScreen parentScreen; - private BackButton backButton; + private readonly TournamentScreen? parentScreen; - protected TournamentEditorScreen(TournamentScreen parentScreen = null) + private BackButton backButton = null!; + + protected TournamentEditorScreen(TournamentScreen? parentScreen = null) { this.parentScreen = parentScreen; } @@ -63,6 +62,7 @@ private void load() RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y, Spacing = new Vector2(20), + Padding = new MarginPadding(20), }, }, ControlPanel = new ControlPanel