mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 11:37:52 +08:00
21 lines
696 B
C#
21 lines
696 B
C#
// 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.
|
|
|
|
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>();
|
|
|
|
public RoomBackgroundScreen(PlaylistItem initialPlaylistItem)
|
|
{
|
|
PlaylistItem = initialPlaylistItem;
|
|
SelectedItem.BindValueChanged(item => PlaylistItem = item.NewValue);
|
|
}
|
|
}
|
|
}
|