From 43876ba2b09a1233393691ca567a23d431875701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Tue, 25 Jul 2023 18:41:54 +0200 Subject: [PATCH] Privatise `currentMatchSelectionBox` Because nobody else should need to do anything as cursed as what `ScheduleScreen` was doing (which is 95% of the reason why the selection box even broke there). --- .../Screens/Ladder/Components/DrawableTournamentMatch.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Game.Tournament/Screens/Ladder/Components/DrawableTournamentMatch.cs b/osu.Game.Tournament/Screens/Ladder/Components/DrawableTournamentMatch.cs index acf9ff76ab..c394877ae9 100644 --- a/osu.Game.Tournament/Screens/Ladder/Components/DrawableTournamentMatch.cs +++ b/osu.Game.Tournament/Screens/Ladder/Components/DrawableTournamentMatch.cs @@ -26,7 +26,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components private readonly bool editor; protected readonly FillFlowContainer Flow; private readonly Drawable selectionBox; - protected readonly Drawable CurrentMatchSelectionBox; + private readonly Drawable currentMatchSelectionBox; private Bindable globalSelection; [Resolved(CanBeNull = true)] @@ -82,7 +82,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components Padding = new MarginPadding(-(spacing + border_thickness)), Anchor = Anchor.Centre, Origin = Anchor.Centre, - Child = CurrentMatchSelectionBox = new Container + Child = currentMatchSelectionBox = new Container { RelativeSizeAxes = Axes.Both, Alpha = 0, @@ -151,9 +151,9 @@ namespace osu.Game.Tournament.Screens.Ladder.Components private void updateCurrentMatch() { if (Match.Current.Value) - CurrentMatchSelectionBox.Show(); + currentMatchSelectionBox.Show(); else - CurrentMatchSelectionBox.Hide(); + currentMatchSelectionBox.Hide(); } private bool selected;