mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 23:37:26 +08:00
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
|
// 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.
|
||
|
|
||
|
using osu.Framework.Allocation;
|
||
|
using osu.Framework.Graphics;
|
||
|
using osu.Framework.Graphics.Sprites;
|
||
|
using osu.Game.Graphics;
|
||
|
using osu.Game.Graphics.Sprites;
|
||
|
using osu.Game.Graphics.UserInterface;
|
||
|
using osu.Game.Overlays;
|
||
|
|
||
|
namespace osu.Game.Screens.Edit.Components.Timelines.Summary
|
||
|
{
|
||
|
public class TestGameplayButton : OsuButton
|
||
|
{
|
||
|
protected override SpriteText CreateText() => new OsuSpriteText
|
||
|
{
|
||
|
Depth = -1,
|
||
|
Origin = Anchor.Centre,
|
||
|
Anchor = Anchor.Centre,
|
||
|
Font = OsuFont.TorusAlternate.With(weight: FontWeight.Light, size: 24),
|
||
|
Shadow = false
|
||
|
};
|
||
|
|
||
|
[BackgroundDependencyLoader]
|
||
|
private void load(OsuColour colours, OverlayColourProvider colourProvider)
|
||
|
{
|
||
|
BackgroundColour = colours.Orange1;
|
||
|
SpriteText.Colour = colourProvider.Background6;
|
||
|
|
||
|
Text = "Test!";
|
||
|
}
|
||
|
}
|
||
|
}
|