]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/panel/vote.qc
Add cvars to enable / disable the dynamic hud effects for each panel
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / panel / vote.qc
index 8e3605f0d7085dcee76c50f5e6d9b319eaa74868..89c784a1083be4e0ece863ca00419549520c05de 100644 (file)
@@ -1,4 +1,7 @@
 #include "vote.qh"
+
+#include <common/mapinfo.qh>
+
 /** Vote window (#9) */
 void HUD_Vote()
 {
@@ -66,6 +69,10 @@ void HUD_Vote()
        mySize = panel_size;
 
        a = vote_alpha * (vote_highlighted ? autocvar_hud_panel_vote_alreadyvoted_alpha : 1);
+       if (autocvar_hud_panel_vote_dynamichud)
+               HUD_Scale_Enable();
+       else
+               HUD_Scale_Disable();
        HUD_Panel_DrawBg(a);
        a = panel_fg_alpha * a;