Index: binaries/data/mods/public/gui/lobby/lobby.js
===================================================================
--- binaries/data/mods/public/gui/lobby/lobby.js
+++ binaries/data/mods/public/gui/lobby/lobby.js
@@ -727,7 +727,7 @@
function onPlayerListSelection()
{
let playerList = Engine.GetGUIObjectByName("playersBox");
- if (playerList.selected == playerList.list.indexOf(g_SelectedPlayer))
+ if (playerList.selected == -1 || playerList.selected == playerList.list.indexOf(g_SelectedPlayer))
return;
g_SelectedPlayer = playerList.list[playerList.selected];
@@ -774,6 +774,9 @@
if (!playerName)
return;
+ Engine.GetGUIObjectByName("profilePanel").hidden = false;
+ Engine.GetGUIObjectByName("leftPanel").size = "20 30 20% 100%-310";
+
Engine.SendGetProfile(playerName);
Engine.GetGUIObjectByName("usernameText").caption = playerName;
@@ -1454,3 +1457,13 @@
"percentage": (attr.wins / attr.totalGamesPlayed * 100).toFixed(2)
});
}
+
+function deselect()
+{
+ g_SelectedGameIP = "";
+ g_SelectedPlayer = "";
+ Engine.GetGUIObjectByName("gamesBox").selected = -1;
+ Engine.GetGUIObjectByName("playersBox").selected = -1;
+ Engine.GetGUIObjectByName("profilePanel").hidden = true;
+ Engine.GetGUIObjectByName("leftPanel").size = "20 30 20% 100%-110";
+}
Index: binaries/data/mods/public/gui/lobby/lobby.xml
===================================================================
--- binaries/data/mods/public/gui/lobby/lobby.xml
+++ binaries/data/mods/public/gui/lobby/lobby.xml
@@ -12,6 +12,10 @@
+
+