1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

Add back TextAwesome and osu!font.

This commit is contained in:
Dean Herbert 2016-09-21 18:33:09 +09:00
parent b9aead06ad
commit f936618156
3 changed files with 15 additions and 7 deletions

View File

@ -444,13 +444,19 @@ namespace osu.Game.GameModes.Menu
Origin = Anchor.Centre,
Children = new Drawable[]
{
icon = new TextAwesome(symbol, 40, Vector2.Zero),
icon = new TextAwesome
{
Anchor = Anchor.Centre,
TextSize = 40,
Position = new Vector2(0, 0),
Icon = symbol
},
new SpriteText
{
Direction = FlowDirection.HorizontalOnly,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Position = new Vector2(0, 25),
Position = new Vector2(0, 35),
Text = text
}
}

View File

@ -28,11 +28,9 @@ namespace osu.Game.Graphics
}
}
internal TextAwesome(FontAwesome icon = FontAwesome.circle, float size = 10, Vector2? position = null)
: base(null)
public TextAwesome()
{
Icon = icon;
Origin = osu.Framework.Graphics.Anchor.Centre;
Origin = Framework.Graphics.Anchor.Centre;
}
}

View File

@ -37,7 +37,11 @@ namespace osu.Game
base.Load();
//this completely overrides the framework default. will need to change once we make a proper FontStore.
Fonts = new TextureStore(new GlyphStore(Resources, @"Fonts/Exo2.0-Regular")) { ScaleAdjust = 0.01f };
Fonts = new TextureStore() { ScaleAdjust = 0.01f };
Fonts.AddStore(new GlyphStore(Resources, @"Fonts/Exo2.0-Regular"));
Fonts.AddStore(new GlyphStore(Resources, @"Fonts/FontAwesome"));
Fonts.AddStore(new GlyphStore(Resources, @"Fonts/osuFont"));
API = new APIAccess()
{