2021-04-19 02:16:17 +08: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.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2021-04-19 02:16:17 +08:00
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Localisation;
|
|
|
|
using osu.Game.Graphics.UserInterfaceV2;
|
2022-08-11 01:53:20 +08:00
|
|
|
using osu.Game.Localisation;
|
|
|
|
using osu.Game.Resources.Localisation.Web;
|
2021-04-19 02:16:17 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Screens.Edit.Setup
|
|
|
|
{
|
|
|
|
internal class ColoursSection : SetupSection
|
|
|
|
{
|
2022-08-11 01:53:20 +08:00
|
|
|
public override LocalisableString Title => EditorSetupColoursStrings.Colours;
|
2021-04-19 02:16:17 +08:00
|
|
|
|
|
|
|
private LabelledColourPalette comboColours;
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load()
|
|
|
|
{
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
|
|
|
comboColours = new LabelledColourPalette
|
|
|
|
{
|
2022-08-11 01:53:20 +08:00
|
|
|
Label = EditorSetupColoursStrings.HitcircleSliderCombos,
|
2021-06-08 23:14:26 +08:00
|
|
|
FixedLabelWidth = LABEL_WIDTH,
|
2022-08-11 01:53:20 +08:00
|
|
|
ColourNamePrefix = MatchesStrings.MatchScoreStatsCombo
|
2021-04-19 02:16:17 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2021-08-15 22:32:26 +08:00
|
|
|
if (Beatmap.BeatmapSkin != null)
|
|
|
|
comboColours.Colours.BindTo(Beatmap.BeatmapSkin.ComboColours);
|
2021-04-19 02:16:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|