mirror of
https://github.com/ppy/osu.git
synced 2026-05-28 07:49:54 +08:00
Cache beatmap tracker and bind to selected item in RoomSubScreen
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user