5 #include "../../common/util-pre.qh"
6 #include "../sys-pre.qh"
7 #include "../../dpdefs/menudefs.qc"
8 #include "../../dpdefs/keycodes.qc"
9 #include "../sys-post.qh"
10 #include "../config.qh"
11 #include "../../warpzonelib/mathlib.qh"
12 #include "../../common/util.qh"
13 #include "../../common/test.qh"
14 #include "../oo/base.qh"
15 #include "../../common/playerstats.qh"
16 #include "../../common/teams.qh"
17 #include "../../common/constants.qh"
18 #include "../../common/mapinfo.qh"
19 #include "../../common/campaign_common.qh"
20 #include "../../common/weapons/weapons.qh"
21 #include "../../common/counting.qh"
22 #include "../../common/command/markup.qh"
23 #include "../../common/command/rpn.qh"
24 #include "../../common/command/generic.qh"
25 #include "../../common/command/shared_defs.qh"
26 #include "../../common/urllib.qh"
27 #include "../../common/monsters/monsters.qh"
28 #include "../command/menu_cmd.qh"
35 float GL_CheckExtension(string ext);
36 float GL_Have_TextureCompression();
38 void forAllDescendants(entity root, void(entity, entity) funcPre, void(entity, entity) funcPost, entity pass);
39 void saveAllCvars(entity root);
40 void loadAllCvars(entity root);
42 void makeMulti(entity me, string otherCvars);
43 string getCvarsMulti(entity me);
44 void makeCallback(entity me, entity cbent, void(entity, entity) cbfunc);
46 void setDependent(entity e, string theCvarName, float theCvarMin, float theCvarMax);
47 void setDependentAND(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max);
48 void setDependentOR(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max);
49 void setDependentAND3(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max, string theCvar3Name, float theCvar3Min, float theCvar3Max);
50 void setDependentStringNotEqual(entity e, string theCvarName, string theCvarValue);
51 void setDependentWeird(entity e, float(entity) func);
55 void unloadTooltips();
56 string getZonedTooltipForIdentifier(string s);
58 string resolvemod(string m);
60 void UpdateNotification_URI_Get_Callback(float id, float status, string data);
62 void URI_Get_Callback(float id, float status, string data);
64 // game type list box stuff (does not NEED to contain all game types, other
65 // types stay available via console)
66 float GameType_GetID(float cnt);
67 string GameType_GetName(float cnt);
68 string GameType_GetIcon(float cnt);
69 //string GameType_GetTeams(float cnt);
70 float GameType_GetCount();
72 void dialog_hudpanel_common_notoggle(entity me, string panelname);
73 #define DIALOG_HUDPANEL_COMMON_NOTOGGLE() \
74 dialog_hudpanel_common_notoggle(me, panelname)
75 #define DIALOG_HUDPANEL_COMMON() \
77 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, strzone(strcat("hud_panel_", panelname)), _("Enable panel"))); \
78 DIALOG_HUDPANEL_COMMON_NOTOGGLE()
80 string _Nex_ExtResponseSystem_BannedServers;
81 float _Nex_ExtResponseSystem_BannedServersNeedsRefresh;
82 string _Nex_ExtResponseSystem_PromotedServers;
83 float _Nex_ExtResponseSystem_PromotedServersNeedsRefresh;
84 string _Nex_ExtResponseSystem_RecommendedServers;
85 float _Nex_ExtResponseSystem_RecommendedServersNeedsRefresh;
87 void CheckSendCvars(entity me, string cvarnamestring);