Xonotic
util.qh
Go to the documentation of this file.
1 #pragma once
2 
3 float GL_CheckExtension(string ext);
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)
33 string GameType_GetName(int cnt);
34 string GameType_GetIcon(int cnt);
35 //string GameType_GetTeams(float cnt);
36 int GameType_GetCount();
38 
39 void dialog_hudpanel_main_checkbox(entity me, string panelname);
40 void dialog_hudpanel_main_settings(entity me, string panelname);
41 
42 float getFadedAlpha(float currentAlpha, float startAlpha, float targetAlpha);
43 
51 
52 void CheckSendCvars(entity me, string cvarnamestring);
entity() spawn
float cnt
Definition: powerups.qc:24
#define pass(name, colormin, colormax)