]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/hud/hud_config.qh
Purge autocvars.qh from the client-side codebase, cvars are defined in the headers...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / hud_config.qh
1 #pragma once
2
3 bool autocvar__hud_configure;
4 bool autocvar_hud_configure_checkcollisions;
5 bool autocvar_hud_configure_grid;
6 float autocvar_hud_configure_grid_alpha;
7 bool autocvar_hud_configure_teamcolorforced;
8
9 const int S_MOUSE1 = 1;
10 const int S_MOUSE2 = 2;
11 const int S_MOUSE3 = 4;
12 int mouseClicked;
13 int prevMouseClicked; // previous state
14 float prevMouseClickedTime; // time during previous left mouse click, to check for doubleclicks
15 vector prevMouseClickedPos; // pos during previous left mouse click, to check for doubleclicks
16
17 float hud_configure_prev;
18 float hud_configure_checkcollisions;
19 vector hud_configure_gridSize;
20 vector hud_configure_realGridSize;
21 float hud_configure_menu_open; // 1 showing the entire HUD, 2 showing only the clicked panel
22
23 void HUD_Panel_ExportCfg(string cfgname);
24
25 void HUD_Panel_Mouse();
26
27 void HUD_Configure_Frame();
28
29 void HUD_Configure_PostDraw();
30
31 float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary);
32
33 void HUD_Panel_EnableMenu();
34
35 void HUD_Panel_FirstInDrawQ(float id);
36
37 #define HUD_Write(s) fputs(fh, s)
38 #define HUD_Write_Cvar(cvar) HUD_Write(strcat("seta ", cvar, " \"", cvar_string(cvar), "\"\n"))
39 #define HUD_Write_PanelCvar(cvar_suf) str = strcat("hud_panel_", panel.panel_name, cvar_suf), HUD_Write_Cvar(str)