Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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

string autocvar__hud_panel_quickmenu_file_from_server
float autocvar_hud_panel_quickmenu_align
string autocvar_hud_panel_quickmenu_file
bool autocvar_hud_panel_quickmenu_server_is_default
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 803 of file quickmenu.qc.

804{
805 TC(int, teamplayers); TC(bool, without_me);
806 if (teamplayers && !team_count)
807 return;
808
810 for (entity pl = players.sort_next; pl; pl = pl.sort_next)
811 {
812 if (teamplayers == 1 && (pl.team != myteam || pl.team == NUM_SPECTATOR)) // only own team players
813 continue;
814 if (teamplayers == 2 && (pl.team == myteam || pl.team == NUM_SPECTATOR)) // only enemy team players
815 continue;
816 if (without_me && pl.sv_entnum == player_localnum)
817 continue;
818 QUICKMENU_ENTRY(strcat("^7", entcs_GetName(pl.sv_entnum)), sprintf(cmd, entcs_GetName(pl.sv_entnum)))
819 }
820
821 return;
822}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity players
Definition main.qh:57
float team_count
Definition main.qh:59
float player_localnum
string entcs_GetName(int i)
Definition ent_cs.qh:151
#define TC(T, sym)
Definition _all.inc:82
void cmd(string command,...)
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
#define QUICKMENU_ENTRY(title, command)
Definition quickmenu.qc:68
void Scoreboard_UpdatePlayerTeams()
int myteam
Definition teams.qh:60
const int NUM_SPECTATOR
Definition teams.qh:23

References cmd(), entcs_GetName(), entity(), myteam, NUM_SPECTATOR, player_localnum, players, QUICKMENU_ENTRY, Scoreboard_UpdatePlayerTeams(), strcat(), TC, and team_count.

Referenced by HUD_Quickmenu_PlayerListEntries_Create().

◆ QuickMenu_Close()

void QuickMenu_Close ( )

Definition at line 263 of file quickmenu.qc.

264{
266 for (int i = 0; i < QUICKMENU_MAXLINES; ++i)
269 mouseClicked = 0;
272}
int prevMouseClicked
Definition hud_config.qh:14
int mouseClicked
Definition hud_config.qh:13
int QuickMenu_Page_Entries
Definition quickmenu.qc:24
const int QUICKMENU_MAXLINES
Definition quickmenu.qc:19
void QuickMenu_Page_ClearEntry(int i)
Definition quickmenu.qc:88
void QuickMenu_Buffer_Close()
Definition quickmenu.qc:253
string QuickMenu_CurrentSubMenu
Definition quickmenu.qc:37
#define strfree(this)
Definition string.qh:59

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().

◆ QuickMenu_Default()

void QuickMenu_Default ( string submenu)

Definition at line 830 of file quickmenu.qc.

