X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Futil.qh;h=e7cd1028c046ba9660c4df1d94fc52dfe2bda5be;hp=3371dd8114637a90a4735b7204c7e59d87047e08;hb=20387ff9f8cef7536362de05c76cc0062416a64c;hpb=451c0fbf5473c6acc88bafaa0e9c14e5afd3764e diff --git a/qcsrc/menu/xonotic/util.qh b/qcsrc/menu/xonotic/util.qh index 3371dd8114..e7cd1028c0 100644 --- a/qcsrc/menu/xonotic/util.qh +++ b/qcsrc/menu/xonotic/util.qh @@ -1,3 +1,6 @@ +#ifndef MENU_UTIL_H +#define MENU_UTIL_H + float GL_CheckExtension(string ext); float GL_Have_TextureCompression(); @@ -16,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() \ @@ -43,9 +48,14 @@ 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 getHighlightAlpha(float baseAlpha, float highlightedTime); + string _Nex_ExtResponseSystem_BannedServers; float _Nex_ExtResponseSystem_BannedServersNeedsRefresh; string _Nex_ExtResponseSystem_PromotedServers; float _Nex_ExtResponseSystem_PromotedServersNeedsRefresh; string _Nex_ExtResponseSystem_RecommendedServers; float _Nex_ExtResponseSystem_RecommendedServersNeedsRefresh; + +void CheckSendCvars(entity me, string cvarnamestring); +#endif