|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "../strafehud.qh"Go to the source code of this file.
Functions | |
| void | StrafeHUD_DrawGradient (vector, vector, vector, float, float, float, float, int, float) |
| void | StrafeHUD_DrawSoftGradient (vector, vector, vector, float, float, float, float, float, int, float) |
| void | StrafeHUD_DrawStrafeArrow (vector, float, vector, float, bool, float) |
| void | StrafeHUD_DrawStrafeHUD (float, float, vector, float, int, int, float) |
| void | StrafeHUD_DrawTextIndicator (string, float, vector, float, float, vector, float, float) |
| bool | StrafeHUD_IsGradient (int) |
| void StrafeHUD_DrawGradient | ( | vector | color1, |
| vector | color2, | ||
| vector | size, | ||
| float | original_width, | ||
| float | offset, | ||
| float | alpha, | ||
| float | gradient_offset, | ||
| int | gradient_type, | ||
| float | range ) |
Definition at line 183 of file draw.qc.
References alpha, autocvar_hud_panel_strafehud_bar_neutral_alpha, bound(), DRAWFLAG_NORMAL, eX, eY, HUD_ScaleX, HUD_ScaleY, HUD_Shift(), max(), origin, panel_fg_alpha, panel_pos, size, StrafeHUD_DrawGradient(), STRAFEHUD_GRADIENT_BOTH, STRAFEHUD_GRADIENT_LEFT, STRAFEHUD_GRADIENT_RIGHT, StrafeHUD_ProjectOffset(), StrafeHUD_ProjectWidth(), and vector.
Referenced by StrafeHUD_DrawGradient(), and StrafeHUD_DrawStrafeHUD().
| void StrafeHUD_DrawSoftGradient | ( | vector | color1, |
| vector | color2, | ||
| vector | size, | ||
| float | original_width, | ||
| float | offset, | ||
| float | original_offset, | ||
| float | alpha, | ||
| float | gradient_offset, | ||
| int | gradient_type, | ||
| float | range ) |
Definition at line 245 of file draw.qc.
References alpha, autocvar_hud_panel_strafehud_bar_neutral_alpha, bound(), drawfill, DRAWFLAG_NORMAL, eX, min(), panel_fg_alpha, panel_pos, size, STRAFEHUD_GRADIENT_BOTH, STRAFEHUD_GRADIENT_RIGHT, StrafeHUD_MixColors(), StrafeHUD_ProjectOffset(), and vector.
Referenced by StrafeHUD_DrawStrafeHUD().
| void StrafeHUD_DrawStrafeArrow | ( | vector | origin, |
| float | size, | ||
| vector | color, | ||
| float | alpha, | ||
| bool | flipped, | ||
| float | connection_width ) |
Definition at line 284 of file draw.qc.
References alpha, color, DRAWFLAG_NORMAL, eX, eY, height, HUD_ScaleX, HUD_ScaleY, HUD_Shift(), origin, size, and vector.
Referenced by StrafeHUD_DrawAngleIndicatorArrow().
| void StrafeHUD_DrawStrafeHUD | ( | float | startangle, |
| float | offsetangle, | ||
| vector | color, | ||
| float | alpha, | ||
| int | type, | ||
| int | gradient_type, | ||
| float | range ) |
Definition at line 8 of file draw.qc.
References alpha, autocvar_hud_panel_strafehud_bar_neutral_color, color, drawfill, DRAWFLAG_NORMAL, eX, fabs(), HUD_Panel_DrawProgressBar(), max(), min(), panel_pos, panel_size, size, StrafeHUD_AngleToOffset(), StrafeHUD_AngleToWidth(), StrafeHUD_DrawGradient(), StrafeHUD_DrawSoftGradient(), STRAFEHUD_GRADIENT_NONE, StrafeHUD_IsGradient(), StrafeHUD_ProjectOffset(), StrafeHUD_ProjectWidth(), STRAFEHUD_STYLE_DRAWFILL, STRAFEHUD_STYLE_GRADIENT, STRAFEHUD_STYLE_PROGRESSBAR, STRAFEHUD_STYLE_SOFT_GRADIENT, and vector.
Referenced by StrafeHUD_DrawStrafeMeter().
| void StrafeHUD_DrawTextIndicator | ( | string | text, |
| float | height, | ||
| vector | color, | ||
| float | fadetime, | ||
| float | lasttime, | ||
| vector | pos, | ||
| float | offset_top, | ||
| float | offset_bottom ) |
Definition at line 308 of file draw.qc.
References alpha, color, cos(), DRAWFLAG_NORMAL, drawstring_aspect(), fadetime, height, M_PI_2, panel_fg_alpha, panel_pos, panel_size, size, StrafeHUD_CalculateTextIndicatorPosition(), time, and vector.
Referenced by StrafeHUD_DrawJumpHeight(), StrafeHUD_DrawStartSpeed(), StrafeHUD_DrawStrafeEfficiency(), and StrafeHUD_DrawVerticalAngle().
Definition at line 341 of file draw.qc.
References STRAFEHUD_STYLE_GRADIENT, STRAFEHUD_STYLE_SOFT_GRADIENT, and style.
Referenced by HUD_StrafeHUD(), and StrafeHUD_DrawStrafeHUD().