831{
832 bool target_submenu_found = false;
833 if (target_submenu != "")
834 QuickMenu_Buffer_Size = QUICKMENU_BUFFER_MAXENTRIES; // forbids load of next entries until target_submenu
835
836 string tc_title;
837 string tc_cmd;
838
839 QUICKMENU_SMENU(_("Chat"), "Chat")
840 QUICKMENU_SMENU_PL(CTX(_("QMCMD^Send public message to")), "Send public message to", "commandmode say %s:^7", 0, 1)
841 QUICKMENU_ENTRY_TC(CTX(_("QMCMD^nice one")), "say %s", ":-) / nice one", CTX(_("QMCMD^:-) / nice one")))
842 QUICKMENU_ENTRY_TC(CTX(_("QMCMD^good game")), "say %s", "good game", CTX(_("QMCMD^good game")))
843 QUICKMENU_ENTRY_TC(CTX(_("QMCMD^hi / good luck")), "say %s", "hi / good luck and have fun", CTX(_("QMCMD^hi / good luck and have fun")))
844 if (prvm_language != "en")
845 QUICKMENU_ENTRY(CTX(_("QMCMD^Send in English")), "toggle hud_panel_quickmenu_translatecommands 0 1; quickmenu; wait; quickmenu default Chat")
846 QUICKMENU_SMENU(_("Chat"), "Chat")
847
848 if (teamplay)
849 {
850 QUICKMENU_SMENU(CTX(_("QMCMD^Team chat")), "Team chat")
851 QUICKMENU_ENTRY_TC(CTX(_("QMCMD^strength soon")), "say_team %s", "strength soon", CTX(_("QMCMD^strength soon")))
852 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)")))
853 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)")))
854 QUICKMENU_ENTRY_TC(CTX(_("QMCMD^negative")), "say_team %s", "negative", CTX(_("QMCMD^negative")))
855 QUICKMENU_ENTRY_TC(CTX(_("QMCMD^positive")), "say_team %s", "positive", CTX(_("QMCMD^positive")))
856 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)")))
857 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)")))
858 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)")))
859 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)")))
860 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)")))
861 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)")))
862 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)")))
863 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)")))
864 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)")))
865 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)")))
866 QUICKMENU_SMENU(CTX(_("QMCMD^Team chat")), "Team chat")
867 }
868
869 QUICKMENU_SMENU_PL(CTX(_("QMCMD^Send private message to")), "Send private message to", "commandmode tell \"%s^7\"", 0, 1)
870
871 QUICKMENU_SMENU(CTX(_("QMCMD^Settings")), "Settings")
872 QUICKMENU_SMENU(CTX(_("QMCMD^View/HUD settings")), "View/HUD settings")
873 QUICKMENU_ENTRY(CTX(_("QMCMD^3rd person view")), "toggle chase_active")
874 QUICKMENU_ENTRY(CTX(_("QMCMD^Player models like mine")), "toggle cl_forceplayermodels")
875 QUICKMENU_ENTRY(CTX(_("QMCMD^Names above players")), "toggle hud_shownames")
876 QUICKMENU_ENTRY(CTX(_("QMCMD^Crosshair per weapon")), "toggle crosshair_per_weapon")
877 QUICKMENU_ENTRY(CTX(_("QMCMD^FPS")), "toggle hud_panel_engineinfo")
878 QUICKMENU_ENTRY(CTX(_("QMCMD^Net graph")), "toggle shownetgraph")
879 QUICKMENU_SMENU(CTX(_("QMCMD^View/HUD settings")), "View/HUD settings")
880
881 QUICKMENU_SMENU(CTX(_("QMCMD^Sound settings")), "Sound settings")
882 QUICKMENU_ENTRY(CTX(_("QMCMD^Hit sound")), "toggle cl_hitsound")
883 QUICKMENU_ENTRY(CTX(_("QMCMD^Chat sound")), "toggle con_chatsound")
884 QUICKMENU_SMENU(CTX(_("QMCMD^Sound settings")), "Sound settings")
885
886 if (spectatee_status > 0)
887 {
888 QUICKMENU_ENTRY_TAG(CTX(_("QMCMD^Change spectator camera")), "dropweapon", QM_TAG_KCOMMAND)
889 }
890 else if (spectatee_status == -1)
891 {
892 QUICKMENU_SMENU(CTX(_("QMCMD^Observer camera")), "Observer camera")
893 QUICKMENU_ENTRY_TAG(CTX(_("QMCMD^Increase speed")), "weapnext", QM_TAG_KCOMMAND)
894 QUICKMENU_ENTRY_TAG(CTX(_("QMCMD^Decrease speed")), "weapprev", QM_TAG_KCOMMAND)
895 QUICKMENU_ENTRY(CTX(_("QMCMD^Wall collision")), "toggle cl_clippedspectating")
896 QUICKMENU_SMENU(CTX(_("QMCMD^Observer camera")), "Observer camera")
897 }
898
899 QUICKMENU_ENTRY(CTX(_("QMCMD^Fullscreen")), "toggle vid_fullscreen; vid_restart")
900 QUICKMENU_SMENU(CTX(_("QMCMD^Settings")), "Settings")
901
902 QUICKMENU_SMENU(CTX(_("QMCMD^Call a vote")), "Call a vote")
903 QUICKMENU_ENTRY(CTX(_("QMCMD^Restart the map")), "vcall restart")
904 QUICKMENU_ENTRY(CTX(_("QMCMD^End match")), "vcall endmatch")
905 if (STAT(TIMELIMIT) > 0)
906 {
907 QUICKMENU_ENTRY(CTX(_("QMCMD^Reduce match time")), "vcall reducematchtime")
908 QUICKMENU_ENTRY(CTX(_("QMCMD^Extend match time")), "vcall extendmatchtime")
909 }
910 if (teamplay)
911 QUICKMENU_ENTRY(CTX(_("QMCMD^Shuffle teams")), "vcall shuffleteams")
912 QUICKMENU_SMENU(CTX(_("QMCMD^Call a vote")), "Call a vote")
913
915 {
916 string entry_name = _("Server quick menu");
918 entry_name = _("Waypoint editor menu");
919 QUICKMENU_ENTRY_SPECIAL(entry_name, "quickmenu; wait; quickmenu \"\" \"\" $_hud_panel_quickmenu_file_from_server")
921 entry_name = _("Waypoint editor menu as default");
922 else
923 entry_name = _("Server quick menu as default");
924 QUICKMENU_ENTRY(entry_name, "toggle hud_panel_quickmenu_server_is_default")
925 }
926
927 if (spectatee_status != 0)
928 {
929 QUICKMENU_SMENU_PL(CTX(_("QMCMD^Spectate a player")), "Spectate a player", "spectate \"%s^7\"", 0, 1)
930 }
931
932 if (target_submenu != "" && !target_submenu_found)
933 {
934 LOG_INFOF("Couldn't find submenu \"%s\"", target_submenu);
935 if (prvm_language != "en")
936 LOG_INFO("^3Warning: submenu title must be in English");
938 }
939}
int spectatee_status
the -1 disables HUD panels before CSQC receives necessary data
Definition main.qh:197
ERASEABLE string CTX(string s)
Definition i18n.qh:45
string prvm_language
Definition i18n.qh:8
#define STAT(...)
Definition stats.qh:82
#define LOG_INFO(...)
Definition log.qh:65
#define LOG_INFOF(...)
Definition log.qh:66
#define QUICKMENU_ENTRY_TAG(title, command, tag)
Definition quickmenu.qc:66
const string QM_TAG_KCOMMAND
Definition quickmenu.qc:44
int QuickMenu_Buffer_Size
Definition quickmenu.qc:35
const int QUICKMENU_BUFFER_MAXENTRIES
Definition quickmenu.qc:33
#define QUICKMENU_ENTRY_TC(title, command, text, translated_text)
Definition quickmenu.qc:784
#define QUICKMENU_SMENU_PL(submenu, eng_submenu, command, teamplayers, without_me)
Definition quickmenu.qc:769
#define QUICKMENU_ENTRY_SPECIAL(title, command)
Definition quickmenu.qc:71
#define QUICKMENU_SMENU(submenu, eng_submenu)
Definition quickmenu.qc:756
string autocvar__hud_panel_quickmenu_file_from_server
Definition quickmenu.qh:10
if(frag_attacker.flagcarried)
Definition sv_ctf.qc:2325
bool teamplay
Definition teams.qh:59

