1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 22:07:25 +08:00
osu-lazer/osu.Game/Graphics/UserInterface/OsuButton.cs

37 lines
989 B
C#
Raw Normal View History

2016-12-06 17:56:20 +08:00
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using OpenTK.Graphics;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics.Backgrounds;
2017-01-31 17:40:04 +08:00
using osu.Game.Overlays;
2016-11-03 10:27:39 +08:00
namespace osu.Game.Graphics.UserInterface
{
public class OsuButton : Button
{
public OsuButton()
{
Height = 40;
2017-01-31 17:40:04 +08:00
SpriteText.TextSize = OptionsOverlay.FONT_SIZE;
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
Colour = colours.BlueDark;
Masking = true;
CornerRadius = 5;
Add(new Triangles
{
RelativeSizeAxes = Axes.Both,
ColourDark = colours.BlueDarker,
ColourLight = colours.Blue,
});
2016-11-03 10:27:39 +08:00
}
}
}