Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alternative score displays #1433

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Add alternative score displays #1433

wants to merge 1 commit into from

Conversation

Pablete1234
Copy link
Member

Cleans up parsing around scorebox module, and adds support for 3 new ways of displaying score in the scoreboard:

<score display="circle">
  ...
</score>

Options:

  • numerical The same as always, displays as a number
  • circle displays as circles in the scoreboard, allows up to score/limit of 10
  • square displays as squares in the scoreboard, allows up score/limit of 10
  • pipe uses the pipe | character, supports score up to 24

Examples:
circle, red is 5/10, blue is 0/10:
image

square, red is 2/5, blue is 0/5:
image

pipe, red is at 15/24, blue is at 5/24:
image

As a safeguard, if scores go out of the bounds it will fallback to using numbers, eg:
image

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):
image

Signed-off-by: Pablo Herrera <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants