Index: binaries/data/mods/public/gui/common/gamedescription.js
===================================================================
--- binaries/data/mods/public/gui/common/gamedescription.js
+++ binaries/data/mods/public/gui/common/gamedescription.js
@@ -32,7 +32,7 @@
/**
* Denotes which players are a lobby buddy of the current user.
*/
-var g_BuddySymbol = '•';
+var g_BuddySymbol = '★';
/**
* Returns a formatted string describing the player assignments.
Index: binaries/data/mods/public/gui/lobby/LobbyPage/GameList.js
===================================================================
--- binaries/data/mods/public/gui/lobby/LobbyPage/GameList.js
+++ binaries/data/mods/public/gui/lobby/LobbyPage/GameList.js
@@ -26,9 +26,6 @@
this.gamesBox = Engine.GetGUIObjectByName("gamesBox");
this.gamesBox.onSelectionChange = this.onSelectionChange.bind(this);
this.gamesBox.onSelectionColumnChange = this.onFilterChange.bind(this);
- let ratingColumn = Engine.ConfigDB_GetValue("user", "lobby.columns.gamerating") == "true";
- this.gamesBox.hidden_mapType = ratingColumn;
- this.gamesBox.hidden_gameRating = !ratingColumn;
// Avoid repeated array construction
this.list_buddy = [];
@@ -38,7 +35,6 @@
this.list_mapSize = [];
this.list_mapType = [];
this.list_maxnbp = [];
- this.list_gameRating = [];
this.list = [];
this.filters = [];
@@ -136,6 +132,9 @@
let selectedGameIndex = -1;
{
+ let ratingSetting = Engine.ConfigDB_GetValue("user", "lobby.columns.gamerating") == "true";
+ this.gamesBox.heading_maxnbp = ratingSetting ? "Players (rating)" : "Players";
+
Engine.ProfileStart("setupGameList");
let length = this.gameList.length;
this.list_buddy.length = length;
@@ -145,7 +144,6 @@
this.list_mapSize.length = length;
this.list_mapType.length = length;
this.list_maxnbp.length = length;
- this.list_gameRating.length = length;
this.list.length = length;
this.gameList.forEach((game, i) => {
@@ -157,8 +155,7 @@
this.list_mapName[i] = displayData.mapName || "";
this.list_mapSize[i] = displayData.mapSize || "";
this.list_mapType[i] = displayData.mapType || "";
- this.list_maxnbp[i] = displayData.playerCount || "";
- this.list_gameRating[i] = game.gameRating || "";
+ this.list_maxnbp[i] = ratingSetting ? `${displayData.playerCount} (${game.gameRating})` || "" : displayData.playerCount || "";
this.list[i] = "";
if (selectedGame && game.stanza.hostJID == selectedGame.stanza.hostJID && game.stanza.name == selectedGame.stanza.name)
selectedGameIndex = i;
@@ -176,7 +173,6 @@
gamesBox.list_mapSize = this.list_mapSize;
gamesBox.list_mapType = this.list_mapType;
gamesBox.list_maxnbp = this.list_maxnbp;
- gamesBox.list_gameRating = this.list_gameRating;
// Change these last, otherwise crash
gamesBox.list = this.list;
Index: binaries/data/mods/public/gui/lobby/LobbyPage/GameList.xml
===================================================================
--- binaries/data/mods/public/gui/lobby/LobbyPage/GameList.xml
+++ binaries/data/mods/public/gui/lobby/LobbyPage/GameList.xml
@@ -8,11 +8,11 @@
font="sans-stroke-13"
>
-
-
+
+
Name
-
+
Map Name
@@ -21,10 +21,7 @@
Type
-
- Players
+
+ Players (Rating)
-
- Rating
-
Index: binaries/data/mods/public/gui/lobby/LobbyPage/LobbyPage.xml
===================================================================
--- binaries/data/mods/public/gui/lobby/LobbyPage/LobbyPage.xml
+++ binaries/data/mods/public/gui/lobby/LobbyPage/LobbyPage.xml
@@ -15,7 +15,7 @@