2017-02-07 12:59:30 +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
|
2016-09-28 14:30:06 +08:00
|
|
|
|
|
2017-03-28 20:03:34 +08:00
|
|
|
|
using osu.Framework.Testing;
|
2016-11-30 13:38:45 +08:00
|
|
|
|
using osu.Framework.Graphics.Colour;
|
2016-11-14 16:23:33 +08:00
|
|
|
|
using osu.Game.Screens.Menu;
|
2016-11-30 13:38:45 +08:00
|
|
|
|
using OpenTK.Graphics;
|
2017-06-20 13:54:23 +08:00
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
2016-09-28 14:30:06 +08:00
|
|
|
|
|
2016-10-26 16:26:26 +08:00
|
|
|
|
namespace osu.Desktop.VisualTests.Tests
|
2016-09-28 14:30:06 +08:00
|
|
|
|
{
|
2017-03-07 09:59:19 +08:00
|
|
|
|
internal class TestCaseMenuButtonSystem : TestCase
|
2016-09-28 14:30:06 +08:00
|
|
|
|
{
|
|
|
|
|
public override string Description => @"Main menu button system";
|
|
|
|
|
|
2017-07-07 20:05:55 +08:00
|
|
|
|
public TestCaseMenuButtonSystem()
|
2016-09-28 14:30:06 +08:00
|
|
|
|
{
|
2016-11-30 13:38:45 +08:00
|
|
|
|
Add(new Box
|
|
|
|
|
{
|
2017-07-23 13:30:50 +08:00
|
|
|
|
Colour = ColourInfo.GradientVertical(Color4.Gray, Color4.WhiteSmoke),
|
2016-11-30 13:38:45 +08:00
|
|
|
|
RelativeSizeAxes = Framework.Graphics.Axes.Both,
|
|
|
|
|
});
|
2016-09-28 14:30:06 +08:00
|
|
|
|
Add(new ButtonSystem());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|