Add alternative score displays #1433
Open
+202
−211
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cleans up parsing around scorebox module, and adds support for 3 new ways of displaying score in the scoreboard:
Options:
numerical
The same as always, displays as a numbercircle
displays as circles in the scoreboard, allows up to score/limit of 10square
displays as squares in the scoreboard, allows up score/limit of 10pipe
uses the pipe|
character, supports score up to 24Examples:
circle, red is 5/10, blue is 0/10:
square, red is 2/5, blue is 0/5:
pipe, red is at 15/24, blue is at 5/24:
As a safeguard, if scores go out of the bounds it will fallback to using numbers, eg:
This can happen if any score goes negative, or the score (or limit) goes above the allowed max for the specified display type
Note that you can use this in maps without mercy rule or limit, and it will display just the earned points (red=1, blue=0):