mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 19:02:56 +08:00
c8a64c5950
Before I go with a hammer to redesign these, I want to remove stuff that does nothing first. Hard-breaks API to allow rulesets to specify an enumerable of custom sections rather than two specific weird ones. For specific rulesets: - osu!: - Stack leniency slider merged into difficulty section. - osu!taiko: - Approach rate and circle size sliders removed. - Colours section removed. - osu!catch: - No functional changes. - osu!mania: - Special style toggle merged into difficulty section. - Colours section removed.
36 lines
1.1 KiB
C#
36 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.
|
|
|
|
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
|
|
{
|
|
public partial class ColoursSection : SetupSection
|
|
{
|
|
public override LocalisableString Title => EditorSetupStrings.ColoursHeader;
|
|
|
|
private LabelledColourPalette comboColours = null!;
|
|
|
|
[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);
|
|
}
|
|
}
|
|
}
|