1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 13:32:54 +08:00

Fix alignment glitching due to non-matching anchor/origin

Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
This commit is contained in:
Dean Herbert 2022-07-21 11:58:28 +09:00 committed by GitHub
parent 75453b78c0
commit c7313b4198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,6 +198,8 @@ namespace osu.Game.Graphics.UserInterface
{
return new OsuSpriteText
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
Font = OsuFont.Default.With(fixedWidth: true, size: 16, weight: FontWeight.SemiBold),
Spacing = new Vector2(-2),
};
@ -217,6 +219,8 @@ namespace osu.Game.Graphics.UserInterface
{
return new OsuSpriteText
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
Font = OsuFont.Default.With(fixedWidth: true, size: 16, weight: FontWeight.SemiBold),
Spacing = new Vector2(-1),
};