Debian Codegraph @

Aircraft/c172p/gui/dialogs/aircraft-dialog.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!-- C172p-detailed
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful, but
10 WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
13 -->
14
15 <PropertyList>
16
17 <name>aircraft-dialog</name>
18 <layout>vbox</layout>
19 <resizable>false</resizable>
20 <modal>false</modal>
21 <draggable>true</draggable>
22
23 <nasal>
24 <open>
25 # Bush kit
26 var p = getprop("fdm/jsbsim/bushkit");
27 setprop("/sim/model/c172p/bushkit_flag_0", 0);
28 setprop("/sim/model/c172p/bushkit_flag_1", 0);
29 setprop("/sim/model/c172p/bushkit_flag_2", 0);
30 setprop("/sim/model/c172p/bushkit_flag_3", 0);
31 setprop("/sim/model/c172p/bushkit_flag_4", 0);
32 setprop("/sim/model/c172p/bushkit_flag_5", 0);
33 setprop("/sim/model/c172p/bushkit_flag_" ~ p, 1);
34
35 # Engine power
36 var p = getprop("/controls/engines/active-engine");
37 setprop("sim/model/c172p/engine_flag_0", 0);
38 setprop("sim/model/c172p/engine_flag_1", 0);
39 setprop("sim/model/c172p/engine_flag_" ~ p, 1);
40
41 # Tank size
42 var p = getprop("/fdm/jsbsim/fuel/tank");
43 setprop("sim/model/c172p/tank_flag_0", 0);
44 setprop("sim/model/c172p/tank_flag_1", 0);
45 setprop("sim/model/c172p/tank_flag_" ~ p, 1);
46
47 # Ensure latitude nut has a value
48 var latnutprop = "/instrumentation/heading-indicator/latitude-nut-setting";
49 if (!getprop(latnutprop))
50 setprop(latnutprop, 0);
51 </open>
52 </nasal>
53
54 <group>
55 <layout>hbox</layout>
56
57 <empty><stretch>true</stretch></empty>
58 <text>
59 <label>Aircraft Options</label>
60 </text>
61 <empty><stretch>true</stretch></empty>
62
63 <button>
64 <legend>X</legend>
65 <key>Esc</key>
66 <halign>right</halign>
67 <pref-width>20</pref-width>
68 <pref-height>20</pref-height>
69 <binding>
70 <command>dialog-close</command>
71 </binding>
72 </button>
73 </group>
74
75 <hrule/>
76
77 <group>
78 <layout>vbox</layout>
79 <padding>6</padding>
80
81 <group>
82 <layout>vbox</layout>
83
84 <checkbox>
85 <halign>left</halign>
86 <label>Start with engine running</label>
87 <property>/fdm/jsbsim/running</property>
88 <live>true</live>
89 <binding>
90 <command>dialog-apply</command>
91 </binding>
92 </checkbox>
93
94 <checkbox>
95 <halign>left</halign>
96 <label>Save state of aircraft between sessions</label>
97 <property>/sim/model/c172p/save-state</property>
98 <live>true</live>
99 <binding>
100 <command>dialog-apply</command>
101 </binding>
102 </checkbox>
103
104 <checkbox>
105 <halign>left</halign>
106 <label>Enable "Stick force per g" input method</label>
107 <property>fdm/jsbsim/fcs/stick-force-per-g</property>
108 <live>true</live>
109 <binding>
110 <command>dialog-apply</command>
111 </binding>
112 </checkbox>
113
114 </group>
115
116 <hrule/>
117
118 <group>
119 <layout>vbox</layout>
120
121 <checkbox>
122 <halign>left</halign>
123 <label>Complex engine procedures and failures</label>
124 <property>/engines/active-engine/complex-engine-procedures</property>
125 <live>true</live>
126 <binding>
127 <command>dialog-apply</command>
128 </binding>
129 </checkbox>
130 <group>
131 <layout>hbox</layout>
132 <halign>left</halign>
133 <!-- Small left padding -->
134 <group>
135 <layout>vbox</layout>
136 <padding>12</padding>
137 </group>
138 <group>
139 <layout>vbox</layout>
140 <checkbox>
141 <halign>left</halign>
142 <label>Allow starter cycle limits</label>
143 <property>/engines/active-engine/starter-management</property>
144 <live>true</live>
145 <enable>
146 <and>
147 <property>/engines/active-engine/complex-engine-procedures</property>
148 </and>
149 </enable>
150 <binding>
151 <command>dialog-apply</command>
152 </binding>
153 </checkbox>
154 <!-- more sub-checkboxes go here -->
155 </group>
156 </group>
157
158 <group>
159 <layout>hbox</layout>
160
161 <checkbox>
162 <halign>left</halign>
163 <label>Enable damage</label>
164 <property>/fdm/jsbsim/settings/damage</property>
165 <live>true</live>
166 <binding>
167 <command>dialog-apply</command>
168 </binding>
169 <binding>
170 <command>nasal</command>
171 <script>
172 c172p.repair_damage();
173 </script>
174 </binding>
175 </checkbox>
176
177 <button>
178 <halign>right</halign>
179 <legend>Repair</legend>
180 <pref-width>60</pref-width>
181 <pref-height>28</pref-height>
182 <enable>
183 <and>
184 <not>
185 <property>/sim/freeze/replay-state</property>
186 </not>
187 <less-than>
188 <property>gear/gear[0]/rollspeed-ms</property>
189 <value>1.0</value>
190 </less-than>
191 <not>
192 <property>/engines/active-engine/running</property>
193 </not>
194 <less-than>
195 <property>/engines/active-engine/rpm</property>
196 <value>1</value>
197 </less-than>
198 </and>
199 </enable>
200 <binding>
201 <command>nasal</command>
202 <script>
203 c172p.repair_damage();
204 electrical.reset_battery_and_circuit_breakers();
205 c172p.click("engine-repair", 6.0);
206 c172p.dialog_battery_reload();
207 </script>
208 </binding>
209 <binding>
210 <condition>
211 <property>sim/model/c172p/engine_flag_0</property>
212 </condition>
213 <command>property-assign</command>
214 <property>/engines/active-engine/oil-level</property>
215 <value>7.0</value>
216 </binding>
217 <binding>
218 <condition>
219 <property>sim/model/c172p/engine_flag_1</property>
220 </condition>
221 <command>property-assign</command>
222 <property>/engines/active-engine/oil-level</property>
223 <value>8.0</value>
224 </binding>
225 <binding>
226 <command>property-assign</command>
227 <property>/engines/active-engine/carb_ice</property>
228 <value>0.0</value>
229 </binding>
230 <binding>
231 <command>property-assign</command>
232 <property>/fdm/jsbsim/engine/damage-level</property>
233 <value>0</value>
234 </binding>
235 </button>
236 </group>
237
238 <checkbox>
239 <halign>left</halign>
240 <label>Enable frost, fog and icing</label>
241 <property>/sim/model/c172p/enable-fog-frost</property>
242 <live>true</live>
243 <binding>
244 <command>dialog-apply</command>
245 </binding>
246 </checkbox>
247 </group>
248
249 <hrule/>
250
251 <group>
252 <layout>vbox</layout>
253
254 <checkbox>
255 <halign>left</halign>
256 <label>Show human models</label>
257 <property>/sim/model/occupants</property>
258 <live>true</live>
259 <binding>
260 <command>dialog-apply</command>
261 </binding>
262 </checkbox>
263
264 </group>
265
266 <group>
267 <layout>hbox</layout>
268 <halign>left</halign>
269
270 <checkbox>
271 <halign>left</halign>
272 <label>Show/Hide Yokes</label>
273 <property>/sim/model/hide-yoke</property>
274 <live>true</live>
275 <binding>
276 <command>property-toggle</command>
277 <property>/sim/model/hide-yoke</property>
278 </binding>
279 <binding>
280 <command>dialog-update</command>
281 </binding>
282 </checkbox>
283 <slider>
284 <name>c172-yokealpha-slider</name>
285 <min>0</min>
286 <max>1.0</max>
287 <live>true</live>
288 <property>/sim/model/hide-yoke-alpha-cmd</property>
289 <binding>
290 <command>dialog-apply</command>
291 <name>c172-yokealpha-slider</name>
292 </binding>
293 </slider>
294 </group>
295
296 <hrule/>
297
298 <group>
299 <layout>vbox</layout>
300
301 <checkbox>
302 <halign>left</halign>
303 <label>Show Garmin 196 GPS</label>
304 <property>/sim/model/c172p/garmin196-visible</property>
305 <enable>
306 <not>
307 <property>/controls/panel/glass</property>
308 </not>
309 </enable>
310 <live>true</live>
311 <binding>
312 <command>dialog-apply</command>
313 </binding>
314 </checkbox>
315
316 <checkbox>
317 <halign>left</halign>
318 <label>Show Astro Tech LC2 Digital Clock</label>
319 <property>/sim/model/c172p/digitalclock-visible</property>
320 <live>true</live>
321 <enable>
322 <not>
323 <property>/controls/panel/glass</property>
324 </not>
325 </enable>
326 <binding>
327 <command>dialog-apply</command>
328 </binding>
329 </checkbox>
330
331 <checkbox>
332 <halign>left</halign>
333 <label>Show Rudder Trim Option</label>
334 <property>/sim/model/c172p/ruddertrim-visible</property>
335 <live>true</live>
336 <binding>
337 <command>dialog-apply</command>
338 </binding>
339 </checkbox>
340
341 </group>
342
343 <hrule/>
344
345 <group>
346 <layout>vbox</layout>
347
348 <text>
349 <label>Engine power options</label>
350 <halign>center</halign>
351 </text>
352
353 <group>
354 <layout>hbox</layout>
355
356 <radio>
357 <halign>left</halign>
358 <label>160 HP</label>
359 <property>sim/model/c172p/engine_flag_0</property>
360 <live>true</live>
361 <enable>
362 <not>
363 <property>/sim/freeze/replay-state</property>
364 </not>
365 </enable>
366 <binding>
367 <command>dialog-apply</command>
368 </binding>
369 <binding>
370 <command>nasal</command>
371 <script>
372 setprop("/controls/engines/active-engine", 0);
373 setprop("controls/engines/engine/primer", 0);
374 setprop("sim/model/c172p/engine_flag_0", 1);
375 setprop("sim/model/c172p/engine_flag_1", 0);
376 </script>
377 </binding>
378 <binding>
379 <command>dialog-show</command>
380 <dialog-name>c172p-oil-dialog-180</dialog-name>
381 </binding>
382 <binding>
383 <command>dialog-close</command>
384 <dialog-name>c172p-oil-dialog-180</dialog-name>
385 </binding>
386 <binding>
387 <command>property-assign</command>
388 <property>/engines/active-engine/oil-level</property>
389 <value>7.0</value>
390 </binding>
391 </radio>
392
393 <radio>
394 <halign>left</halign>
395 <label>180 HP</label>
396 <property>sim/model/c172p/engine_flag_1</property>
397 <live>true</live>
398 <enable>
399 <not>
400 <property>/sim/freeze/replay-state</property>
401 </not>
402 </enable>
403 <binding>
404 <command>dialog-apply</command>
405 </binding>
406 <binding>
407 <command>nasal</command>
408 <script>
409 setprop("/controls/engines/active-engine", 1);
410 setprop("controls/engines/engine/primer", 0);
411 setprop("sim/model/c172p/engine_flag_0", 0);
412 setprop("sim/model/c172p/engine_flag_1", 1);
413 </script>
414 </binding>
415 <binding>
416 <command>dialog-show</command>
417 <dialog-name>c172p-oil-dialog-160</dialog-name>
418 </binding>
419 <binding>
420 <command>dialog-close</command>
421 <dialog-name>c172p-oil-dialog-160</dialog-name>
422 </binding>
423 <binding>
424 <command>property-assign</command>
425 <property>/engines/active-engine/oil-level</property>
426 <value>8.0</value>
427 </binding>
428 </radio>
429 </group>
430 </group>
431
432 <hrule/>
433
434 <group>
435 <layout>vbox</layout>
436
437 <text>
438 <label>Tank size options</label>
439 <halign>center</halign>
440 </text>
441
442 <group>
443 <layout>hbox</layout>
444
445 <radio>
446 <halign>left</halign>
447 <label>Default (43 gal)</label>
448 <property>sim/model/c172p/tank_flag_0</property>
449 <live>true</live>
450 <enable>
451 <not>
452 <property>/sim/freeze/replay-state</property>
453 </not>
454 </enable>
455 <binding>
456 <command>dialog-apply</command>
457 </binding>
458 <binding>
459 <command>nasal</command>
460 <script>
461 setprop("/fdm/jsbsim/fuel/tank", 0);
462 setprop("sim/model/c172p/tank_flag_0", 1);
463 setprop("sim/model/c172p/tank_flag_1", 0);
464 </script>
465 </binding>
466 </radio>
467
468 <radio>
469 <halign>left</halign>
470 <label>Integral (68 gal)</label>
471 <property>sim/model/c172p/tank_flag_1</property>
472 <live>true</live>
473 <enable>
474 <not>
475 <property>/sim/freeze/replay-state</property>
476 </not>
477 </enable>
478 <binding>
479 <command>dialog-apply</command>
480 </binding>
481 <binding>
482 <command>nasal</command>
483 <script>
484 setprop("/fdm/jsbsim/fuel/tank", 1);
485 setprop("sim/model/c172p/tank_flag_0", 0);
486 setprop("sim/model/c172p/tank_flag_1", 1);
487 </script>
488 </binding>
489 </radio>
490 </group>
491 </group>
492
493 <hrule/>
494
495 <group>
496 <layout>vbox</layout>
497
498 <text>
499 <label>Landing gear options</label>
500 <halign>center</halign>
501 </text>
502
503 <group>
504 <layout>hbox</layout>
505
506 <group>
507 <layout>vbox</layout>
508
509 <radio>
510 <halign>left</halign>
511 <label>Default</label>
512 <property>sim/model/c172p/bushkit_flag_0</property>
513 <live>true</live>
514 <enable>
515 <and>
516 <not>
517 <property>/sim/freeze/replay-state</property>
518 </not>
519 <not>
520 <property>fdm/jsbsim/hydro/active-norm</property>
521 </not>
522 </and>
523 </enable>
524 <binding>
525 <command>dialog-apply</command>
526 </binding>
527 <binding>
528 <command>nasal</command>
529 <script>
530 setprop("fdm/jsbsim/bushkit", 0);
531 setprop("sim/model/variant", 0);
532 setprop("sim/model/c172p/bushkit_flag_0",1);
533 setprop("sim/model/c172p/bushkit_flag_1",0);
534 setprop("sim/model/c172p/bushkit_flag_2",0);
535 setprop("sim/model/c172p/bushkit_flag_3",0);
536 setprop("sim/model/c172p/bushkit_flag_4",0);
537 setprop("sim/model/c172p/bushkit_flag_5",0);
538
539 # Select 160 HP engine
540 setprop("/controls/engines/active-engine", 0);
541 setprop("controls/engines/engine/primer", 0);
542 setprop("sim/model/c172p/engine_flag_0", 1);
543 setprop("sim/model/c172p/engine_flag_1", 0);
544
545 setprop("/sim/aircraft", "c172p");
546 </script>
547 </binding>
548 <binding>
549 <command>dialog-show</command>
550 <dialog-name>c172p-oil-dialog-180</dialog-name>
551 </binding>
552 <binding>
553 <command>dialog-close</command>
554 <dialog-name>c172p-oil-dialog-180</dialog-name>
555 </binding>
556 <binding>
557 <command>property-assign</command>
558 <property>/engines/active-engine/oil-level</property>
559 <value>7.0</value>
560 </binding>
561 </radio>
562
563 <radio>
564 <halign>left</halign>
565 <label>26"</label>
566 <property>sim/model/c172p/bushkit_flag_1</property>
567 <live>true</live>
568 <enable>
569 <and>
570 <not>
571 <property>/sim/freeze/replay-state</property>
572 </not>
573 <not>
574 <property>fdm/jsbsim/hydro/active-norm</property>
575 </not>
576 </and>
577 </enable>
578 <binding>
579 <command>dialog-apply</command>
580 </binding>
581 <binding>
582 <command>nasal</command>
583 <script>
584 setprop("fdm/jsbsim/bushkit", 1);
585 setprop("sim/model/variant", 1);
586 setprop("sim/model/c172p/bushkit_flag_0",0);
587 setprop("sim/model/c172p/bushkit_flag_1",1);
588 setprop("sim/model/c172p/bushkit_flag_2",0);
589 setprop("sim/model/c172p/bushkit_flag_3",0);
590 setprop("sim/model/c172p/bushkit_flag_4",0);
591 setprop("sim/model/c172p/bushkit_flag_5",0);
592
593 # Select 160 HP engine
594 setprop("/controls/engines/active-engine", 0);
595 setprop("controls/engines/engine/primer", 0);
596 setprop("sim/model/c172p/engine_flag_0", 1);
597 setprop("sim/model/c172p/engine_flag_1", 0);
598
599 setprop("/sim/aircraft", "c172p-bush26");
600 </script>
601 </binding>
602 <binding>
603 <command>dialog-show</command>
604 <dialog-name>c172p-oil-dialog-180</dialog-name>
605 </binding>
606 <binding>
607 <command>dialog-close</command>
608 <dialog-name>c172p-oil-dialog-180</dialog-name>
609 </binding>
610 <binding>
611 <command>property-assign</command>
612 <property>/engines/active-engine/oil-level</property>
613 <value>7.0</value>
614 </binding>
615 </radio>
616
617 <radio>
618 <halign>left</halign>
619 <label>36"</label>
620 <property>sim/model/c172p/bushkit_flag_2</property>
621 <live>true</live>
622 <enable>
623 <and>
624 <not>
625 <property>/sim/freeze/replay-state</property>
626 </not>
627 <not>
628 <property>fdm/jsbsim/hydro/active-norm</property>
629 </not>
630 </and>
631 </enable>
632 <binding>
633 <command>dialog-apply</command>
634 </binding>
635 <binding>
636 <command>nasal</command>
637 <script>
638 setprop("fdm/jsbsim/bushkit", 2);
639 setprop("sim/model/variant", 2);
640 setprop("sim/model/c172p/bushkit_flag_0",0);
641 setprop("sim/model/c172p/bushkit_flag_1",0);
642 setprop("sim/model/c172p/bushkit_flag_2",1);
643 setprop("sim/model/c172p/bushkit_flag_3",0);
644 setprop("sim/model/c172p/bushkit_flag_4",0);
645 setprop("sim/model/c172p/bushkit_flag_5",0);
646
647 # Select 160 HP engine
648 setprop("/controls/engines/active-engine", 0);
649 setprop("controls/engines/engine/primer", 0);
650 setprop("sim/model/c172p/engine_flag_0", 1);
651 setprop("sim/model/c172p/engine_flag_1", 0);
652
653 setprop("/sim/aircraft", "c172p-bush36");
654 </script>
655 </binding>
656 <binding>
657 <command>dialog-show</command>
658 <dialog-name>c172p-oil-dialog-180</dialog-name>
659 </binding>
660 <binding>
661 <command>dialog-close</command>
662 <dialog-name>c172p-oil-dialog-180</dialog-name>
663 </binding>
664 <binding>
665 <command>property-assign</command>
666 <property>/engines/active-engine/oil-level</property>
667 <value>7.0</value>
668 </binding>
669 </radio>
670 </group>
671
672 <group>
673 <layout>vbox</layout>
674
675 <radio>
676 <halign>left</halign>
677 <label>Floats</label>
678 <property>sim/model/c172p/bushkit_flag_3</property>
679 <live>true</live>
680 <enable>
681 <not>
682 <property>/sim/freeze/replay-state</property>
683 </not>
684 </enable>
685 <binding>
686 <command>dialog-apply</command>
687 </binding>
688 <binding>
689 <command>nasal</command>
690 <script>
691 setprop("fdm/jsbsim/bushkit", 3);
692 setprop("sim/model/variant", 3);
693 setprop("sim/model/c172p/bushkit_flag_0",0);
694 setprop("sim/model/c172p/bushkit_flag_1",0);
695 setprop("sim/model/c172p/bushkit_flag_2",0);
696 setprop("sim/model/c172p/bushkit_flag_3",1);
697 setprop("sim/model/c172p/bushkit_flag_4",0);
698 setprop("sim/model/c172p/bushkit_flag_5",0);
699
700 # Select 180 HP engine
701 setprop("/controls/engines/active-engine", 1);
702 setprop("controls/engines/engine/primer", 0);
703 setprop("sim/model/c172p/engine_flag_0", 0);
704 setprop("sim/model/c172p/engine_flag_1", 1);
705
706 setprop("/sim/aircraft", "c172p-floats");
707 </script>
708 </binding>
709 <binding>
710 <command>property-assign</command>
711 <property>sim/model/c172p/securing/chock</property>
712 <value>false</value>
713 </binding>
714 <binding>
715 <command>property-assign</command>
716 <property>sim/model/c172p/securing/tiedownL-visible</property>
717 <value>false</value>
718 </binding>
719 <binding>
720 <command>property-assign</command>
721 <property>sim/model/c172p/securing/tiedownR-visible</property>
722 <value>false</value>
723 </binding>
724 <binding>
725 <command>property-assign</command>
726 <property>sim/model/c172p/securing/tiedownT-visible</property>
727 <value>false</value>
728 </binding>
729 <binding>
730 <command>dialog-show</command>
731 <dialog-name>c172p-oil-dialog-160</dialog-name>
732 </binding>
733 <binding>
734 <command>dialog-close</command>
735 <dialog-name>c172p-oil-dialog-160</dialog-name>
736 </binding>
737 <binding>
738 <command>property-assign</command>
739 <property>/engines/active-engine/oil-level</property>
740 <value>8.0</value>
741 </binding>
742 </radio>
743
744 <radio>
745 <halign>left</halign>
746 <label>Amphibious</label>
747 <property>sim/model/c172p/bushkit_flag_4</property>
748 <live>true</live>
749 <enable>
750 <not>
751 <property>/sim/freeze/replay-state</property>
752 </not>
753 </enable>
754 <binding>
755 <command>dialog-apply</command>
756 </binding>
757 <binding>
758 <command>nasal</command>
759 <script>
760 setprop("fdm/jsbsim/bushkit", 4);
761 setprop("sim/model/variant", 4);
762 setprop("sim/model/c172p/bushkit_flag_0",0);
763 setprop("sim/model/c172p/bushkit_flag_1",0);
764 setprop("sim/model/c172p/bushkit_flag_2",0);
765 setprop("sim/model/c172p/bushkit_flag_3",0);
766 setprop("sim/model/c172p/bushkit_flag_4",1);
767 setprop("sim/model/c172p/bushkit_flag_5",0);
768
769 # Select 180 HP engine
770 setprop("/controls/engines/active-engine", 1);
771 setprop("controls/engines/engine/primer", 0);
772 setprop("sim/model/c172p/engine_flag_0", 0);
773 setprop("sim/model/c172p/engine_flag_1", 1);
774
775 setprop("/sim/aircraft", "c172p-amphibious");
776 </script>
777 </binding>
778 <binding>
779 <command>property-assign</command>
780 <property>sim/model/c172p/securing/chock</property>
781 <value>false</value>
782 </binding>
783 <binding>
784 <command>dialog-show</command>
785 <dialog-name>c172p-oil-dialog-160</dialog-name>
786 </binding>
787 <binding>
788 <command>dialog-close</command>
789 <dialog-name>c172p-oil-dialog-160</dialog-name>
790 </binding>
791 <binding>
792 <command>property-assign</command>
793 <property>/engines/active-engine/oil-level</property>
794 <value>8.0</value>
795 </binding>
796 </radio>
797
798 <radio>
799 <halign>left</halign>
800 <label>Snow skis</label>
801 <property>sim/model/c172p/bushkit_flag_5</property>
802 <live>true</live>
803 <enable>
804 <and>
805 <not>
806 <property>/sim/freeze/replay-state</property>
807 </not>
808 <not>
809 <property>fdm/jsbsim/hydro/active-norm</property>
810 </not>
811 </and>
812 </enable>
813 <binding>
814 <command>dialog-apply</command>
815 </binding>
816 <binding>
817 <command>nasal</command>
818 <script>
819 setprop("fdm/jsbsim/bushkit", 5);
820 setprop("sim/model/variant", 5);
821 setprop("sim/model/c172p/bushkit_flag_0",0);
822 setprop("sim/model/c172p/bushkit_flag_1",0);
823 setprop("sim/model/c172p/bushkit_flag_2",0);
824 setprop("sim/model/c172p/bushkit_flag_3",0);
825 setprop("sim/model/c172p/bushkit_flag_4",0);
826 setprop("sim/model/c172p/bushkit_flag_5",1);
827
828 # Select 180 HP engine
829 setprop("/controls/engines/active-engine", 1);
830 setprop("controls/engines/engine/primer", 0);
831 setprop("sim/model/c172p/engine_flag_0", 0);
832 setprop("sim/model/c172p/engine_flag_1", 1);
833
834 setprop("/sim/aircraft", "c172p-ski");
835 </script>
836 </binding>
837 <binding>
838 <command>property-assign</command>
839 <property>sim/model/c172p/securing/chock</property>
840 <value>false</value>
841 </binding>
842 <binding>
843 <command>dialog-show</command>
844 <dialog-name>c172p-oil-dialog-160</dialog-name>
845 </binding>
846 <binding>
847 <command>dialog-close</command>
848 <dialog-name>c172p-oil-dialog-160</dialog-name>
849 </binding>
850 <binding>
851 <command>property-assign</command>
852 <property>/engines/active-engine/oil-level</property>
853 <value>8.0</value>
854 </binding>
855 </radio>
856 </group>
857
858 </group>
859
860 </group>
861
862 <hrule/>
863
864 <group>
865 <layout>hbox</layout>
866 <checkbox>
867 <halign>left</halign>
868 <label>Spawn at seaport if available</label>
869 <property>/controls/mooring/automatic</property>
870 <live>true</live>
871 <binding>
872 <command>dialog-apply</command>
873 </binding>
874 </checkbox>
875 <button>
876 <halign>right</halign>
877 <legend>Go now</legend>
878 <pref-width>60</pref-width>
879 <pref-height>28</pref-height>
880 <enable>
881 <and>
882 <property>/controls/mooring/allowed</property>
883 <not>
884 <property>/sim/freeze/replay-state</property>
885 </not>
886 </and>
887 </enable>
888 <binding>
889 <command>property-toggle</command>
890 <property>/controls/mooring/go-to-mooring</property>
891 </binding>
892 </button>
893 </group>
894 </group>
895
896 <hrule/>
897
898 <group>
899 <layout>hbox</layout>
900 <checkbox>
901 <halign>left</halign>
902 <label>Realistic Instruments</label>
903 <property>/sim/realism/instruments/realistic-instruments</property>
904 <live>true</live>
905 <binding>
906 <command>property-toggle</command>
907 <property>/sim/realism/instruments/realistic-instruments</property>
908 </binding>
909 <binding>
910 <command>dialog-apply</command><!-- makes sure that command is still there when dialog is closed-->
911 </binding>
912 </checkbox>
913 </group>
914
915 <group>
916 <layout>vbox</layout>
917 <checkbox>
918 <halign>left</halign>
919 <label>Enable FGCom audio panel integration</label>
920 <property>/instrumentation/audio-panel/fgcom-integration</property>
921 <live>true</live>
922 <binding>
923 <command>dialog-apply</command>
924 </binding>
925 </checkbox>
926 </group>
927
928 <group>
929 <layout>hbox</layout>
930
931 <text>
932 <label>HI/DG Latitude Nut setting:</label>
933 <halign>left</halign>
934 </text>
935
936 <input>
937 <name>latitude-nut-setting</name>
938 <halign>left</halign>
939 <property>/instrumentation/heading-indicator/latitude-nut-setting</property>
940 <type>INT</type>
941 <width>2</width>
942 </input>
943 <button>
944 <legend>Apply</legend>
945 <equal>true</equal>
946 <default>false</default>
947 <binding>
948 <command>dialog-apply</command>
949 <object-name>latitude-nut-setting</object-name>
950 </binding>
951 <binding>
952 <command>dialog-close</command>
953 </binding>
954 </button>
955 </group>
956
957 <hrule/>
958
959 <group>
960 <layout>hbox</layout>
961 <default-padding>6</default-padding>
962
963 <empty><stretch>true</stretch></empty>
964
965 <button>
966 <legend>Close</legend>
967 <equal>true</equal>
968 <key>Esc</key>
969 <default>true</default>
970 <binding>
971 <command>dialog-close</command>
972 </binding>
973 </button>
974 </group>
975
976 </PropertyList>