X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Futil.qh;h=f880c2f474d48c13674c347a1772bba7f6cdc80d;hb=1a90cd40e2050abaf5fb3838eee64e7ad6f887e9;hp=0d31f0150a6208b0ec1a3e33e8e67b36297b753d;hpb=a2aac26e6d660e5e70e65d7639a669bced3de9e2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/util.qh b/qcsrc/menu/xonotic/util.qh index 0d31f0150..f880c2f47 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(); @@ -6,6 +9,7 @@ void saveAllCvars(entity root); void loadAllCvars(entity root); void makeMulti(entity me, string otherCvars); +string getCvarsMulti(entity me); void makeCallback(entity me, entity cbent, void(entity, entity) cbfunc); void setDependent(entity e, string theCvarName, float theCvarMin, float theCvarMax); @@ -15,31 +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); -string HUD_Panel_GetSettingName(float setting); - -float URI_GET_DISCARD = 0; +float updateCompression(); -float URI_GET_UPDATENOTIFICATION = 1; void UpdateNotification_URI_Get_Callback(float id, float status, string data); -float URI_GET_CURL = 2; -float URI_GET_CURL_END = 9; -void Curl_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); -float GameType_GetCount(); +int GameType_GetID(int cnt); +string GameType_GetName(int cnt); +string GameType_GetIcon(int cnt); +//string GameType_GetTeams(float cnt); +int GameType_GetCount(); void dialog_hudpanel_common_notoggle(entity me, string panelname); #define DIALOG_HUDPANEL_COMMON_NOTOGGLE() \ @@ -48,3 +47,15 @@ void dialog_hudpanel_common_notoggle(entity me, string panelname); me.TR(me); \ me.TD(me, 1, 4, e = makeXonoticCheckBox(0, strzone(strcat("hud_panel_", panelname)), _("Enable panel"))); \ DIALOG_HUDPANEL_COMMON_NOTOGGLE() + +float getHighlightAlpha(float startAlpha, float targetAlpha, 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