mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 12:23:13 +08:00
TestCaseImprovements
This commit is contained in:
parent
9b8540d818
commit
ff9dc18928
@ -6,6 +6,8 @@ using osu.Game.Overlays.Toolbar;
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
|
using System.Linq;
|
||||||
|
using osu.Framework.MathUtils;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual.UserInterface
|
namespace osu.Game.Tests.Visual.UserInterface
|
||||||
{
|
{
|
||||||
@ -28,7 +30,11 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
AutoSizeAxes = Axes.X,
|
AutoSizeAxes = Axes.X,
|
||||||
Height = Toolbar.HEIGHT,
|
Height = Toolbar.HEIGHT,
|
||||||
Child = selector = new ToolbarRulesetSelector()
|
Child = selector = new ToolbarRulesetSelector()
|
||||||
|
});
|
||||||
|
|
||||||
|
AddStep("Select random", () =>
|
||||||
|
{
|
||||||
|
selector.Current.Value = selector.Items.ElementAt(RNG.Next(selector.Items.Count()));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user