]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/serverlist.qh
take3: format 903 files
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / serverlist.qh
index e45abfda33b528cce9e9e72035dd4ab1807d47c5..71e565efc5534a2d89b0dd67dc5abbf0b32db715 100644 (file)
@@ -30,9 +30,9 @@ CLASS(XonoticServerList, XonoticListBox)
        ATTRIB(XonoticServerList, columnTypeSize, float, 0);
        ATTRIB(XonoticServerList, columnPlayersOrigin, float, 0);
        ATTRIB(XonoticServerList, columnPlayersSize, float, 0);
-       ATTRIB(XonoticServerList, lockedSelectedItem, bool, true);      // initially keep selected the first item of the list, avoiding an unwanted scrolling
+       ATTRIB(XonoticServerList, lockedSelectedItem, bool, true); // initially keep selected the first item of the list, avoiding an unwanted scrolling
 
-       ATTRIB(XonoticServerList, selectedServer, string); // to restore selected server when needed
+       ATTRIB(XonoticServerList, selectedServer, string);         // to restore selected server when needed
        METHOD(XonoticServerList, setSelected, void(entity, float));
        METHOD(XonoticServerList, setSortOrder, void(entity, float, float));
        ATTRIB(XonoticServerList, filterShowEmpty, float, 1);
@@ -42,7 +42,7 @@ CLASS(XonoticServerList, XonoticListBox)
        ATTRIB(XonoticServerList, ipAddressBox, entity);
        ATTRIB(XonoticServerList, favoriteButton, entity);
        ATTRIB(XonoticServerList, nextRefreshTime, float, 0);
-       METHOD(XonoticServerList, refreshServerList, void(entity, float));  // refresh mode: REFRESHSERVERLIST_*
+       METHOD(XonoticServerList, refreshServerList, void(entity, float)); // refresh mode: REFRESHSERVERLIST_*
        ATTRIB(XonoticServerList, needsRefresh, float, 1);
        METHOD(XonoticServerList, focusEnter, void(entity));
        METHOD(XonoticServerList, positionSortButton, void(entity, entity, float, float, string, void(entity, entity)));
@@ -99,7 +99,7 @@ void ServerList_Info_Click(entity btn, entity me);
        SLIST_FIELD(CATEGORY,    "category") \
        SLIST_FIELD(ISFAVORITE,  "isfavorite")
 
-#define SLIST_FIELD(suffix,name) float SLIST_FIELD_##suffix;
+#define SLIST_FIELD(suffix, name) float SLIST_FIELD_##suffix;
 SLIST_FIELDS
 #undef SLIST_FIELD
 
@@ -113,10 +113,10 @@ float autocvar_menu_slist_recommendations_minfreeslots;
 float autocvar_menu_slist_recommendations_minhumans;
 float autocvar_menu_slist_recommendations_purethreshold;
 
-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
-const float REFRESHSERVERLIST_RESET = 3;     // ..., also clear the list first
+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
+const float REFRESHSERVERLIST_RESET = 3;    // ..., also clear the list first
 
 // function declarations
 float IsServerInList(string list, string srv);
@@ -159,7 +159,7 @@ int category_draw_count;
        SLIST_CATEGORY(CAT_DEFRAG,       "",            "CAT_SERVERS",  CTX(_("SLCAT^Defrag Mode")))
 
 #define SLIST_CATEGORY_AUTOCVAR(name) autocvar_menu_slist_categories_##name##_override
-#define SLIST_CATEGORY(name,enoverride,dioverride,str) \
+#define SLIST_CATEGORY(name, enoverride, dioverride, str) \
        int name; \
        string SLIST_CATEGORY_AUTOCVAR(name) = enoverride;
 SLIST_CATEGORIES