mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
set sprite text anchor and origin to top right
This commit is contained in:
parent
daa0a05d9e
commit
bba9a0b2fe
@ -33,6 +33,6 @@ namespace osu.Game.Skinning
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user