mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Make TLB test scene test TLB and not back button
This commit is contained in:
@ -1,17 +1,26 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// 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.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System.ComponentModel;
|
using osu.Framework.Extensions.Color4Extensions;
|
||||||
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
|
using osuTK;
|
||||||
|
using osuTK.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual.UserInterface
|
namespace osu.Game.Tests.Visual.UserInterface
|
||||||
{
|
{
|
||||||
[Description("mostly back button")]
|
|
||||||
public class TestSceneTwoLayerButton : OsuTestScene
|
public class TestSceneTwoLayerButton : OsuTestScene
|
||||||
{
|
{
|
||||||
public TestSceneTwoLayerButton()
|
public TestSceneTwoLayerButton()
|
||||||
{
|
{
|
||||||
Add(new BackButton());
|
Add(new TwoLayerButton
|
||||||
|
{
|
||||||
|
Position = new Vector2(100),
|
||||||
|
Text = "button",
|
||||||
|
Icon = FontAwesome.Solid.Check,
|
||||||
|
BackgroundColour = Color4.SlateGray,
|
||||||
|
HoverColour = Color4.SlateGray.Darken(0.2f)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user