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

Go to the source code of this file.

Functions

void HUD_Quickmenu_PlayerListEntries (string cmd, int teamplayers, bool without_me)
 
void QuickMenu_Close ()
 
void QuickMenu_Default (string submenu)
 
bool QuickMenu_InputEvent (float bInputType, float nPrimary, float nSecondary)
 
bool QuickMenu_IsOpened ()
 
void QuickMenu_Mouse ()
 
bool QuickMenu_Open (string mode, string submenu, string file)
 
float QuickMenu_Page_Load (string target_submenu, float new_page)
 

Variables

float autocvar_hud_panel_quickmenu_align
 
string autocvar_hud_panel_quickmenu_file
 
float autocvar_hud_panel_quickmenu_time
 
float autocvar_hud_panel_quickmenu_translatecommands
 

Function Documentation

◆ HUD_Quickmenu_PlayerListEntries()

void HUD_Quickmenu_PlayerListEntries ( string  cmd,
int  teamplayers,
bool  without_me 
)

Definition at line 761 of file quickmenu.qc.

References entity(), NUM_SPECTATOR, player_localnum, players, QUICKMENU_ENTRY, strcat(), TC, and team_count.

Referenced by HUD_Quickmenu_PlayerListEntries_Create().

762 {
763  TC(int, teamplayers); TC(bool, without_me);
764  entity pl;
765  if(teamplayers && !team_count)
766  return;
767 
768  for(pl = players.sort_next; pl; pl = pl.sort_next)
769  {
770  if(teamplayers == 1 && (pl.team != myteam || pl.team == NUM_SPECTATOR)) // only own team players
771  continue;
772  if(teamplayers == 2 && (pl.team == myteam || pl.team == NUM_SPECTATOR)) // only enemy team players
773  continue;
774  if(without_me && pl.sv_entnum == player_localnum)
775  continue;
776  QUICKMENU_ENTRY(strcat("^7", entcs_GetName(pl.sv_entnum)), sprintf(cmd, entcs_GetName(pl.sv_entnum)))
777  }
778 
779  return;
780 }
const int NUM_SPECTATOR
Definition: teams.qh:23
entity() spawn
#define QUICKMENU_ENTRY(title, command)
Definition: quickmenu.qc:721
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
#define TC(T, sym)
Definition: _all.inc:82
entity players
Definition: main.qh:43
float team_count
Definition: main.qh:45
float player_localnum
Definition: csprogsdefs.qc:20
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QuickMenu_Close()

void QuickMenu_Close ( )

Definition at line 216 of file quickmenu.qc.

References mouseClicked, prevMouseClicked, QuickMenu_Buffer_Close(), QuickMenu_CurrentSubMenu, QUICKMENU_MAXLINES, QuickMenu_Page_ClearEntry(), QuickMenu_Page_Entries, and strfree.

Referenced by HUD_QuickMenu(), LocalCommand_hud(), QuickMenu_InputEvent(), QuickMenu_Mouse(), and QuickMenu_Page_Load().

217 {
219  int i;
220  for (i = 0; i < QUICKMENU_MAXLINES; ++i)
223  mouseClicked = 0;
224  prevMouseClicked = 0;
226 }
int prevMouseClicked
Definition: hud_config.qh:13
int QuickMenu_Page_Entries
Definition: quickmenu.qc:23
int mouseClicked
Definition: hud_config.qh:12
void QuickMenu_Buffer_Close()
Definition: quickmenu.qc:206
void QuickMenu_Page_ClearEntry(int i)
Definition: quickmenu.qc:62
string QuickMenu_CurrentSubMenu
Definition: quickmenu.qc:36
const int QUICKMENU_MAXLINES
Definition: quickmenu.qc:18
#define strfree(this)
Definition: string.qh:56
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QuickMenu_Default()

void QuickMenu_Default ( string  submenu)

Definition at line 788 of file quickmenu.qc.

References QUICKMENU_BUFFER_MAXENTRIES, QuickMenu_Buffer_Size, and QUICKMENU_SMENU.

Referenced by QuickMenu_Open().

