]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/util.qh
Add translation helpers to /lib
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / util.qh
index eacb19fe67e8f661d1ed7bc812746691eb351b52..2564a86ed4b724f69640797542b083109d1fd4c5 100644 (file)
@@ -1,36 +1,5 @@
 #ifndef MENU_UTIL_H
 #define MENU_UTIL_H
-#if defined(CSQC)
-#elif defined(MENUQC)
-       #include "../../common/util-pre.qh"
-    #include "../sys-pre.qh"
-    #include "../../dpdefs/menudefs.qh"
-    #include "../../dpdefs/keycodes.qh"
-    #include "../sys-post.qh"
-    #include "../config.qh"
-    #include "../../warpzonelib/mathlib.qh"
-    #include "../../common/util.qh"
-    #include "../../common/test.qh"
-    #include "../oo/base.qh"
-    #include "../../common/playerstats.qh"
-    #include "../../common/teams.qh"
-    #include "../../common/constants.qh"
-    #include "../../common/mapinfo.qh"
-    #include "../../common/campaign_common.qh"
-    #include "../../common/weapons/weapons.qh"
-    #include "../../common/counting.qh"
-    #include "../../common/command/markup.qh"
-    #include "../../common/command/rpn.qh"
-    #include "../../common/command/generic.qh"
-    #include "../../common/command/shared_defs.qh"
-    #include "../../common/urllib.qh"
-    #include "../../common/monsters/monsters.qh"
-    #include "../command/menu_cmd.qh"
-    #include "../menu.qh"
-    #include "../draw.qh"
-    #include "../skin.qh"
-#elif defined(SVQC)
-#endif
 
 float GL_CheckExtension(string ext);
 float GL_Have_TextureCompression();
@@ -50,24 +19,26 @@ void setDependentAND3(entity e, string theCvarName, float theCvarMin, float theC
 void setDependentStringNotEqual(entity e, string theCvarName, string theCvarValue);
 void setDependentWeird(entity e, float(entity) func);
 
-float tooltipdb;
+int tooltipdb;
 void loadTooltips();
 void unloadTooltips();
 string getZonedTooltipForIdentifier(string s);
 
 string resolvemod(string m);
 
+float updateCompression();
+
 void UpdateNotification_URI_Get_Callback(float id, float status, string data);
 
 void URI_Get_Callback(float id, float status, string data);
 
 // game type list box stuff (does not NEED to contain all game types, other
 // types stay available via console)
-float GameType_GetID(float cnt);
-string GameType_GetName(float cnt);
-string GameType_GetIcon(float cnt);
+int GameType_GetID(int cnt);
+string GameType_GetName(int cnt);
+string GameType_GetIcon(int cnt);
 //string GameType_GetTeams(float cnt);
-float GameType_GetCount();
+int GameType_GetCount();
 
 void dialog_hudpanel_common_notoggle(entity me, string panelname);
 #define DIALOG_HUDPANEL_COMMON_NOTOGGLE() \
@@ -77,6 +48,8 @@ void dialog_hudpanel_common_notoggle(entity me, string panelname);
                me.TD(me, 1, 4, e = makeXonoticCheckBox(0, strzone(strcat("hud_panel_", panelname)), _("Enable panel"))); \
        DIALOG_HUDPANEL_COMMON_NOTOGGLE()
 
+float getFadedAlpha(float currentAlpha, float startAlpha, float targetAlpha);
+
 string _Nex_ExtResponseSystem_BannedServers;
 float _Nex_ExtResponseSystem_BannedServersNeedsRefresh;
 string _Nex_ExtResponseSystem_PromotedServers;
@@ -85,4 +58,4 @@ string _Nex_ExtResponseSystem_RecommendedServers;
 float _Nex_ExtResponseSystem_RecommendedServersNeedsRefresh;
 
 void CheckSendCvars(entity me, string cvarnamestring);
-#endif
\ No newline at end of file
+#endif