Global shadows and more sane font size setting.

This commit is contained in:
Dean Herbert
2017-01-31 18:53:52 +09:00
parent 9e5000d448
commit 6b66ecc131
31 changed files with 113 additions and 73 deletions

View File

@ -5,8 +5,10 @@ using System;
using OpenTK.Graphics;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics.Backgrounds;
using osu.Game.Graphics.Sprites;
using osu.Game.Overlays;
namespace osu.Game.Graphics.UserInterface
@ -16,9 +18,15 @@ namespace osu.Game.Graphics.UserInterface
public OsuButton()
{
Height = 40;
SpriteText.TextSize = OptionsOverlay.FONT_SIZE;
}
protected override SpriteText CreateText() => new OsuSpriteText
{
Depth = -1,
Origin = Anchor.Centre,
Anchor = Anchor.Centre,
};
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{