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