]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/util.qh
Merge remote-tracking branch 'origin/master' into samual/serverlist
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / util.qh
1 float GL_CheckExtension(string ext);
2 float GL_Have_TextureCompression();
3
4 void forAllDescendants(entity root, void(entity, entity) funcPre, void(entity, entity) funcPost, entity pass);
5 void saveAllCvars(entity root);
6 void loadAllCvars(entity root);
7
8 void makeMulti(entity me, string otherCvars);
9 string getCvarsMulti(entity me);
10 void makeCallback(entity me, entity cbent, void(entity, entity) cbfunc);
11
12 void setDependent(entity e, string theCvarName, float theCvarMin, float theCvarMax);
13 void setDependentAND(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max);
14 void setDependentOR(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max);
15 void setDependentAND3(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max, string theCvar3Name, float theCvar3Min, float theCvar3Max);
16 void setDependentStringNotEqual(entity e, string theCvarName, string theCvarValue);
17 void setDependentWeird(entity e, float(entity) func);
18
19 float tooltipdb;
20 void loadTooltips();
21 void unloadTooltips();
22 string getZonedTooltipForIdentifier(string s);
23
24 string resolvemod(string m);
25
26 void UpdateNotification_URI_Get_Callback(float id, float status, string data);
27
28 void URI_Get_Callback(float id, float status, string data);
29
30 // game type list box stuff (does not NEED to contain all game types, other
31 // types stay available via console)
32 float GameType_GetID(float cnt);
33 string GameType_GetName(float cnt);
34 string GameType_GetIcon(float cnt);
35 //string GameType_GetTeams(float cnt);
36 float GameType_GetCount();
37
38 void dialog_hudpanel_common_notoggle(entity me, string panelname);
39 #define DIALOG_HUDPANEL_COMMON_NOTOGGLE() \
40         dialog_hudpanel_common_notoggle(me, panelname)
41 #define DIALOG_HUDPANEL_COMMON() \
42         me.TR(me); \
43                 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, strzone(strcat("hud_panel_", panelname)), _("Enable panel"))); \
44         DIALOG_HUDPANEL_COMMON_NOTOGGLE()
45
46 string _Nex_ExtResponseSystem_BannedServers;
47 float _Nex_ExtResponseSystem_BannedServersNeedsRefresh;
48 string _Nex_ExtResponseSystem_RecommendedServers;
49 float _Nex_ExtResponseSystem_RecommendedServersNeedsRefresh;