789 {
790  bool target_submenu_found = false;
791  if(target_submenu != "")
792  QuickMenu_Buffer_Size = QUICKMENU_BUFFER_MAXENTRIES; // forbids load of next entries until target_submenu
793 
794  string tc_title;
795  string tc_cmd;
796 
797  QUICKMENU_SMENU(_("Chat"), "Chat")
798  QUICKMENU_SMENU_PL(CTX(_("QMCMD^Send public message to")), "Send public message to", "commandmode say %s:^7", 0, 1)
799  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^nice one")), "say %s", ":-) / nice one", CTX(_("QMCMD^:-) / nice one")))
800  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^good game")), "say %s", "good game", CTX(_("QMCMD^good game")))
801  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^hi / good luck")), "say %s", "hi / good luck and have fun", CTX(_("QMCMD^hi / good luck and have fun")))
802  if(prvm_language != "en")
803  QUICKMENU_ENTRY(CTX(_("QMCMD^Send in English")), "toggle hud_panel_quickmenu_translatecommands 0 1; quickmenu; wait; quickmenu default Chat")
804  QUICKMENU_SMENU(_("Chat"), "Chat")
805 
806  if(teamplay)
807  {
808  QUICKMENU_SMENU(CTX(_("QMCMD^Team chat")), "Team chat")
809  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^strength soon")), "say_team %s", "strength soon", CTX(_("QMCMD^strength soon")))
810  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^free item, icon")), "say_team %s; g_waypointsprite_team_here_p", "free item %x^7 (l:%y^7)", CTX(_("QMCMD^free item %x^7 (l:%y^7)")))
811  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^took item, icon")), "say_team %s; g_waypointsprite_team_here", "took item (l:%l^7)", CTX(_("QMCMD^took item (l:%l^7)")))
812  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^negative")), "say_team %s", "negative", CTX(_("QMCMD^negative")))
813  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^positive")), "say_team %s", "positive", CTX(_("QMCMD^positive")))
814  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^need help, icon")), "say_team %s; g_waypointsprite_team_helpme; cmd voice needhelp", "need help (l:%l^7) (h:%h^7 a:%a^7 w:%w^7)", CTX(_("QMCMD^need help (l:%l^7) (h:%h^7 a:%a^7 w:%w^7)")))
815  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^enemy seen, icon")), "say_team %s; g_waypointsprite_team_danger_p; cmd voice incoming", "enemy seen (l:%y^7)", CTX(_("QMCMD^enemy seen (l:%y^7)")))
816  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^flag seen, icon")), "say_team %s; g_waypointsprite_team_here_p; cmd voice seenflag", "flag seen (l:%y^7)", CTX(_("QMCMD^flag seen (l:%y^7)")))
817  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^defending, icon")), "say_team %s; g_waypointsprite_team_here", "defending (l:%l^7) (h:%h^7 a:%a^7 w:%w^7)", CTX(_("QMCMD^defending (l:%l^7) (h:%h^7 a:%a^7 w:%w^7)")))
818  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^roaming, icon")), "say_team %s; g_waypointsprite_team_here", "roaming (l:%l^7) (h:%h^7 a:%a^7 w:%w^7)", CTX(_("QMCMD^roaming (l:%l^7) (h:%h^7 a:%a^7 w:%w^7)")))
819  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^attacking, icon")), "say_team %s; g_waypointsprite_team_here", "attacking (l:%l^7) (h:%h^7 a:%a^7 w:%w^7)", CTX(_("QMCMD^attacking (l:%l^7) (h:%h^7 a:%a^7 w:%w^7)")))
820  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^killed flagcarrier, icon")), "say_team %s; g_waypointsprite_team_here_p", "killed flagcarrier (l:%y^7)", CTX(_("QMCMD^killed flagcarrier (l:%y^7)")))
821  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^dropped flag, icon")), "say_team %s; g_waypointsprite_team_here_d", "dropped flag (l:%d^7)", CTX(_("QMCMD^dropped flag (l:%d^7)")))
822  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^drop weapon, icon")), "say_team %s; g_waypointsprite_team_here; wait; dropweapon", "dropped gun %w^7 (l:%l^7)", CTX(_("QMCMD^dropped weapon %w^7 (l:%l^7)")))
823  QUICKMENU_ENTRY_TC(CTX(_("QMCMD^drop flag/key, icon")), "say_team %s; g_waypointsprite_team_here; wait; use", "dropped flag/key %w^7 (l:%l^7)", CTX(_("QMCMD^dropped flag/key %w^7 (l:%l^7)")))
824  QUICKMENU_SMENU(CTX(_("QMCMD^Team chat")), "Team chat")
825  }
826 
827  QUICKMENU_SMENU_PL(CTX(_("QMCMD^Send private message to")), "Send private message to", "commandmode tell \"%s^7\"", 0, 1)
828 
829  QUICKMENU_SMENU(CTX(_("QMCMD^Settings")), "Settings")
830  QUICKMENU_SMENU(CTX(_("QMCMD^View/HUD settings")), "View/HUD settings")
831  QUICKMENU_ENTRY(CTX(_("QMCMD^3rd person view")), "toggle chase_active")
832  QUICKMENU_ENTRY(CTX(_("QMCMD^Player models like mine")), "toggle cl_forceplayermodels")
833  QUICKMENU_ENTRY(CTX(_("QMCMD^Names above players")), "toggle hud_shownames")
834  QUICKMENU_ENTRY(CTX(_("QMCMD^Crosshair per weapon")), "toggle crosshair_per_weapon")
835  QUICKMENU_ENTRY(CTX(_("QMCMD^FPS")), "toggle hud_panel_engineinfo")
836  QUICKMENU_ENTRY(CTX(_("QMCMD^Net graph")), "toggle shownetgraph")
837  QUICKMENU_SMENU(CTX(_("QMCMD^View/HUD settings")), "View/HUD settings")
838 
839  QUICKMENU_SMENU(CTX(_("QMCMD^Sound settings")), "Sound settings")
840  QUICKMENU_ENTRY(CTX(_("QMCMD^Hit sound")), "toggle cl_hitsound")
841  QUICKMENU_ENTRY(CTX(_("QMCMD^Chat sound")), "toggle con_chatsound")
842  QUICKMENU_SMENU(CTX(_("QMCMD^Sound settings")), "Sound settings")
843 
844  if(spectatee_status > 0)
845  {
846  QUICKMENU_ENTRY(CTX(_("QMCMD^Change spectator camera")), "dropweapon")
847  }
848 
849  if(spectatee_status == -1)
850  {
851  QUICKMENU_SMENU(CTX(_("QMCMD^Observer camera")), "Observer camera")
852  QUICKMENU_ENTRY(CTX(_("QMCMD^Increase speed")), "weapnext")
853  QUICKMENU_ENTRY(CTX(_("QMCMD^Decrease speed")), "weapprev")
854  QUICKMENU_ENTRY(CTX(_("QMCMD^Wall collision")), "toggle cl_clippedspectating")
855  QUICKMENU_SMENU(CTX(_("QMCMD^Observer camera")), "Observer camera")
856  }
857 
858  QUICKMENU_ENTRY(CTX(_("QMCMD^Fullscreen")), "toggle vid_fullscreen; vid_restart")
859  QUICKMENU_SMENU(CTX(_("QMCMD^Settings")), "Settings")
860 
861  QUICKMENU_SMENU(CTX(_("QMCMD^Call a vote")), "Call a vote")
862  QUICKMENU_ENTRY(CTX(_("QMCMD^Restart the map")), "vcall restart")
863  QUICKMENU_ENTRY(CTX(_("QMCMD^End match")), "vcall endmatch")
864  if(STAT(TIMELIMIT) > 0)
865  {
866  QUICKMENU_ENTRY(CTX(_("QMCMD^Reduce match time")), "vcall reducematchtime")
867  QUICKMENU_ENTRY(CTX(_("QMCMD^Extend match time")), "vcall extendmatchtime")
868  }
869  if(teamplay)
870  QUICKMENU_ENTRY(CTX(_("QMCMD^Shuffle teams")), "vcall shuffleteams")
871  QUICKMENU_SMENU(CTX(_("QMCMD^Call a vote")), "Call a vote")
872 
873  if(spectatee_status != 0)
874  {
875  QUICKMENU_SMENU_PL(CTX(_("QMCMD^Spectate a player")), "Spectate a player", "spectate \"%s^7\"", 0, 1)
876  }
877 
878  if(target_submenu != "" && !target_submenu_found)
879  {
880  LOG_INFOF("Couldn't find submenu \"%s\"", target_submenu);
881  if(prvm_language != "en")
882  LOG_INFO("^3Warning: submenu title must be in English");
884  }
885 }
float speed
Definition: subs.qh:41
float strength
Definition: impulse.qh:13
int QuickMenu_Buffer_Size
Definition: quickmenu.qc:34
entity to
Definition: self.qh:96
#define QUICKMENU_ENTRY(title, command)
Definition: quickmenu.qc:721
void shuffleteams()
Definition: sv_cmd.qc:1245
entity teams
Definition: main.qh:44
#define QUICKMENU_SMENU_PL(submenu, eng_submenu, command, teamplayers, without_me)
Definition: quickmenu.qc:731
#define QUICKMENU_ENTRY_TC(title, command, text, translated_text)
Definition: quickmenu.qc:745
entity enemy
Definition: sv_ctf.qh:143
float weapon
Definition: progsdefs.qc:139
#define LOG_INFOF(...)
Definition: log.qh:71
float wait
Definition: subs.qh:39
string message
Definition: powerups.qc:19
#define LOG_INFO(...)
Definition: log.qh:70
Definition: sound.qh:119
float teamplay
Definition: progsdefs.qc:31
#define QUICKMENU_SMENU(submenu, eng_submenu)
Definition: quickmenu.qc:709
entity players
Definition: main.qh:43
float spectatee_status
Definition: main.qh:166
string prvm_language
Definition: i18n.qh:8
ERASEABLE string CTX(string s)
Definition: i18n.qh:45
#define use
Definition: csprogsdefs.qh:50
#define sound(e, c, s, v, a)
Definition: sound.qh:52
if(IS_DEAD(this))
Definition: impulse.qc:92
float time
Definition: csprogsdefs.qc:16
const int QUICKMENU_BUFFER_MAXENTRIES
Definition: quickmenu.qc:32
+ Here is the caller graph for this function:

