Adjust format
This commit is contained in:
parent
6c7d862a31
commit
dd182cab6c
1 changed files with 162 additions and 152 deletions
|
@ -3,182 +3,192 @@
|
|||
<!-- General ATC/AI options -->
|
||||
|
||||
<PropertyList>
|
||||
<name>atc-ai</name>
|
||||
<modal>false</modal>
|
||||
<layout>vbox</layout>
|
||||
<name>atc-ai</name>
|
||||
<modal>false</modal>
|
||||
<layout>vbox</layout>
|
||||
|
||||
<text>
|
||||
<label>ATC/AI Options</label>
|
||||
</text>
|
||||
<text>
|
||||
<label>ATC/AI Options</label>
|
||||
</text>
|
||||
|
||||
<hrule/>
|
||||
<hrule/>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<empty>
|
||||
<pref-width>10</pref-width>
|
||||
</empty>
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<empty>
|
||||
<pref-width>10</pref-width>
|
||||
</empty>
|
||||
|
||||
<group>
|
||||
<layout>vbox</layout>
|
||||
<group>
|
||||
<layout>vbox</layout>
|
||||
|
||||
<checkbox>
|
||||
<halign>left</halign>
|
||||
<label>Enable ATC</label>
|
||||
<property>/sim/atc/enabled</property>
|
||||
</checkbox>
|
||||
<checkbox>
|
||||
<halign>left</halign>
|
||||
<label>Enable ATC</label>
|
||||
<property>/sim/atc/enabled</property>
|
||||
</checkbox>
|
||||
|
||||
<checkbox>
|
||||
<halign>left</halign>
|
||||
<label>Enable AI traffic</label>
|
||||
<property>/sim/ai-traffic/enabled</property>
|
||||
</checkbox>
|
||||
<checkbox>
|
||||
<halign>left</halign>
|
||||
<label>Enable AI traffic</label>
|
||||
<property>/sim/ai-traffic/enabled</property>
|
||||
</checkbox>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
|
||||
<text>
|
||||
<halign>left</halign>
|
||||
<label>AI traffic density:</label>
|
||||
</text>
|
||||
<text>
|
||||
<halign>left</halign>
|
||||
<label>AI traffic density:</label>
|
||||
</text>
|
||||
|
||||
<combo>
|
||||
<halign>left</halign>
|
||||
<property>/sim/ai-traffic/level</property>
|
||||
<value>1</value>
|
||||
<value>2</value>
|
||||
<value>3</value>
|
||||
</combo>
|
||||
</group>
|
||||
<combo>
|
||||
<halign>left</halign>
|
||||
<property>/sim/ai-traffic/level</property>
|
||||
<value>1</value>
|
||||
<value>2</value>
|
||||
<value>3</value>
|
||||
</combo>
|
||||
</group>
|
||||
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<empty><stretch>true</stretch></empty>
|
||||
</group>
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
</group>
|
||||
|
||||
<hrule/>
|
||||
<hrule/>
|
||||
|
||||
<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>
|
||||
<!-- AI Carrier options -->
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<empty>
|
||||
<pref-width>10</pref-width>
|
||||
</empty>
|
||||
<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>vbox</layout>
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<empty>
|
||||
<pref-width>10</pref-width>
|
||||
</empty>
|
||||
|
||||
<checkbox>
|
||||
<halign>left</halign>
|
||||
<label>Turn into wind</label>
|
||||
<property>/ai/models/carrier/controls/turn-to-launch-hdg</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
var v = getprop("/ai/models/carrier/controls/turn-to-launch-hdg");
|
||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
|
||||
carrier.getNode("controls/turn-to-launch-hdg").setBoolValue(v);
|
||||
}
|
||||
</script>
|
||||
</binding>
|
||||
</checkbox>
|
||||
<group>
|
||||
<layout>vbox</layout>
|
||||
|
||||
<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");
|
||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
|
||||
carrier.getNode("controls/elevators").setBoolValue(v);
|
||||
}
|
||||
</script>
|
||||
</binding>
|
||||
</checkbox>
|
||||
<checkbox>
|
||||
<halign>left</halign>
|
||||
<label>Turn into wind</label>
|
||||
<property>/ai/models/carrier/controls/turn-to-launch-hdg</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
var v = getprop("/ai/models/carrier/controls/turn-to-launch-hdg");
|
||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
|
||||
carrier.getNode("controls/turn-to-launch-hdg").setBoolValue(v);
|
||||
}
|
||||
</script>
|
||||
</binding>
|
||||
</checkbox>
|
||||
|
||||
<checkbox>
|
||||
<halign>left</halign>
|
||||
<label>Deck Lights</label>
|
||||
<property>/ai/models/carrier/controls/deck-lights</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
var v = getprop("/ai/models/carrier/controls/deck-lights");
|
||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
|
||||
carrier.getNode("controls/deck-lights",1).setBoolValue(v);
|
||||
}
|
||||
</script>
|
||||
</binding>
|
||||
</checkbox>
|
||||
<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");
|
||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
|
||||
carrier.getNode("controls/elevators").setBoolValue(v);
|
||||
}
|
||||
</script>
|
||||
</binding>
|
||||
</checkbox>
|
||||
|
||||
</group>
|
||||
<checkbox>
|
||||
<halign>left</halign>
|
||||
<label>Deck Lights</label>
|
||||
<property>/ai/models/carrier/controls/deck-lights</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
var v = getprop("/ai/models/carrier/controls/deck-lights");
|
||||
foreach (carrier; props.globals.getNode("/ai/models").getChildren("carrier")) {
|
||||
carrier.getNode("controls/deck-lights",1).setBoolValue(v);
|
||||
}
|
||||
</script>
|
||||
</binding>
|
||||
</checkbox>
|
||||
|
||||
<empty><stretch>true</stretch></empty>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<default-padding>6</default-padding>
|
||||
<empty><stretch>true</stretch></empty>
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
</group>
|
||||
|
||||
<button>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<default-padding>6</default-padding>
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
|
||||
<button>
|
||||
<legend>Apply</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
</button>
|
||||
<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>Reset</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-update</command>
|
||||
</binding>
|
||||
</button>
|
||||
<button>
|
||||
<legend>Apply</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<key>Esc</key>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
<button>
|
||||
<legend>Reset</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-update</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
<empty><stretch>true</stretch></empty>
|
||||
</group>
|
||||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<key>Esc</key>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
</group>
|
||||
</PropertyList>
|
||||
|
|
Loading…
Add table
Reference in a new issue