2017-11-09 10:02:35 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
<name>Vinson</name>
|
|
|
|
<modal>false</modal>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
|
|
|
|
<empty>
|
|
|
|
<stretch>1</stretch>
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>USS Carl Vinson Controls</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>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Course</label>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<radio>
|
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Turn to launch course</label>
|
2017-11-10 07:24:33 +00:00
|
|
|
<property>/controls/vinson/turn-to-launch-hdg</property>
|
2017-11-09 10:02:35 +00:00
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
2017-11-10 07:24:33 +00:00
|
|
|
var v = getprop("/controls/vinson/turn-to-launch-hdg");
|
2017-11-09 10:02:35 +00:00
|
|
|
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier")){
|
2017-11-10 07:24:33 +00:00
|
|
|
|
2021-06-05 14:18:58 +00:00
|
|
|
if (c.getNode("name").getValue() != nil and c.getNode("name").getValue() == "Vinson")
|
2017-11-10 07:24:33 +00:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
}
|
2017-11-09 10:02:35 +00:00
|
|
|
}
|
2017-11-10 07:24:33 +00:00
|
|
|
|
|
|
|
setprop("/controls/vinson/turn-to-base-course", 0);
|
|
|
|
setprop("/controls/vinson/turn-to-recovery-hdg", 0);
|
2017-11-09 10:02:35 +00:00
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
|
|
|
|
<radio>
|
|
|
|
<row>2</row>
|
|
|
|
<col>0</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Turn to recovery course</label>
|
2017-11-10 07:24:33 +00:00
|
|
|
<property>/controls/vinson/turn-to-recovery-hdg</property>
|
2017-11-09 10:02:35 +00:00
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
2017-11-10 07:24:33 +00:00
|
|
|
var v = getprop("/controls/vinson/turn-to-recovery-hdg");
|
2017-11-09 10:02:35 +00:00
|
|
|
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier")){
|
2017-11-10 07:24:33 +00:00
|
|
|
|
2021-06-05 14:18:58 +00:00
|
|
|
if (c.getNode("name").getValue() != nil and c.getNode("name").getValue() == "Vinson")
|
2017-11-10 07:24:33 +00:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
}
|
2017-11-09 10:02:35 +00:00
|
|
|
}
|
2017-11-10 07:24:33 +00:00
|
|
|
|
|
|
|
setprop("/controls/vinson/turn-to-base-course", 0);
|
|
|
|
setprop("/controls/vinson/turn-to-launch-hdg", 0);
|
2017-11-09 10:02:35 +00:00
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
|
|
|
|
<radio>
|
|
|
|
<row>3</row>
|
|
|
|
<col>0</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Turn to base course</label>
|
2017-11-10 07:24:33 +00:00
|
|
|
<property>/controls/vinson/turn-to-base-course</property>
|
2017-11-09 10:02:35 +00:00
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
2017-11-10 07:24:33 +00:00
|
|
|
var v = getprop("/controls/vinson/turn-to-base-course");
|
2017-11-09 10:02:35 +00:00
|
|
|
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier")){
|
2017-11-10 07:24:33 +00:00
|
|
|
|
2021-06-05 14:18:58 +00:00
|
|
|
if (c.getNode("name").getValue() != nil and c.getNode("name").getValue() == "Vinson")
|
2017-11-10 07:24:33 +00:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
}
|
2017-11-09 10:02:35 +00:00
|
|
|
}
|
2017-11-10 07:24:33 +00:00
|
|
|
|
|
|
|
setprop("/controls/vinson/turn-to-launch-hdg", 0);
|
|
|
|
setprop("/controls/vinson/turn-to-recovery-hdg", 0);
|
2017-11-09 10:02:35 +00:00
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</radio>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Equipment</label>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<label>Elevator 1</label>
|
|
|
|
<property>/controls/vinson/elevator[0]/state</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>1</row>
|
|
|
|
<col>1</col>
|
|
|
|
<label>Elevator 2</label>
|
|
|
|
<property>/controls/vinson/elevator[1]/state</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>3</row>
|
|
|
|
<col>0</col>
|
|
|
|
<label>JBD 1</label>
|
|
|
|
<property>/controls/vinson/jbd[0]/state</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>3</row>
|
|
|
|
<col>1</col>
|
|
|
|
<label>JBD 2</label>
|
|
|
|
<property>/controls/vinson/jbd[1]/state</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>3</row>
|
|
|
|
<col>2</col>
|
|
|
|
<label>JBD 3</label>
|
|
|
|
<property>/controls/vinson/jbd[2]/state</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>3</row>
|
|
|
|
<col>3</col>
|
|
|
|
<label>JBD 4</label>
|
|
|
|
<property>/controls/vinson/jbd[3]/state</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
|
|
|
|
</group>
|
|
|
|
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Options</label>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<label>Enable Deck Park</label>
|
|
|
|
<property>/controls/vinson/deck-park</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<!--<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>1</row>
|
|
|
|
<col>1</col>
|
|
|
|
<label>Enable Crew</label>
|
|
|
|
<property>/controls/vinson/crew</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>-->
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>1</row>
|
|
|
|
<col>1</col>
|
|
|
|
<label>Deck lights</label>
|
|
|
|
<property>/controls/vinson/lights</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<!--<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>2</row>
|
|
|
|
<col>1</col>
|
|
|
|
<label>Enable Wave motion</label>
|
|
|
|
<property>/controls/vinson/wave-motion</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>-->
|
|
|
|
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<empty>
|
|
|
|
<stretch>1</stretch>
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
</PropertyList>
|