1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 04:13:00 +08:00

set sprite text anchor and origin to top right

This commit is contained in:
unknown 2020-10-17 00:25:16 +08:00
parent daa0a05d9e
commit bba9a0b2fe

View File

@ -33,6 +33,6 @@ namespace osu.Game.Skinning
Margin = new MarginPadding(10); Margin = new MarginPadding(10);
} }
protected sealed override OsuSpriteText CreateSpriteText() => (OsuSpriteText)skin.GetDrawableComponent(new HUDSkinComponent(HUDSkinComponents.ScoreText)); protected sealed override OsuSpriteText CreateSpriteText() => ((OsuSpriteText)skin.GetDrawableComponent(new HUDSkinComponent(HUDSkinComponents.ScoreText))).With(s => s.Anchor = s.Origin = Anchor.TopRight);
} }
} }