2018-01-05 11:21:19 +00:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-11-23 10:27:25 +00:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2018-03-02 06:34:31 +00:00
|
|
|
|
using NUnit.Framework;
|
2017-11-23 10:27:25 +00:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Colour;
|
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
|
|
|
|
using osu.Game.Screens.Menu;
|
|
|
|
|
using OpenTK.Graphics;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual
|
|
|
|
|
{
|
2018-03-02 06:34:31 +00:00
|
|
|
|
[TestFixture]
|
2017-12-20 12:47:45 +00:00
|
|
|
|
public class TestCaseButtonSystem : OsuTestCase
|
2017-11-23 10:27:25 +00:00
|
|
|
|
{
|
|
|
|
|
public TestCaseButtonSystem()
|
|
|
|
|
{
|
|
|
|
|
OsuLogo logo;
|
|
|
|
|
ButtonSystem buttons;
|
|
|
|
|
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
|
|
|
|
new Box
|
|
|
|
|
{
|
|
|
|
|
Colour = ColourInfo.GradientVertical(Color4.Gray, Color4.WhiteSmoke),
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
},
|
|
|
|
|
buttons = new ButtonSystem(),
|
|
|
|
|
logo = new OsuLogo()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
buttons.SetOsuLogo(logo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|