References autocvar__hud_panel_quickmenu_file_from_server, CTX(), LOG_INFO, LOG_INFOF, prvm_language, QM_TAG_KCOMMAND, QUICKMENU_BUFFER_MAXENTRIES, QuickMenu_Buffer_Size, QUICKMENU_ENTRY, QUICKMENU_ENTRY_SPECIAL, QUICKMENU_ENTRY_TAG, QUICKMENU_ENTRY_TC, QUICKMENU_SMENU, QUICKMENU_SMENU_PL, spectatee_status, STAT, and teamplay.

Referenced by QuickMenu_Open().

◆ QuickMenu_InputEvent()

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

◆ QuickMenu_IsOpened()

bool QuickMenu_IsOpened ( )

Definition at line 291 of file quickmenu.qc.

292{
293 return QuickMenu_Page_Entries > 0;
294}

Referenced by HUD_QuickMenu(), and QuickMenu_InputEvent().

◆ QuickMenu_Mouse()

void QuickMenu_Mouse ( )

Definition at line 546 of file quickmenu.qc.

547{
548 if (mv_active)
549 return;
550
552 {
554 return;
555 }
556
557 panel = HUD_PANEL(QUICKMENU);
559
561 {
562 panel_pos += '1 1 0' * panel_bg_padding;
563 panel_size -= '2 2 0' * panel_bg_padding;
564 }
565
566 vector fontsize = '1 1 0' * (panel_size.y / QUICKMENU_MAXLINES);
567 float first_entry_pos = panel_pos.y + ((QUICKMENU_MAXLINES - QuickMenu_Page_Entries) * fontsize.y) * 0.5;
568 float entries_height = panel_size.y - ((QUICKMENU_MAXLINES - QuickMenu_Page_Entries) * fontsize.y);
569
570 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)
571 {
572 int entry_num = min(QuickMenu_Page_Entries - 1, floor((mousepos.y - first_entry_pos) / fontsize.y));
573 if (entry_num != entry_num_prev)
574 {
576 entry_num_prev = entry_num;
577 }
578 if (QuickMenu_IsLastPage || entry_num != QUICKMENU_MAXLINES - 2)
579 {
581 QuickMenu_Page_ActiveEntry((entry_num < QUICKMENU_MAXLINES - 1) ? entry_num + 1 : 0);
582
584 {
585 vector entry_pos = panel_pos;
586 entry_pos.y = first_entry_pos + entry_num * fontsize.y;
589 color = '0.5 1 0.5';
590 else if (hudShiftState & S_CTRL)
591 color = '1 1 0.3';
592 else
593 color = '1 1 1';
594 drawfill(entry_pos, vec2(panel_size.x, fontsize.y), color, 0.2, DRAWFLAG_NORMAL);
595 }
596 }
597 }
598}
#define drawfill(position, size, rgb, alpha, flag)
Definition draw.qh:36
bool mv_active
Definition mapvoting.qh:19
const float DRAWFLAG_NORMAL
float time
vector color
Definition dynlight.qc:15
void HUD_Panel_LoadCvars()
Definition hud.qc:215
vector panel_size
Definition hud.qh:163
#define HUD_PANEL(NAME)
Definition hud.qh:52
int hudShiftState
Definition hud.qh:128
float panel_bg_padding
Definition hud.qh:174
vector panel_pos
Definition hud.qh:162
vector mousepos
Definition hud.qh:103
entity panel
Definition hud.qh:147
const int S_CTRL
Definition hud.qh:130
const int S_MOUSE1
Definition hud_config.qh:10
const int S_MOUSE2
Definition hud_config.qh:11
float min(float f,...)
float floor(float f)
void QuickMenu_Page_ActiveEntry(int entry_num)
Definition quickmenu.qc:473
void QuickMenu_TimeOut_Set()
Definition quickmenu.qc:74
float QuickMenu_Page_ActivatedEntry_Time
Definition quickmenu.qc:28
int entry_num_prev
Definition quickmenu.qc:545
void QuickMenu_Close()
Definition quickmenu.qc:263
bool QuickMenu_IsLastPage
Definition quickmenu.qc:29
vector
Definition self.qh:92
#define vec2(...)
Definition vector.qh:90

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().

