mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Move beatmap + mod info to header
This commit is contained in:
@ -47,7 +47,7 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
||||
private readonly IBindableCollection<PlaylistItem> playlistBind = new BindableCollection<PlaylistItem>();
|
||||
private readonly IBindable<DateTimeOffset> endDateBind = new Bindable<DateTimeOffset>();
|
||||
|
||||
private readonly Bindable<WorkingBeatmap> beatmap = new Bindable<WorkingBeatmap>();
|
||||
private readonly Bindable<BeatmapInfo> beatmap = new Bindable<BeatmapInfo>();
|
||||
|
||||
private UpdateableBeatmapBackgroundSprite background;
|
||||
private BeatmapTitle beatmapTitle;
|
||||
@ -243,6 +243,10 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
||||
|
||||
endDateBind.BindValueChanged(d => endDate.Date = d, true);
|
||||
|
||||
background.Beatmap.BindTo(beatmap);
|
||||
modeTypeInfo.Beatmap.BindTo(beatmap);
|
||||
beatmapTitle.Beatmap.BindTo(beatmap);
|
||||
|
||||
modeTypeInfo.Type.BindTo(typeBind);
|
||||
|
||||
participantInfo.Host.BindTo(hostBind);
|
||||
@ -266,12 +270,7 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
||||
return;
|
||||
|
||||
// For now, only the first playlist item is supported
|
||||
var item = playlistBind.First();
|
||||
|
||||
beatmap.Value = beatmaps.GetWorkingBeatmap(item.Beatmap);
|
||||
background.Beatmap.Value = item.Beatmap;
|
||||
modeTypeInfo.Beatmap.Value = item.Beatmap;
|
||||
beatmapTitle.Beatmap.Value = item.Beatmap;
|
||||
beatmap.Value = playlistBind.First().Beatmap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user