]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/util.qh
Merge branch 'master' into terencehill/menu_quit_game
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / util.qh
1 #pragma once
2
3 float GL_CheckExtension(string ext);
4 float GL_Have_TextureCompression();
5
6 void forAllDescendants(entity root, void(entity, entity) funcPre, void(entity, entity) funcPost, entity pass);
7 void saveAllCvars(entity root);
8 void loadAllCvars(entity root);
9
10 void makeMulti(entity me, string otherCvars);
11 string getCvarsMulti(entity me);
12 void makeCallback(entity me, entity cbent, void(entity, entity) cbfunc);
13
14 void setDependent(entity e, string theCvarName, float theCvarMin, float theCvarMax);
15 void setDependentAND(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max);
16 void setDependentOR(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max);
17 void setDependentAND3(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max, string theCvar3Name, float theCvar3Min, float theCvar3Max);
18 void setDependentStringNotEqual(entity e, string theCvarName, string theCvarValue);
19 void setDependentWeird(entity e, float(entity) func);
20
21 void setZonedTooltip(entity e, string theTooltip, string theCvar);
22 void clearTooltip(entity e);
23
24 string resolvemod(string m);
25
26 float updateCompression();
27
28 void UpdateNotification_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 entity GameType_GetID(int cnt);
33 string GameType_GetName(int cnt);
34 string GameType_GetIcon(int cnt);
35 //string GameType_GetTeams(float cnt);
36 int GameType_GetCount();
37 int GameType_GetTotalCount();
38
39 void dialog_hudpanel_main_checkbox(entity me, string panelname);
40 void dialog_hudpanel_main_settings(entity me, string panelname);
41
42 void makeServerSingleplayer();
43 float getFadedAlpha(float currentAlpha, float startAlpha, float targetAlpha);
44
45 string _Nex_ExtResponseSystem_BannedServers;
46 float _Nex_ExtResponseSystem_BannedServersNeedsRefresh;
47 string _Nex_ExtResponseSystem_PromotedServers;
48 float _Nex_ExtResponseSystem_PromotedServersNeedsRefresh;
49 string _Nex_ExtResponseSystem_RecommendedServers;
50 float _Nex_ExtResponseSystem_RecommendedServersNeedsRefresh;
51 float _Nex_ExtResponseSystem_NewToS;
52
53 void CheckSendCvars(entity me, string cvarnamestring);