mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Don't expicitly set origin of TextAwesome.
This commit is contained in:
parent
a7d7abe70e
commit
e356758a7d
@ -34,6 +34,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
new TextAwesome
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
TextSize = Size.X,
|
||||
Colour = getColour(beatmap),
|
||||
Icon = FontAwesome.fa_circle
|
||||
@ -41,6 +42,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
new TextAwesome
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
TextSize = Size.X,
|
||||
Colour = Color4.White,
|
||||
Icon = Ruleset.GetRuleset(beatmap.Mode).Icon
|
||||
|
@ -26,11 +26,6 @@ namespace osu.Game.Graphics
|
||||
Text = ((char)icon).ToString();
|
||||
}
|
||||
}
|
||||
|
||||
public TextAwesome()
|
||||
{
|
||||
Origin = Framework.Graphics.Anchor.Centre;
|
||||
}
|
||||
}
|
||||
|
||||
public enum FontAwesome
|
||||
|
@ -98,6 +98,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
icon = new TextAwesome
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
TextSize = 25,
|
||||
},
|
||||
}
|
||||
|
@ -176,6 +176,7 @@ namespace osu.Game.Overlays.Notifications
|
||||
new TextAwesome
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Icon = FontAwesome.fa_times_circle,
|
||||
}
|
||||
};
|
||||
|
@ -51,6 +51,7 @@ namespace osu.Game.Overlays.Notifications
|
||||
iconDrawable = new TextAwesome
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Icon = icon,
|
||||
}
|
||||
});
|
||||
|
@ -108,6 +108,7 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
Shadow = true,
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
TextSize = 30,
|
||||
Position = new Vector2(0, 0),
|
||||
Icon = symbol
|
||||
|
@ -209,12 +209,14 @@ namespace osu.Game.Screens.Select
|
||||
new TextAwesome
|
||||
{
|
||||
Icon = FontAwesome.fa_square,
|
||||
Origin = Anchor.Centre,
|
||||
Colour = new Color4(68, 17, 136, 255),
|
||||
Rotation = 45
|
||||
},
|
||||
new TextAwesome
|
||||
{
|
||||
Icon = statistic.Icon,
|
||||
Origin = Anchor.Centre,
|
||||
Colour = new Color4(255, 221, 85, 255),
|
||||
Scale = new Vector2(0.8f)
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user