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