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:
parent
b9aead06ad
commit
f936618156
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user