mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Center icon and text using anchor and origin instead of margin
This commit is contained in:
@ -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 },
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user