]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
Merge branch 'Melanosuchus/gametype_vote' into 'master'
authorMario <zacjardine@y7mail.com>
Sat, 11 Jul 2015 14:36:43 +0000 (14:36 +0000)
committerMario <zacjardine@y7mail.com>
Sat, 11 Jul 2015 14:36:43 +0000 (14:36 +0000)
commit444fd454059cdd0039f26fe934425ab5a1491e74
tree02ae020ebf37e5acb93a29c2ef0da939c872b7cf
parentb3b93d0c46abe8eb696d088b839100c96b69a9c5
parentda613d42939d1c45cfb364d24e0e551f58e7811d
Merge branch 'Melanosuchus/gametype_vote' into 'master'

Customizable entries for the gametype voting screen

Adds a system which allow to include customized entries in the gametype voting screen.

These entries are defined by a few cvars:
* sv_vote_gametype_(type)_type : The name of the gametype this entry is based on (eg: dm, tdm, ...)
* sv_vote_gametype_(type)_name : A human-readable name, shown in the voting screen
* sv_vote_gametype_(type)_description : A more detailed description of the gametype, shown in the voting screen

Where (type) is the name of the customized entry.
The icon for custom entries follows the same convention as for regular gametypes,
and the hook sv_vote_gametype_hook_(type) is called as for the real gametypes.

This branch also provides the needed definitions to add **duel** to the voting screen without the need for extra configuration.
(See Xonvote 308 http://xonpickbot.designxenon.com:27500/poll/308)

See merge request !145