X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fserverlist.qh;h=77236e6d051d3590021ec1d35851e647053c850e;hb=ad328f3deda4a9825f27a878ca81dc7f339e6d30;hp=01b065df78b302d31d160590b7c76489ed19c189;hpb=565754a35f9e84a3b8e6eac08635ec27145b369a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/serverlist.qh b/qcsrc/menu/xonotic/serverlist.qh index 01b065df7..77236e6d0 100644 --- a/qcsrc/menu/xonotic/serverlist.qh +++ b/qcsrc/menu/xonotic/serverlist.qh @@ -37,6 +37,7 @@ CLASS(XonoticServerList, XonoticListBox) METHOD(XonoticServerList, setSortOrder, void(entity, float, float)); ATTRIB(XonoticServerList, filterShowEmpty, float, 1); ATTRIB(XonoticServerList, filterShowFull, float, 1); + ATTRIB(XonoticServerList, filterShowLaggy, float, 0); ATTRIB(XonoticServerList, filterString, string); ATTRIB(XonoticServerList, controlledTextbox, entity); ATTRIB(XonoticServerList, ipAddressBox, entity); @@ -71,11 +72,12 @@ ENDCLASS(XonoticServerList) entity makeXonoticServerList(); void RegisterSLCategories(); -float CheckCategoryForEntry(float entry); +float CategoryForEntry(float entry); void ServerList_Filter_Change(entity box, entity me); void ServerList_Categories_Click(entity box, entity me); void ServerList_ShowEmpty_Click(entity box, entity me); void ServerList_ShowFull_Click(entity box, entity me); +void ServerList_ShowLaggy_Click(entity box, entity me); void ServerList_Connect_Click(entity btn, entity me); void ServerList_Update_favoriteButton(entity btn, entity me); void ServerList_Favorite_Click(entity btn, entity me); @@ -108,6 +110,7 @@ float autocvar_menu_slist_categories; float autocvar_menu_slist_categories_onlyifmultiple; float autocvar_menu_slist_purethreshold; float autocvar_menu_slist_modimpurity; +float autocvar_menu_slist_maxping = 300; float autocvar_menu_slist_recommendations; float autocvar_menu_slist_recommendations_maxping; float autocvar_menu_slist_recommendations_minfreeslots; @@ -127,8 +130,8 @@ float IsServerInList(string list, string srv); entity RetrieveCategoryEnt(float catnum); -float CheckCategoryOverride(float cat); -float m_gethostcachecategory(float entry) { return CheckCategoryOverride(CheckCategoryForEntry(entry)); } +float CategoryOverride(float cat); +float m_gethostcachecategory(float entry) { return CategoryOverride(CategoryForEntry(entry)); } // fields for category entities