Add test step for covering slider appearance with hidden active

This commit is contained in:
Bartłomiej Dach 2023-10-17 14:15:17 +02:00
parent d9fc532a9f
commit f116854c9f
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,7 @@
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.Objects.Types;
using osu.Game.Rulesets.Osu.Configuration;
using osu.Game.Rulesets.Osu.Mods;
namespace osu.Game.Rulesets.Osu.Tests
{
@ -50,6 +51,8 @@ protected override void LoadComplete()
snakingOut.Value = !v;
});
AddToggleStep("toggle hidden", hiddenActive => SelectedMods.Value = hiddenActive ? new[] { new OsuModHidden() } : Array.Empty<Mod>());
AddSliderStep("hit at", 0f, 1f, 0f, v =>
{
progressToHit = v;