2003-04-01 14:28:35 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
2005-10-02 19:56:44 +00:00
|
|
|
<!-- General ATC/AI options -->
|
2003-04-01 14:28:35 +00:00
|
|
|
|
2005-10-02 19:56:44 +00:00
|
|
|
<PropertyList>
|
2008-10-16 16:51:32 +00:00
|
|
|
<name>atc-ai</name>
|
|
|
|
<modal>false</modal>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>ATC/AI Options</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty>
|
|
|
|
<pref-width>10</pref-width>
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Enable ATC</label>
|
|
|
|
<property>/sim/atc/enabled</property>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Enable AI traffic</label>
|
2012-07-05 17:37:43 +00:00
|
|
|
<property>/sim/traffic-manager/enabled</property>
|
2008-10-16 16:51:32 +00:00
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<empty>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</empty>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<!-- AI Carrier options -->
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>AI Carrier</label>
|
|
|
|
<color>
|
|
|
|
<red>0.5</red>
|
|
|
|
<green>0.5</green>
|
|
|
|
<blue>0.5</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty>
|
|
|
|
<pref-width>10</pref-width>
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
|
2009-05-04 20:56:32 +00:00
|
|
|
<radio>
|
2008-10-16 16:51:32 +00:00
|
|
|
<halign>left</halign>
|
2009-05-04 20:56:32 +00:00
|
|
|
<label>Turn to launch course</label>
|
2008-10-16 16:51:32 +00:00
|
|
|
<property>/ai/models/carrier/controls/turn-to-launch-hdg</property>
|
2009-05-04 20:56:32 +00:00
|
|
|
<live>true</live>
|
2008-10-16 16:51:32 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var v = getprop("/ai/models/carrier/controls/turn-to-launch-hdg");
|
2009-05-04 20:56:32 +00:00
|
|
|
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier")){
|
|
|
|
c.getNode("controls/turn-to-launch-hdg").setBoolValue(v);
|
|
|
|
c.getNode("controls/turn-to-recovery-hdg").setBoolValue(0);
|
|
|
|
c.getNode("controls/turn-to-base-course").setBoolValue(0);
|
|
|
|
}
|
2008-10-16 16:51:32 +00:00
|
|
|
</script>
|
|
|
|
</binding>
|
2009-05-04 20:56:32 +00:00
|
|
|
</radio>
|
|
|
|
|
|
|
|
<radio>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Turn to recovery course</label>
|
|
|
|
<property>/ai/models/carrier/controls/turn-to-recovery-hdg</property>
|
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var v = getprop("/ai/models/carrier/controls/turn-to-recovery-hdg");
|
|
|
|
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier")){
|
|
|
|
c.getNode("controls/turn-to-recovery-hdg").setBoolValue(v);
|
|
|
|
c.getNode("controls/turn-to-launch-hdg").setBoolValue(0);
|
|
|
|
c.getNode("controls/turn-to-base-course").setBoolValue(0);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
|
|
|
|
<radio>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Turn to base course</label>
|
|
|
|
<property>/ai/models/carrier/controls/turn-to-base-course</property>
|
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var v = getprop("/ai/models/carrier/controls/turn-to-base-course");
|
|
|
|
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier")){
|
|
|
|
c.getNode("controls/turn-to-base-course").setBoolValue(v);
|
|
|
|
c.getNode("controls/turn-to-recovery-hdg").setBoolValue(0);
|
|
|
|
c.getNode("controls/turn-to-launch-hdg").setBoolValue(0);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
2008-10-16 16:51:32 +00:00
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Operate Deck Elevators</label>
|
|
|
|
<property>/ai/models/carrier/controls/elevators</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var v = getprop("/ai/models/carrier/controls/elevators");
|
2009-01-28 21:02:03 +00:00
|
|
|
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier"))
|
|
|
|
c.getNode("controls/elevators").setBoolValue(v);
|
2008-10-16 16:51:32 +00:00
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
2009-12-01 18:43:12 +00:00
|
|
|
<label>Enable LSO Communications</label>
|
2009-06-18 22:57:00 +00:00
|
|
|
<property>/sim/current-view/lso-commentary</property>
|
2009-12-01 18:43:12 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Enable Deck Park</label>
|
|
|
|
<property>/sim/current-view/deck-park</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
2009-06-18 22:57:00 +00:00
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
2008-10-16 16:51:32 +00:00
|
|
|
<label>Deck Lights</label>
|
2009-01-18 23:33:43 +00:00
|
|
|
<property>/ai/models/carrier/controls/lighting/deck-lights</property>
|
2008-10-16 16:51:32 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
2009-01-18 23:33:43 +00:00
|
|
|
var v = getprop("/ai/models/carrier/controls/lighting/deck-lights");
|
2009-01-28 21:02:03 +00:00
|
|
|
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier"))
|
|
|
|
c.getNode("controls/lighting/deck-lights",1).setBoolValue(v);
|
2008-10-16 16:51:32 +00:00
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
2009-01-18 23:33:43 +00:00
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Discrete Flightdeck Floodlights (Red)</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<slider>
|
|
|
|
<halign>left</halign>
|
|
|
|
<width>75</width>
|
|
|
|
<height>25</height>
|
|
|
|
<property>/ai/models/carrier/controls/lighting/flood-lights-red-norm</property>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var v = getprop("/ai/models/carrier/controls/lighting/flood-lights-red-norm");
|
2009-01-28 21:02:03 +00:00
|
|
|
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier"))
|
|
|
|
c.getNode("controls/lighting/flood-lights-red-norm",1).setDoubleValue(v);
|
2009-01-18 23:33:43 +00:00
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
|
2008-10-16 16:51:32 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<empty>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</empty>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>6</default-padding>
|
|
|
|
<empty>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>OK</legend>
|
|
|
|
<default>true</default>
|
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Apply</legend>
|
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Reset</legend>
|
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Cancel</legend>
|
|
|
|
<equal>true</equal>
|
|
|
|
<key>Esc</key>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<empty>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</empty>
|
|
|
|
</group>
|
2003-04-01 14:28:35 +00:00
|
|
|
</PropertyList>
|