Index: gui/session/menu.js =================================================================== --- gui/session/menu.js +++ gui/session/menu.js @@ -444,6 +444,16 @@ openDiplomacy(); } +function toggleReplace() +{ + let joinPlayerName = Engine.GetGUIObjectByName("joinPlayerName").caption; + let joinServer = Engine.GetGUIObjectByName("joinServer").caption; + let joinPort = Engine.GetGUIObjectByName("joinPort").caption; + + if (startJoin(joinPlayerName, joinServer, getValidPort(joinPort))) + switchSetupPage("pageConnecting"); +} + function openTrade() { closeOpenDialogs(); Index: gui/session/top_panel/button_replace.xml =================================================================== --- /dev/null +++ gui/session/top_panel/button_replace.xml @@ -0,0 +1,17 @@ + + + Replace + + + + toggleReplace(); + + + +