mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 06:07:28 +08:00
d3957e6155
Using an abstract property was awkward for this as it is being consumed in the underlying constructor but could not be dynamically set in time from a derived class.
36 lines
972 B
C#
36 lines
972 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.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Graphics.Sprites;
|
|
using osu.Game.Overlays.Music;
|
|
|
|
namespace osu.Game.Screens.Play.PlayerSettings
|
|
{
|
|
public class CollectionSettings : PlayerSettingsGroup
|
|
{
|
|
public CollectionSettings()
|
|
: base("collections")
|
|
{
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
Children = new Drawable[]
|
|
{
|
|
new OsuSpriteText
|
|
{
|
|
Text = @"Add current song to",
|
|
},
|
|
new CollectionsDropdown<PlaylistCollection>
|
|
{
|
|
RelativeSizeAxes = Axes.X,
|
|
Items = new[] { PlaylistCollection.All },
|
|
},
|
|
};
|
|
}
|
|
}
|
|
}
|