◆ QuickMenu_InputEvent()

bool QuickMenu_InputEvent ( float  bInputType,
float  nPrimary,
float  nSecondary 
)

◆ QuickMenu_IsOpened()

bool QuickMenu_IsOpened ( )

Definition at line 244 of file quickmenu.qc.

References QuickMenu_Page_Entries.

Referenced by HUD_QuickMenu(), and QuickMenu_InputEvent().

245 {
246  return (QuickMenu_Page_Entries > 0);
247 }
int QuickMenu_Page_Entries
Definition: quickmenu.qc:23
+ Here is the caller graph for this function:

◆ QuickMenu_Mouse()

void QuickMenu_Mouse ( )

Definition at line 497 of file quickmenu.qc.

References color, drawfill(), DRAWFLAG_NORMAL, entry_num_prev, floor(), HUD_PANEL, HUD_Panel_LoadCvars(), hudShiftState, min(), mouseClicked, mousepos, mv_active, panel, panel_bg_padding, panel_pos, panel_size, prevMouseClicked, QuickMenu_Close(), QuickMenu_IsLastPage, QUICKMENU_MAXLINES, QuickMenu_Page_ActivatedEntry_Time, QuickMenu_Page_ActiveEntry(), QuickMenu_Page_Entries, QuickMenu_TimeOut_Set(), S_CTRL, S_MOUSE1, S_MOUSE2, time, vec2, and vector().

