]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/util.qh
Rename defs to qh
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / util.qh
1 #ifndef MENU_UTIL_H
2 #define MENU_UTIL_H
3 #if defined(CSQC)
4 #elif defined(MENUQC)
5         #include "../../common/util-pre.qh"
6     #include "../sys-pre.qh"
7     #include "../../dpdefs/menudefs.qh"
8     #include "../../dpdefs/keycodes.qh"
9     #include "../sys-post.qh"
10     #include "../config.qh"
11     #include "../../warpzonelib/mathlib.qh"
12     #include "../../common/util.qh"
13     #include "../../common/test.qh"
14     #include "../oo/base.qh"
15     #include "../../common/playerstats.qh"
16     #include "../../common/teams.qh"
17     #include "../../common/constants.qh"
18     #include "../../common/mapinfo.qh"
19     #include "../../common/campaign_common.qh"
20     #include "../../common/weapons/weapons.qh"
21     #include "../../common/counting.qh"
22     #include "../../common/command/markup.qh"
23     #include "../../common/command/rpn.qh"
24     #include "../../common/command/generic.qh"
25     #include "../../common/command/shared_defs.qh"
26     #include "../../common/urllib.qh"
27     #include "../../common/monsters/monsters.qh"
28     #include "../command/menu_cmd.qh"
29     #include "../menu.qh"
30     #include "../draw.qh"
31     #include "../skin.qh"
32 #elif defined(SVQC)
33 #endif
34
35 float GL_CheckExtension(string ext);
36 float GL_Have_TextureCompression();
37
38 void forAllDescendants(entity root, void(entity, entity) funcPre, void(entity, entity) funcPost, entity pass);
39 void saveAllCvars(entity root);
40 void loadAllCvars(entity root);
41
42 void makeMulti(entity me, string otherCvars);
43 string getCvarsMulti(entity me);
44 void makeCallback(entity me, entity cbent, void(entity, entity) cbfunc);
45
46 void setDependent(entity e, string theCvarName, float theCvarMin, float theCvarMax);
47 void setDependentAND(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max);
48 void setDependentOR(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max);
49 void setDependentAND3(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max, string theCvar3Name, float theCvar3Min, float theCvar3Max);
50 void setDependentStringNotEqual(entity e, string theCvarName, string theCvarValue);
51 void setDependentWeird(entity e, float(entity) func);
52
53 float tooltipdb;
54 void loadTooltips();
55 void unloadTooltips();
56 string getZonedTooltipForIdentifier(string s);
57
58 string resolvemod(string m);
59
60 void UpdateNotification_URI_Get_Callback(float id, float status, string data);
61
62 void URI_Get_Callback(float id, float status, string data);
63
64 // game type list box stuff (does not NEED to contain all game types, other
65 // types stay available via console)
66 float GameType_GetID(float cnt);
67 string GameType_GetName(float cnt);
68 string GameType_GetIcon(float cnt);
69 //string GameType_GetTeams(float cnt);
70 float GameType_GetCount();
71
72 void dialog_hudpanel_common_notoggle(entity me, string panelname);
73 #define DIALOG_HUDPANEL_COMMON_NOTOGGLE() \
74         dialog_hudpanel_common_notoggle(me, panelname)
75 #define DIALOG_HUDPANEL_COMMON() \
76         me.TR(me); \
77                 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, strzone(strcat("hud_panel_", panelname)), _("Enable panel"))); \
78         DIALOG_HUDPANEL_COMMON_NOTOGGLE()
79
80 string _Nex_ExtResponseSystem_BannedServers;
81 float _Nex_ExtResponseSystem_BannedServersNeedsRefresh;
82 string _Nex_ExtResponseSystem_PromotedServers;
83 float _Nex_ExtResponseSystem_PromotedServersNeedsRefresh;
84 string _Nex_ExtResponseSystem_RecommendedServers;
85 float _Nex_ExtResponseSystem_RecommendedServersNeedsRefresh;
86
87 void CheckSendCvars(entity me, string cvarnamestring);
88 #endif