Skip to content

Commit 0f26e65

Browse files
author
marvin
committed
Add AddColourPickerStep method to TestScene
1 parent ab9e5ac commit 0f26e65

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

osu.Framework/Testing/TestScene.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,17 @@ protected void AddSliderStep<T>([NotNull] string description, T min, T max, T st
391391
});
392392
}
393393

394+
protected void AddColourPickerStep([NotNull] string description, Colour4 initial, Action<Colour4> valueChanged)
395+
{
396+
schedule(() =>
397+
{
398+
StepsContainer.Add(new StepColourPicker(description, initial)
399+
{
400+
ValueChanged = valueChanged,
401+
});
402+
});
403+
}
404+
394405
protected void AddAssert([NotNull] string description, [NotNull] Func<bool> assert, [CanBeNull] string extendedDescription = null)
395406
{
396407
AddStep(new AssertButton

0 commit comments

Comments
 (0)