Add AddColourPickerStep method to TestScene

This commit is contained in:
marvin
2026-01-29 21:31:50 +01:00
parent ab9e5acf5b
commit 0f26e656a6

View File

@@ -391,6 +391,17 @@ namespace osu.Framework.Testing
});
}
protected void AddColourPickerStep([NotNull] string description, Colour4 initial, Action<Colour4> valueChanged)
{
schedule(() =>
{
StepsContainer.Add(new StepColourPicker(description, initial)
{
ValueChanged = valueChanged,
});
});
}
protected void AddAssert([NotNull] string description, [NotNull] Func<bool> assert, [CanBeNull] string extendedDescription = null)
{
AddStep(new AssertButton