Ticket #4031: continue_mp_v3.patch
File continue_mp_v3.patch, 1.9 KB (added by , 8 years ago) |
---|
-
binaries/data/mods/public/gui/gamesetup/gamesetup_mp.js
15 15 case "join": 16 16 if(Engine.HasXmppClient()) 17 17 { 18 Engine.GetGUIObjectByName("confirmButton").hidden = true; 18 19 if (startJoin(attribs.name, attribs.ip)) 19 20 switchSetupPage("pageJoin", "pageConnecting"); 20 21 } … … 56 57 57 58 function confirmSetup() 58 59 { 59 if ( Engine.GetGUIObjectByName("pageHost").hidden)60 if (!Engine.GetGUIObjectByName("pageJoin").hidden) 60 61 { 61 62 let joinPlayerName = Engine.GetGUIObjectByName("joinPlayerName").caption; 62 63 let joinServer = Engine.GetGUIObjectByName("joinServer").caption; … … 63 64 if (startJoin(joinPlayerName, joinServer)) 64 65 switchSetupPage("pageJoin", "pageConnecting"); 65 66 } 66 else 67 else if (!Engine.GetGUIObjectByName("pageHost").hidden) 67 68 { 68 69 let hostPlayerName = Engine.GetGUIObjectByName("hostPlayerName").caption; 69 70 let hostServerName = Engine.GetGUIObjectByName("hostServerName").caption; -
binaries/data/mods/public/gui/gamesetup/gamesetup_mp.xml
81 81 82 82 <object name="hostFeedback" type="text" style="ModernLabelText" size="50 100%-90 100%-50 100%-50" textcolor="red" /> 83 83 84 <object hotkey="confirm" type="button" size="50%+5 100%-45 100%-18 100%-17" style="ModernButtonRed">84 <object name="confirmButton" hotkey="confirm" type="button" size="50%+5 100%-45 100%-18 100%-17" style="ModernButtonRed" hidden="false"> 85 85 <translatableAttribute id="caption">Continue</translatableAttribute> 86 86 <action on="Press">confirmSetup();</action> 87 87 </object>