]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
sync dpdefs
authorRudolf Polzer <divverent@xonotic.org>
Thu, 10 Oct 2013 17:14:28 +0000 (19:14 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 10 Oct 2013 17:14:28 +0000 (19:14 +0200)
qcsrc/dpdefs/menudefs.qc
qcsrc/menu/xonotic/serverlist.c

index 52deeb12ad7ec4a297a109add9bb3d32a2220df3..1f817cd2029de82d68bba5731993800a9d778ea0 100644 (file)
@@ -18,6 +18,7 @@ void(float keynr, float ascii) m_keydown;
 void(float width, float height) m_draw;
 void(float mode) m_toggle;
 void() m_shutdown;
+// optional: float(float) m_gethostcachecategory;
 
 /////////////////////////////////////////////////////////
 // sys constants
@@ -561,8 +562,11 @@ void       resethostcachemasks(void) = #615;
 void   sethostcachemaskstring(float mask, float fld, string str, float op) = #616;
 void   sethostcachemasknumber(float mask, float fld, float num, float op) = #617;
 void   resorthostcache(void) = #618;
-void   sethostcachesort(float fld, float descending) = #619;
-void   refreshhostcache(float do_reset) = #620;
+float SLSF_DESCENDING = 1;
+float SLSF_FAVORITES = 2;
+float SLSF_CATEGORIES = 4;
+void   sethostcachesort(float fld, float slsf) = #619;
+void   refreshhostcache(...) = #620;  // optional boolean argument "clear_list"
 float  gethostcachenumber(float fld, float hostnr) = #621;
 float  gethostcacheindexforkey(string key) = #622;
 void   addwantedhostcachekey(string key) = #623;
index cabaae539e0b6ef020d3a490b0bd5a09bf496b9e..181cd696dee478bc1ded8ef8f8e072256b055635 100644 (file)
@@ -89,11 +89,6 @@ var string autocvar_menu_slist_recommended = "76.124.107.5:26004";
 SLIST_FIELDS
 #undef SLIST_FIELD
 
-// sort flags
-const float SLSF_DESCENDING = 1;
-const float SLSF_FAVORITES = 2;
-const float SLSF_CATEGORIES = 4;
-
 const float REFRESHSERVERLIST_RESORT = 0;    // sort the server list again to update for changes to e.g. favorite status, categories
 const float REFRESHSERVERLIST_REFILTER = 1;  // ..., also update filter and sort criteria
 const float REFRESHSERVERLIST_ASK = 2;       // ..., also suggest querying servers now