88 #define SLIST_FIELDS \ 89 SLIST_FIELD(CNAME, "cname") \ 90 SLIST_FIELD(PING, "ping") \ 91 SLIST_FIELD(GAME, "game") \ 92 SLIST_FIELD(MOD, "mod") \ 93 SLIST_FIELD(MAP, "map") \ 94 SLIST_FIELD(NAME, "name") \ 95 SLIST_FIELD(MAXPLAYERS, "maxplayers") \ 96 SLIST_FIELD(NUMPLAYERS, "numplayers") \ 97 SLIST_FIELD(NUMHUMANS, "numhumans") \ 98 SLIST_FIELD(NUMBOTS, "numbots") \ 99 SLIST_FIELD(PROTOCOL, "protocol") \ 100 SLIST_FIELD(FREESLOTS, "freeslots") \ 101 SLIST_FIELD(PLAYERS, "players") \ 102 SLIST_FIELD(QCSTATUS, "qcstatus") \ 103 SLIST_FIELD(CATEGORY, "category") \ 104 SLIST_FIELD(ISFAVORITE, "isfavorite") 106 #define SLIST_FIELD(suffix,name) float SLIST_FIELD_##suffix; 152 #define SLIST_CATEGORIES \ 153 SLIST_CATEGORY(CAT_FAVORITED, "", "", CTX(_("SLCAT^Favorites"))) \ 154 SLIST_CATEGORY(CAT_RECOMMENDED, "", "", CTX(_("SLCAT^Recommended"))) \ 155 SLIST_CATEGORY(CAT_NORMAL, "", "CAT_SERVERS", CTX(_("SLCAT^Normal Servers"))) \ 156 SLIST_CATEGORY(CAT_SERVERS, "CAT_NORMAL", "CAT_SERVERS", CTX(_("SLCAT^Servers"))) \ 157 SLIST_CATEGORY(CAT_XPM, "CAT_NORMAL", "CAT_SERVERS", CTX(_("SLCAT^Competitive Mode"))) \ 158 SLIST_CATEGORY(CAT_MODIFIED, "", "CAT_SERVERS", CTX(_("SLCAT^Modified Servers"))) \ 159 SLIST_CATEGORY(CAT_OVERKILL, "", "CAT_SERVERS", CTX(_("SLCAT^Overkill"))) \ 160 SLIST_CATEGORY(CAT_INSTAGIB, "", "CAT_SERVERS", CTX(_("SLCAT^InstaGib"))) \ 161 SLIST_CATEGORY(CAT_DEFRAG, "", "CAT_SERVERS", CTX(_("SLCAT^Defrag Mode"))) 163 #define SLIST_CATEGORY_AUTOCVAR(name) autocvar_menu_slist_categories_##name##_override 164 #define SLIST_CATEGORY(name,enoverride,dioverride,str) \ 166 string SLIST_CATEGORY_AUTOCVAR(name) = enoverride; 168 #undef SLIST_CATEGORY
float autocvar_menu_slist_recommendations_purethreshold
float CategoryOverride(float cat)
float m_gethostcachecategory(float entry)
void ServerList_Info_Click(entity btn, entity me)
int category_item[MAX_CATEGORIES]
float autocvar_menu_slist_recommendations_minfreeslots
const float REFRESHSERVERLIST_RESET
SLIST_FIELDS float autocvar_menu_slist_categories
string cat_enoverride_string
const float REFRESHSERVERLIST_RESORT
entity makeXonoticServerList()
#define METHOD(cname, name, prototype)
void ServerList_Update_favoriteButton(entity btn, entity me)
float autocvar_menu_slist_categories_onlyifmultiple
float autocvar_menu_slist_modimpurity
float IsServerInList(string list, string srv)
float autocvar_menu_slist_purethreshold
const float REFRESHSERVERLIST_REFILTER
void ServerList_Categories_Click(entity box, entity me)
void RegisterSLCategories()
float autocvar_menu_slist_recommendations
float autocvar_menu_slist_recommendations_minhumans
float autocvar_menu_slist_maxping
void ServerList_ShowLaggy_Click(entity box, entity me)
void ServerList_Favorite_Click(entity btn, entity me)
entity RetrieveCategoryEnt(float catnum)
float CategoryForEntry(float entry)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void ServerList_Filter_Change(entity box, entity me)
string cat_dioverride_string
entity categories[MAX_CATEGORIES]
const float REFRESHSERVERLIST_ASK
void ServerList_ShowFull_Click(entity box, entity me)
void ServerList_ShowEmpty_Click(entity box, entity me)
float autocvar_menu_slist_recommendations_maxping
int category_name[MAX_CATEGORIES]
void ServerList_Connect_Click(entity btn, entity me)