1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 16:52:54 +08:00

add settings to player settings overlay

This commit is contained in:
Sheppsu 2024-12-10 22:57:39 -05:00
parent 40011f0e73
commit b12f781425

View File

@ -54,7 +54,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
private SpectatorSyncManager syncManager = null!;
private PlayerGrid grid = null!;
private MultiSpectatorLeaderboard leaderboard = null!;
private FillFlowContainer leaderboardFlow = null!;
private PlayerArea? currentAudioSource;
private readonly Room room;
@ -78,6 +77,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
private void load()
{
Container scoreDisplayContainer;
FillFlowContainer leaderboardFlow;
PlayerSettingsOverlay playerSettingsOverlay;
InternalChildren = new Drawable[]
{
@ -127,7 +128,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
{
ReadyToStart = performInitialSeek,
},
new PlayerSettingsOverlay()
playerSettingsOverlay = new PlayerSettingsOverlay()
};
for (int i = 0; i < Users.Count; i++)
@ -159,8 +160,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
}, chat => leaderboardFlow.Insert(1, chat));
var replayAnalysisSettings = Ruleset.Value.CreateInstance().CreateReplayAnalysisSettings();
if (replayAnalysisSettings is not null)
leaderboardFlow.Insert(2, replayAnalysisSettings);
if (replayAnalysisSettings != null)
playerSettingsOverlay.Add(replayAnalysisSettings);
}
protected override void LoadComplete()