]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/hud_config.qh
Merge branch 'Spike29/translators_credits_update' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / hud_config.qh
index d91fe370e1d997cd213e661dfeb69adb63ab6312..81182c65af6a50c5a52df26e042d5f593abd6f8e 100644 (file)
@@ -1,5 +1,12 @@
 #pragma once
 
+bool autocvar__hud_configure;
+bool autocvar_hud_configure_checkcollisions;
+bool autocvar_hud_configure_grid;
+float autocvar_hud_configure_grid_alpha;
+string autocvar_hud_configure_vertical_lines = "0.5";
+bool autocvar_hud_configure_teamcolorforced;
+
 const int S_MOUSE1 = 1;
 const int S_MOUSE2 = 2;
 const int S_MOUSE3 = 4;
@@ -13,6 +20,7 @@ float hud_configure_checkcollisions;
 vector hud_configure_gridSize;
 vector hud_configure_realGridSize;
 float hud_configure_menu_open; // 1 showing the entire HUD, 2 showing only the clicked panel
+float hud_configure_centerline_time;
 
 void HUD_Panel_ExportCfg(string cfgname);
 
@@ -27,3 +35,7 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary);
 void HUD_Panel_EnableMenu();
 
 void HUD_Panel_FirstInDrawQ(float id);
+
+#define HUD_Write(s) fputs(fh, s)
+#define HUD_Write_Cvar(cvar) HUD_Write(strcat("seta ", cvar, " \"", cvar_string(cvar), "\"\n"))
+#define HUD_Write_PanelCvar(cvar_suf) str = strcat("hud_panel_", panel.panel_name, cvar_suf), HUD_Write_Cvar(str)