1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-23 19:07:20 +08:00

Only show colour on new combo selector button if overridden

As proposed in
https://discord.com/channels/188630481301012481/188630652340404224/1327309179911929936.
This commit is contained in:
Bartłomiej Dach 2025-01-13 12:38:28 +01:00
parent 48196949e0
commit fc069e060c
No known key found for this signature in database

View File

@ -147,19 +147,19 @@ namespace osu.Game.Screens.Edit.Components.TernaryButtons
private void updateState()
{
if (SelectedHitObject.Value == null)
Enabled.Value = SelectedHitObject.Value != null;
if (SelectedHitObject.Value == null || SelectedHitObject.Value.ComboOffset == 0)
{
BackgroundColour = colourProvider.Background3;
icon.Colour = BackgroundColour.Darken(0.5f);
icon.Blending = BlendingParameters.Additive;
Enabled.Value = false;
}
else
{
BackgroundColour = ComboColours[comboIndexFor(SelectedHitObject.Value, ComboColours)];
icon.Colour = OsuColour.ForegroundTextColourFor(BackgroundColour);
icon.Blending = BlendingParameters.Inherit;
Enabled.Value = true;
}
}