2011-06-16 22:33:06 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
<name>multiplayer</name>
|
|
|
|
<layout>vbox</layout>
|
2012-01-03 23:33:26 +00:00
|
|
|
<resizable>false</resizable>
|
2011-06-16 22:33:06 +00:00
|
|
|
|
|
|
|
<nasal>
|
|
|
|
<open>
|
2012-01-03 23:33:26 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-06-16 22:33:06 +00:00
|
|
|
</open>
|
|
|
|
|
|
|
|
<close>
|
|
|
|
</close>
|
|
|
|
</nasal>
|
|
|
|
|
|
|
|
<!-- titlebar -->
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Multiplayer Settings</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<pref-width>16</pref-width>
|
|
|
|
<pref-height>16</pref-height>
|
|
|
|
<legend></legend>
|
|
|
|
<keynum>27</keynum>
|
|
|
|
<border>2</border>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
<halign>center</halign>
|
|
|
|
<text>
|
|
|
|
<row>0</row><col>0</col>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>Callsign:</label>
|
|
|
|
</text>
|
|
|
|
<input>
|
|
|
|
<row>0</row><col>1</col>
|
2012-01-03 23:33:26 +00:00
|
|
|
<halign>left</halign>
|
2011-06-16 22:33:06 +00:00
|
|
|
<property>/sim/multiplay/callsign</property>
|
2012-01-08 12:36:41 +00:00
|
|
|
<enable>
|
|
|
|
<not>
|
|
|
|
<property>/sim/multiplay/online</property>
|
|
|
|
</not>
|
|
|
|
</enable>
|
2011-06-16 22:33:06 +00:00
|
|
|
</input>
|
2012-01-04 21:53:25 +00:00
|
|
|
<text>
|
|
|
|
<row>0</row><col>2</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>(requires reconnect)</label>
|
|
|
|
</text>
|
2011-06-16 22:33:06 +00:00
|
|
|
<text>
|
|
|
|
<row>1</row><col>0</col>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>Server:</label>
|
|
|
|
</text>
|
|
|
|
<combo>
|
|
|
|
<name>host</name>
|
|
|
|
<row>1</row><col>1</col>
|
2012-01-04 21:53:25 +00:00
|
|
|
<colspan>2</colspan>
|
2012-01-03 23:38:26 +00:00
|
|
|
<pref-width>350</pref-width>
|
2012-01-03 23:33:26 +00:00
|
|
|
<property>/sim/multiplay/selected-server</property>
|
|
|
|
<editable>false</editable>
|
2012-01-03 23:38:26 +00:00
|
|
|
<value>mpserver01.flightgear.org (Frankfurt, Germany)</value>
|
|
|
|
<value>mpserver02.flightgear.org (Kansas, USA)</value>
|
2012-01-03 23:33:26 +00:00
|
|
|
<value>mpserver03.flightgear.org (Germany)</value>
|
|
|
|
<value>mpserver04.flightgear.org (United Kingdom)</value>
|
2012-01-03 23:38:26 +00:00
|
|
|
<value>mpserver05.flightgear.org (Chicago, USA)</value>
|
2012-01-03 23:33:26 +00:00
|
|
|
<value>mpserver07.flightgear.org (Wisconsin, USA)</value>
|
2012-01-03 23:38:26 +00:00
|
|
|
<value>mpserver08.flightgear.org (Frankfurt am Main, Germany)</value>
|
|
|
|
<value>mpserver09.flightgear.org (Koln, Germany)</value>
|
2012-01-03 23:33:26 +00:00
|
|
|
<value>mpserver10.flightgear.org (Montpellier, France)</value>
|
|
|
|
<value>mpserver11.flightgear.org (Vilnius, Lithuania)</value>
|
|
|
|
<value>mpserver12.flightgear.org (Amsterdam, Netherlands)</value>
|
|
|
|
<value>mpserver13.flightgear.org (Grenoble, France)</value>
|
2011-06-16 22:33:06 +00:00
|
|
|
</combo>
|
|
|
|
<!-- status area -->
|
|
|
|
<text>
|
|
|
|
<visible>
|
|
|
|
<not><property>/sim/multiplay/online</property></not>
|
|
|
|
</visible>
|
2012-01-03 23:33:26 +00:00
|
|
|
<row>3</row>
|
2011-06-16 22:33:06 +00:00
|
|
|
<col>1</col>
|
2012-01-03 23:33:26 +00:00
|
|
|
<halign>left</halign>
|
2012-01-04 21:53:25 +00:00
|
|
|
<label>Not connected</label>
|
2011-06-16 22:33:06 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<visible>
|
|
|
|
<property>/sim/multiplay/online</property>
|
|
|
|
</visible>
|
2012-01-03 23:33:26 +00:00
|
|
|
<row>3</row>
|
2011-06-16 22:33:06 +00:00
|
|
|
<col>1</col>
|
2012-01-03 23:33:26 +00:00
|
|
|
<halign>left</halign>
|
2011-06-16 22:33:06 +00:00
|
|
|
<label>MMMMMMMMMMMMMMMMM</label>
|
|
|
|
<format>Connected to %s</format>
|
|
|
|
<property>/sim/multiplay/txhost</property>
|
|
|
|
<live>true</live>
|
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
2012-01-03 23:33:26 +00:00
|
|
|
<hrule/>
|
2011-06-16 22:33:06 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>10</default-padding>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
2012-01-03 23:33:26 +00:00
|
|
|
<legend>Connect</legend>
|
2012-01-04 21:53:25 +00:00
|
|
|
<equal>true</equal>
|
2012-01-03 23:33:26 +00:00
|
|
|
<enable>
|
|
|
|
<not>
|
|
|
|
<property>/sim/multiplay/online</property>
|
|
|
|
</not>
|
|
|
|
</enable>
|
2011-06-16 22:33:06 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
2012-01-03 23:33:26 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var server = getprop("/sim/multiplay/selected-server");
|
|
|
|
# Get the server name by splitting on the space between
|
|
|
|
# the hostname and the comment.
|
|
|
|
server = split(" ", server)[0];
|
|
|
|
setprop("/sim/multiplay/txhost", server);
|
2012-01-04 21:53:25 +00:00
|
|
|
|
|
|
|
# Standard port is 5000
|
|
|
|
setprop("/sim/multiplay/txport", 5000);
|
|
|
|
setprop("/sim/multiplay/rxport", 5000);
|
2012-01-03 23:33:26 +00:00
|
|
|
</script>
|
|
|
|
</binding>
|
2011-06-16 22:33:06 +00:00
|
|
|
<binding>
|
|
|
|
<command>reinit</command>
|
|
|
|
<subsystem>mp</subsystem>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2012-01-03 23:33:26 +00:00
|
|
|
<button>
|
|
|
|
<legend>Disconnect</legend>
|
2012-01-04 21:53:25 +00:00
|
|
|
<equal>true</equal>
|
2012-01-03 23:33:26 +00:00
|
|
|
<enable>
|
|
|
|
<property>/sim/multiplay/online</property>
|
|
|
|
</enable>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
2012-01-04 21:53:25 +00:00
|
|
|
setprop("/sim/multiplay/txhost", "");
|
2012-01-03 23:33:26 +00:00
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>reinit</command>
|
|
|
|
<subsystem>mp</subsystem>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2012-01-04 21:53:25 +00:00
|
|
|
<button>
|
|
|
|
<row>1</row><col>2</col>
|
|
|
|
<legend>Server Status</legend>
|
|
|
|
<binding>
|
|
|
|
<command>open-browser</command>
|
|
|
|
<path>http://mpmap01.flightgear.org/mpstatus/</path>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2012-01-03 23:33:26 +00:00
|
|
|
<button>
|
|
|
|
<legend>Close</legend>
|
2012-01-04 21:53:25 +00:00
|
|
|
<default>true</default>
|
2012-01-03 23:33:26 +00:00
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<empty><stretch>true</stretch></empty>
|
2011-06-16 22:33:06 +00:00
|
|
|
</group>
|
|
|
|
|
2012-01-03 23:33:26 +00:00
|
|
|
</PropertyList>
|