1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Move toggle step to SetUpSteps

This commit is contained in:
Salman Ahmed 2024-05-25 17:28:03 +03:00
parent 2c18c10ac8
commit 91fb5ed749

View File

@ -7,6 +7,7 @@ using NUnit.Framework;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Testing;
using osu.Framework.Utils; using osu.Framework.Utils;
using osu.Game.Configuration; using osu.Game.Configuration;
using osu.Game.Graphics.Sprites; using osu.Game.Graphics.Sprites;
@ -47,7 +48,6 @@ namespace osu.Game.Tests.Visual.SongSelect
relativeWidth = v; relativeWidth = v;
if (fillFlow != null) fillFlow.Width = v; if (fillFlow != null) fillFlow.Width = v;
}); });
AddToggleStep("toggle scoring mode", v => config.SetValue(OsuSetting.ScoreDisplayMode, v ? ScoringMode.Classic : ScoringMode.Standardised));
} }
[SetUp] [SetUp]
@ -81,6 +81,12 @@ namespace osu.Game.Tests.Visual.SongSelect
score.Show(); score.Show();
}); });
[SetUpSteps]
public void SetUpSteps()
{
AddToggleStep("toggle scoring mode", v => config.SetValue(OsuSetting.ScoreDisplayMode, v ? ScoringMode.Classic : ScoringMode.Standardised));
}
protected override void UpdateAfterChildren() protected override void UpdateAfterChildren()
{ {
base.UpdateAfterChildren(); base.UpdateAfterChildren();