1 float GL_CheckExtension(string ext);
2 float GL_Have_TextureCompression();
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);
8 void makeMulti(entity me, string otherCvars);
9 void makeCallback(entity me, entity cbent, void(entity, entity) cbfunc);
11 void setDependent(entity e, string theCvarName, float theCvarMin, float theCvarMax);
12 void setDependentAND(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max);
13 void setDependentOR(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max);
14 void setDependentAND3(entity e, string theCvarName, float theCvarMin, float theCvarMax, string theCvar2Name, float theCvar2Min, float theCvar2Max, string theCvar3Name, float theCvar3Min, float theCvar3Max);
15 void setDependentStringNotEqual(entity e, string theCvarName, string theCvarValue);
16 void setDependentWeird(entity e, float(entity) func);
20 void unloadTooltips();
21 string getZonedTooltipForIdentifier(string s);
23 string resolvemod(string m);
25 string HUD_Panel_GetSettingName(float setting);
27 float URI_GET_DISCARD = 0;
29 float URI_GET_UPDATENOTIFICATION = 1;
30 void UpdateNotification_URI_Get_Callback(float id, float status, string data);
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);
36 void URI_Get_Callback(float id, float status, string data);
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();
44 #define DIALOG_HUDPANEL_COMMON_NOTOGGLE() \
46 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Background:"))); \
47 me.TD(me, 1, 1.6, e = makeXonoticTextSlider(strzone(strcat("hud_panel_", panelname, "_bg")))); \
48 e.addValue(e, _("Default"), ""); \
49 e.addValue(e, _("Disable"), "0"); \
50 e.addValue(e, strzone(strcat("border_", panelname)), strzone(strcat("border_", panelname))); \
51 e.configureXonoticTextSliderValues(e); \
53 me.TDempty(me, 0.2); \
54 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Color:"))); \
55 me.TD(me, 2, 2.4, e = makeXonoticColorpickerString(strzone(strcat("hud_panel_", panelname, "_bg_color")), "hud_panel_bg_color")); \
56 setDependentStringNotEqual(e, strzone(strcat("hud_panel_", panelname, "_bg_color")), ""); \
58 me.TDempty(me, 0.2); \
59 me.TD(me, 1, 1.2, e = makeXonoticCheckBoxString("", "1 1 1", strzone(strcat("hud_panel_", panelname, "_bg_color")), _("Use default"))); \
61 me.TDempty(me, 0.2); \
62 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Border size:"))); \
63 me.TD(me, 1, 2.6, e = makeXonoticTextSlider(strzone(strcat("hud_panel_", panelname, "_bg_border")))); \
64 e.addValue(e, _("Default"), ""); \
65 e.addValue(e, _("Disable"), "0"); \
66 for(i = 1; i <= 10; ++i) \
67 e.addValue(e, strzone(ftos_decimals(i * 2, 0)), strzone(ftos(i * 2))); \
68 e.configureXonoticTextSliderValues(e); \
70 me.TDempty(me, 0.2); \
71 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Alpha:"))); \
72 me.TD(me, 1, 2.6, e = makeXonoticTextSlider(strzone(strcat("hud_panel_", panelname, "_bg_alpha")))); \
73 e.addValue(e, _("Default"), ""); \
74 for(i = 1; i <= 10; ++i) \
75 e.addValue(e, strzone(ftos_decimals(i/10, 1)), strzone(ftos(i/10))); \
76 e.configureXonoticTextSliderValues(e); \
78 me.TDempty(me, 0.2); \
79 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Team Color:"))); \
80 me.TD(me, 1, 2.6, e = makeXonoticTextSlider(strzone(strcat("hud_panel_", panelname, "_bg_color_team")))); \
81 e.addValue(e, _("Default"), ""); \
82 e.addValue(e, _("Disable"), "0"); \
83 for(i = 1; i <= 10; ++i) \
84 e.addValue(e, strzone(ftos_decimals(i/10, 1)), strzone(ftos(i/10))); \
85 e.configureXonoticTextSliderValues(e); \
87 me.TDempty(me, 0.4); \
88 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_configure_teamcolorforced", _("Test the team color in HUD configure mode"))); \
90 me.TDempty(me, 0.2); \
91 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Padding:"))); \
92 me.TD(me, 1, 2.6, e = makeXonoticTextSlider(strzone(strcat("hud_panel_", panelname, "_bg_padding")))); \
93 e.addValue(e, _("Default"), ""); \
94 for(i = 0; i <= 10; ++i) \
95 e.addValue(e, strzone(ftos_decimals(i - 5, 0)), strzone(ftos(i - 5))); \
96 e.configureXonoticTextSliderValues(e)
97 #define DIALOG_HUDPANEL_COMMON() \
99 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, strzone(strcat("hud_panel_", hudpanel)), _("Enable panel"))); \
100 DIALOG_HUDPANEL_COMMON_NOTOGGLE()
102 string language_filename(string s);