Xonotic
hud_config.qh
Go to the documentation of this file.
1 #pragma once
2 
8 
9 const int S_MOUSE1 = 1;
10 const int S_MOUSE2 = 2;
11 const int S_MOUSE3 = 4;
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 
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 
30 
31 float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary);
32 
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)
int prevMouseClicked
Definition: hud_config.qh:13
void HUD_Panel_EnableMenu()
Definition: hud_config.qc:941
const int S_MOUSE3
Definition: hud_config.qh:11
bool autocvar__hud_configure
Definition: hud_config.qh:3
float prevMouseClickedTime
Definition: hud_config.qh:14
void HUD_Panel_ExportCfg(string cfgname)
Definition: hud_config.qc:10
int mouseClicked
Definition: hud_config.qh:12
float autocvar_hud_configure_grid_alpha
Definition: hud_config.qh:6
float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary)
Definition: hud_config.qc:511
bool autocvar_hud_configure_checkcollisions
Definition: hud_config.qh:4
void HUD_Panel_FirstInDrawQ(float id)
Definition: hud_config.qc:830
bool autocvar_hud_configure_grid
Definition: hud_config.qh:5
vector(float skel, float bonenum) _skel_get_boneabs_hidden
vector hud_configure_realGridSize
Definition: hud_config.qh:20
vector prevMouseClickedPos
Definition: hud_config.qh:15
vector hud_configure_gridSize
Definition: hud_config.qh:19
void HUD_Configure_Frame()
Definition: hud_config.qc:1063
float hud_configure_prev
Definition: hud_config.qh:17
bool autocvar_hud_configure_teamcolorforced
Definition: hud_config.qh:7
const int S_MOUSE2
Definition: hud_config.qh:10
float hud_configure_menu_open
Definition: hud_config.qh:21
const int S_MOUSE1
Definition: hud_config.qh:9
void HUD_Panel_Mouse()
Definition: hud_config.qc:946
void HUD_Configure_PostDraw()
Definition: hud_config.qc:1113
float hud_configure_checkcollisions
Definition: hud_config.qh:18