2019-01-24 08:43:03 +00:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2019-06-25 09:30:15 +00:00
|
|
|
|
using osu.Framework.Extensions.Color4Extensions;
|
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2019-06-25 09:30:15 +00:00
|
|
|
|
using osuTK;
|
|
|
|
|
using osuTK.Graphics;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2019-03-24 16:02:36 +00:00
|
|
|
|
namespace osu.Game.Tests.Visual.UserInterface
|
2018-04-13 09:19:50 +00:00
|
|
|
|
{
|
2019-05-14 19:37:25 +00:00
|
|
|
|
public class TestSceneTwoLayerButton : OsuTestScene
|
2018-04-13 09:19:50 +00:00
|
|
|
|
{
|
2019-05-14 19:37:25 +00:00
|
|
|
|
public TestSceneTwoLayerButton()
|
2018-04-13 09:19:50 +00:00
|
|
|
|
{
|
2019-06-25 09:30:15 +00:00
|
|
|
|
Add(new TwoLayerButton
|
|
|
|
|
{
|
|
|
|
|
Position = new Vector2(100),
|
|
|
|
|
Text = "button",
|
|
|
|
|
Icon = FontAwesome.Solid.Check,
|
|
|
|
|
BackgroundColour = Color4.SlateGray,
|
|
|
|
|
HoverColour = Color4.SlateGray.Darken(0.2f)
|
|
|
|
|
});
|
2018-04-13 09:19:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|