Referenced by HUD_Mouse().

498 {
499  if(mv_active) return;
500 
501  if(!mouseClicked)
503  {
504  QuickMenu_Close();
505  return;
506  }
507 
508  panel = HUD_PANEL(QUICKMENU);
510 
511  if(panel_bg_padding)
512  {
513  panel_pos += '1 1 0' * panel_bg_padding;
514  panel_size -= '2 2 0' * panel_bg_padding;
515  }
516 
517  float first_entry_pos, entries_height;
518  vector fontsize;
519  fontsize = '1 1 0' * (panel_size.y / QUICKMENU_MAXLINES);
520  first_entry_pos = panel_pos.y + ((QUICKMENU_MAXLINES - QuickMenu_Page_Entries) * fontsize.y) / 2;
521  entries_height = panel_size.y - ((QUICKMENU_MAXLINES - QuickMenu_Page_Entries) * fontsize.y);
522 
523  if (mousepos.x >= panel_pos.x && mousepos.y >= first_entry_pos && mousepos.x <= panel_pos.x + panel_size.x && mousepos.y <= first_entry_pos + entries_height)
524  {
525  int entry_num = min(QuickMenu_Page_Entries - 1, floor((mousepos.y - first_entry_pos) / fontsize.y));
526  if (entry_num != entry_num_prev)
527  {
529  entry_num_prev = entry_num;
530  }
531  if (QuickMenu_IsLastPage || entry_num != QUICKMENU_MAXLINES - 2)
532  {
534  QuickMenu_Page_ActiveEntry((entry_num < QUICKMENU_MAXLINES - 1) ? entry_num + 1 : 0);
535 
537  {
538  vector entry_pos = panel_pos;
539  entry_pos.y = first_entry_pos + entry_num * fontsize.y;
540  vector color;
541  if (mouseClicked & S_MOUSE1)
542  color = '0.5 1 0.5';
543  else if (hudShiftState & S_CTRL)
544  color = '1 1 0.3';
545  else
546  color = '1 1 1';
547  drawfill(entry_pos, vec2(panel_size.x, fontsize.y), color, .2, DRAWFLAG_NORMAL);
548  }
549  }
550  }
551 }
vector color
void QuickMenu_TimeOut_Set()
Definition: quickmenu.qc:48
int prevMouseClicked
Definition: hud_config.qh:13
int QuickMenu_Page_Entries
Definition: quickmenu.qc:23
int entry_num_prev
Definition: quickmenu.qc:496
vector panel_size
Definition: hud.qh:160
float QuickMenu_Page_ActivatedEntry_Time
Definition: quickmenu.qc:27
float mv_active
Definition: mapvoting.qh:19
int mouseClicked
Definition: hud_config.qh:12
int hudShiftState
Definition: hud.qh:126
const float DRAWFLAG_NORMAL
Definition: csprogsdefs.qc:317
entity panel
Definition: hud.qh:144
vector panel_pos
Definition: hud.qh:159
bool QuickMenu_IsLastPage
Definition: quickmenu.qc:28
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void QuickMenu_Close()
Definition: quickmenu.qc:216
const int QUICKMENU_MAXLINES
Definition: quickmenu.qc:18
vector mousepos
Definition: hud.qh:102
#define vec2(...)
Definition: vector.qh:90
const int S_MOUSE2
Definition: hud_config.qh:10
const int S_MOUSE1
Definition: hud_config.qh:9
const int S_CTRL
Definition: hud.qh:128
float time
Definition: csprogsdefs.qc:16
#define HUD_PANEL(NAME)
Definition: hud.qh:51
void QuickMenu_Page_ActiveEntry(int entry_num)
Definition: quickmenu.qc:415
void HUD_Panel_LoadCvars()
Definition: hud.qc:216
float panel_bg_padding
Definition: hud.qh:171
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QuickMenu_Open()

