Xonotic
ammo.qh File Reference
#include "../panel.qh"
+ Include dependency graph for ammo.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void DrawNadeProgressBar (vector myPos, vector mySize, float progress, vector color)
 

Variables

bool autocvar_hud_panel_ammo
 
bool autocvar_hud_panel_ammo_dynamichud = true
 
bool autocvar_hud_panel_ammo_hide_ondeath = false
 
bool autocvar_hud_panel_ammo_iconalign
 
int autocvar_hud_panel_ammo_maxammo
 
float autocvar_hud_panel_ammo_noncurrent_alpha = 0.7
 
float autocvar_hud_panel_ammo_noncurrent_scale = 1
 
bool autocvar_hud_panel_ammo_onlycurrent
 
bool autocvar_hud_panel_ammo_progressbar
 
string autocvar_hud_panel_ammo_progressbar_name
 
float autocvar_hud_panel_ammo_progressbar_xoffset
 
bool autocvar_hud_panel_ammo_text
 

Function Documentation

◆ DrawNadeProgressBar()

void DrawNadeProgressBar ( vector  myPos,
vector  mySize,
float  progress,
vector  color 
)

Definition at line 25 of file ammo.qc.

References autocvar_hud_panel_ammo_progressbar_name, autocvar_hud_panel_ammo_progressbar_xoffset, autocvar_hud_progressbar_alpha, DRAWFLAG_NORMAL, eX, HUD_Panel_DrawProgressBar(), and panel_fg_alpha.

26 {
29  mySize - eX * autocvar_hud_panel_ammo_progressbar_xoffset * mySize.x,
31  progress, 0, 0, color,
33 }
vector color
float panel_fg_alpha
Definition: hud.qh:166
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:270
float autocvar_hud_panel_ammo_progressbar_xoffset
Definition: ammo.qh:14
const float DRAWFLAG_NORMAL
Definition: csprogsdefs.qc:317
string autocvar_hud_panel_ammo_progressbar_name
Definition: ammo.qh:13
const vector eX
Definition: vector.qh:44
float autocvar_hud_progressbar_alpha
Definition: hud.qh:201
+ Here is the call graph for this function:

Variable Documentation

◆ autocvar_hud_panel_ammo

bool autocvar_hud_panel_ammo

Definition at line 4 of file ammo.qh.

Referenced by HUD_Ammo().

◆ autocvar_hud_panel_ammo_dynamichud

bool autocvar_hud_panel_ammo_dynamichud = true

Definition at line 5 of file ammo.qh.

Referenced by HUD_Ammo().

◆ autocvar_hud_panel_ammo_hide_ondeath

bool autocvar_hud_panel_ammo_hide_ondeath = false

Definition at line 6 of file ammo.qh.

Referenced by HUD_Ammo().

◆ autocvar_hud_panel_ammo_iconalign

bool autocvar_hud_panel_ammo_iconalign

Definition at line 7 of file ammo.qh.

Referenced by DrawAmmoItem().

◆ autocvar_hud_panel_ammo_maxammo

int autocvar_hud_panel_ammo_maxammo

Definition at line 8 of file ammo.qh.

Referenced by DrawAmmoItem().

◆ autocvar_hud_panel_ammo_noncurrent_alpha

float autocvar_hud_panel_ammo_noncurrent_alpha = 0.7

Definition at line 10 of file ammo.qh.

Referenced by DrawAmmoItem().

◆ autocvar_hud_panel_ammo_noncurrent_scale

float autocvar_hud_panel_ammo_noncurrent_scale = 1

Definition at line 11 of file ammo.qh.

Referenced by DrawAmmoItem().

◆ autocvar_hud_panel_ammo_onlycurrent

bool autocvar_hud_panel_ammo_onlycurrent

Definition at line 9 of file ammo.qh.

Referenced by HUD_Ammo().

◆ autocvar_hud_panel_ammo_progressbar

bool autocvar_hud_panel_ammo_progressbar

Definition at line 12 of file ammo.qh.

Referenced by DrawAmmoItem().

◆ autocvar_hud_panel_ammo_progressbar_name

string autocvar_hud_panel_ammo_progressbar_name

Definition at line 13 of file ammo.qh.

Referenced by DrawAmmoItem(), and DrawNadeProgressBar().

◆ autocvar_hud_panel_ammo_progressbar_xoffset

float autocvar_hud_panel_ammo_progressbar_xoffset

Definition at line 14 of file ammo.qh.

Referenced by DrawAmmoItem(), and DrawNadeProgressBar().

◆ autocvar_hud_panel_ammo_text

bool autocvar_hud_panel_ammo_text

Definition at line 15 of file ammo.qh.

Referenced by DrawAmmoItem().