X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Futil.qh;h=bb5de1b5141e6769068fd473d3b9b63e8ead67d5;hp=22b748d55f2d4fa23d8e8850d804c1142389a562;hb=af2f0cb624aaf967708b22e1303d113668af5114;hpb=e57c3843ef1ed46b34808cb7f976f084d78f0aa8 diff --git a/qcsrc/menu/xonotic/util.qh b/qcsrc/menu/xonotic/util.qh index 22b748d55..bb5de1b51 100644 --- a/qcsrc/menu/xonotic/util.qh +++ b/qcsrc/menu/xonotic/util.qh @@ -1,5 +1,4 @@ -#ifndef MENU_UTIL_H -#define MENU_UTIL_H +#pragma once float GL_CheckExtension(string ext); float GL_Have_TextureCompression(); @@ -19,7 +18,8 @@ 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); -string getZonedTooltip(string theTooltip, string theCvar); +void setZonedTooltip(entity e, string theTooltip, string theCvar); +void clearTooltip(entity e); string resolvemod(string m); @@ -27,23 +27,20 @@ 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) -int GameType_GetID(int cnt); +entity GameType_GetID(int cnt); string GameType_GetName(int cnt); string GameType_GetIcon(int cnt); //string GameType_GetTeams(float cnt); int GameType_GetCount(); +int GameType_GetTotalCount(); + +void dialog_hudpanel_main_checkbox(entity me, string panelname); +void dialog_hudpanel_main_settings(entity me, string panelname); -void dialog_hudpanel_common_notoggle(entity me, string panelname); -#define DIALOG_HUDPANEL_COMMON_NOTOGGLE() \ - dialog_hudpanel_common_notoggle(me, panelname) -#define DIALOG_HUDPANEL_COMMON() \ - me.TR(me); \ - me.TD(me, 1, 4, e = makeXonoticCheckBox(0, strzone(strcat("hud_panel_", panelname)), _("Enable panel"))); \ - DIALOG_HUDPANEL_COMMON_NOTOGGLE() +bool isServerSingleplayer(); +void makeServerSingleplayer(); float getFadedAlpha(float currentAlpha, float startAlpha, float targetAlpha); @@ -53,6 +50,6 @@ string _Nex_ExtResponseSystem_PromotedServers; float _Nex_ExtResponseSystem_PromotedServersNeedsRefresh; string _Nex_ExtResponseSystem_RecommendedServers; float _Nex_ExtResponseSystem_RecommendedServersNeedsRefresh; +float _Nex_ExtResponseSystem_NewToS; void CheckSendCvars(entity me, string cvarnamestring); -#endif