bool QuickMenu_Open ( string  mode,
string  submenu,
string  file 
)

Definition at line 79 of file quickmenu.qc.

References argv(), buf_create, fclose(), fgets(), FILE_READ, fopen(), ftos(), HUD_QuickMenu_Forbidden(), hudShiftState, localcmd, LOG_INFO, LOG_INFOF, LOG_WARNF, mouseClicked, QM_TAG_COMMAND, QM_TAG_PLCOMMAND, QM_TAG_SUBMENU, QM_TAG_TITLE, QuickMenu_Buffer, QUICKMENU_BUFFER_MAXENTRIES, QuickMenu_Buffer_Set, QuickMenu_Buffer_Size, QuickMenu_Default(), QuickMenu_Page_Load(), QuickMenu_TimeOut, QuickMenu_TimeOut_Set(), strcat(), and tokenize_console.

Referenced by LocalCommand_hud().

80 {
83  return false;
84 
85  int fh = -1;
86  string s;
87 
88  if(mode == "")
89  {
90  if(file == "" || file == "0")
91  mode = "default";
92  else
93  mode = "file";
94  }
95 
96  if(mode == "file")
97  {
98  if(file == "" || file == "0")
99  LOG_INFO("No file name is set in hud_panel_quickmenu_file, loading default quickmenu");
100  else
101  {
102  fh = fopen(file, FILE_READ);
103  if(fh < 0)
104  LOG_INFOF("Couldn't open file \"%s\", loading default quickmenu", file);
105  }
106  if(fh < 0)
107  mode = "default";
108  }
109 
110  if(mode == "default")
111  {
113  if(QuickMenu_Buffer < 0)
114  return false;
115 
116  QuickMenu_Default(submenu);
117  }
118  else if(mode == "file")
119  {
121  if(QuickMenu_Buffer < 0)
122  {
123  fclose(fh);
124  return false;
125  }
126 
129  {
130  // first skip invalid entries, so we don't check them anymore
131  int argc;
132  argc = tokenize_console(s);
133  if(argc == 0 || argv(0) == "")
134  continue;
135  if(argc == 1)
137  else if(argc == 2)
138  {
139  if(argv(1) == "")
140  continue;
144  }
145  else if(argc == 3)
146  {
147  // check for special keywords
148  float teamplayers = 0, without_me = 0;
149  switch(argv(2))
150  {
151  case "ALLPLAYERS_BUT_ME": without_me = 1; // fall through
152  case "ALLPLAYERS": teamplayers = 0; break;
153  case "OWNTEAMPLAYERS_BUT_ME": without_me = 1; // fall through
154  case "OWNTEAMPLAYERS": teamplayers = 1; break;
155  case "ENEMYTEAMPLAYERS": teamplayers = 2; break;
156  default: continue;
157  }
158 
160  {
163  QuickMenu_Buffer_Set(QM_TAG_TITLE, strcat(ftos(teamplayers), ftos(without_me))); // put PLCOMMAND arguments in the title string
168  }
169  }
171  }
172  fclose(fh);
173  }
174  else
175  {
176  LOG_WARNF("Unrecognized mode %s", mode);
177  return false;
178  }
179 
180  if (QuickMenu_Buffer_Size <= 0)
181  {
182  buf_del(QuickMenu_Buffer);
183  QuickMenu_Buffer = -1;
184  return false;
185  }
186 
187  if(mode == "file")
188  QuickMenu_Page_Load(submenu, 0);
189  else
190  QuickMenu_Page_Load("", 0);
191 
192  mouseClicked = 0;
193  hudShiftState = 0;
194 
195  // we must unset the player's buttons, as they aren't released elsewhere
196  localcmd("-fire\n");
197  localcmd("-fire2\n");
198  localcmd("-use\n");
199  localcmd("-hook\n");
200  localcmd("-jump\n");
201 
203  return true;
204 }
void QuickMenu_TimeOut_Set()
Definition: quickmenu.qc:48
bool QuickMenu_Page_Load(string target_submenu, bool new_page)
Definition: quickmenu.qc:274
#define QM_TAG_SUBMENU
Definition: quickmenu.qc:41
int QuickMenu_Buffer_Size
Definition: quickmenu.qc:34
int QuickMenu_Buffer
Definition: quickmenu.qc:33
const float FILE_READ
Definition: csprogsdefs.qc:231
#define QuickMenu_Buffer_Set(tag, string)
Definition: quickmenu.qc:45
#define QM_TAG_PLCOMMAND
Definition: quickmenu.qc:43
float QuickMenu_TimeOut
Definition: quickmenu.qc:37
int mouseClicked
Definition: hud_config.qh:12
#define LOG_WARNF(...)
Definition: log.qh:67
#define buf_create
Definition: dpextensions.qh:63
int hudShiftState
Definition: hud.qh:126
#define LOG_INFOF(...)
Definition: log.qh:71
#define QM_TAG_COMMAND
Definition: quickmenu.qc:42
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
bool HUD_QuickMenu_Forbidden()
Definition: quickmenu.qc:70
#define LOG_INFO(...)
Definition: log.qh:70
#define QM_TAG_TITLE
Definition: quickmenu.qc:40
#define tokenize_console
Definition: dpextensions.qh:24
void QuickMenu_Default(string target_submenu)
Definition: quickmenu.qc:788
const int QUICKMENU_BUFFER_MAXENTRIES
Definition: quickmenu.qc:32
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QuickMenu_Page_Load()

float QuickMenu_Page_Load ( string  target_submenu,
float  new_page 
)

Variable Documentation

◆ autocvar_hud_panel_quickmenu_align

float autocvar_hud_panel_quickmenu_align

Definition at line 5 of file quickmenu.qh.

Referenced by HUD_Quickmenu_DrawEntry().

◆ autocvar_hud_panel_quickmenu_file

string autocvar_hud_panel_quickmenu_file

Definition at line 7 of file quickmenu.qh.

Referenced by LocalCommand_hud().

◆ autocvar_hud_panel_quickmenu_time

float autocvar_hud_panel_quickmenu_time

Definition at line 8 of file quickmenu.qh.

Referenced by QuickMenu_TimeOut_Set().

◆ autocvar_hud_panel_quickmenu_translatecommands

float autocvar_hud_panel_quickmenu_translatecommands

Definition at line 6 of file quickmenu.qh.