mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Add placeholder when no colours are visible
Will be removed once combo colours are mutable.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user