Add support for custom colour prefixes

This commit is contained in:
Bartłomiej Dach
2021-04-18 19:56:03 +02:00
parent a8027d87b6
commit 0cd1aa8c1c
3 changed files with 27 additions and 1 deletions

View File

@ -25,6 +25,8 @@ namespace osu.Game.Tests.Visual.UserInterface
if (component.Colours.Count > 0)
component.Colours.RemoveAt(RNG.Next(component.Colours.Count));
}, 5);
AddStep("set custom prefix", () => component.ColourNamePrefix = "Combo");
}
private void createColourPalette(bool hasDescription = false)
@ -41,6 +43,7 @@ namespace osu.Game.Tests.Visual.UserInterface
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
ColourNamePrefix = "My colour #"
}
};