Xonotic
|
#include "listbox.qh"
Go to the source code of this file.
Classes | |
class | XonoticServerList |
Macros | |
#define | SLIST_CATEGORIES |
#define | SLIST_CATEGORY(name, enoverride, dioverride, str) |
#define | SLIST_CATEGORY_AUTOCVAR(name) autocvar_menu_slist_categories_##name##_override |
#define | SLIST_FIELD(suffix, name) float SLIST_FIELD_##suffix; |
#define | SLIST_FIELDS |
Functions | |
float | CategoryForEntry (float entry) |
float | CategoryOverride (float cat) |
float | IsServerInList (string list, string srv) |
float | m_gethostcachecategory (float entry) |
entity | makeXonoticServerList () |
void | RegisterSLCategories () |
entity | RetrieveCategoryEnt (float catnum) |
void | ServerList_Categories_Click (entity box, entity me) |
void | ServerList_Connect_Click (entity btn, entity me) |
void | ServerList_Favorite_Click (entity btn, entity me) |
void | ServerList_Filter_Change (entity box, entity me) |
void | ServerList_Info_Click (entity btn, 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_Update_favoriteButton (entity btn, entity me) |
#define SLIST_CATEGORIES |
Definition at line 152 of file serverlist.qh.
Referenced by RegisterSLCategories().
#define SLIST_CATEGORY | ( | name, | |
enoverride, | |||
dioverride, | |||
str | |||
) |
Definition at line 164 of file serverlist.qh.
Definition at line 163 of file serverlist.qh.
Definition at line 106 of file serverlist.qh.
#define SLIST_FIELDS |
Definition at line 88 of file serverlist.qh.
Referenced by XonoticServerList_configureXonoticServerList().
Definition at line 76 of file serverlist.qc.
References argv(), strlen(), strstrofs, substring(), and tokenize_console.
Definition at line 13 of file serverlist.qc.
References CategoryForEntry(), and CategoryOverride().
entity makeXonoticServerList | ( | ) |
Definition at line 272 of file serverlist.qc.
Referenced by XonoticServerListTab_fill().
void RegisterSLCategories | ( | ) |
Definition at line 44 of file serverlist.qc.
References cat_dioverride, cat_dioverride_string, cat_enoverride, cat_enoverride_string, entity(), SL_ProcessCategoryOverrides(), and SLIST_CATEGORIES.
Referenced by m_init().
Definition at line 667 of file serverlist.qc.
References autocvar_menu_slist_categories, and REFRESHSERVERLIST_RESORT.
Definition at line 767 of file serverlist.qc.
References localcmd.
Referenced by XonoticServerList_doubleClickListBoxItem(), and XonoticServerList_keyDown().
Definition at line 772 of file serverlist.qc.
References m_play_click_sound(), and MENU_SOUND_SELECT.
Definition at line 656 of file serverlist.qc.
References REFRESHSERVERLIST_REFILTER, strfree, and strzone().
Definition at line 781 of file serverlist.qc.
References boxToGlobal(), boxToGlobalSize(), DialogOpenButton_Click_withCoords(), eX, eY, main, and vector().
Definition at line 257 of file serverlist.qc.
References entity(), IsFavorite, and ZCTX.
Referenced by XonoticServerList_draw().
SLIST_FIELDS float autocvar_menu_slist_categories |
Definition at line 110 of file serverlist.qh.
Referenced by CategoryOverride(), ServerList_Categories_Click(), and XonoticServerList_draw().
float autocvar_menu_slist_categories_onlyifmultiple |
Definition at line 111 of file serverlist.qh.
Referenced by XonoticServerList_draw().
float autocvar_menu_slist_maxping = 300 |
Definition at line 114 of file serverlist.qh.
Referenced by XonoticServerList_refreshServerList().
float autocvar_menu_slist_modimpurity |
Definition at line 113 of file serverlist.qh.
Referenced by CategoryForEntry().
float autocvar_menu_slist_purethreshold |
Definition at line 112 of file serverlist.qh.
Referenced by CategoryForEntry().
float autocvar_menu_slist_recommendations |
Definition at line 115 of file serverlist.qh.
Referenced by CategoryForEntry().
float autocvar_menu_slist_recommendations_maxping |
Definition at line 116 of file serverlist.qh.
Referenced by CategoryForEntry().
float autocvar_menu_slist_recommendations_minfreeslots |
Definition at line 117 of file serverlist.qh.
Referenced by CategoryForEntry().
float autocvar_menu_slist_recommendations_minhumans |
Definition at line 118 of file serverlist.qh.
Referenced by CategoryForEntry().
float autocvar_menu_slist_recommendations_purethreshold |
Definition at line 119 of file serverlist.qh.
Referenced by CategoryForEntry().
float cat_dioverride |
Definition at line 145 of file serverlist.qh.
Referenced by RegisterSLCategories().
string cat_dioverride_string |
Definition at line 143 of file serverlist.qh.
Referenced by RegisterSLCategories().
float cat_enoverride |
Definition at line 144 of file serverlist.qh.
Referenced by RegisterSLCategories().
string cat_enoverride_string |
Definition at line 142 of file serverlist.qh.
Referenced by RegisterSLCategories().
string cat_name |
Definition at line 140 of file serverlist.qh.
Referenced by SL_ProcessCategoryOverrides().
string cat_string |
Definition at line 141 of file serverlist.qh.
entity categories[MAX_CATEGORIES] |
Definition at line 138 of file serverlist.qh.
Referenced by RetrieveCategoryEnt(), and SL_ProcessCategoryOverrides().
int category_draw_count |
Definition at line 150 of file serverlist.qh.
Referenced by XonoticServerList_draw(), XonoticServerList_drawListBoxItem(), XonoticServerList_getItemAtPos(), XonoticServerList_getItemHeight(), XonoticServerList_getItemStart(), and XonoticServerList_getTotalHeight().
int category_ent_count |
Definition at line 139 of file serverlist.qh.
Referenced by RetrieveCategoryEnt(), SL_ProcessCategoryOverrides(), and XonoticServerList_draw().
const int CATEGORY_FIRST = 1 |
Definition at line 137 of file serverlist.qh.
int category_item[MAX_CATEGORIES] |
Definition at line 149 of file serverlist.qh.
Referenced by XonoticServerList_draw(), XonoticServerList_drawListBoxItem(), XonoticServerList_getItemAtPos(), XonoticServerList_getItemHeight(), and XonoticServerList_getItemStart().
int category_name[MAX_CATEGORIES] |
Definition at line 148 of file serverlist.qh.
Referenced by XonoticServerList_draw(), and XonoticServerList_drawListBoxItem().
const int MAX_CATEGORIES = 9 |
Definition at line 136 of file serverlist.qh.
const float REFRESHSERVERLIST_ASK = 2 |
Definition at line 123 of file serverlist.qh.
Referenced by XonoticServerList_focusEnter(), XonoticServerList_refreshServerList(), and XonoticServerListTab_refresh().
const float REFRESHSERVERLIST_REFILTER = 1 |
Definition at line 122 of file serverlist.qh.
Referenced by ServerList_Filter_Change(), ServerList_ShowEmpty_Click(), ServerList_ShowFull_Click(), ServerList_ShowLaggy_Click(), XonoticServerList_draw(), XonoticServerList_refreshServerList(), and XonoticServerList_setSortOrder().
const float REFRESHSERVERLIST_RESET = 3 |
Definition at line 124 of file serverlist.qh.
Referenced by XonoticServerList_draw(), and XonoticServerList_refreshServerList().
const float REFRESHSERVERLIST_RESORT = 0 |
Definition at line 121 of file serverlist.qh.
Referenced by CategoryForEntry(), ServerList_Categories_Click(), and XonoticServerList_draw().