2021-08-20 09:14:12 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2021-08-20 09:14:12 +00:00
|
|
|
using osu.Framework.Bindables;
|
|
|
|
using osu.Game.Online.Rooms;
|
|
|
|
using osu.Game.Screens.OnlinePlay.Components;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.OnlinePlay.Match
|
|
|
|
{
|
|
|
|
public class RoomBackgroundScreen : OnlinePlayBackgroundScreen
|
|
|
|
{
|
|
|
|
public readonly Bindable<PlaylistItem> SelectedItem = new Bindable<PlaylistItem>();
|
|
|
|
|
2021-08-20 12:40:35 +00:00
|
|
|
public RoomBackgroundScreen(PlaylistItem initialPlaylistItem)
|
2021-08-20 09:14:12 +00:00
|
|
|
{
|
2021-08-20 12:40:35 +00:00
|
|
|
PlaylistItem = initialPlaylistItem;
|
2021-08-20 09:14:12 +00:00
|
|
|
SelectedItem.BindValueChanged(item => PlaylistItem = item.NewValue);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|