Debian Codegraph @

Aircraft/c172p/Models/Interior/Panel/Instruments/gear/gear-ctl.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <PropertyList>
4
5 <params>
6 <bushkit>sim/model/variant</bushkit>
7 <cockpit>
8 <electrical>
9 <gear-amphibious>sim/model/c172p/lighting/gear-select</gear-amphibious>
10 <gear-advisory>sim/model/c172p/lighting/gear-advisory</gear-advisory>
11 </electrical>
12 </cockpit>
13 <gear-amphibious>
14 <front-left-position-norm>engines/engine[3]/n2</front-left-position-norm>
15 <front-right-position-norm>engines/engine[4]/n2</front-right-position-norm>
16 <rear-left-position-norm>engines/engine[5]/n2</rear-left-position-norm>
17 <rear-right-position-norm>engines/engine[6]/n2</rear-right-position-norm>
18 </gear-amphibious>
19 </params>
20
21 <!-- original work from dhc6 -->
22 <path>gear-ctl.ac</path>
23
24 <effect>
25 <inherits-from>../../../../Effects/interior/lm-gear</inherits-from>
26 <object-name>Gearswitch</object-name>
27 <object-name>nosedn1</object-name>
28 <object-name>nosedn2</object-name>
29 <object-name>maindn1</object-name>
30 <object-name>maindn2</object-name>
31 <object-name>noseup1</object-name>
32 <object-name>noseup2</object-name>
33 <object-name>mainup1</object-name>
34 <object-name>mainup2</object-name>
35 <object-name>pump</object-name>
36 <object-name>Switch.nut</object-name>
37 <object-name>Dim.toggle</object-name>
38 <object-name>Dim.bezel</object-name>
39 <object-name>GearFace</object-name>
40 <object-name>GearScrews</object-name>
41 </effect>
42
43 <effect>
44 <inherits-from>../../../../Effects/interior/lm-gear-breakers</inherits-from>
45 <object-name>hydr_pump_breaker</object-name>
46 <object-name>gear_advise_breaker</object-name>
47 <object-name>gear_select_breaker</object-name>
48 <object-name>breakers-base-hydr</object-name>
49 </effect>
50
51 <animation>
52 <type>material</type>
53 <object-name>nosedn1</object-name>
54 <object-name>nosedn2</object-name>
55 <object-name>maindn1</object-name>
56 <object-name>maindn2</object-name>
57 <object-name>noseup1</object-name>
58 <object-name>noseup2</object-name>
59 <object-name>mainup1</object-name>
60 <object-name>mainup2</object-name>
61 <object-name>pump</object-name>
62 <object-name>Switch.nut</object-name>
63 <object-name>Dim.toggle</object-name>
64 <object-name>Dim.bezel</object-name>
65 <object-name>GearFace</object-name>
66 <object-name>GearScrews</object-name>
67 <object-name>Gearswitch</object-name>
68 <condition>
69 <or>
70 <not>
71 <property>sim/rendering/shaders/skydome</property>
72 </not>
73 <equals>
74 <property>sim/rendering/shaders/model</property>
75 <value>0</value>
76 </equals>
77 </or>
78 </condition>
79 <emission>
80 <red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop>
81 <green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop>
82 <blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
83 </emission>
84 </animation>
85
86 <animation>
87 <type>select</type>
88 <object-name>Switch.nut</object-name>
89 <object-name>Dim.bezel</object-name>
90 <object-name>Dim.toggle</object-name>
91 <object-name>GearAdvisory</object-name>
92 <object-name>GearFace</object-name>
93 <object-name>Gearswitch</object-name>
94 <object-name>GearScrews</object-name>
95 <object-name>hydr_pump_breaker</object-name>
96 <object-name>gear_advise_breaker</object-name>
97 <object-name>gear_select_breaker</object-name>
98 <object-name>breakers-base-hydr</object-name>
99 <condition>
100 <equals>
101 <property alias="/params/bushkit"/>
102 <value>4</value>
103 </equals>
104 </condition>
105 </animation>
106
107 <!-- Dim Toggle Switch -->
108 <animation>
109 <type>pick</type>
110 <object-name>Dim.toggle</object-name>
111 <visible>true</visible>
112 <action>
113 <button>0</button>
114 <repeatable>false</repeatable>
115 <binding>
116 <command>property-toggle</command>
117 <property>controls/lighting/gearled</property>
118 </binding>
119 <binding>
120 <command>nasal</command>
121 <script>c172p.click("avionics")</script>
122 </binding>
123 </action>
124 <hovered>
125 <binding>
126 <command>set-tooltip</command>
127 <tooltip-id>led-dim-switch</tooltip-id>
128 <label>Dim Gear Panel LED's</label>
129 </binding>
130 </hovered>
131 </animation>
132
133 <animation>
134 <type>rotate</type>
135 <object-name>Dim.toggle</object-name>
136 <property>controls/lighting/gearled</property>
137 <factor>30</factor>
138 <axis>
139 <x>0.0</x>
140 <y>1.0</y>
141 <z>0.0</z>
142 </axis>
143 <center>
144 <x-m>-0.35939</x-m>
145 <y-m> 0.22687</y-m>
146 <z-m> 0.09171</z-m>
147 </center>
148 </animation>
149
150 <animation>
151 <type>material</type>
152 <object-name>GearAdvisory</object-name>
153 <condition>
154 <and>
155 <greater-than>
156 <property>velocities/groundspeed-kt</property>
157 <value>10</value>
158 </greater-than>
159 <less-than>
160 <property>velocities/groundspeed-kt</property>
161 <value>70</value>
162 </less-than>
163 <property alias="/params/cockpit/electrical/gear-advisory"/>
164 </and>
165 </condition>
166 <emission>
167 <red>1</red>
168 <green>0.26</green>
169 <blue>0.05</blue>
170 <factor-prop>/controls/lighting/factor-led</factor-prop>
171 </emission>
172 </animation>
173 <model>
174 <name>GearAdvisoryled</name>
175 <path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_orange_large.xml</path>
176 <offsets>
177 <x-m>-0.354 </x-m>
178 <y-m> 0.28093</y-m>
179 <z-m> 0.11269</z-m>
180 </offsets>
181 <condition>
182 <and>
183 <greater-than>
184 <property>velocities/groundspeed-kt</property>
185 <value>10</value>
186 </greater-than>
187 <less-than>
188 <property>velocities/groundspeed-kt</property>
189 <value>70</value>
190 </less-than>
191 <property alias="/params/cockpit/electrical/gear-advisory"/>
192 <equals>
193 <property alias="/params/bushkit"/>
194 <value>4</value>
195 </equals>
196 <greater-than>
197 <property>sim/rendering/shaders/model</property>
198 <value>1</value>
199 </greater-than>
200 </and>
201 </condition>
202 </model>
203
204 <!-- Gear Down - land -->
205 <animation>
206 <type>select</type>
207 <object-name>nosedn1</object-name>
208 <condition>
209 <and>
210 <equals>
211 <property alias="/params/gear-amphibious/front-left-position-norm"/>
212 <value>1.0</value>
213 </equals>
214 <equals>
215 <property alias="/params/bushkit"/>
216 <value>4</value>
217 </equals>
218 <property alias="/params/cockpit/electrical/gear-amphibious"/>
219 </and>
220 </condition>
221 </animation>
222
223 <model>
224 <name>nosedn1led</name>
225 <path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_green.xml</path>
226 <offsets>
227 <x-m>-0.3555 </x-m>
228 <y-m> 0.241 </y-m>
229 <z-m> 0.08082</z-m>
230 </offsets>
231 <condition>
232 <and>
233 <equals>
234 <property alias="/params/gear-amphibious/front-left-position-norm"/>
235 <value>1.0</value>
236 </equals>
237 <equals>
238 <property alias="/params/bushkit"/>
239 <value>4</value>
240 </equals>
241 <property alias="/params/cockpit/electrical/gear-amphibious"/>
242 <greater-than>
243 <property>sim/rendering/shaders/model</property>
244 <value>1</value>
245 </greater-than>
246 </and>
247 </condition>
248 </model>
249
250 <animation>
251 <type>select</type>
252 <object-name>nosedn2</object-name>
253 <condition>
254 <and>
255 <equals>
256 <property alias="/params/gear-amphibious/front-right-position-norm"/>
257 <value>1.0</value>
258 </equals>
259 <equals>
260 <property alias="/params/bushkit"/>
261 <value>4</value>
262 </equals>
263 <property alias="/params/cockpit/electrical/gear-amphibious"/>
264 </and>
265 </condition>
266 </animation>
267 <model>
268 <name>nosedn2led</name>
269 <path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_green.xml</path>
270 <offsets>
271 <x-m>-0.3555 </x-m>
272 <y-m> 0.254</y-m>
273 <z-m> 0.08083</z-m>
274 </offsets>
275 <condition>
276 <and>
277 <equals>
278 <property alias="/params/gear-amphibious/front-right-position-norm"/>
279 <value>1.0</value>
280 </equals>
281 <equals>
282 <property alias="/params/bushkit"/>
283 <value>4</value>
284 </equals>
285 <property alias="/params/cockpit/electrical/gear-amphibious"/>
286 <greater-than>
287 <property>sim/rendering/shaders/model</property>
288 <value>1</value>
289 </greater-than>
290 </and>
291 </condition>
292 </model>
293
294 <animation>
295 <type>select</type>
296 <object-name>maindn1</object-name>
297 <condition>
298 <and>
299 <equals>
300 <property alias="/params/gear-amphibious/rear-left-position-norm"/>
301 <value>1.0</value>
302 </equals>
303 <equals>
304 <property alias="/params/bushkit"/>
305 <value>4</value>
306 </equals>
307 <property alias="/params/cockpit/electrical/gear-amphibious"/>
308 </and>
309 </condition>
310 </animation>
311 <model>
312 <name>maindn1led</name>
313 <path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_green.xml</path>
314 <offsets>
315 <x-m>-0.3555 </x-m>
316 <y-m> 0.241</y-m>
317 <z-m> 0.06783</z-m>
318 </offsets>
319 <condition>
320 <and>
321 <equals>
322 <property alias="/params/gear-amphibious/rear-left-position-norm"/>
323 <value>1.0</value>
324 </equals>
325 <equals>
326 <property alias="/params/bushkit"/>
327 <value>4</value>
328 </equals>
329 <property alias="/params/cockpit/electrical/gear-amphibious"/>
330 <greater-than>
331 <property>sim/rendering/shaders/model</property>
332 <value>1</value>
333 </greater-than>
334 </and>
335 </condition>
336 </model>
337
338 <animation>
339 <type>select</type>
340 <object-name>maindn2</object-name>
341 <condition>
342 <and>
343 <equals>
344 <property alias="/params/gear-amphibious/rear-right-position-norm"/>
345 <value>1.0</value>
346 </equals>
347 <equals>
348 <property alias="/params/bushkit"/>
349 <value>4</value>
350 </equals>
351 <property alias="/params/cockpit/electrical/gear-amphibious"/>
352 </and>
353 </condition>
354 </animation>
355 <model>
356 <name>maindn2led</name>
357 <path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_green.xml</path>
358 <offsets>
359 <x-m>-0.3555 </x-m>
360 <y-m> 0.254</y-m>
361 <z-m> 0.06784</z-m>
362 </offsets>
363 <condition>
364 <and>
365 <equals>
366 <property alias="/params/gear-amphibious/rear-right-position-norm"/>
367 <value>1.0</value>
368 </equals>
369 <equals>
370 <property alias="/params/bushkit"/>
371 <value>4</value>
372 </equals>
373 <property alias="/params/cockpit/electrical/gear-amphibious"/>
374 <greater-than>
375 <property>sim/rendering/shaders/model</property>
376 <value>1</value>
377 </greater-than>
378 </and>
379 </condition>
380 </model>
381
382 <!-- Gear Up - water -->
383 <animation>
384 <type>select</type>
385 <object-name>noseup1</object-name>
386 <condition>
387 <and>
388 <equals>
389 <property alias="/params/gear-amphibious/front-left-position-norm"/>
390 <value>0</value>
391 </equals>
392 <equals>
393 <property alias="/params/bushkit"/>
394 <value>4</value>
395 </equals>
396 <property alias="/params/cockpit/electrical/gear-amphibious"/>
397 </and>
398 </condition>
399 </animation>
400 <model>
401 <name>noseup1led</name>
402 <path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_blue.xml</path>
403 <offsets>
404 <x-m>-0.3555 </x-m>
405 <y-m> 0.241 </y-m>
406 <z-m> 0.11959</z-m>
407 </offsets>
408 <condition>
409 <and>
410 <equals>
411 <property alias="/params/gear-amphibious/front-left-position-norm"/>
412 <value>0</value>
413 </equals>
414 <equals>
415 <property alias="/params/bushkit"/>
416 <value>4</value>
417 </equals>
418 <property alias="/params/cockpit/electrical/gear-amphibious"/>
419 <greater-than>
420 <property>sim/rendering/shaders/model</property>
421 <value>1</value>
422 </greater-than>
423 </and>
424 </condition>
425 </model>
426
427 <animation>
428 <type>select</type>
429 <object-name>noseup2</object-name>
430 <condition>
431 <and>
432 <equals>
433 <property alias="/params/gear-amphibious/front-right-position-norm"/>
434 <value>0</value>
435 </equals>
436 <equals>
437 <property alias="/params/bushkit"/>
438 <value>4</value>
439 </equals>
440 <property alias="/params/cockpit/electrical/gear-amphibious"/>
441 </and>
442 </condition>
443 </animation>
444 <model>
445 <name>noseup2led</name>
446 <path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_blue.xml</path>
447 <offsets>
448 <x-m>-0.3555 </x-m>
449 <y-m> 0.254 </y-m>
450 <z-m> 0.11959</z-m>
451 </offsets>
452 <condition>
453 <and>
454 <equals>
455 <property alias="/params/gear-amphibious/front-right-position-norm"/>
456 <value>0</value>
457 </equals>
458 <equals>
459 <property alias="/params/bushkit"/>
460 <value>4</value>
461 </equals>
462 <property alias="/params/cockpit/electrical/gear-amphibious"/>
463 <greater-than>
464 <property>sim/rendering/shaders/model</property>
465 <value>1</value>
466 </greater-than>
467 </and>
468 </condition>
469 </model>
470
471 <animation>
472 <type>select</type>
473 <object-name>mainup1</object-name>
474 <condition>
475 <and>
476 <equals>
477 <property alias="/params/gear-amphibious/rear-left-position-norm"/>
478 <value>0</value>
479 </equals>
480 <equals>
481 <property alias="/params/bushkit"/>
482 <value>4</value>
483 </equals>
484 <property alias="/params/cockpit/electrical/gear-amphibious"/>
485 </and>
486 </condition>
487 </animation>
488 <model>
489 <name>mainup1led</name>
490 <path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_blue.xml</path>
491 <offsets>
492 <x-m>-0.3555 </x-m>
493 <y-m> 0.241 </y-m>
494 <z-m> 0.10677</z-m>
495 </offsets>
496 <condition>
497 <and>
498 <equals>
499 <property alias="/params/gear-amphibious/rear-left-position-norm"/>
500 <value>0</value>
501 </equals>
502 <equals>
503 <property alias="/params/bushkit"/>
504 <value>4</value>
505 </equals>
506 <property alias="/params/cockpit/electrical/gear-amphibious"/>
507 <greater-than>
508 <property>sim/rendering/shaders/model</property>
509 <value>1</value>
510 </greater-than>
511 </and>
512 </condition>
513 </model>
514
515 <animation>
516 <type>select</type>
517 <object-name>mainup2</object-name>
518 <condition>
519 <and>
520 <equals>
521 <property alias="/params/gear-amphibious/rear-right-position-norm"/>
522 <value>0</value>
523 </equals>
524 <equals>
525 <property alias="/params/bushkit"/>
526 <value>4</value>
527 </equals>
528 <property alias="/params/cockpit/electrical/gear-amphibious"/>
529 </and>
530 </condition>
531 </animation>
532 <model>
533 <name>mainup2led</name>
534 <path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_blue.xml</path>
535 <offsets>
536 <x-m>-0.3555 </x-m>
537 <y-m> 0.254 </y-m>
538 <z-m> 0.10678</z-m>
539 </offsets>
540 <condition>
541 <and>
542 <equals>
543 <property alias="/params/gear-amphibious/rear-right-position-norm"/>
544 <value>0</value>
545 </equals>
546 <equals>
547 <property alias="/params/bushkit"/>
548 <value>4</value>
549 </equals>
550 <property alias="/params/cockpit/electrical/gear-amphibious"/>
551 <greater-than>
552 <property>sim/rendering/shaders/model</property>
553 <value>1</value>
554 </greater-than>
555 </and>
556 </condition>
557 </model>
558
559 <!-- in transit -->
560 <animation>
561 <type>select</type>
562 <object-name>pump</object-name>
563 <condition>
564 <and>
565 <greater-than>
566 <property alias="/params/gear-amphibious/front-left-position-norm"/>
567 <value>0</value>
568 </greater-than>
569 <less-than>
570 <property alias="/params/gear-amphibious/front-left-position-norm"/>
571 <value>1.0</value>
572 </less-than>
573 <equals>
574 <property alias="/params/bushkit"/>
575 <value>4</value>
576 </equals>
577 <property alias="/params/cockpit/electrical/gear-amphibious"/>
578 </and>
579 </condition>
580 </animation>
581 <model>
582 <name>pumpled</name>
583 <path>Aircraft/c172p/Models/Effects/interior/procedural_light_indicator_led_red.xml</path>
584 <offsets>
585 <x-m>-0.3555 </x-m>
586 <y-m> 0.247 </y-m>
587 <z-m> 0.09396</z-m>
588 </offsets>
589 <condition>
590 <and>
591 <greater-than>
592 <property alias="/params/gear-amphibious/front-left-position-norm"/>
593 <value>0</value>
594 </greater-than>
595 <less-than>
596 <property alias="/params/gear-amphibious/front-left-position-norm"/>
597 <value>1.0</value>
598 </less-than>
599 <equals>
600 <property alias="/params/bushkit"/>
601 <value>4</value>
602 </equals>
603 <property alias="/params/cockpit/electrical/gear-amphibious"/>
604 <greater-than>
605 <property>sim/rendering/shaders/model</property>
606 <value>1</value>
607 </greater-than>
608 </and>
609 </condition>
610 </model>
611
612 <animation>
613 <type>material</type>
614 <object-name>noseup1</object-name>
615 <object-name>noseup2</object-name>
616 <object-name>mainup1</object-name>
617 <object-name>mainup2</object-name>
618 <object-name>nosedn1</object-name>
619 <object-name>nosedn2</object-name>
620 <object-name>maindn1</object-name>
621 <object-name>maindn2</object-name>
622 <object-name>pump</object-name>
623 <emission>
624 <red> .3</red>
625 <green>.3</green>
626 <blue> .3</blue>
627 <factor-prop>/controls/lighting/factor-led</factor-prop>
628 </emission>
629 </animation>
630
631 <animation>
632 <type>rotate</type>
633 <object-name>Gearswitch</object-name>
634 <property>controls/gear/gear-down-command</property>
635 <factor>45</factor>
636 <axis>
637 <x> 0</x>
638 <y> 1</y>
639 <z> 0</z>
640 </axis>
641 <center>
642 <x-m>-0.35905</x-m>
643 <y-m> 0.27999</y-m>
644 <z-m> 0.0751</z-m>
645 </center>
646 </animation>
647
648 <animation>
649 <type>pick</type>
650 <object-name>Gearswitch</object-name>
651 <action>
652 <button>0</button>
653 <repeatable>false</repeatable>
654 <binding>
655 <command>property-toggle</command>
656 <property>controls/gear/gear-down-command</property>
657 </binding>
658 </action>
659 </animation>
660
661 <!-- amphibious landing gear -->
662
663 <animation>
664 <type>translate</type>
665 <object-name>gear_select_breaker</object-name>
666 <property>controls/circuit-breakers/gear-select</property>
667 <factor>-0.008</factor>
668 <axis>
669 <x>1.0</x>
670 <y>0.0</y>
671 <z>0.0</z>
672 </axis>
673 </animation>
674
675 <animation>
676 <type>pick</type>
677 <object-name>gear_select_breaker</object-name>
678 <visible>true</visible>
679 <action>
680 <button>0</button>
681 <repeatable>false</repeatable>
682 <binding>
683 <command>property-toggle</command>
684 <property>controls/circuit-breakers/gear-select</property>
685 </binding>
686 <binding>
687 <command>nasal</command>
688 <script>c172p.click("cb")</script>
689 </binding>
690 </action>
691 <hovered>
692 <binding>
693 <command>set-tooltip</command>
694 <tooltip-id>gear_select_breaker</tooltip-id>
695 <label>Gear select breaker: %s</label>
696 <mapping>on-off</mapping>
697 <property>controls/circuit-breakers/gear-select</property>
698 </binding>
699 </hovered>
700 </animation>
701
702 <animation>
703 <type>translate</type>
704 <object-name>gear_advise_breaker</object-name>
705 <property>controls/circuit-breakers/gear-advisory</property>
706 <factor>-0.008</factor>
707 <axis>
708 <x>1.0</x>
709 <y>0.0</y>
710 <z>0.0</z>
711 </axis>
712 </animation>
713
714 <animation>
715 <type>pick</type>
716 <object-name>gear_advise_breaker</object-name>
717 <visible>true</visible>
718 <action>
719 <button>0</button>
720 <repeatable>false</repeatable>
721 <binding>
722 <command>property-toggle</command>
723 <property>controls/circuit-breakers/gear-advisory</property>
724 </binding>
725 <binding>
726 <command>nasal</command>
727 <script>c172p.click("cb")</script>
728 </binding>
729 </action>
730 <hovered>
731 <binding>
732 <command>set-tooltip</command>
733 <tooltip-id>gear_advise_breaker</tooltip-id>
734 <label>Gear advisory breaker: %s</label>
735 <mapping>on-off</mapping>
736 <property>controls/circuit-breakers/gear-advisory</property>
737 </binding>
738 </hovered>
739 </animation>
740
741 <animation>
742 <type>translate</type>
743 <object-name>hydr_pump_breaker</object-name>
744 <property>controls/circuit-breakers/hydraulic-pump</property>
745 <factor>-0.008</factor>
746 <axis>
747 <x>1.0</x>
748 <y>0.0</y>
749 <z>0.0</z>
750 </axis>
751 </animation>
752
753 <animation>
754 <type>pick</type>
755 <object-name>hydr_pump_breaker</object-name>
756 <visible>true</visible>
757 <action>
758 <button>0</button>
759 <repeatable>false</repeatable>
760 <binding>
761 <command>property-toggle</command>
762 <property>controls/circuit-breakers/hydraulic-pump</property>
763 </binding>
764 <binding>
765 <command>nasal</command>
766 <script>c172p.click("cb")</script>
767 </binding>
768 </action>
769 <hovered>
770 <binding>
771 <command>set-tooltip</command>
772 <tooltip-id>hydr_pump_breaker</tooltip-id>
773 <label>Hydraulic pump breaker: %s</label>
774 <mapping>on-off</mapping>
775 <property>controls/circuit-breakers/hydraulic-pump</property>
776 </binding>
777 </hovered>
778 </animation>
779
780 </PropertyList>