]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - dpdefs/menudefs.qc
add precache_cubemap() builtin
[xonotic/darkplaces.git] / dpdefs / menudefs.qc
index 9216dea39dbb42fdac8e353ed0b8480c4b6df3cb..5520844f473449e3cae9b4d579d3d3d3ce87877c 100644 (file)
@@ -406,6 +406,10 @@ float      drawcharacter(vector position, float character, vector scale, vector rgb,
 
 float  drawstring(vector position, string text, vector scale, vector rgb, float alpha, float flag) = #455;
 
+float  drawcolorcodedstring(vector position, string text, vector scale, float alpha, float flag) = #467;
+
+vector drawcolorcodedstring2(vector position, string text, vector scale, vector rgb, float alpha, float flag) = #467;
 float  drawpic(vector position, string pic, vector size, vector rgb, float alpha, float flag) = #456;
 
 float  drawfill(vector position, vector size, vector rgb, float alpha, float flag) = #457;
@@ -431,8 +435,33 @@ void       callfunction(...) = #605;
 void   writetofile(float fhandle, entity ent) = #606;
 vector getresolution(float number) = #608;
 string keynumtostring(float keynum) = #609;
-string findkeysforcommand(string command) = #610;
 
 float  gethostcachevalue(float type) = #611;
 string gethostcachestring(float type, float hostnr) = #612;
 
+//DP_CSQC_BINDMAPS
+//idea: daemon, motorsep
+//darkplaces implementation: divVerent
+//builtin definitions:
+string(float key, float bindmap) getkeybind_bindmap = #342;
+float(float key, string bind, float bindmap) setkeybind_bindmap = #630;
+vector(void) getbindmaps = #631;
+float(vector bm) setbindmaps = #632;
+string(string command, float bindmap) findkeysforcommand = #610;
+float(string key) stringtokeynum = #341;
+//<also allowed builtin number to match EXT_CSQC> string(float keynum) keynumtostring = #340;
+//description: key bind setting/getting including support for switchable
+//bindmaps.
+
+//DP_CRYPTO
+//idea: divVerent
+//darkplaces implementation: divVerent
+//field definitions: (MENUQC)
+string(string serveraddress) crypto_getkeyfp = #633; // retrieves the cached host key's CA fingerprint of a server given by IP address
+string(string serveraddress) crypto_getidfp = #634; // retrieves the cached host key fingerprint of a server given by IP address
+string(string serveraddress) crypto_getencryptlevel = #635; // 0 if never encrypting, 1 supported, 2 requested, 3 required, appended by list of allowed methods in order of preference ("AES128"), preceded by a space each
+string(float i) crypto_getmykeyfp = #636; // retrieves the CA key fingerprint of a given CA slot, or "" if slot is unused but more to come, or string_null if end of list
+string(float i) crypto_getmyidfp = #637; // retrieves the ID fingerprint of a given CA slot, or "" if slot is unused but more to come, or string_null if end of list
+float(string url, float id, string content_type, string delim, float buf, float keyid) crypto_uri_postbuf = #513;
+//description:
+//use -1 as buffer handle to justs end delim as postdata