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