|
Xonotic
|
#include "hud.qh"#include <client/draw.qh>#include <client/hud/hud_config.qh>#include <client/hud/panel/chat.qh>#include <client/hud/panel/scoreboard.qh>#include <client/items/items.qh>#include <client/mapvoting.qh>#include <client/teamradar.qh>#include <client/view.qh>#include <common/deathtypes/all.qh>#include <common/ent_cs.qh>#include <common/gamemodes/_mod.qh>#include <common/items/_mod.qh>#include <common/mapinfo.qh>#include <common/minigames/cl_minigames.qh>#include <common/mutators/mutator/waypoints/all.qh>#include <common/stats.qh>#include <common/vehicles/all.qh>#include <common/vehicles/vehicle/bumblebee.qh>#include <lib/csqcmodel/cl_model.qh>#include <lib/csqcmodel/cl_player.qh>
Include dependency graph for hud.qc:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | CASE_COLOR_BETWEEN(min, max) |
Variables | |
| float | autocvar_hud_dynamic_shake = 1 |
| float | autocvar_hud_dynamic_shake_damage_max = 130 |
| float | autocvar_hud_dynamic_shake_damage_min = 10 |
| float | autocvar_hud_dynamic_shake_scale = 0.2 |
| float | hud_dynamic_shake_x [10] = {0, 1, -0.7, 0.5, -0.3, 0.2, -0.1, 0.1, 0.0, 0} |
| float | hud_dynamic_shake_y [10] = {0, 0.4, 0.8, -0.2, -0.6, 0.0, 0.3, 0.1, -0.1, 0} |
| float | lasthud |
| float | prev_myteam |
| float | vh_notice_time |
Definition at line 31 of file hud.qc.
References draw_currentSkin, DRAWFLAG_NORMAL, drawpic(), SIZE_CURSOR, strcat(), and vec2.
Referenced by draw_cursor_normal(), and HUD_Cursor_Show().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 37 of file hud.qc.
References draw_cursor(), and OFFSET_CURSOR.
Referenced by HUD_Cursor_Show().
Here is the call graph for this function:
Here is the caller graph for this function:| void DrawNumIcon | ( | vector | myPos, |
| vector | mySize, | ||
| float | theTime, | ||
| string | icon, | ||
| bool | vertical, | ||
| bool | isInfinite, | ||
| int | icon_right_align, | ||
| vector | color, | ||
| float | theAlpha | ||
| ) |
Definition at line 479 of file hud.qc.
References DrawNumIcon_expanding(), and TC.
Referenced by HUD_HealthArmor(), and HUD_Powerups().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 at line 398 of file hud.qc.
References DRAWFLAG_NORMAL, drawpic_aspect_skin, drawpic_aspect_skin_expanding(), drawstring_aspect(), drawstring_aspect_expanding(), eX, eY, ftos(), panel_fg_alpha, TC, and vector().
Referenced by DrawNumIcon(), and HUD_Powerups().
Here is the call graph for this function:
Here is the caller graph for this function:| void Hud_Dynamic_Frame | ( | ) |
Definition at line 595 of file hud.qc.
References autocvar_hud_dynamic_follow, autocvar_hud_dynamic_follow_scale, autocvar_hud_dynamic_follow_scale_xyz, autocvar_hud_dynamic_shake, autocvar_hud_dynamic_shake_damage_max, autocvar_hud_dynamic_shake_damage_min, bound(), calc_followmodel_ofs(), cl_followmodel_ofs, CSQCModel_server2csqc(), entity(), fabs(), health, hud_dynamic_shake_factor, hud_dynamic_shake_realofs, hud_dynamic_shake_time, hud_scale_center, hud_scale_current, HUD_Scale_Disable(), Hud_Shake_Update(), hud_shift_current, intermission, max(), player_localentnum, time, vector(), vid_conheight, and vid_conwidth.
Referenced by HUD_Draw().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 123 of file hud.qc.
References CASE_COLOR_BETWEEN, color, M_PI, sin(), time, and vector().
Referenced by crosshair_getcolor(), HUD_EngineInfo(), and HUD_HealthArmor().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 111 of file hud.qc.
References cvar_string(), stov(), v, and vector().
Referenced by Cmd_Scoreboard_SetFields(), MapVote_Draw(), and Scoreboard_Draw().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 165 of file hud.qc.
References bound(), floor(), sqrt(), and TC.
Referenced by HUD_Ammo(), HUD_Mod_CA_Draw(), HUD_Mod_Dom(), HUD_Score(), and Item_ItemsTime_Allow().
Here is the call graph for this function:
Here is the caller graph for this function:| void HUD_Main | ( | ) |
Definition at line 689 of file hud.qc.
References argv(), autocvar__con_chat_maximized, autocvar__hud_configure, autocvar__hud_panelorder, autocvar__menu_alpha, autocvar_hud_configure_teamcolorforced, autocvar_hud_cursormode, autocvar_hud_dock, autocvar_hud_dock_alpha, autocvar_hud_dock_color, autocvar_hud_dock_color_team, autocvar_hud_skin, color, colormapPaletteColor, current_player, cursor_active, cvar_set(), DRAWFLAG_NORMAL, drawpic(), eX, eY, floor(), FOREACH, ftos(), HUD_Configure_Frame(), hud_configure_menu_open, HUD_Configure_PostDraw(), hud_configure_prev, hud_draw_maximized, hud_fade_alpha, HUD_PANEL, HUD_Panel_Draw(), hud_panel_radar_maximized, hud_panelorder_prev, HUD_Reset(), hud_skin_path, hud_skin_prev, HUD_Vehicle(), HUD_WouldShowCursor(), intermission, LOG_TRACE, myteamcolors, NUM_SPECTATOR, panel_order, precache_pic(), prev_myteam, QuickMenu_IsOpened(), REGISTRY_COUNT, REGISTRY_GET, scoreboard_fade_alpha, stof(), stoi, stov(), strcat(), strcpy, teamplay, time, tokenize_console, vector(), vid_conheight, and vid_conwidth.
Here is the call graph for this function:Definition at line 511 of file hud.qc.
References active_minigame, autocvar__hud_configure, HUD_MinigameMenu_IsOpened(), Hud_Panel_GetPanelEnabled, intermission, panel, PANEL_CONFIG_MAIN, panel_fade_alpha, PANEL_SHOW_MAINGAME, PANEL_SHOW_MAPVOTE, PANEL_SHOW_MINIGAME, PANEL_SHOW_WITH_SB, and scoreboard_fade_alpha.
Referenced by HUD_Main().
Here is the call graph for this function:
Here is the caller graph for this function:| void HUD_Panel_DrawHighlight | ( | vector | pos, |
| vector | mySize, | ||
| vector | color, | ||
| float | theAlpha, | ||
| int | drawflag | ||
| ) |
Definition at line 377 of file hud.qc.
References drawsubpic(), eX, eY, HUD_Scale(), HUD_Shift(), hud_skin_path, min(), precache_pic(), strcat(), and TC.
Referenced by HUD_Score(), and HUD_Score_Rankings().
Here is the call graph for this function:
Here is the caller graph for this function:| void HUD_Panel_DrawProgressBar | ( | vector | theOrigin, |
| vector | theSize, | ||
| string | pic, | ||
| float | length_ratio, | ||
| bool | vertical, | ||
| float | baralign, | ||
| vector | theColor, | ||
| float | theAlpha, | ||
| int | drawflag | ||
| ) |
Definition at line 270 of file hud.qc.
References drawsubpic(), eX, eY, height, HUD_Scale(), HUD_Shift(), hud_skin_path, if(), precache_pic(), strcat(), TC, and vector().
Referenced by Draw_ShowNames(), DrawAmmoItem(), DrawNadeProgressBar(), HUD_HealthArmor(), HUD_Mod_NexBall(), HUD_Panel_DrawStrafeHUD(), HUD_Physics(), HUD_Powerups(), HUD_StrafeHUD(), and Item_ItemsTime_Allow().
Here is the call graph for this function:
Here is the caller graph for this function:| void HUD_Panel_LoadCvars | ( | ) |
Definition at line 216 of file hud.qc.
References autocvar__hud_configure, autocvar_hud_panel_update_interval, cvar_string(), highlightedPanel, hud_configure_menu_open, hud_fade_alpha, HUD_Panel_GetBg, HUD_Panel_GetBgAlpha, HUD_Panel_GetBorder, HUD_Panel_GetColor, HUD_Panel_GetColorTeam, HUD_Panel_GetFgAlpha, HUD_Panel_GetPadding, HUD_Panel_ScalePosSize, HUD_Panel_UpdatePosSize_ForMenu, panel, panel_bg_alpha, panel_bg_alpha_str, panel_bg_border, panel_bg_border_str, panel_bg_color, panel_bg_color_str, panel_bg_color_team, panel_bg_color_team_str, panel_bg_padding, panel_bg_padding_str, panel_bg_str, panel_fade_alpha, panel_fg_alpha, panel_pos, panel_size, stov(), strcat(), and time.
Referenced by HUD_Ammo(), HUD_Chat(), HUD_EngineInfo(), HUD_HealthArmor(), HUD_InfoMessages(), HUD_MinigameBoard(), HUD_MinigameMenu(), HUD_MinigameMenu_MouseInput(), HUD_MinigameStatus(), HUD_ModIcons(), HUD_Notify(), HUD_Physics(), HUD_Powerups(), HUD_PressedKeys(), HUD_RaceTimer(), HUD_Radar(), HUD_Radar_Mouse(), HUD_Score(), HUD_StrafeHUD(), HUD_Timer(), HUD_Weapons(), Item_ItemsTime_Allow(), MapVote_Draw(), QuickMenu_Mouse(), and Scoreboard_Draw().
Here is the call graph for this function:
Here is the caller graph for this function:| void HUD_Reset | ( | ) |
Definition at line 561 of file hud.qc.
References gametype.
Referenced by HUD_Main().
Here is the caller graph for this function:Definition at line 97 of file hud.qc.
References HUD_ScaleX, HUD_ScaleY, and v.
Referenced by DrawCircleClippedPic(), drawpic_tiled(), drawstring_expanding(), HUD_Panel_DrawHighlight(), HUD_Panel_DrawProgressBar(), and HUD_Radar().
Here is the caller graph for this function:| void HUD_Scale_Disable | ( | ) |
Definition at line 83 of file hud.qc.
References drawfontscale, hud_scale, and hud_shift.
Referenced by CSQC_UpdateView(), HUD_Ammo(), HUD_Chat(), Hud_Dynamic_Frame(), HUD_EngineInfo(), HUD_HealthArmor(), HUD_InfoMessages(), HUD_MinigameMenu(), HUD_MinigameStatus(), HUD_ModIcons(), HUD_Notify(), HUD_Physics(), HUD_Powerups(), HUD_PressedKeys(), HUD_RaceTimer(), HUD_Radar(), HUD_Score(), HUD_StrafeHUD(), HUD_Timer(), HUD_Weapons(), MapVote_Draw(), and Scoreboard_Draw().
Here is the caller graph for this function:| void HUD_Scale_Enable | ( | ) |
Definition at line 90 of file hud.qc.
References drawfontscale, hud_scale, hud_scale_current, hud_shift, and hud_shift_current.
Referenced by HUD_Ammo(), HUD_Draw(), HUD_EngineInfo(), HUD_HealthArmor(), HUD_InfoMessages(), HUD_ModIcons(), HUD_Notify(), HUD_Physics(), HUD_Powerups(), HUD_PressedKeys(), HUD_RaceTimer(), HUD_Radar(), HUD_Score(), HUD_StrafeHUD(), HUD_Timer(), HUD_Weapons(), Item_ItemsTime_Allow(), and Scoreboard_Draw().
Here is the caller graph for this function:| bool Hud_Shake_Update | ( | ) |
Definition at line 574 of file hud.qc.
References autocvar_hud_dynamic_shake_scale, bound(), floor(), hud_dynamic_shake_factor, hud_dynamic_shake_realofs, hud_dynamic_shake_time, hud_dynamic_shake_x, hud_dynamic_shake_y, time, vid_conheight, and vid_conwidth.
Referenced by Hud_Dynamic_Frame().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 104 of file hud.qc.
References HUD_ShiftX, HUD_ShiftY, and v.
Referenced by DrawCircleClippedPic(), drawpic_tiled(), HUD_Panel_DrawHighlight(), HUD_Panel_DrawProgressBar(), and HUD_Radar().
Here is the caller graph for this function:| void HUD_Vehicle | ( | ) |
Definition at line 493 of file hud.qc.
References autocvar__hud_configure, autocvar_cl_vehicles_notify_time, hud, intermission, lasthud, REGISTRY_GET, time, and vh_notice_time.
Referenced by HUD_Main().
Here is the caller graph for this function:| bool HUD_WouldShowCursor | ( | ) |
Definition at line 670 of file hud.qc.
References autocvar__hud_configure, HUD_MinigameMenu_IsOpened(), HUD_Radar_Clickable(), mv_active, and QuickMenu_IsOpened().
Referenced by HUD_Main().
Here is the call graph for this function:
Here is the caller graph for this function:| void LoadMenuSkinValues | ( | ) |
Definition at line 42 of file hud.qc.
References argv(), argv_end_index, argv_start_index, cvar_defstring(), cvar_set(), cvar_string(), draw_currentSkin, fclose(), fgets(), FILE_READ, fopen(), OFFSET_CURSOR, SIZE_CURSOR, stov(), strcat(), strzone(), substring(), and tokenize_console.
Referenced by CSQC_Init().
Here is the call graph for this function:
Here is the caller graph for this function:| float autocvar_hud_dynamic_shake = 1 |
Definition at line 568 of file hud.qc.
Referenced by Hud_Dynamic_Frame().
| float autocvar_hud_dynamic_shake_damage_max = 130 |
Definition at line 569 of file hud.qc.
Referenced by Hud_Dynamic_Frame().
| float autocvar_hud_dynamic_shake_damage_min = 10 |
Definition at line 570 of file hud.qc.
Referenced by Hud_Dynamic_Frame().
| float autocvar_hud_dynamic_shake_scale = 0.2 |
Definition at line 571 of file hud.qc.
Referenced by Hud_Shake_Update().
| float hud_dynamic_shake_x[10] = {0, 1, -0.7, 0.5, -0.3, 0.2, -0.1, 0.1, 0.0, 0} |
Definition at line 572 of file hud.qc.
Referenced by Hud_Shake_Update().
| float hud_dynamic_shake_y[10] = {0, 0.4, 0.8, -0.2, -0.6, 0.0, 0.3, 0.1, -0.1, 0} |
Definition at line 573 of file hud.qc.
Referenced by Hud_Shake_Update().
| float lasthud |
Definition at line 491 of file hud.qc.
Referenced by HUD_Vehicle().
| float prev_myteam |
Definition at line 688 of file hud.qc.
Referenced by HUD_Main().
| float vh_notice_time |
Definition at line 492 of file hud.qc.
Referenced by HUD_Vehicle(), and Vehicles_drawHUD().