mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 20:52:54 +08:00
Fix initial display in room background
This commit is contained in:
parent
5c8ca32ea4
commit
5192ee3b57
@ -36,7 +36,10 @@ namespace osu.Game.Screens.OnlinePlay.Lounge
|
|||||||
{
|
{
|
||||||
public override string Title => "Lounge";
|
public override string Title => "Lounge";
|
||||||
|
|
||||||
protected override BackgroundScreen CreateBackground() => new LoungeBackgroundScreen { SelectedRoom = { BindTarget = selectedRoom } };
|
protected override BackgroundScreen CreateBackground() => new LoungeBackgroundScreen
|
||||||
|
{
|
||||||
|
SelectedRoom = { BindTarget = selectedRoom }
|
||||||
|
};
|
||||||
|
|
||||||
protected override UserActivity InitialActivity => new UserActivity.SearchingForLobby();
|
protected override UserActivity InitialActivity => new UserActivity.SearchingForLobby();
|
||||||
|
|
||||||
|
@ -11,8 +11,9 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
|||||||
{
|
{
|
||||||
public readonly Bindable<PlaylistItem> SelectedItem = new Bindable<PlaylistItem>();
|
public readonly Bindable<PlaylistItem> SelectedItem = new Bindable<PlaylistItem>();
|
||||||
|
|
||||||
public RoomBackgroundScreen()
|
public RoomBackgroundScreen(PlaylistItem initialPlaylistItem)
|
||||||
{
|
{
|
||||||
|
PlaylistItem = initialPlaylistItem;
|
||||||
SelectedItem.BindValueChanged(item => PlaylistItem = item.NewValue);
|
SelectedItem.BindValueChanged(item => PlaylistItem = item.NewValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,10 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
|||||||
[Cached(typeof(IBindable<PlaylistItem>))]
|
[Cached(typeof(IBindable<PlaylistItem>))]
|
||||||
protected readonly Bindable<PlaylistItem> SelectedItem = new Bindable<PlaylistItem>();
|
protected readonly Bindable<PlaylistItem> SelectedItem = new Bindable<PlaylistItem>();
|
||||||
|
|
||||||
protected override BackgroundScreen CreateBackground() => new RoomBackgroundScreen { SelectedItem = { BindTarget = SelectedItem } };
|
protected override BackgroundScreen CreateBackground() => new RoomBackgroundScreen(Room.Playlist.FirstOrDefault())
|
||||||
|
{
|
||||||
|
SelectedItem = { BindTarget = SelectedItem }
|
||||||
|
};
|
||||||
|
|
||||||
public override bool DisallowExternalBeatmapRulesetChanges => true;
|
public override bool DisallowExternalBeatmapRulesetChanges => true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user