2017-02-16 20:05:03 +00: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;
|
2017-02-22 16:46:38 +00:00
|
|
|
|
using osu.Framework.Screens.Testing;
|
2017-02-16 20:05:03 +00:00
|
|
|
|
using osu.Game.Modes;
|
|
|
|
|
|
|
|
|
|
namespace osu.Desktop.VisualTests.Tests
|
|
|
|
|
{
|
2017-03-07 01:59:19 +00:00
|
|
|
|
internal class TestCaseModSelectOverlay : TestCase
|
2017-02-16 20:05:03 +00:00
|
|
|
|
{
|
2017-02-16 22:32:27 +00:00
|
|
|
|
public override string Description => @"Tests the mod select overlay";
|
2017-02-16 20:05:03 +00:00
|
|
|
|
|
2017-02-18 11:28:22 +00:00
|
|
|
|
private ModSelectOverlay modSelect;
|
2017-02-16 20:05:03 +00:00
|
|
|
|
|
|
|
|
|
public override void Reset()
|
|
|
|
|
{
|
|
|
|
|
base.Reset();
|
|
|
|
|
|
2017-02-18 11:28:22 +00:00
|
|
|
|
Add(modSelect = new ModSelectOverlay
|
2017-02-16 20:05:03 +00:00
|
|
|
|
{
|
2017-02-18 11:28:22 +00:00
|
|
|
|
RelativeSizeAxes = Axes.X,
|
2017-02-16 20:05:03 +00:00
|
|
|
|
Origin = Anchor.BottomCentre,
|
|
|
|
|
Anchor = Anchor.BottomCentre,
|
|
|
|
|
});
|
|
|
|
|
|
2017-02-16 22:32:27 +00:00
|
|
|
|
AddButton("Toggle", modSelect.ToggleVisibility);
|
2017-03-02 12:14:06 +00:00
|
|
|
|
AddButton("osu!", () => modSelect.PlayMode.Value = PlayMode.Osu);
|
|
|
|
|
AddButton("osu!taiko", () => modSelect.PlayMode.Value = PlayMode.Taiko);
|
|
|
|
|
AddButton("osu!catch", () => modSelect.PlayMode.Value = PlayMode.Catch);
|
|
|
|
|
AddButton("osu!mania", () => modSelect.PlayMode.Value = PlayMode.Mania);
|
2017-02-16 20:05:03 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|