Ticket #3508: t3508_v5.patch
File t3508_v5.patch, 959 bytes (added by , 8 years ago) |
---|
-
gamesetup.js
115 115 const g_UnassignedColor = "140 140 140"; 116 116 117 117 /** 118 * Highlight observer players in the dropdownlist. 119 */ 120 const g_UnassignedPlayerColor = "170 170 250" 121 122 /** 118 123 * Highlight ready players. 119 124 */ 120 125 const g_ReadyColor = "green"; … … 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("[color=\""+ g_UnassignedPlayerColor + "\"]" + g_PlayerAssignments[guid].name + "[/color]"); 1484 1431 1485 hostGuidList.push(guid); 1432 1486 assignments[player] = hostNameList.length-1; 1433 1487 1434 1488 if (player != -1) 1435 1489 assignedCount++; 1436 } 1490 } 1437 1491 1438 1492 // Only enable start button if we have enough assigned players 1439 1493 if (g_IsController)