diff --git a/gui/dialogs/multiplayer.xml b/gui/dialogs/multiplayer.xml index 713336ada..24b8d18a4 100644 --- a/gui/dialogs/multiplayer.xml +++ b/gui/dialogs/multiplayer.xml @@ -4,10 +4,23 @@ multiplayer vbox - true + false + if ((getprop("/sim/multiplay/selected-server") == nil) or + (getprop("/sim/multiplay/selected-server") == "" ) ){ + var tx = getprop("/sim/multiplay/txhost"); + var dlg = cmdarg(); + var servers = cmdarg().getChildren("group")[1].getChildren("combo")[0].getChildren("value"); + foreach (var s; servers) { + var server = s.getValue(); + var host = split(" ", server)[0]; + if (host == tx) { + setprop("/sim/multiplay/selected-server", server); + } + } + } @@ -50,6 +63,7 @@ 01 + left /sim/multiplay/callsign @@ -60,23 +74,31 @@ host 11 - 120 - /sim/multiplay/txhost - true - /sim/multiplay/servers + 300 + /sim/multiplay/selected-server + false + mpserver01.flightgear.org (Frankfurt/Germany) + mpserver02.flightgear.org (Kansas/USA) + mpserver03.flightgear.org (Germany) + mpserver04.flightgear.org (United Kingdom) + mpserver05.flightgear.org (Chicago/USA) + mpserver07.flightgear.org (Wisconsin, USA) + mpserver08.flightgear.org (Germany) + mpserver09.flightgear.org (Germany) + mpserver10.flightgear.org (Montpellier, France) + mpserver11.flightgear.org (Vilnius, Lithuania) + mpserver12.flightgear.org (Amsterdam, Netherlands) + mpserver13.flightgear.org (Grenoble, France) - - 12 - /sim/multiplay/txport - /sim/multiplay/online - 2 + 3 1 + left @@ -84,9 +106,9 @@ /sim/multiplay/online - 2 + 3 1 - + left Connected to %s /sim/multiplay/txhost @@ -94,23 +116,65 @@ + hbox 10 true + + + + true - \ No newline at end of file +