X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fdpdefs%2Fmenudefs.qc;h=11129f50c43790e91e280c3bfe518df01650ff84;hb=971eb36c4ccfde80cd46767b0c20e2d97350821e;hp=21093868ece7d0b93e290587c1c24637e0657368;hpb=d2aa2e833adeef6854046076d65472310ac9f542;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/dpdefs/menudefs.qc b/qcsrc/dpdefs/menudefs.qc index 21093868e..11129f50c 100644 --- a/qcsrc/dpdefs/menudefs.qc +++ b/qcsrc/dpdefs/menudefs.qc @@ -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 @@ -36,18 +37,6 @@ float FILE_READ = 0; float FILE_APPEND = 1; float FILE_WRITE = 2; -/////////////////////////// -// logical constants (just for completeness) - -float TRUE = 1; -float FALSE = 0; - -/////////////////////////// -// boolean constants - -float true = 1; -float false = 0; - /////////////////////////// // msg constants @@ -538,8 +527,8 @@ float(string s) tokenize_console = #514; float(float i) argv_start_index = #515; float(float i) argv_end_index = #516; string(float, float) getgamedirinfo = #626; -#define GETGAMEDIRINFO_NAME 0 -#define GETGAMEDIRINFO_DESCRIPTION 1 +const float GETGAMEDIRINFO_NAME = 0; +const float GETGAMEDIRINFO_DESCRIPTION = 1; float log(float f) = #532; string(string format, ...) sprintf = #627; string(string s) strdecolorize = #477; @@ -562,8 +551,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(void) = #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;