Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2020-11-17 00:00:00Z and 2020-11-18 00:00:00Z
GitHub
BOT
2020-11-17 16:46:40Z
Robyt3
[teeworlds/teeworlds] Pull request opened: #2813 Align voting control UI, hide vote after time elapsed, refactoring
Implementation:
Add VOTE
CHOICE_NO, _PASS, _YES constants to protocol and use them instead of the magic values
These also replace the VOTE_ENFORCE
* constants in CGameContext.
Remove voting
RenderBars
parameter and implementation to render number of votes as text, as it's unused.
Use size constants for vote option description and command where applicable.
Rename some variables and methods.
Encapsulate some of the internal state of CVoting component.
UI:
Align call...
Exported 1 message(s)