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
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}