]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/util.qh
Merge branch 'master' into terencehill/menu_tooltips_2
[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 void loadTooltips();
20 void unloadTooltips();
21 string getZonedTooltipForIdentifier(string s);
22
23 string resolvemod(string m);
24
25 string HUD_Panel_GetSettingName(float setting);
26
27 float URI_GET_DISCARD = 0;
28
29 float URI_GET_UPDATENOTIFICATION = 1;
30 void UpdateNotification_URI_Get_Callback(float id, float status, string data);
31
32 float URI_GET_CURL = 2;
33 float URI_GET_CURL_END = 9;
34 void Curl_URI_Get_Callback(float id, float status, string data);
35
36 void URI_Get_Callback(float id, float status, string data);
37
38 // game type list box stuff (does not NEED to contain all game types, other
39 // types stay available via console)
40 float GameType_GetID(float cnt);
41 string GameType_GetName(float cnt);
42 float GameType_GetCount();
43
44 void dialog_hudpanel_common_notoggle(entity me, string panelname);
45 #define DIALOG_HUDPANEL_COMMON_NOTOGGLE() \
46         dialog_hudpanel_common_notoggle(me, panelname)
47 #define DIALOG_HUDPANEL_COMMON() \
48         me.TR(me); \
49                 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, strzone(strcat("hud_panel_", panelname)), _("Enable panel"))); \
50         DIALOG_HUDPANEL_COMMON_NOTOGGLE()
51
52 string language_filename(string s);
53 string CTX(string s);
54 #define ZCTX(s) strzone(CTX(s))