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

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