Ticket #4112: hidereadybutton.patch
File hidereadybutton.patch, 720 bytes (added by , 8 years ago) |
---|
-
binaries/data/mods/public/gui/gamesetup/gamesetup.js
function handlePlayerAssignmentMessage(m 728 728 if (!message.newAssignments[guid]) 729 729 onClientLeave(guid); 730 730 731 731 g_PlayerAssignments = message.newAssignments; 732 732 733 // If the local player is an observer, hide the ready button. Otherwise, show it. 734 Engine.GetGUIObjectByName("startGame").hidden = g_PlayerAssignments[Engine.GetPlayerGUID()].player == -1; 735 733 736 updatePlayerList(); 734 737 updateReadyUI(); 735 738 sendRegisterGameStanza(); 736 739 } 737 740