Added mod selection overlay

This commit is contained in:
DrabWeb
2017-02-16 16:05:03 -04:00
parent d3335f778b
commit 0a58fc62db
13 changed files with 1541 additions and 2 deletions

View File

@ -0,0 +1,44 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using OpenTK.Graphics;
using osu.Framework.Logging;
using osu.Framework.Graphics;
using osu.Game.Overlays.Mods;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Colour;
using osu.Framework.GameModes.Testing;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Graphics.Primitives;
using osu.Game.Modes.UI;
using osu.Game.Modes;
using OpenTK;
using osu.Game.Graphics;
namespace osu.Desktop.VisualTests.Tests
{
class TestCaseModSelector : TestCase
{
public override string Name => @"Mod Selector";
public override string Description => @"Tests the mod selector overlay";
private ModSelector modSelector;
public override void Reset()
{
base.Reset();
Add(modSelector = new ModSelector
{
RelativeSizeAxes = Axes.Both,
Origin = Anchor.BottomCentre,
Anchor = Anchor.BottomCentre,
});
AddButton("Toggle", modSelector.ToggleVisibility);
}
}
}

View File

@ -191,6 +191,7 @@
<Compile Include="Platform\TestStorage.cs" />
<Compile Include="Tests\TestCaseOptions.cs" />
<Compile Include="Tests\TestCasePauseOverlay.cs" />
<Compile Include="Tests\TestCaseModSelector.cs" />
</ItemGroup>
<ItemGroup />
<ItemGroup />