mirror of https://github.com/ppy/osu
set sprite text anchor and origin to top right
This commit is contained in:
parent
daa0a05d9e
commit
bba9a0b2fe
|
@ -33,6 +33,6 @@ public LegacyScoreCounter(ISkin skin)
|
|||
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