1
0
forked from 0ad/0ad

Tune lobby rating alignment and remove a TODO that won't be fixed due to uglyness.

This was SVN commit r17389.
This commit is contained in:
elexis 2015-12-06 13:21:41 +00:00
parent cff6056e9f
commit 84678cf40e
2 changed files with 2 additions and 3 deletions

View File

@ -255,7 +255,7 @@ function updatePlayerList()
{
if (player.rating && player.name == g_Username)
g_UserRating = player.rating;
let rating = (" " + (player.rating ? player.rating : "-")).substr(-5);
let rating = player.rating ? (" " + player.rating).substr(-5) : " -";
let presence = g_PlayerStatuses[player.presence] ? player.presence : "unknown";
if (presence == "unknown")
@ -422,7 +422,7 @@ function updateGameList()
var gamesBox = Engine.GetGUIObjectByName("gamesBox");
var sortBy = gamesBox.selected_column || "status";
var sortOrder = gamesBox.selected_column_order || 1;
error(sortBy);
if (gamesBox.selected > -1)
g_SelectedGameIP = g_GameList[gamesBox.selected].ip;

View File

@ -241,7 +241,6 @@ function getReplayDateTime(replay)
*/
function getReplayPlayernames(replay)
{
// TODO: colorize playernames like in the lobby.
return replay.attribs.settings.PlayerData.map(pData => pData.Name).join(", ");
}