Ticket #4031: continue_mp_v3.patch

File continue_mp_v3.patch, 1.9 KB (added by Imarok, 8 years ago)

Don't show continue when rejoining

  • binaries/data/mods/public/gui/gamesetup/gamesetup_mp.js

     
    1515    case "join":
    1616        if(Engine.HasXmppClient())
    1717        {
     18        Engine.GetGUIObjectByName("confirmButton").hidden = true;
    1819            if (startJoin(attribs.name, attribs.ip))
    1920                switchSetupPage("pageJoin", "pageConnecting");
    2021        }
     
    5657
    5758function confirmSetup()
    5859{
    59     if (Engine.GetGUIObjectByName("pageHost").hidden)
     60    if (!Engine.GetGUIObjectByName("pageJoin").hidden)
    6061    {
    6162        let joinPlayerName = Engine.GetGUIObjectByName("joinPlayerName").caption;
    6263        let joinServer = Engine.GetGUIObjectByName("joinServer").caption;
     
    6364        if (startJoin(joinPlayerName, joinServer))
    6465            switchSetupPage("pageJoin", "pageConnecting");
    6566    }
    66     else
     67    else if (!Engine.GetGUIObjectByName("pageHost").hidden)
    6768    {
    6869        let hostPlayerName = Engine.GetGUIObjectByName("hostPlayerName").caption;
    6970        let hostServerName = Engine.GetGUIObjectByName("hostServerName").caption;
  • binaries/data/mods/public/gui/gamesetup/gamesetup_mp.xml

     
    8181
    8282        <object name="hostFeedback" type="text" style="ModernLabelText" size="50 100%-90 100%-50 100%-50" textcolor="red" />
    8383
    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">
    8585            <translatableAttribute id="caption">Continue</translatableAttribute>
    8686            <action on="Press">confirmSetup();</action>
    8787        </object>