| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
<PropertyList> |
| 6 |
<name>atc-ai</name> |
| 7 |
<modal>false</modal> |
| 8 |
<layout>vbox</layout> |
| 9 |
|
| 10 |
<text> |
| 11 |
<label>ATC/AI Options</label> |
| 12 |
</text> |
| 13 |
|
| 14 |
<hrule/> |
| 15 |
|
| 16 |
<group> |
| 17 |
<layout>hbox</layout> |
| 18 |
<empty> |
| 19 |
<pref-width>10</pref-width> |
| 20 |
</empty> |
| 21 |
|
| 22 |
<group> |
| 23 |
<layout>vbox</layout> |
| 24 |
|
| 25 |
<checkbox> |
| 26 |
<halign>left</halign> |
| 27 |
<label>Enable ATC</label> |
| 28 |
<property>/sim/atc/enabled</property> |
| 29 |
</checkbox> |
| 30 |
|
| 31 |
<checkbox> |
| 32 |
<halign>left</halign> |
| 33 |
<label>Enable AI traffic</label> |
| 34 |
<property>/sim/traffic-manager/enabled</property> |
| 35 |
</checkbox> |
| 36 |
|
| 37 |
</group> |
| 38 |
|
| 39 |
<empty> |
| 40 |
<stretch>true</stretch> |
| 41 |
</empty> |
| 42 |
</group> |
| 43 |
|
| 44 |
<hrule/> |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
<text> |
| 49 |
<halign>left</halign> |
| 50 |
<label>AI Carrier</label> |
| 51 |
<color> |
| 52 |
<red>0.5</red> |
| 53 |
<green>0.5</green> |
| 54 |
<blue>0.5</blue> |
| 55 |
<alpha>1</alpha> |
| 56 |
</color> |
| 57 |
</text> |
| 58 |
|
| 59 |
<group> |
| 60 |
<layout>hbox</layout> |
| 61 |
<empty> |
| 62 |
<pref-width>10</pref-width> |
| 63 |
</empty> |
| 64 |
|
| 65 |
<group> |
| 66 |
<layout>vbox</layout> |
| 67 |
|
| 68 |
<radio> |
| 69 |
<halign>left</halign> |
| 70 |
<label>Turn to launch course</label> |
| 71 |
<property>/ai/models/carrier/controls/turn-to-launch-hdg</property> |
| 72 |
<live>true</live> |
| 73 |
<binding> |
| 74 |
<command>dialog-apply</command> |
| 75 |
</binding> |
| 76 |
<binding> |
| 77 |
<command>nasal</command> |
| 78 |
<script> |
| 79 |
var v = getprop("/ai/models/carrier/controls/turn-to-launch-hdg"); |
| 80 |
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier")){ |
| 81 |
c.getNode("controls/turn-to-launch-hdg").setBoolValue(v); |
| 82 |
c.getNode("controls/turn-to-recovery-hdg").setBoolValue(0); |
| 83 |
c.getNode("controls/turn-to-base-course").setBoolValue(0); |
| 84 |
} |
| 85 |
</script> |
| 86 |
</binding> |
| 87 |
</radio> |
| 88 |
|
| 89 |
<radio> |
| 90 |
<halign>left</halign> |
| 91 |
<label>Turn to recovery course</label> |
| 92 |
<property>/ai/models/carrier/controls/turn-to-recovery-hdg</property> |
| 93 |
<live>true</live> |
| 94 |
<binding> |
| 95 |
<command>dialog-apply</command> |
| 96 |
</binding> |
| 97 |
<binding> |
| 98 |
<command>nasal</command> |
| 99 |
<script> |
| 100 |
var v = getprop("/ai/models/carrier/controls/turn-to-recovery-hdg"); |
| 101 |
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier")){ |
| 102 |
c.getNode("controls/turn-to-recovery-hdg").setBoolValue(v); |
| 103 |
c.getNode("controls/turn-to-launch-hdg").setBoolValue(0); |
| 104 |
c.getNode("controls/turn-to-base-course").setBoolValue(0); |
| 105 |
} |
| 106 |
</script> |
| 107 |
</binding> |
| 108 |
</radio> |
| 109 |
|
| 110 |
<radio> |
| 111 |
<halign>left</halign> |
| 112 |
<label>Turn to base course</label> |
| 113 |
<property>/ai/models/carrier/controls/turn-to-base-course</property> |
| 114 |
<live>true</live> |
| 115 |
<binding> |
| 116 |
<command>dialog-apply</command> |
| 117 |
</binding> |
| 118 |
<binding> |
| 119 |
<command>nasal</command> |
| 120 |
<script> |
| 121 |
var v = getprop("/ai/models/carrier/controls/turn-to-base-course"); |
| 122 |
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier")){ |
| 123 |
c.getNode("controls/turn-to-base-course").setBoolValue(v); |
| 124 |
c.getNode("controls/turn-to-recovery-hdg").setBoolValue(0); |
| 125 |
c.getNode("controls/turn-to-launch-hdg").setBoolValue(0); |
| 126 |
} |
| 127 |
</script> |
| 128 |
</binding> |
| 129 |
</radio> |
| 130 |
|
| 131 |
<checkbox> |
| 132 |
<halign>left</halign> |
| 133 |
<label>Operate Deck Elevators</label> |
| 134 |
<property>/ai/models/carrier/controls/elevators</property> |
| 135 |
<binding> |
| 136 |
<command>dialog-apply</command> |
| 137 |
</binding> |
| 138 |
<binding> |
| 139 |
<command>nasal</command> |
| 140 |
<script> |
| 141 |
var v = getprop("/ai/models/carrier/controls/elevators"); |
| 142 |
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier")) |
| 143 |
c.getNode("controls/elevators").setBoolValue(v); |
| 144 |
</script> |
| 145 |
</binding> |
| 146 |
</checkbox> |
| 147 |
|
| 148 |
<checkbox> |
| 149 |
<halign>left</halign> |
| 150 |
<label>Enable LSO Communications</label> |
| 151 |
<property>/sim/current-view/lso-commentary</property> |
| 152 |
<binding> |
| 153 |
<command>dialog-apply</command> |
| 154 |
</binding> |
| 155 |
</checkbox> |
| 156 |
|
| 157 |
<checkbox> |
| 158 |
<halign>left</halign> |
| 159 |
<label>Enable Deck Park</label> |
| 160 |
<property>/sim/current-view/deck-park</property> |
| 161 |
<binding> |
| 162 |
<command>dialog-apply</command> |
| 163 |
</binding> |
| 164 |
</checkbox> |
| 165 |
|
| 166 |
<checkbox> |
| 167 |
<halign>left</halign> |
| 168 |
<label>Deck Lights</label> |
| 169 |
<property>/ai/models/carrier/controls/lighting/deck-lights</property> |
| 170 |
<binding> |
| 171 |
<command>dialog-apply</command> |
| 172 |
</binding> |
| 173 |
<binding> |
| 174 |
<command>nasal</command> |
| 175 |
<script> |
| 176 |
var v = getprop("/ai/models/carrier/controls/lighting/deck-lights"); |
| 177 |
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier")) |
| 178 |
c.getNode("controls/lighting/deck-lights",1).setBoolValue(v); |
| 179 |
</script> |
| 180 |
</binding> |
| 181 |
</checkbox> |
| 182 |
|
| 183 |
<text> |
| 184 |
<halign>left</halign> |
| 185 |
<label>Discrete Flightdeck Floodlights (Red)</label> |
| 186 |
</text> |
| 187 |
|
| 188 |
<slider> |
| 189 |
<halign>left</halign> |
| 190 |
<width>75</width> |
| 191 |
<height>25</height> |
| 192 |
<property>/ai/models/carrier/controls/lighting/flood-lights-red-norm</property> |
| 193 |
<binding> |
| 194 |
<command>nasal</command> |
| 195 |
<script> |
| 196 |
var v = getprop("/ai/models/carrier/controls/lighting/flood-lights-red-norm"); |
| 197 |
foreach (var c; props.globals.getNode("/ai/models").getChildren("carrier")) |
| 198 |
c.getNode("controls/lighting/flood-lights-red-norm",1).setDoubleValue(v); |
| 199 |
</script> |
| 200 |
</binding> |
| 201 |
</slider> |
| 202 |
|
| 203 |
</group> |
| 204 |
|
| 205 |
<empty> |
| 206 |
<stretch>true</stretch> |
| 207 |
</empty> |
| 208 |
</group> |
| 209 |
|
| 210 |
<group> |
| 211 |
<layout>hbox</layout> |
| 212 |
<default-padding>6</default-padding> |
| 213 |
<empty> |
| 214 |
<stretch>true</stretch> |
| 215 |
</empty> |
| 216 |
|
| 217 |
<button> |
| 218 |
<legend>OK</legend> |
| 219 |
<default>true</default> |
| 220 |
<equal>true</equal> |
| 221 |
<binding> |
| 222 |
<command>dialog-apply</command> |
| 223 |
</binding> |
| 224 |
<binding> |
| 225 |
<command>dialog-close</command> |
| 226 |
</binding> |
| 227 |
</button> |
| 228 |
|
| 229 |
<button> |
| 230 |
<legend>Apply</legend> |
| 231 |
<equal>true</equal> |
| 232 |
<binding> |
| 233 |
<command>dialog-apply</command> |
| 234 |
</binding> |
| 235 |
</button> |
| 236 |
|
| 237 |
<button> |
| 238 |
<legend>Reset</legend> |
| 239 |
<equal>true</equal> |
| 240 |
<binding> |
| 241 |
<command>dialog-update</command> |
| 242 |
</binding> |
| 243 |
</button> |
| 244 |
|
| 245 |
<button> |
| 246 |
<legend>Cancel</legend> |
| 247 |
<equal>true</equal> |
| 248 |
<key>Esc</key> |
| 249 |
<binding> |
| 250 |
<command>dialog-close</command> |
| 251 |
</binding> |
| 252 |
</button> |
| 253 |
|
| 254 |
<empty> |
| 255 |
<stretch>true</stretch> |
| 256 |
</empty> |
| 257 |
</group> |
| 258 |
</PropertyList> |