mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 18:52:56 +08:00
38 lines
1.1 KiB
C#
38 lines
1.1 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.
|
|
|
|
#nullable disable
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Localisation;
|
|
using osu.Game.Graphics.UserInterfaceV2;
|
|
using osu.Game.Localisation;
|
|
|
|
namespace osu.Game.Screens.Edit.Setup
|
|
{
|
|
internal partial class ColoursSection : SetupSection
|
|
{
|
|
public override LocalisableString Title => EditorSetupStrings.ColoursHeader;
|
|
|
|
private LabelledColourPalette comboColours;
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
Children = new Drawable[]
|
|
{
|
|
comboColours = new LabelledColourPalette
|
|
{
|
|
Label = EditorSetupStrings.HitCircleSliderCombos,
|
|
FixedLabelWidth = LABEL_WIDTH,
|
|
ColourNamePrefix = EditorSetupStrings.ComboColourPrefix
|
|
}
|
|
};
|
|
|
|
if (Beatmap.BeatmapSkin != null)
|
|
comboColours.Colours.BindTo(Beatmap.BeatmapSkin.ComboColours);
|
|
}
|
|
}
|
|
}
|