1
0
Fork 0

Improve MP dialog and add option to configure AI traffic

This commit is contained in:
ThorstenB 2012-05-01 11:10:37 +02:00
parent 6775ecdfd2
commit d51a79ba5b
6 changed files with 92 additions and 49 deletions

View file

@ -59,10 +59,11 @@
<!-- AI menu --> <!-- AI menu -->
<ai>KI</ai> <ai>KI</ai>
<scenario>Flugverkehr und Szenarien</scenario>
<atc-in-range>ATC Stationen in der Nähe</atc-in-range>
<wingman>Steuerung Flügelmann</wingman> <wingman>Steuerung Flügelmann</wingman>
<tanker>Steuerung Tanker</tanker> <tanker>Steuerung Tanker</tanker>
<carrier>Steuerung Flugzeugträger</carrier> <carrier>Steuerung Flugzeugträger</carrier>
<scenario>Auswahl der KI Szenarien (Neustart notwendig)</scenario>
<jetway>Steuerung Fluggastbrücke</jetway> <jetway>Steuerung Fluggastbrücke</jetway>
<!-- Equipment --> <!-- Equipment -->

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?> <?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- FlightGear options translations for German --> <!-- FlightGear options: German language resource -->
<PropertyList> <PropertyList>
<!-- Fall back --> <!-- Fall back -->

View file

@ -62,10 +62,11 @@
<!-- AI menu --> <!-- AI menu -->
<ai>AI</ai> <ai>AI</ai>
<scenario>Traffic and Scenario Settings</scenario>
<atc-in-range>ATC Services in Range</atc-in-range>
<wingman>Wingman Controls</wingman> <wingman>Wingman Controls</wingman>
<tanker>Tanker Controls</tanker> <tanker>Tanker Controls</tanker>
<carrier>Carrier Controls</carrier> <carrier>Carrier Controls</carrier>
<scenario>Scenario Select (requires restart)</scenario>
<jetway>Jetway Settings</jetway> <jetway>Jetway Settings</jetway>
<!-- Multiplayer menu --> <!-- Multiplayer menu -->

View file

@ -51,16 +51,52 @@
</group> </group>
<hrule/> <hrule/>
<!-- main dialog area -->
<group> <group>
<layout>table</layout> <layout>table</layout>
<halign>center</halign> <halign>center</halign>
<text> <text>
<row>0</row><col>0</col> <row>0</row>
<col>0</col>
<label>Options:</label>
<halign>right</halign>
</text>
<checkbox>
<row>0</row>
<col>1</col>
<colspan>2</colspan>
<halign>left</halign>
<name>hide-replay</name>
<label>Hide replay sessions over MP (less annoying to other players)</label>
<property>/sim/multiplay/freeze-on-replay</property>
<binding>
<command>dialog-apply</command>
<object-name>hide-replay</object-name>
</binding>
</checkbox>
<checkbox>
<row>1</row>
<col>1</col>
<colspan>2</colspan>
<halign>left</halign>
<name>ai-traffic</name>
<label>Show AI Traffic (mixing MP and AI traffic may be confusing)</label>
<property>/sim/traffic-manager/enabled</property>
<binding>
<command>dialog-apply</command>
<object-name>ai-traffic</object-name>
</binding>
</checkbox>
<text>
<row>2</row><col>0</col>
<halign>right</halign> <halign>right</halign>
<label>Callsign:</label> <label>Callsign:</label>
</text> </text>
<input> <input>
<row>0</row><col>1</col> <row>2</row><col>1</col>
<halign>left</halign> <halign>left</halign>
<property>/sim/multiplay/callsign</property> <property>/sim/multiplay/callsign</property>
<enable> <enable>
@ -69,19 +105,16 @@
</not> </not>
</enable> </enable>
</input> </input>
<text> <text>
<row>0</row><col>2</col> <row>3</row><col>0</col>
<halign>left</halign>
<label>(requires reconnect)</label>
</text>
<text>
<row>1</row><col>0</col>
<halign>right</halign> <halign>right</halign>
<label>Server:</label> <label>Server:</label>
</text> </text>
<combo> <combo>
<name>host</name> <name>host</name>
<row>1</row><col>1</col> <halign>left</halign>
<row>3</row><col>1</col>
<colspan>2</colspan> <colspan>2</colspan>
<pref-width>350</pref-width> <pref-width>350</pref-width>
<property>/sim/multiplay/selected-server</property> <property>/sim/multiplay/selected-server</property>
@ -99,22 +132,23 @@
<value>mpserver12.flightgear.org (Amsterdam, Netherlands)</value> <value>mpserver12.flightgear.org (Amsterdam, Netherlands)</value>
<value>mpserver13.flightgear.org (Grenoble, France)</value> <value>mpserver13.flightgear.org (Grenoble, France)</value>
</combo> </combo>
<!-- status area -->
<!-- status area -->
<text> <text>
<visible> <visible>
<not><property>/sim/multiplay/online</property></not> <not><property>/sim/multiplay/online</property></not>
</visible> </visible>
<row>3</row> <row>5</row>
<col>1</col> <col>1</col>
<halign>left</halign> <halign>left</halign>
<label>Not connected</label> <label>Not connected</label>
</text> </text>
<text> <text>
<visible> <visible>
<property>/sim/multiplay/online</property> <property>/sim/multiplay/online</property>
</visible> </visible>
<row>3</row> <row>5</row>
<col>1</col> <col>1</col>
<halign>left</halign> <halign>left</halign>
<label>MMMMMMMMMMMMMMMMM</label> <label>MMMMMMMMMMMMMMMMM</label>
@ -123,7 +157,8 @@
<live>true</live> <live>true</live>
</text> </text>
</group> </group>
<!-- button area -->
<hrule/> <hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
@ -160,6 +195,7 @@
<subsystem>mp</subsystem> <subsystem>mp</subsystem>
</binding> </binding>
</button> </button>
<button> <button>
<legend>Disconnect</legend> <legend>Disconnect</legend>
<equal>true</equal> <equal>true</equal>
@ -180,6 +216,7 @@
<subsystem>mp</subsystem> <subsystem>mp</subsystem>
</binding> </binding>
</button> </button>
<button> <button>
<row>1</row><col>2</col> <row>1</row><col>2</col>
<legend>Server Status</legend> <legend>Server Status</legend>
@ -188,6 +225,7 @@
<path>http://mpmap01.flightgear.org/mpstatus/</path> <path>http://mpmap01.flightgear.org/mpstatus/</path>
</binding> </binding>
</button> </button>
<button> <button>
<legend>Close</legend> <legend>Close</legend>
<default>true</default> <default>true</default>

