Add placeholder when no colours are visible

Will be removed once combo colours are mutable.
This commit is contained in:
Bartłomiej Dach
2021-04-18 20:15:30 +02:00
parent 0cd1aa8c1c
commit 577755ee19
2 changed files with 41 additions and 8 deletions

View File

@ -20,13 +20,14 @@ namespace osu.Game.Tests.Visual.UserInterface
createColourPalette(hasDescription);
AddRepeatStep("add random colour", () => component.Colours.Add(randomColour()), 4);
AddStep("set custom prefix", () => component.ColourNamePrefix = "Combo");
AddRepeatStep("remove random colour", () =>
{
if (component.Colours.Count > 0)
component.Colours.RemoveAt(RNG.Next(component.Colours.Count));
}, 5);
AddStep("set custom prefix", () => component.ColourNamePrefix = "Combo");
}, 8);
}
private void createColourPalette(bool hasDescription = false)