mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Move overlined displays to a higher namespace
This commit is contained in:
33
osu.Game/Screens/Multi/Components/OverlinedPlaylist.cs
Normal file
33
osu.Game/Screens/Multi/Components/OverlinedPlaylist.cs
Normal file
@ -0,0 +1,33 @@
|
||||
// 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.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Online.Multiplayer;
|
||||
|
||||
namespace osu.Game.Screens.Multi.Components
|
||||
{
|
||||
public class OverlinedPlaylist : OverlinedDisplay
|
||||
{
|
||||
public readonly Bindable<PlaylistItem> SelectedItem = new Bindable<PlaylistItem>();
|
||||
|
||||
private readonly DrawableRoomPlaylist playlist;
|
||||
|
||||
public OverlinedPlaylist(bool allowSelection)
|
||||
: base("Playlist")
|
||||
{
|
||||
Content.Add(playlist = new DrawableRoomPlaylist(false, allowSelection)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
SelectedItem = { BindTarget = SelectedItem }
|
||||
});
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
playlist.Items.BindTo(Playlist);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user