mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 03:02:53 +08:00
Simplify MultiSpectatorScreen
hierarchy construction
This commit is contained in:
parent
7c1fc4814e
commit
7f9246637a
@ -73,15 +73,11 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
FillFlowContainer leaderboardFlow;
|
||||
Container scoreDisplayContainer;
|
||||
|
||||
masterClockContainer = new MasterGameplayClockContainer(Beatmap.Value, 0);
|
||||
|
||||
InternalChildren = new[]
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
(Drawable)(syncManager = new SpectatorSyncManager(masterClockContainer)
|
||||
masterClockContainer = new MasterGameplayClockContainer(Beatmap.Value, 0)
|
||||
{
|
||||
ReadyToStart = performInitialSeek,
|
||||
}),
|
||||
masterClockContainer.WithChild(new GridContainer
|
||||
Child = new GridContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
RowDimensions = new[] { new Dimension(GridSizeMode.AutoSize) },
|
||||
@ -119,7 +115,12 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
syncManager = new SpectatorSyncManager(masterClockContainer)
|
||||
{
|
||||
ReadyToStart = performInitialSeek,
|
||||
}
|
||||
};
|
||||
|
||||
for (int i = 0; i < Users.Count; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user