mirror of
https://github.com/ppy/osu.git
synced 2024-11-09 09:37:42 +08:00
35 lines
1.0 KiB
C#
35 lines
1.0 KiB
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.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",
|
|
FixedLabelWidth = LABEL_WIDTH,
|
|
ColourNamePrefix = "Combo"
|
|
}
|
|
};
|
|
|
|
if (Beatmap.BeatmapSkin != null)
|
|
comboColours.Colours.BindTo(Beatmap.BeatmapSkin.ComboColours);
|
|
}
|
|
}
|
|
}
|