2020-02-13 09:05:53 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2020-02-13 09:05:53 +00:00
|
|
|
using NUnit.Framework;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Rulesets.Mods;
|
|
|
|
using osu.Game.Rulesets.Osu.Mods;
|
|
|
|
using osu.Game.Screens.Play.HUD;
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual.UserInterface
|
|
|
|
{
|
2022-11-24 05:32:20 +00:00
|
|
|
public partial class TestSceneModDisplay : OsuTestScene
|
2020-02-13 09:05:53 +00:00
|
|
|
{
|
2021-07-21 06:55:51 +00:00
|
|
|
[Test]
|
|
|
|
public void TestMode([Values] ExpansionMode mode)
|
2020-02-13 09:05:53 +00:00
|
|
|
{
|
|
|
|
AddStep("create mod display", () =>
|
|
|
|
{
|
|
|
|
Child = new ModDisplay
|
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
ExpansionMode = mode,
|
|
|
|
Current =
|
|
|
|
{
|
|
|
|
Value = new Mod[]
|
|
|
|
{
|
|
|
|
new OsuModHardRock(),
|
|
|
|
new OsuModDoubleTime(),
|
|
|
|
new OsuModDifficultyAdjust(),
|
|
|
|
new OsuModEasy(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|