mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 16:06:06 +08:00
Cache beatmap tracker and bind to selected item in RoomSubScreen
This commit is contained in:
parent
da9c23f347
commit
cf23781036
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user