]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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)
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


Trivial merge