Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
hud.qh
Go to the documentation of this file.
1#pragma once
2
4#include <common/scores.qh>
5
7vector SIZE_CURSOR = '32 32 0';
8void draw_cursor(vector pos, vector ofs, string img, vector col, float a);
9void draw_cursor_normal(vector pos, vector col, float a);
11
13void HUD_Scale_Enable();
14
15#define HUD_ScaleX(f) ((f) * hud_scale.x)
16#define HUD_ScaleY(f) ((f) * hud_scale.y)
17#define HUD_ShiftX(f) (f + hud_shift.x + hud_shift.z * (f - hud_scale_center.x))
18#define HUD_ShiftY(f) (f + hud_shift.y + hud_shift.z * (f - hud_scale_center.y))
21
22vector HUD_GetFontsize(string cvarname);
23
25
27void HUD_Radar_Mouse();
30
31REGISTRY(hud_panels, BITS(6))
32REGISTER_REGISTRY(hud_panels)
33
34REGISTRY_DEFINE_GET(hud_panels, NULL)
35
36#define _REGISTER_HUD_PANEL(id, draw_func, export_func, configflags, showflags) \
37 void draw_func(bool should_draw); \
38 void export_func(int fh); \
39 REGISTER(hud_panels, HUD_PANEL, id, m_id, new_pure(hud_panel)) \
40 { \
41 this.panel_id = this.m_id; \
42 this.panel_draw = draw_func; \
43 this.panel_export = export_func; \
44 this.panel_name = strzone(strtolower(#id)); \
45 this.panel_configflags = configflags; \
46 this.panel_showflags = showflags; \
47 }
48
49#define REGISTER_HUD_PANEL(id, draw_func, configflags, showflags) \
50 _REGISTER_HUD_PANEL(id, draw_func, draw_func##_Export, configflags, showflags)
51
52#define HUD_PANEL(NAME) HUD_PANEL_##NAME
53
54// draw the background/borders
55#define HUD_Panel_DrawBg() MACRO_BEGIN \
56 if (panel.current_panel_bg != "0" && panel.current_panel_bg != "") \
57 draw_BorderPicture( \
58 HUD_Shift(panel_pos - '1 1 0' * panel_bg_border), \
59 panel.current_panel_bg, \
60 HUD_Scale(panel_size + '1 1 0' * 2 * panel_bg_border), \
61 panel_bg_color, panel_bg_alpha, \
62 HUD_Scale('1 1 0' * BORDER_MULTIPLIER * panel_bg_border) \
63 ); \
64MACRO_END
65
66int panel_order[REGISTRY_MAX(hud_panels)];
68
76
77float HUD_Radar_InputEvent(float bInputType, float nPrimary, float nSecondary);
79
80float HUD_GetRowCount(int item_count, vector size, float item_aspect);
81vector HUD_Get_Num_Color(float hp, float maxvalue, bool blink);
82void DrawNumIcon(vector myPos, vector mySize, float theTime, string icon, bool vertical, bool isInfinite, bool icon_right_align, vector color, float theAlpha);
83void DrawNumIcon_expanding(vector myPos, vector mySize, float theTime, string icon, bool vertical, bool isInfinite, int icon_right_align, vector color, float theAlpha, float fadelerp);
84void HUD_Panel_DrawHighlight(vector pos, vector mySize, vector color, float theAlpha, int drawflag);
85vector HUD_GetTableSize_BestItemAR(int item_count, vector psize, float item_aspect);
86
87void HUD_Reset ();
88void HUD_Main ();
89
90int race_CheckName(string net_name);
91string MakeRaceString(int cp, float mytime, float theirtime, float othertime, float lapdelta, string theirname);
92
96int vote_highlighted; // currently selected vote
97
98int vote_active; // is there an active vote?
99int vote_prev; // previous state of vote_active to check for a change
101float vote_change; // "time" when vote_active changed
102
104vector panel_click_distance; // mouse cursor distance from the top left corner of the panel (saved only upon a click)
105vector panel_click_resizeorigin; // coordinates for opposite point when resizing
106float resizeCorner; // 1 = topleft, 2 = topright, 3 = bottomleft, 4 = bottomright
108float highlightedAction; // 0 = nothing, 1 = move, 2 = resize
109
110const float BORDER_MULTIPLIER = 4;
112
116
119
124
125float timer;
127
129const int S_SHIFT = 1;
130const int S_CTRL = 2;
131const int S_ALT = 4;
132const int S_TAB = 8;
133
135
138
140
144
146
148entityclass(HUDPanel);
149classfield(HUDPanel) .string panel_name;
150classfield(HUDPanel) .int panel_id;
151classfield(HUDPanel) .vector current_panel_pos;
152classfield(HUDPanel) .vector current_panel_size;
153classfield(HUDPanel) .string current_panel_bg;
154classfield(HUDPanel) .float current_panel_bg_alpha;
155classfield(HUDPanel) .float current_panel_bg_border;
156classfield(HUDPanel) .vector current_panel_bg_color;
157classfield(HUDPanel) .float current_panel_bg_color_team;
158classfield(HUDPanel) .float current_panel_bg_padding;
159classfield(HUDPanel) .float current_panel_fg_alpha;
160classfield(HUDPanel) .float update_time;
164string panel_bg_str; // "_str" vars contain the raw value of the cvar, non-"_str" contains what hud.qc code should use
176
177classfield(HUDPanel) .void(bool should_draw) panel_draw;
178classfield(HUDPanel) .void(int fh) panel_export;
179
180// chat panel can be reduced / moved while the mapvote is active
181// let know the mapvote panel about chat pos and size
184
186
187float autocvar__menu_alpha; // updated by the menu VM, useful to tell when the menu is being drawn
188
190
206
208
212
216
217// shared across viewmodel effects and dynamic hud code
220
226
227void HUD_Panel_DrawProgressBar(vector theOrigin, vector theSize, string pic, float length_ratio, bool vertical, float baralign, vector theColor, float theAlpha, int drawflag);
228
230const int PANEL_SHOW_MAINGAME = BIT(0);
231const int PANEL_SHOW_MINIGAME = BIT(1);
232const int PANEL_SHOW_MAPVOTE = BIT(2);
233const int PANEL_SHOW_WITH_SB = BIT(3);
234
236const int PANEL_CONFIG_NO = 0;
237const int PANEL_CONFIG_MAIN = BIT(0);
239
240
241// prev_* vars contain the health/armor at the previous FRAME
242// set to -1 when player is dead or was not playing
244// prev_p_* vars contain the health/armor progressbar value at the previous FRAME
245// set to -1 to forcedly stop effects when we switch spectated player (e.g. from playerX: 70h to playerY: 50h)
247
248void HUD_ItemsTime(bool should_draw);
249
278// always add new panels to the end of list and add a comment in the form of
279// "// Panel Name (#nr)" with the relative panel nr in your main panelname.qc
280
281// Because calling lots of functions in QC apparently cuts fps in half on many machines:
282// ----------------------
283// MACRO HELL STARTS HERE
284// ----------------------
285// Little help for the poor people who have to make sense of this: Start from the bottom ;)
286
287
288#define HUD_Panel_GetBg() MACRO_BEGIN \
289 string panel_bg; \
290 if (!autocvar__hud_configure && panel_bg_str == "0") \
291 panel_bg = "0"; \
292 else \
293 { \
294 if (panel_bg_str == "") \
295 panel_bg_str = autocvar_hud_panel_bg; \
296 if (panel_bg_str == "0" && !autocvar__hud_configure) \
297 panel_bg = "0"; \
298 else \
299 { \
300 if (panel_bg_str == "0" && autocvar__hud_configure) \
301 panel_bg_alpha_str = "0"; \
302 panel_bg = strcat(hud_skin_path, "/", panel_bg_str); \
303 if (precache_pic(panel_bg) == "") \
304 { \
305 panel_bg = strcat(hud_skin_path, "/", "border_default"); \
306 if (precache_pic(panel_bg) == "") \
307 panel_bg = strcat("gfx/hud/default/", "border_default"); \
308 } \
309 } \
310 } \
311 strcpy(panel.current_panel_bg, panel_bg); \
312 /* we probably want to see a background in config mode at all times... */ \
313MACRO_END
314
316#define HUD_Panel_GetColor() MACRO_BEGIN \
317 if (teamplay && panel_bg_color_team > 0) \
318 panel_bg_color = (autocvar__hud_configure && myteam == NUM_SPECTATOR) \
319 ? '1 0 0' * panel_bg_color_team \
320 : myteamcolors * panel_bg_color_team; \
321 else if (autocvar_hud_configure_teamcolorforced && autocvar__hud_configure && panel_bg_color_team > 0) \
322 panel_bg_color = '1 0 0' * panel_bg_color_team; \
323 else \
324 { \
325 if (panel_bg_color_str == "") \
326 panel_bg_color = autocvar_hud_panel_bg_color; \
327 else \
328 { \
329 if (panel_bg_color_str == "shirt") \
330 panel_bg_color = colormapPaletteColor(floor(entcs_GetClientColors(current_player) / 16), 0); \
331 else if (panel_bg_color_str == "pants") \
332 panel_bg_color = colormapPaletteColor(entcs_GetClientColors(current_player) % 16, 1); \
333 else \
334 panel_bg_color = stov(panel_bg_color_str); \
335 } \
336 } \
337MACRO_END
338
340#define HUD_Panel_GetColorTeam() \
341 panel_bg_color_team = ((panel_bg_color_team_str == "") \
342 ? autocvar_hud_panel_bg_color_team \
343 : stof(panel_bg_color_team_str))
344
346#define HUD_Panel_GetBgAlpha() MACRO_BEGIN \
347 if (panel_bg_alpha_str == "") \
348 panel_bg_alpha_str = ftos(autocvar_hud_panel_bg_alpha); \
349 panel_bg_alpha = stof(panel_bg_alpha_str); \
350 if (autocvar__hud_configure) /* do not set a minalpha cap when showing the config dialog for this panel */ \
351 { \
352 if (!panel_enabled) \
353 panel_bg_alpha = 0.25; \
354 else if (hud_configure_menu_open == 2 && panel == highlightedPanel) \
355 panel_bg_alpha = (1 - autocvar__menu_alpha) * max(cvar("hud_configure_bg_minalpha"), panel_bg_alpha) + autocvar__menu_alpha * panel_bg_alpha; \
356 else \
357 panel_bg_alpha = max(cvar("hud_configure_bg_minalpha"), panel_bg_alpha); \
358 } \
359MACRO_END
360
362#define HUD_Panel_GetFgAlpha() \
363 panel_fg_alpha = ((autocvar__hud_configure && !panel_enabled) \
364 ? panel_fg_alpha = 0.25 /* ALWAYS show disabled panels at 0.25 alpha when in config mode */ \
365 : autocvar_hud_panel_fg_alpha)
366
368#define HUD_Panel_GetBorder() \
369 panel_bg_border = ((panel_bg_border_str == "") \
370 ? autocvar_hud_panel_bg_border \
371 : stof(panel_bg_border_str))
372
375#define HUD_Panel_GetPadding() MACRO_BEGIN \
376 panel_bg_padding = ((panel_bg_padding_str == "") \
377 ? autocvar_hud_panel_bg_padding \
378 : stof(panel_bg_padding_str)); \
379 panel_bg_padding = min(min(panel_size.x, panel_size.y) * 0.5 - 5, panel_bg_padding); \
380MACRO_END
381
384#define HUD_Panel_UpdatePosSize_ForMenu() MACRO_BEGIN \
385 vector new_size = panel_size; \
386 float max_panel_width = 0.52 * vid_conwidth; \
387 if (panel_size.x > max_panel_width) \
388 { \
389 new_size.x = max_panel_width; \
390 new_size.y = panel_size.y * (new_size.x / panel_size.x); \
391 } \
392 vector new_pos = vec2(panel_bg_border + 0.5 * max_panel_width, 0.5 * vid_conheight) - 0.5 * new_size; \
393 panel_pos = (1 - autocvar__menu_alpha) * panel_pos + (autocvar__menu_alpha) * new_pos; \
394 panel_size = (1 - autocvar__menu_alpha) * panel_size + (autocvar__menu_alpha) * new_size; \
395MACRO_END
396
398#define HUD_Panel_ScalePosSize() MACRO_BEGIN \
399 panel_pos.x *= vid_conwidth; \
400 panel_pos.y *= vid_conheight; \
401 panel_size.x *= vid_conwidth; \
402 panel_size.y *= vid_conheight; \
403MACRO_END
404
407
408#define HUD_Panel_GetPanelEnabled() \
409 panel_enabled = ((panel.panel_configflags & PANEL_CONFIG_CANBEOFF) \
410 ? cvar(strcat("hud_panel_", panel.panel_name)) \
411 : true)
412
413#define HUD_Panel_UpdatePosSize() MACRO_BEGIN \
414 HUD_Panel_GetPanelEnabled(); \
415 panel_pos = stov(cvar_string(strcat("hud_panel_", panel.panel_name, "_pos"))); \
416 panel_size = stov(cvar_string(strcat("hud_panel_", panel.panel_name, "_size"))); \
417 HUD_Panel_ScalePosSize(); \
418 if (hud_configure_menu_open == 2 && panel == highlightedPanel) \
419 HUD_Panel_UpdatePosSize_ForMenu(); \
420 panel_bg_border_str = cvar_string(strcat("hud_panel_", panel.panel_name, "_bg_border")); \
421 HUD_Panel_GetBorder(); \
422MACRO_END
423
424const int NOTIFY_MAX_ENTRIES = 10;
425const float NOTIFY_ICON_MARGIN = 0.02;
426
433
434void HUD_Notify_Push(string icon, string attacker, string victim);
435
436var void HUD_ModIcons_GameType(vector myPos, vector mySize, bool should_draw);
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition bits.qh:8
#define BITS(n)
Definition bits.qh:9
void HUD_CenterPrint(bool should_draw)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void HUD_Checkpoints(bool should_draw)
void HUD_MinigameStatus(bool should_draw)
void HUD_MinigameBoard(bool should_draw)
void HUD_MinigameMenu(bool should_draw)
void HUD_MinigameHelp(bool should_draw)
void HUD_Ammo(bool should_draw)
Definition ammo.qc:108
void HUD_Chat(bool should_draw)
Definition chat.qc:68
void HUD_Physics(bool should_draw)
Definition physics.qc:38
void HUD_Pickup(bool should_draw)
Definition pickup.qc:33
void HUD_Powerups(bool should_draw)
Definition powerups.qc:75
void HUD_Vote(bool should_draw)
Definition vote.qc:13
void MapVote_Draw(bool should_draw)
Definition mapvoting.qc:425
float update_time
Definition net.qh:11
entity PlayerScoreField
Definition scores.qh:140
ERASEABLE float blink(float base, float range, float freq)
Definition util.qc:2274
vector size
vector color
Definition dynlight.qc:15
void HUD_EngineInfo(bool should_draw)
Definition engineinfo.qc:20
Weapons
Definition guide.qh:113
void HUD_HealthArmor(bool should_draw)
int race_CheckName(string net_name)
Definition cl_race.qc:18
entity highlightedPanel
Definition hud.qh:107
const float NOTIFY_ICON_MARGIN
Definition hud.qh:425
int vote_highlighted
Definition hud.qh:96
float panel_fade_alpha
Definition hud.qh:405
int vote_nocount
Definition hud.qh:94
string panel_bg_color_team_str
Definition hud.qh:168
float autocvar_hud_progressbar_alpha
Definition hud.qh:204
string autocvar_hud_dock
Definition hud.qh:192
vector panel_size
Definition hud.qh:163
const int PANEL_CONFIG_NO
Definition hud.qh:236
float notify_times[NOTIFY_MAX_ENTRIES]
Definition hud.qh:429
void draw_cursor_normal(vector pos, vector col, float a)
Definition hud.qc:37
float hud_panel_radar_bottom
Definition hud.qh:72
float highlightedAction
Definition hud.qh:108
float HUD_Radar_InputEvent(float bInputType, float nPrimary, float nSecondary)
bool hud_panel_radar_mouse
Definition hud.qh:71
float hud_dynamic_shake_time
Definition hud.qh:215
entity highlightedPanel_backup
Definition hud.qh:141
bool radar_panel_modified
Definition hud.qh:75
int vote_needed
Definition hud.qh:95
float panel_fg_alpha
Definition hud.qh:169
float autocvar_hud_dock_alpha
Definition hud.qh:193
void HUD_Reset()
Definition hud.qc:555
string notify_icons[NOTIFY_MAX_ENTRIES]
Definition hud.qh:432
string panel_bg_border_str
Definition hud.qh:173
int vote_active
Definition hud.qh:98
string hud_skin_prev
Definition hud.qh:137
vector panel_pos_backup
Definition hud.qh:142
int complain_weapon_type
Definition hud.qh:114
vector panel_click_distance
Definition hud.qh:104
float weaponprevtime
Definition hud.qh:123
void HUD_Notify_Push(string icon, string attacker, string victim)
Definition notify.qc:19
const int S_SHIFT
Definition hud.qh:129
int hudShiftState
Definition hud.qh:128
int panel_showflags
Definition hud.qh:229
void HUD_Panel_DrawProgressBar(vector theOrigin, vector theSize, string pic, float length_ratio, bool vertical, float baralign, vector theColor, float theAlpha, int drawflag)
Definition hud.qc:269
string autocvar__hud_panelorder
Definition hud.qh:189
string MakeRaceString(int cp, float mytime, float theirtime, float othertime, float lapdelta, string theirname)
Definition racetimer.qc:22
Weapon last_switchweapon
Definition hud.qh:120
const int S_ALT
Definition hud.qh:131
int teamnagger
Definition hud.qh:126
float autocvar__menu_alpha
Definition hud.qh:187
float hud_dynamic_shake_factor
Definition hud.qh:214
void HUD_Panel_LoadCvars()
Definition hud.qc:215
vector HUD_Shift(vector v)
Definition hud.qc:105
float panel_bg_padding
Definition hud.qh:174
float autocvar_hud_panel_bg_alpha
Definition hud.qh:197
string panel_bg_alpha_str
Definition hud.qh:171
vector hud_dynamic_shake_realofs
Definition hud.qh:213
bool hud_draw_maximized
Definition hud.qh:69
const int NOTIFY_MAX_ENTRIES
Definition hud.qh:424
string autocvar_hud_skin
Definition hud.qh:203
int prev_armor
Definition hud.qh:243
vector autocvar_hud_dynamic_follow_scale_xyz
Definition hud.qh:211
bool hud_panel_radar_maximized
Definition hud.qh:70
int panel_order[REGISTRY_MAX(hud_panels)]
Definition hud.qh:66
void LoadMenuSkinValues()
Definition hud.qc:42
void HUD_Radar_Mouse()
Definition radar.qc:123
void draw_cursor(vector pos, vector ofs, string img, vector col, float a)
Definition hud.qc:31
bool hud_panel_radar_temp_hidden
Definition hud.qh:73
int notify_count
Definition hud.qh:428
float autocvar_hud_dynamic_follow
Definition hud.qh:209
float panel_bg_border
Definition hud.qh:172
int vote_yescount
Definition hud.qh:93
Weapon last_activeweapon
Definition hud.qh:121
entity complain_weapon
Definition hud.qh:113
bool HUD_WouldShowCursor()
Definition hud.qc:663
float panel_bg_color_team
Definition hud.qh:167
float resizeCorner
Definition hud.qh:106
float chat_sizey
Definition hud.qh:183
string panel_bg_str
Definition hud.qh:164
vector hud_scale_current
Definition hud.qh:222
string panel_bg_color_str
Definition hud.qh:166
bool autocvar_hud_dock_color_team
Definition hud.qh:195
#define REGISTER_HUD_PANEL(id, draw_func, configflags, showflags)
Definition hud.qh:49
string hud_panelorder_prev
Definition hud.qh:67
int prev_health
Definition hud.qh:243
const int PANEL_SHOW_MAPVOTE
show during map vote
Definition hud.qh:232
float autocvar_hud_panel_bg_border
Definition hud.qh:198
float vote_change
Definition hud.qh:101
float vote_alpha
Definition hud.qh:100
vector panel_size_copied
Definition hud.qh:145
const int PANEL_SHOW_MINIGAME
show when minigames panels are shown
Definition hud.qh:231
int panel_configflags
Definition hud.qh:235
bool QuickMenu_IsOpened()
Definition quickmenu.qc:290
int vote_prev
Definition hud.qh:99
float panel_enabled
Definition hud.qh:161
void HUD_ModIcons_SetFunc()
Definition modicons.qc:19
float complain_weapon_time
Definition hud.qh:115
vector HUD_GetFontsize(string cvarname)
Definition hud.qc:112
float hud_fade_alpha
Definition hud.qh:134
const int PANEL_SHOW_MAINGAME
show in the main HUD
Definition hud.qh:230
vector hud_scale_center
Definition hud.qh:225
string autocvar_hud_dock_color
Definition hud.qh:194
void HUD_Main()
Definition hud.qc:682
float autocvar_hud_panel_update_interval
Definition hud.qh:205
vector hud_shift
Definition hud.qh:223
int prev_p_armor
Definition hud.qh:246
vector autocvar_hud_panel_bg_color
Definition hud.qh:199
vector panel_size_backup
Definition hud.qh:143
int weapon_accuracy[REGISTRY_MAX(Weapons)]
Definition hud.qh:111
int autocvar_hud_speed_unit
Definition hud.qh:207
int notify_index
Definition hud.qh:427
string notify_attackers[NOTIFY_MAX_ENTRIES]
Definition hud.qh:430
PlayerScoreField ps_secondary
Definition hud.qh:117
float HUD_GetRowCount(int item_count, vector size, float item_aspect)
Definition hud.qc:165
bool autocvar_hud_cursormode
Definition hud.qh:191
float current_player
Definition hud.qh:185
vector hud_scale
Definition hud.qh:221
vector cl_followmodel_ofs
Definition hud.qh:218
PlayerScoreField ps_primary
Definition hud.qh:117
float timer
Definition hud.qh:125
string autocvar_hud_panel_bg
Definition hud.qh:196
vector OFFSET_CURSOR
Definition hud.qh:6
vector HUD_GetTableSize_BestItemAR(int item_count, vector psize, float item_aspect)
Definition hud.qc:172
int ts_secondary
Definition hud.qh:118
void HUD_ItemsTime(bool should_draw)
Definition itemstime.qc:287
void HUD_Scale_Enable()
Definition hud.qc:91
const float BORDER_MULTIPLIER
Definition hud.qh:110
string hud_skin_path
Definition hud.qh:136
vector panel_pos
Definition hud.qh:162
const int PANEL_SHOW_WITH_SB
show when scoreboard is on
Definition hud.qh:233
float chat_posy
Definition hud.qh:182
float autocvar_hud_panel_bg_padding
Definition hud.qh:201
float panel_bg_alpha
Definition hud.qh:170
int prev_p_health
Definition hud.qh:246
string notify_victims[NOTIFY_MAX_ENTRIES]
Definition hud.qh:431
vector HUD_Scale(vector v)
Definition hud.qc:98
float autocvar_hud_panel_bg_color_team
Definition hud.qh:200
vector panel_bg_color
Definition hud.qh:165
float weapontime
Definition hud.qh:122
void Hud_Dynamic_Frame()
Definition hud.qc:589
const int PANEL_CONFIG_CANBEOFF
panel can be disabled (if disabled it's displayed with a low alpha)
Definition hud.qh:238
vector mousepos
Definition hud.qh:103
int ts_primary
Definition hud.qh:118
const int S_TAB
Definition hud.qh:132
string panel_bg_padding_str
Definition hud.qh:175
entity panel
Definition hud.qh:147
const int PANEL_CONFIG_MAIN
Definition hud.qh:237
float cl_followmodel_time
Definition hud.qh:219
vector myteamcolors
Definition hud.qh:139
vector HUD_Get_Num_Color(float hp, float maxvalue, bool blink)
Definition hud.qc:123
const int S_CTRL
Definition hud.qh:130
bool chat_panel_modified
Definition hud.qh:74
void DrawNumIcon(vector myPos, vector mySize, float theTime, string icon, bool vertical, bool isInfinite, bool icon_right_align, vector color, float theAlpha)
void HUD_Panel_DrawHighlight(vector pos, vector mySize, vector color, float theAlpha, int drawflag)
Definition hud.qc:374
float autocvar_hud_dynamic_follow_scale
Definition hud.qh:210
void HUD_Scale_Disable()
Definition hud.qc:84
var void HUD_ModIcons_GameType(vector myPos, vector mySize, bool should_draw)
vector hud_shift_current
Definition hud.qh:224
float autocvar_hud_panel_fg_alpha
Definition hud.qh:202
bool HUD_Radar_Clickable()
Definition radar.qc:26
void DrawNumIcon_expanding(vector myPos, vector mySize, float theTime, string icon, bool vertical, bool isInfinite, int icon_right_align, vector color, float theAlpha, float fadelerp)
Definition hud.qc:393
vector panel_click_resizeorigin
Definition hud.qh:105
void HUD_Radar_Hide_Maximized()
Definition radar.qc:51
vector SIZE_CURSOR
Definition hud.qh:7
void HUD_InfoMessages(bool should_draw)
void HUD_ModIcons(bool should_draw)
Definition modicons.qc:26
void HUD_Notify(bool should_draw)
Definition notify.qc:57
#define entityclass(...)
Definition oo.qh:52
#define classfield(name)
Definition oo.qh:57
#define NULL
Definition post.qh:14
void HUD_PressedKeys(bool should_draw)
void HUD_QuickMenu(bool should_draw)
Definition quickmenu.qc:633
void HUD_RaceTimer(bool should_draw)
Definition racetimer.qc:157
void HUD_Radar(bool should_draw)
Definition radar.qc:178
#define REGISTER_REGISTRY(id)
Definition registry.qh:229
#define REGISTRY(id, max)
Declare a new registry.
Definition registry.qh:26
#define REGISTRY_DEFINE_GET(id, null)
Definition registry.qh:40
#define REGISTRY_MAX(id)
Definition registry.qh:17
void HUD_Score(bool should_draw)
Definition score.qc:140
void Scoreboard_Draw(bool should_draw)
vector
Definition self.qh:92
void HUD_StrafeHUD(bool should_draw)
Definition strafehud.qc:21
void HUD_Timer(bool should_draw)
Definition timer.qc:67
void HUD_Weapons(bool should_draw)
Definition weapons.qc:117