X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Futil.qh;h=c8c7410d6ebbda9f91b6f79127992a53a315262f;hp=ace912dc21394bbcde6a5a6e9398eb443eecbd7a;hb=2886ed5676755f4242704d64d3315124026496bb;hpb=26c8963b7747f4c53fc541df0dd71b7024d1d496 diff --git a/qcsrc/menu/xonotic/util.qh b/qcsrc/menu/xonotic/util.qh index ace912dc2..c8c7410d6 100644 --- a/qcsrc/menu/xonotic/util.qh +++ b/qcsrc/menu/xonotic/util.qh @@ -1,8 +1,12 @@ +float GL_CheckExtension(string ext); +float GL_Have_TextureCompression(); + void forAllDescendants(entity root, void(entity, entity) funcPre, void(entity, entity) funcPost, entity pass); 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); @@ -12,7 +16,6 @@ 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; void loadTooltips(); void unloadTooltips(); string getZonedTooltipForIdentifier(string s); @@ -31,3 +34,21 @@ 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(); + +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() + +string language_filename(string s); +string CTX(string s); +#define ZCTX(s) strzone(CTX(s))