mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:07:29 +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;
|
private IBindable<WeakReference<BeatmapSetInfo>> managerUpdated;
|
||||||
|
|
||||||
|
[Cached]
|
||||||
|
protected readonly MultiplayerBeatmapTracker BeatmapTracker;
|
||||||
|
|
||||||
|
protected RoomSubScreen()
|
||||||
|
{
|
||||||
|
InternalChild = BeatmapTracker = new MultiplayerBeatmapTracker
|
||||||
|
{
|
||||||
|
SelectedItem = { BindTarget = SelectedItem },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(AudioManager audio)
|
private void load(AudioManager audio)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user