2019-01-24 16:43:03 +08: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 17:19:50 +08:00
|
|
|
|
|
2019-06-25 17:30:15 +08:00
|
|
|
|
using osu.Framework.Extensions.Color4Extensions;
|
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
2017-09-18 21:32:49 +08:00
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2019-06-25 17:30:15 +08:00
|
|
|
|
using osuTK;
|
|
|
|
|
using osuTK.Graphics;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2019-03-25 00:02:36 +08:00
|
|
|
|
namespace osu.Game.Tests.Visual.UserInterface
|
2017-09-18 21:32:49 +08:00
|
|
|
|
{
|
2019-05-15 03:37:25 +08:00
|
|
|
|
public partial class TestSceneTwoLayerButton : OsuTestScene
|
2017-09-18 21:32:49 +08:00
|
|
|
|
{
|
2019-05-15 03:37:25 +08:00
|
|
|
|
public TestSceneTwoLayerButton()
|
2017-09-18 21:32:49 +08:00
|
|
|
|
{
|
2019-06-25 17:30:15 +08:00
|
|
|
|
Add(new TwoLayerButton
|
|
|
|
|
{
|
|
|
|
|
Position = new Vector2(100),
|
|
|
|
|
Text = "button",
|
|
|
|
|
Icon = FontAwesome.Solid.Check,
|
|
|
|
|
BackgroundColour = Color4.SlateGray,
|
|
|
|
|
HoverColour = Color4.SlateGray.Darken(0.2f)
|
|
|
|
|
});
|
2017-09-18 21:32:49 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|