2021-04-18 18:16:17 +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.
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Localisation;
|
|
|
|
using osu.Game.Graphics.UserInterfaceV2;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Edit.Setup
|
|
|
|
{
|
|
|
|
internal class ColoursSection : SetupSection
|
|
|
|
{
|
|
|
|
public override LocalisableString Title => "Colours";
|
|
|
|
|
|
|
|
private LabelledColourPalette comboColours;
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load()
|
|
|
|
{
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
|
|
|
comboColours = new LabelledColourPalette
|
|
|
|
{
|
|
|
|
Label = "Hitcircle / Slider Combos",
|
2021-06-08 15:14:26 +00:00
|
|
|
FixedLabelWidth = LABEL_WIDTH,
|
2021-04-18 18:16:17 +00:00
|
|
|
ColourNamePrefix = "Combo"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2021-08-15 14:32:26 +00:00
|
|
|
if (Beatmap.BeatmapSkin != null)
|
|
|
|
comboColours.Colours.BindTo(Beatmap.BeatmapSkin.ComboColours);
|
2021-04-18 18:16:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|