Split score counter class into two distinct classes to simplify usages

This commit is contained in:
Dean Herbert
2021-10-10 17:56:32 +09:00
parent 06cce0119c
commit 794b4c46cf
4 changed files with 30 additions and 20 deletions

View File

@ -146,12 +146,11 @@ namespace osu.Game.Screens.Play.HUD
Score2Text.X = Math.Max(5 + Score2Text.DrawWidth / 2, score2Bar.DrawWidth);
}
protected class MatchScoreCounter : ScoreCounter
protected class MatchScoreCounter : CommaSeparatedScoreCounter
{
private OsuSpriteText displayedSpriteText;
public MatchScoreCounter()
: base(useCommaSeparator: true)
{
Margin = new MarginPadding { Top = bar_height, Horizontal = 10 };
}