1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 05:42:54 +08:00

Cache beatmap tracker and bind to selected item in RoomSubScreen

This commit is contained in:
Salman Ahmed 2021-01-16 23:02:30 +03:00
parent da9c23f347
commit cf23781036

View File

@ -40,6 +40,17 @@ namespace osu.Game.Screens.OnlinePlay.Match
private IBindable<WeakReference<BeatmapSetInfo>> managerUpdated;
[Cached]
protected readonly MultiplayerBeatmapTracker BeatmapTracker;
protected RoomSubScreen()
{
InternalChild = BeatmapTracker = new MultiplayerBeatmapTracker
{
SelectedItem = { BindTarget = SelectedItem },
};
}
[BackgroundDependencyLoader]
private void load(AudioManager audio)
{