Center icon and text using anchor and origin instead of margin

This commit is contained in:
Joehu
2019-09-02 10:42:21 -07:00
parent 3443a9517f
commit 6ca17bdfd5
3 changed files with 7 additions and 5 deletions

View File

@ -190,10 +190,11 @@ namespace osu.Game.Overlays.Direct
text = new OsuSpriteText { Font = OsuFont.GetFont(weight: FontWeight.SemiBold, italics: true) },
new SpriteIcon
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
Icon = icon,
Shadow = true,
Size = new Vector2(14),
Margin = new MarginPadding { Top = 1 },
},
};