◆ QuickMenu_Open()

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

Definition at line 107 of file quickmenu.qc.

108{
111 return false;
112
113 int fh = -1;
114
115 if (mode == "")
116 {
117 if (file == "" || file == "0")
118 mode = "default";
119 else
120 mode = "file";
121 }
122
123 if (mode == "default")
124 {
126 {
127 mode = "file";
129 }
130 }
131
132 if (mode == "file")
133 {
134 if (file == "" || file == "0")
135 LOG_INFO("No file name is set in hud_panel_quickmenu_file, loading default quickmenu");
136 else
137 {
138 fh = fopen(file, FILE_READ);
139 if (fh < 0)
140 LOG_INFOF("Couldn't open file \"%s\", loading default quickmenu", file);
141 }
142 if (fh < 0)
143 mode = "default";
144 }
145
146 if (mode == "default")
147 {
149 if (QuickMenu_Buffer < 0)
150 return false;
151
152 QuickMenu_Default(submenu);
153 }
154 else if (mode == "file")
155 {
157 if (QuickMenu_Buffer < 0)
158 {
159 fclose(fh);
160 return false;
161 }
162
164 string s;
166 {
167 // first skip invalid entries, so we don't check them anymore
168 int argc;
169 argc = tokenize_console(s);
170 if (argc == 0 || argv(0) == "")
171 continue;
172 if (argc == 1)
174 else if (argc == 2)
175 {
176 if (argv(1) == "")
177 continue;
181 }
182 else if (argc == 3 && argv(2) == "KEEP_OPEN")
183 {
184 if (argv(1) == "")
185 continue;
189 }
190 else if (argc == 3)
191 {
192 // check for special keywords
193 float teamplayers = 0, without_me = 0;
194 switch (argv(2))
195 {
196 case "ALLPLAYERS_BUT_ME": without_me = 1; // fall through
197 case "ALLPLAYERS": teamplayers = 0; break;
198 case "OWNTEAMPLAYERS_BUT_ME": without_me = 1; // fall through
199 case "OWNTEAMPLAYERS": teamplayers = 1; break;
200 case "ENEMYTEAMPLAYERS": teamplayers = 2; break;
201 default: continue;
202 }
203
205 {
208 QuickMenu_Buffer_Set(QM_TAG_TITLE, strcat(ftos(teamplayers), ftos(without_me))); // put PLCOMMAND arguments in the title string
213 }
214 }
216 }
217 fclose(fh);
218
219 // forcedly add this entry
221 {
222 string prev_value = cvar_string("hud_panel_quickmenu_server_is_default");
223 QUICKMENU_ENTRY_SPECIAL(_("Standard quick menu"), sprintf("hud_panel_quickmenu_server_is_default 0; quickmenu; wait; quickmenu; wait; hud_panel_quickmenu_server_is_default \"%s\"", prev_value))
224 }
225 }
226 else
227 {
228 LOG_WARNF("Unrecognized mode %s", mode);
229 return false;
230 }
231
232 if (QuickMenu_Buffer_Size <= 0)
233 {
234 buf_del(QuickMenu_Buffer);
235 QuickMenu_Buffer = -1;
236 return false;
237 }
238
239 if (mode == "file")
240 QuickMenu_Page_Load(submenu, 0);
241 else
242 QuickMenu_Page_Load("", 0);
243
244 mouseClicked = 0;
245 hudShiftState = 0;
246
248
250 return true;
251}
void Release_Common_Keys()
Definition main.qc:477
const float FILE_READ
#define tokenize_console
#define buf_create
#define LOG_WARNF(...)
Definition log.qh:62
string fgets(float fhandle)
void fclose(float fhandle)
float fopen(string filename, float mode)
const string cvar_string(string name)
string ftos(float f)
string argv(float n)
float QuickMenu_TimeOut
Definition quickmenu.qc:38
#define QuickMenu_Buffer_Set(tag, string)
Definition quickmenu.qc:52
int QuickMenu_Buffer
Definition quickmenu.qc:34
const string QM_TAG_SUBMENU
Definition quickmenu.qc:42
bool QuickMenu_Page_Load(string target_submenu, bool new_page)
Definition quickmenu.qc:320
const string QM_TAG_TITLE
Definition quickmenu.qc:41
const string QM_TAG_PLCOMMAND
Definition quickmenu.qc:45
void QuickMenu_Default(string target_submenu)
Definition quickmenu.qc:830
bool HUD_QuickMenu_Forbidden()
Definition quickmenu.qc:96
const string QM_TAG_COMMAND
Definition quickmenu.qc:43
bool autocvar_hud_panel_quickmenu_server_is_default
Definition quickmenu.qh:9

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

Referenced by LocalCommand_hud().

◆ QuickMenu_Page_Load()

float QuickMenu_Page_Load ( string target_submenu,
float new_page )

References cmd().

Variable Documentation

◆ autocvar__hud_panel_quickmenu_file_from_server

string autocvar__hud_panel_quickmenu_file_from_server

Definition at line 10 of file quickmenu.qh.

Referenced by QuickMenu_Default(), and QuickMenu_Open().

◆ 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_server_is_default

bool autocvar_hud_panel_quickmenu_server_is_default

Definition at line 9 of file quickmenu.qh.

Referenced by QuickMenu_Open().

◆ 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.