Add map protection to tournament overlay #36200
Open
+486
−136
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.
This pull request adds "protects" to the tournament overlay. The upcoming MWC7K among other world cups and community tournaments have a protect system in their rulesets.
A protected map is indicated by a badge in the beatmap panel's top right corner with the color of the team that protected the map both in the mappool screen and in the gameplay screen. A shield icon was originally suggested in #24336 (comment), and FontAwesome is the only convenient shield icon I could find. Eventually, we could ask the world cups design team to make a fitting custom icon or allow users to provide their own images, much like how it's done with the mod icons.
Setting up mappools/protects:
0meaning protects are disabled 12026-01-02T08.08.43.423_55f8c3a1.mp4
Right-clicking a protected map removes its protected status the same way a right-click removes a pick or ban from a map. Right-clicking a protected map that has been picked first removes the pick, and a second right-click removes the protect.
2026-01-02T08.31.51.164_508df557.mp4
Footnotes
Updated round settings section
↩