37 void setWinner(
const std::string& team, Color color);
45 void draw(
int scaledFontSize)
const override;
Semi-transparent overlay shown when a team wins.
~WinScreen() override=default
bool quitRequested() const
Returns true once the Quit button has been clicked (latched — stays true).
void setDuration(int seconds, int64_t ticks)
Sets the win duration (server-authoritative, from gwt).
void _rebuildPanel(int scaledFontSize) const
void draw(int scaledFontSize) const override
Draws the widget.
void setWinner(const std::string &team, Color color)
Sets the winning team name and highlight color.
static std::string _formatDuration(unsigned int seconds)
bool handleInput() override
Handles button input. Always returns true (overlay blocks all input).