1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-12 04:49:40 +08:00
osu-lazer/osu.Desktop.VisualTests/Tests/TestCaseModSelect.cs

39 lines
1.3 KiB
C#
Raw Normal View History

2017-02-17 04:05:03 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Game.Overlays.Mods;
using osu.Framework.GameModes.Testing;
using osu.Game.Modes;
namespace osu.Desktop.VisualTests.Tests
{
class TestCaseModSelect : TestCase
2017-02-17 04:05:03 +08:00
{
public override string Name => @"Mod Select";
2017-02-17 04:05:03 +08:00
public override string Description => @"Tests the mod select overlay";
2017-02-17 04:05:03 +08:00
private ModSelect modSelect;
2017-02-17 04:05:03 +08:00
public override void Reset()
{
base.Reset();
Add(modSelect = new ModSelect
2017-02-17 04:05:03 +08:00
{
RelativeSizeAxes = Axes.Both,
Origin = Anchor.BottomCentre,
Anchor = Anchor.BottomCentre,
ModMode = PlayMode.Osu,
2017-02-17 04:05:03 +08:00
});
AddButton("Toggle", modSelect.ToggleVisibility);
AddButton("osu!", () => modSelect.ModMode = PlayMode.Osu);
AddButton("osu!taiko", () => modSelect.ModMode = PlayMode.Taiko);
AddButton("osu!catch", () => modSelect.ModMode = PlayMode.Catch);
AddButton("osu!mania", () => modSelect.ModMode = PlayMode.Mania);
2017-02-17 04:05:03 +08:00
}
}
}