From: FruitieX Date: Thu, 6 May 2010 18:07:21 +0000 (+0300) Subject: show defaults on vote window in config mode X-Git-Tag: xonotic-v0.1.0preview~541^2~207 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f14711429221d06c226289c3948f116f0f4df5e9;p=xonotic%2Fxonotic-data.pk3dir.git show defaults on vote window in config mode --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 4a118d4b7..617ce0782 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1824,6 +1824,14 @@ void HUD_VoteWindow(void) else vote_alpha = bound(0, 1 - (time - vote_change) * 2, 1); + if(cvar("_hud_configure")) + { + vote_alpha = 1; + vote_yescount = 3; + vote_nocount = 2; + vote_needed = 4; + } + if(HUD_Panel_GetBgActive(9)) draw_BorderPicture(pos - '1 1 0' * marigin, "gfx/hud/border", mySize + '1 1 0' * 2 * marigin, color, hud_alpha_bg * vote_alpha, '1 1 0' * (marigin/MARIGIN_MULTIPLIER)); @@ -1835,6 +1843,8 @@ void HUD_VoteWindow(void) s = "A vote has been called for: "; drawstring(pos + '0.5 0 0' * mySize_x + '0 0.1 0' * mySize_y - eX * stringwidth(s, FALSE, '1 1 0' * 0.5 * mySize_y*(1/5)), s, '1 1 0' * mySize_y*(1/5), '1 1 1', a * hud_alpha_fg, DRAWFLAG_NORMAL); s = textShortenToWidth(vote_called_vote, mySize_x * 0.96, '10 0 0', stringwidth_colors); + if(cvar("_hud_configure")) + s = "Configure the HUD"; drawcolorcodedstring(pos + '0.52 0 0' * mySize_x + '0 0.3 0' * mySize_y - eX * stringwidth(s, FALSE, '1 1 0' * 0.5 * mySize_y*(1/6)), s, '1 1 0' * mySize_y*(1/6), a * hud_alpha_fg, DRAWFLAG_NORMAL); // print the yes/no counts