Ticket #3508: t3508_v1.patch
File t3508_v1.patch, 1.2 KB (added by , 8 years ago) |
---|
-
binaries/data/mods/public/gui/gamesetup/gamesetup.js
1412 1457 updatePlayerList(); 1413 1458 } 1414 1459 1460 function colorizeTextWithUnassignedColor(text) 1461 { 1462 return "[color=\""+ g_UnassignedColor + "\"]" + text + "[/color]"; 1463 } 1464 1415 1465 function updatePlayerList() 1416 1466 { 1417 1467 g_IsInGuiUpdate = true; … … 1427 1477 { 1428 1478 let player = g_PlayerAssignments[guid].player; 1429 1479 1430 hostNameList.push(g_PlayerAssignments[guid].name); 1480 if( player != -1 ) 1481 hostNameList.push( g_PlayerAssignments[guid].name ); 1482 else 1483 hostNameList.push( colorizeTextWithUnassignedColor( g_PlayerAssignments[guid].name ) ); 1484 1431 1485 hostGuidList.push(guid); 1432 1486 assignments[player] = hostNameList.length-1; 1433 1487 … … 1451 1505 } 1452 1506 1453 1507 noAssignment = hostNameList.length; 1454 hostNameList.push( "[color=\""+ g_UnassignedColor + "\"]" + translate("Unassigned"));1508 hostNameList.push( colorizeTextWithUnassignedColor( translate("Unassigned") ) ); 1455 1509 hostGuidList.push(""); 1456 1510 1457 1511 for (let i = 0; i < g_MaxPlayers; ++i)