Ticket #3508: t3508_v5.patch

File t3508_v5.patch, 959 bytes (added by Sergey Kushnirenko, 8 years ago)
  • gamesetup.js

     
    115115const g_UnassignedColor = "140 140 140";
    116116
    117117/**
     118 * Highlight observer players in the dropdownlist.
     119 */
     120const g_UnassignedPlayerColor = "170 170 250"
     121
     122/**
    118123 * Highlight ready players.
    119124 */
    120125const g_ReadyColor = "green";
     
    14271477    {
    14281478        let player = g_PlayerAssignments[guid].player;
    14291479
    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
    14311485        hostGuidList.push(guid);
    14321486        assignments[player] = hostNameList.length-1;
    14331487
    14341488        if (player != -1)
    14351489            assignedCount++;
    1436     }
     1490    }
    14371491
    14381492    // Only enable start button if we have enough assigned players
    14391493    if (g_IsController)