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

Go to the source code of this file.

Functions

void HUD_Radar_Show_Maximized (bool doshow, bool clickable)
 

Variables

int autocvar_hud_panel_radar
 
bool autocvar_hud_panel_radar_dynamichud = true
 
float autocvar_hud_panel_radar_foreground_alpha
 
float autocvar_hud_panel_radar_maximized_rotation
 
float autocvar_hud_panel_radar_maximized_scale
 
vector autocvar_hud_panel_radar_maximized_size
 
int autocvar_hud_panel_radar_maximized_zoommode
 
float autocvar_hud_panel_radar_rotation
 
float autocvar_hud_panel_radar_scale
 
int autocvar_hud_panel_radar_zoommode
 

Function Documentation

◆ HUD_Radar_Show_Maximized()

void HUD_Radar_Show_Maximized ( bool  doshow,
bool  clickable 
)

Definition at line 30 of file radar.qc.

References hud_panel_radar_maximized, hud_panel_radar_mouse, hud_panel_radar_temp_hidden, localcmd, mouseClicked, and TC.

Referenced by HUD_Radar_Hide_Maximized(), and LocalCommand_hud().

31 {
32  TC(bool, doshow);
35 
36  if ( doshow )
37  {
38  if (clickable)
39  {
41 
42  // we must unset the player's buttons, as they aren't released elsewhere
43  localcmd("-fire\n");
44  localcmd("-fire2\n");
45  localcmd("-use\n");
46  localcmd("-hook\n");
47  localcmd("-jump\n");
48  }
49  }
50  else if ( hud_panel_radar_mouse )
51  {
53  mouseClicked = 0;
54  }
55 }
bool hud_panel_radar_maximized
Definition: hud.qh:69
bool hud_panel_radar_temp_hidden
Definition: hud.qh:72
int mouseClicked
Definition: hud_config.qh:12
bool hud_panel_radar_mouse
Definition: hud.qh:70
#define TC(T, sym)
Definition: _all.inc:82
+ Here is the caller graph for this function:

Variable Documentation

◆ autocvar_hud_panel_radar

int autocvar_hud_panel_radar

Definition at line 4 of file radar.qh.

Referenced by HUD_Radar().

◆ autocvar_hud_panel_radar_dynamichud

bool autocvar_hud_panel_radar_dynamichud = true

Definition at line 5 of file radar.qh.

Referenced by HUD_Radar().

◆ autocvar_hud_panel_radar_foreground_alpha

float autocvar_hud_panel_radar_foreground_alpha

Definition at line 6 of file radar.qh.

Referenced by teamradar_loadcvars().

◆ autocvar_hud_panel_radar_maximized_rotation

float autocvar_hud_panel_radar_maximized_rotation

Definition at line 12 of file radar.qh.

Referenced by teamradar_loadcvars().

◆ autocvar_hud_panel_radar_maximized_scale

float autocvar_hud_panel_radar_maximized_scale

Definition at line 7 of file radar.qh.

Referenced by teamradar_loadcvars().

◆ autocvar_hud_panel_radar_maximized_size

vector autocvar_hud_panel_radar_maximized_size

Definition at line 8 of file radar.qh.

Referenced by HUD_Radar(), and HUD_Radar_Mouse().

◆ autocvar_hud_panel_radar_maximized_zoommode

int autocvar_hud_panel_radar_maximized_zoommode

Definition at line 13 of file radar.qh.

Referenced by teamradar_loadcvars().

◆ autocvar_hud_panel_radar_rotation

float autocvar_hud_panel_radar_rotation

Definition at line 9 of file radar.qh.

Referenced by teamradar_loadcvars().

◆ autocvar_hud_panel_radar_scale

float autocvar_hud_panel_radar_scale

Definition at line 10 of file radar.qh.

Referenced by teamradar_loadcvars().

◆ autocvar_hud_panel_radar_zoommode

int autocvar_hud_panel_radar_zoommode

Definition at line 11 of file radar.qh.

Referenced by teamradar_loadcvars().