View file

@ -30,7 +30,7 @@
<empty><stretch>true</stretch></empty> <empty><stretch>true</stretch></empty>
<text> <text>
<label>AI Scenario Selection</label> <label>AI Traffic and Scenario Settings</label>
</text> </text>
<empty><stretch>true</stretch></empty> <empty><stretch>true</stretch></empty>
@ -50,14 +50,25 @@
<hrule/> <hrule/>
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>Enable AI scenarios</label> <label>Enable AI traffic</label>
<name>enable-ai-scenarios</name> <name>enable-ai-traffic</name>
<property>/sim/ai/scenarios-enabled</property> <property>/sim/traffic-manager/enabled</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
<object-name>enable-ai-scenarios</object-name> <object-name>enable-ai-traffic</object-name>
</binding> </binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Enable AI scenarios (requires restart)</label>
<name>enable-ai-scenarios</name>
<property>/sim/ai/scenarios-enabled</property>
<binding>
<command>dialog-apply</command>
<object-name>enable-ai-scenarios</object-name>
</binding>
</checkbox> </checkbox>
<text><label/></text> <text><label/></text>
@ -71,7 +82,6 @@
<hrule/> <hrule/>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>

View file

@ -22,14 +22,6 @@
<script>gui.save_flight()</script> <script>gui.save_flight()</script>
</binding> </binding>
</item> </item>
<item>
<label>Scenario</label>
<binding>
<command>dialog-show</command>
<dialog-name>scenario</dialog-name>
</binding>
</item>
--> -->
<item> <item>
<name>reset</name> <name>reset</name>
@ -39,8 +31,8 @@
<command>reset</command> <command>reset</command>
</binding> </binding>
</item> </item>
<!--
<!-- <item> <item>
<label>High-Res Snapshot</label> <label>High-Res Snapshot</label>
<enabled>false</enabled> <enabled>false</enabled>
<binding> <binding>
@ -60,6 +52,7 @@
</script> </script>
</binding> </binding>
</item> </item>
<item> <item>
<name>snap-shot-dir</name> <name>snap-shot-dir</name>
<label>Screenshot Directory</label> <label>Screenshot Directory</label>
@ -452,6 +445,16 @@
<menu> <menu>
<name>ai</name> <name>ai</name>
<label>AI</label> <label>AI</label>
<item>
<label>Traffic and Scenario Settings</label>
<name>scenario</name>
<binding>
<command>dialog-show</command>
<dialog-name>scenario</dialog-name>
</binding>
</item>
<!-- Not working at present <!-- Not working at present
<item> <item>
<label>ATC Services in range</label> <label>ATC Services in range</label>
@ -489,15 +492,6 @@
</binding> </binding>
</item> </item>
<item>
<label>Scenario Select (requires restart)</label>
<name>scenario</name>
<binding>
<command>dialog-show</command>
<dialog-name>scenario</dialog-name>
</binding>
</item>
<item> <item>
<label>Jetway Settings</label> <label>Jetway Settings</label>
<name>jetway</name> <name>jetway</name>
@ -521,7 +515,7 @@
<dialog-name>multiplayer</dialog-name> <dialog-name>multiplayer</dialog-name>
</binding> </binding>
</item> </item>
<item> <item>
<label>Chat Dialog</label> <label>Chat Dialog</label>
<name>mp-chat</name> <name>mp-chat</name>
@ -598,7 +592,6 @@
</binding> </binding>
</item> </item>
<item> <item>
<name>reload-panel</name> <name>reload-panel</name>
<label>Reload Panel</label> <label>Reload Panel</label>