Debian Codegraph @

Aircraft/c172p/Models/Interior/Panel/Instruments/kt76a/kt76a.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4 ##########################################
5
6 # DR400-regent by PAF team
7 # April 2012 : Modified by PAF team
8 # http://equipe-flightgear.forumactif.com
9
10 ##########################################
11 -->
12
13 <PropertyList>
14
15 <path>kt76a.ac</path>
16
17 <params>
18 <serviceable>instrumentation/transponder/serviceable</serviceable>
19 <knob-mode>instrumentation/transponder/inputs/knob-mode</knob-mode>
20 <ident-btn>instrumentation/transponder/inputs/ident-btn</ident-btn>
21 <digit0>instrumentation/transponder/inputs/digit[0]</digit0>
22 <digit1>instrumentation/transponder/inputs/digit[1]</digit1>
23 <digit2>instrumentation/transponder/inputs/digit[2]</digit2>
24 <digit3>instrumentation/transponder/inputs/digit[3]</digit3>
25 <dimming>instrumentation/transponder/dimming-norm</dimming>
26 </params>
27
28 <effect>
29 <inherits-from>../../../../Effects/interior/lm-kt76a</inherits-from>
30 <object-name>Dial1</object-name>
31 <object-name>Dial10</object-name>
32 <object-name>Dial100</object-name>
33 <object-name>Dial1000</object-name>
34 <object-name>Knob1</object-name>
35 <object-name>Knob10</object-name>
36 <object-name>Knob100</object-name>
37 <object-name>Knob1000</object-name>
38 <object-name>KnobMode</object-name>
39 <object-name>Front</object-name>
40 <object-name>Ident</object-name>
41 <object-name>Ident-light</object-name>
42 <object-name>Border</object-name>
43 <!--object-name>vitre</object-name-->
44 <object-name>off</object-name>
45 <object-name>stby</object-name>
46 <object-name>on</object-name>
47 <object-name>alt</object-name>
48 <object-name>test</object-name>
49 </effect>
50
51 <animation>
52 <type>material</type>
53 <object-name>Dial1</object-name>
54 <object-name>Dial10</object-name>
55 <object-name>Dial100</object-name>
56 <object-name>Dial1000</object-name>
57 <object-name>Knob1</object-name>
58 <object-name>Knob10</object-name>
59 <object-name>Knob100</object-name>
60 <object-name>Knob1000</object-name>
61 <object-name>KnobMode</object-name>
62 <object-name>Front</object-name>
63 <object-name>Ident</object-name>
64 <object-name>Ident-light</object-name>
65 <object-name>Border</object-name>
66 <!--object-name>vitre</object-name-->
67 <object-name>off</object-name>
68 <object-name>stby</object-name>
69 <object-name>on</object-name>
70 <object-name>alt</object-name>
71 <object-name>test</object-name>
72 <condition>
73 <or>
74 <not>
75 <property>sim/rendering/shaders/skydome</property>
76 </not>
77 <equals>
78 <property>sim/rendering/shaders/model</property>
79 <value>0</value>
80 </equals>
81 </or>
82 </condition>
83 <emission>
84 <red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop>
85 <green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop>
86 <blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
87 </emission>
88 </animation>
89
90 <animation>
91 <object-name>Dial1</object-name>
92 <object-name>Dial10</object-name>
93 <object-name>Dial100</object-name>
94 <object-name>Dial1000</object-name>
95 <object-name>Front</object-name>
96 <object-name>Ident</object-name>
97 <object-name>Ident-light</object-name>
98 <object-name>Knob1</object-name>
99 <object-name>Knob10</object-name>
100 <object-name>Knob100</object-name>
101 <object-name>Knob1000</object-name>
102 <object-name>Border</object-name>
103 <object-name>KnobMode</object-name>
104 <!--object-name>vitre</object-name-->
105 <object-name>off</object-name>
106 <object-name>stby</object-name>
107 <object-name>on</object-name>
108 <object-name>alt</object-name>
109 <object-name>test</object-name>
110 </animation>
111
112 <animation>
113 <type>material</type>
114 <object-name>Dial1</object-name>
115 <object-name>Dial10</object-name>
116 <object-name>Dial100</object-name>
117 <object-name>Dial1000</object-name>
118 <object-name>Front</object-name>
119 <object-name>Ident</object-name>
120 <object-name>Ident-light</object-name>
121 <object-name>Knob1</object-name>
122 <object-name>Knob10</object-name>
123 <object-name>Knob100</object-name>
124 <object-name>Knob1000</object-name>
125 <object-name>Border</object-name>
126 <object-name>KnobMode</object-name>
127 <!--object-name>vitre</object-name-->
128 <object-name>off</object-name>
129 <object-name>stby</object-name>
130 <object-name>on</object-name>
131 <object-name>alt</object-name>
132 <object-name>test</object-name>
133 <property-base>/instrumentation/transponder</property-base>
134 <texture-prop>texture-file</texture-prop>
135 </animation>
136
137 <animation>
138 <type>material</type>
139 <object-name>Ident</object-name>
140 <object-name>Ident-light</object-name>
141 <emission>
142 <red>0.6</red>
143 <green>0.25</green>
144 <blue>0.00025</blue>
145 <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
146 </emission>
147 </animation>
148
149 <animation>
150 <type>material</type>
151 <object-name>stby</object-name>
152 <condition>
153 <and>
154 <not>
155 <property>sim/rendering/rembrandt/enabled</property>
156 </not>
157 <equals>
158 <property>instrumentation/transponder/inputs/knob-mode</property>
159 <value>1</value>
160 </equals>
161 <greater-than>
162 <property>sim/model/c172p/lighting/trans</property>
163 <value>0.0</value>
164 </greater-than>
165 </and>
166 </condition>
167 <emission>
168 <red>1.0</red>
169 <green>0.6</green>
170 <blue>0.5</blue>
171 <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
172 </emission>
173 </animation>
174
175 <animation>
176 <type>material</type>
177 <object-name>on</object-name>
178 <condition>
179 <and>
180 <not>
181 <property>sim/rendering/rembrandt/enabled</property>
182 </not>
183 <equals>
184 <property>instrumentation/transponder/inputs/knob-mode</property>
185 <value>4</value>
186 </equals>
187 <greater-than>
188 <property>sim/model/c172p/lighting/trans</property>
189 <value>0.0</value>
190 </greater-than>
191 </and>
192 </condition>
193 <emission>
194 <red>1.0</red>
195 <green>0.6</green>
196 <blue>0.5</blue>
197 <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
198 </emission>
199 </animation>
200
201 <animation>
202 <type>material</type>
203 <object-name>alt</object-name>
204 <condition>
205 <and>
206 <not>
207 <property>sim/rendering/rembrandt/enabled</property>
208 </not>
209 <equals>
210 <property>instrumentation/transponder/inputs/knob-mode</property>
211 <value>5</value>
212 </equals>
213 <greater-than>
214 <property>sim/model/c172p/lighting/trans</property>
215 <value>0.0</value>
216 </greater-than>
217 </and>
218 </condition>
219 <emission>
220 <red>1.0</red>
221 <green>0.6</green>
222 <blue>0.5</blue>
223 <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
224 </emission>
225 </animation>
226
227 <animation>
228 <type>material</type>
229 <object-name>test</object-name>
230 <condition>
231 <and>
232 <not>
233 <property>sim/rendering/rembrandt/enabled</property>
234 </not>
235 <equals>
236 <property>instrumentation/transponder/inputs/knob-mode</property>
237 <value>2</value>
238 </equals>
239 <greater-than>
240 <property>sim/model/c172p/lighting/trans</property>
241 <value>0.0</value>
242 </greater-than>
243 </and>
244 </condition>
245 <emission>
246 <red>1.0</red>
247 <green>0.6</green>
248 <blue>0.5</blue>
249 <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
250 </emission>
251 </animation>
252
253 <animation>
254 <type>material</type>
255 <object-name>Dial1</object-name>
256 <object-name>Dial10</object-name>
257 <object-name>Dial100</object-name>
258 <object-name>Dial1000</object-name>
259 <condition>
260 <and>
261 <not>
262 <property>sim/rendering/rembrandt/enabled</property>
263 </not>
264 <greater-than>
265 <property>sim/model/c172p/lighting/trans</property>
266 <value>0.0</value>
267 </greater-than>
268 </and>
269 </condition>
270 <emission>
271 <red>1.0</red>
272 <green>0.6</green>
273 <blue>0.5</blue>
274 <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
275 </emission>
276 </animation>
277
278 <!--animation>
279 <type>noshadow</type>
280 <object-name>vitre</object-name>
281 </animation>
282 <effect>
283 <inherits-from>Effects/model-transparent</inherits-from>
284 <object-name>vitre</object-name>
285 <condition>
286 <property>sim/rendering/rembrandt/enabled</property>
287 </condition>
288 </effect-->
289 <animation>
290 <type>rotate</type>
291 <object-name>Dial1000</object-name>
292 <!--<property>instrumentation/transponder/inputs/digit[3]</property>-->
293 <property alias="../../params/digit3"/>
294 <factor>45</factor>
295 <center>
296 <x-m>-0.35593</x-m>
297 <y-m> 0.09646</y-m>
298 <z-m>-0.14554</z-m>
299 </center>
300 <axis>
301 <x> -1 </x>
302 <y> 0 </y>
303 <z> 0 </z>
304 </axis>
305 </animation>
306
307 <animation>
308 <type>rotate</type>
309 <object-name>Knob1000</object-name>
310 <!--<property>instrumentation/transponder/inputs/digit[3]</property>-->
311 <property alias="../../params/digit3"/>
312 <factor>45</factor>
313 <center>
314 <x-m>-0.34093</x-m>
315 <y-m> 0.09646</y-m>
316 <z-m>-0.14354</z-m>
317 </center>
318 <axis>
319 <x> -1 </x>
320 <y> 0 </y>
321 <z> 0 </z>
322 </axis>
323 </animation>
324
325 <animation>
326 <type>knob</type>
327 <object-name>Knob1000</object-name>
328 <visible>true</visible>
329 <drag-scale-px>20</drag-scale-px>
330 <action>
331 <binding>
332 <command>property-adjust</command>
333 <!--<property>instrumentation/transponder/inputs/digit[3]</property>-->
334 <property alias="../../../../params/digit3"/>
335 <factor>1</factor>
336 <min>0</min>
337 <max>8</max>
338 <wrap>true</wrap>
339 </binding>
340 <binding>
341 <command>nasal</command>
342 <script>c172p.click("kt76a-dial")</script>
343 </binding>
344 </action>
345 <hovered>
346 <binding>
347 <command>set-tooltip</command>
348 <tooltip-id>transponder-squawk</tooltip-id>
349 <label>Squawk: %s</label>
350 <property>instrumentation/transponder/id-code</property>
351 <mapping>nasal</mapping>
352 <script>
353 return sprintf("%04d", arg[0]);
354 </script>
355 </binding>
356 </hovered>
357 </animation>
358
359 <animation>
360 <type>rotate</type>
361 <object-name>Dial100</object-name>
362 <!--<property>instrumentation/transponder/inputs/digit[2]</property>-->
363 <property alias="../../params/digit2"/>
364 <factor>45</factor>
365 <center>
366 <x-m>-0.35593</x-m>
367 <y-m> 0.12346</y-m>
368 <z-m>-0.14554</z-m>
369 </center>
370 <axis>
371 <x> -1 </x>
372 <y> 0 </y>
373 <z> 0 </z>
374 </axis>
375 </animation>
376
377 <animation>
378 <type>rotate</type>
379 <object-name>Knob100</object-name>
380 <!--<property>instrumentation/transponder/inputs/digit[2]</property>-->
381 <property alias="../../params/digit2"/>
382 <factor>45</factor>
383 <center>
384 <x-m>-0.34093</x-m>
385 <y-m> 0.12346</y-m>
386 <z-m>-0.14354</z-m>
387 </center>
388 <axis>
389 <x> -1 </x>
390 <y> 0 </y>
391 <z> 0 </z>
392 </axis>
393 </animation>
394
395 <animation>
396 <type>knob</type>
397 <object-name>Knob100</object-name>
398 <visible>true</visible>
399 <drag-scale-px>20</drag-scale-px>
400 <action>
401 <binding>
402 <command>property-adjust</command>
403 <!--<property>instrumentation/transponder/inputs/digit[2]</property>-->
404 <property alias="../../../../params/digit2"/>
405 <factor>1</factor>
406 <min>0</min>
407 <max>8</max>
408 <wrap>true</wrap>
409 </binding>
410 <binding>
411 <command>nasal</command>
412 <script>c172p.click("kt76a-dial")</script>
413 </binding>
414 </action>
415 <hovered>
416 <binding>
417 <command>set-tooltip</command>
418 <tooltip-id>transponder-squawk</tooltip-id>
419 <label>Squawk: %s</label>
420 <property>instrumentation/transponder/id-code</property>
421 <mapping>nasal</mapping>
422 <script>
423 return sprintf("%04d", arg[0]);
424 </script>
425 </binding>
426 </hovered>
427 </animation>
428
429 <animation>
430 <type>rotate</type>
431 <object-name>Dial10</object-name>
432 <!--<property>instrumentation/transponder/inputs/digit[1]</property>-->
433 <property alias="../../params/digit1"/>
434 <factor>45</factor>
435 <center>
436 <x-m>-0.35593</x-m>
437 <y-m> 0.15046</y-m>
438 <z-m>-0.14554</z-m>
439 </center>
440 <axis>
441 <x> -1 </x>
442 <y> 0 </y>
443 <z> 0 </z>
444 </axis>
445 </animation>
446
447 <animation>
448 <type>rotate</type>
449 <object-name>Knob10</object-name>
450 <!--<property>instrumentation/transponder/inputs/digit[1]</property>-->
451 <property alias="../../params/digit1"/>
452 <factor>45</factor>
453 <center>
454 <x-m>-0.34093</x-m>
455 <y-m> 0.15046</y-m>
456 <z-m>-0.14354</z-m>
457 </center>
458 <axis>
459 <x> -1 </x>
460 <y> 0 </y>
461 <z> 0 </z>
462 </axis>
463 </animation>
464
465 <animation>
466 <type>knob</type>
467 <object-name>Knob10</object-name>
468 <visible>true</visible>
469 <drag-scale-px>20</drag-scale-px>
470 <action>
471 <binding>
472 <command>property-adjust</command>
473 <!--<property>instrumentation/transponder/inputs/digit[1]</property>-->
474 <property alias="../../../../params/digit1"/>
475 <factor>1</factor>
476 <min>0</min>
477 <max>8</max>
478 <wrap>true</wrap>
479 </binding>
480 <binding>
481 <command>nasal</command>
482 <script>c172p.click("kt76a-dial")</script>
483 </binding>
484 </action>
485 <hovered>
486 <binding>
487 <command>set-tooltip</command>
488 <tooltip-id>transponder-squawk</tooltip-id>
489 <label>Squawk: %s</label>
490 <property>instrumentation/transponder/id-code</property>
491 <mapping>nasal</mapping>
492 <script>
493 return sprintf("%04d", arg[0]);
494 </script>
495 </binding>
496 </hovered>
497 </animation>
498
499 <animation>
500 <type>rotate</type>
501 <object-name>Dial1</object-name>
502 <!--<property>instrumentation/transponder/inputs/digit[0]</property>-->
503 <property alias="../../params/digit0"/>
504 <factor>45</factor>
505 <center>
506 <x-m>-0.35593</x-m>
507 <y-m> 0.17746</y-m>
508 <z-m>-0.14554</z-m>
509 </center>
510 <axis>
511 <x> -1 </x>
512 <y> 0 </y>
513 <z> 0 </z>
514 </axis>
515 </animation>
516
517 <animation>
518 <type>rotate</type>
519 <object-name>Knob1</object-name>
520 <!--<property>instrumentation/transponder/inputs/digit[0]</property>-->
521 <property alias="../../params/digit0"/>
522 <factor>45</factor>
523 <center>
524 <x-m>-0.34093</x-m>
525 <y-m> 0.17746</y-m>
526 <z-m>-0.14354</z-m>
527 </center>
528 <axis>
529 <x> -1 </x>
530 <y> 0 </y>
531 <z> 0 </z>
532 </axis>
533 </animation>
534
535 <animation>
536 <type>knob</type>
537 <object-name>Knob1</object-name>
538 <visible>true</visible>
539 <drag-scale-px>20</drag-scale-px>
540 <action>
541 <binding>
542 <command>property-adjust</command>
543 <!--<property>instrumentation/transponder/inputs/digit[0]</property>-->
544 <property alias="../../../../params/digit0"/>
545 <factor>1</factor>
546 <min>0</min>
547 <max>8</max>
548 <wrap>true</wrap>
549 </binding>
550 <binding>
551 <command>nasal</command>
552 <script>c172p.click("kt76a-dial")</script>
553 </binding>
554 </action>
555 <hovered>
556 <binding>
557 <command>set-tooltip</command>
558 <tooltip-id>transponder-squawk</tooltip-id>
559 <label>Squawk: %s</label>
560 <property>instrumentation/transponder/id-code</property>
561 <mapping>nasal</mapping>
562 <script>
563 return sprintf("%04d", arg[0]);
564 </script>
565 </binding>
566 </hovered>
567 </animation>
568
569 <animation>
570 <type>knob</type>
571 <object-name>KnobMode</object-name>
572 <visible>true</visible>
573 <drag-scale-px>20</drag-scale-px>
574 <action>
575 <binding>
576 <command>property-cycle</command>
577 <!--<property>instrumentation/transponder/inputs/knob-mode</property>-->
578 <property alias="../../../../params/knob-mode"/>
579 <wrap>0</wrap>
580 <value>0</value>
581 <!-- OFF -->
582 <value>1</value>
583 <!-- SBY -->
584 <value>4</value>
585 <!-- ON -->
586 <value>5</value>
587 <!-- ALT -->
588 <value>2</value>
589 <!-- TST -->
590 </binding>
591 <binding>
592 <command>nasal</command>
593 <script>c172p.click("kt76a-mode")</script>
594 </binding>
595 </action>
596 <hovered>
597 <binding>
598 <command>set-tooltip</command>
599 <tooltip-id>transponder-mode-btn</tooltip-id>
600 <label>Mode: %s</label>
601 <!--<property>instrumentation/transponder/inputs/knob-mode</property>-->
602 <property alias="../../../../params/knob-mode"/>
603 <mapping>nasal</mapping>
604 <script>
605 var m = arg[0];
606 if(m == 1) return 'STANDBY';
607 if(m == 4) return 'ON';
608 if(m == 5) return 'ALTITUDE';
609 if(m == 2) return 'TEST';
610 return 'OFF';
611 </script>
612 </binding>
613 </hovered>
614 </animation>
615
616 <animation>
617 <type>rotate</type>
618 <object-name>KnobMode</object-name>
619 <!--<property>instrumentation/transponder/inputs/knob-mode</property>-->
620 <property alias="../../params/knob-mode"/>
621 <factor>1</factor>
622 <interpolation>
623 <entry>
624 <ind>0</ind>
625 <dep>0</dep>
626 </entry>
627 <entry>
628 <ind>1</ind>
629 <dep>45</dep>
630 </entry>
631 <entry>
632 <ind>4</ind>
633 <dep>90</dep>
634 </entry>
635 <entry>
636 <ind>5</ind>
637 <dep>135</dep>
638 </entry>
639 <entry>
640 <ind>2</ind>
641 <dep>180</dep>
642 </entry>
643 </interpolation>
644 <center>
645 <x-m>-0.34993</x-m>
646 <y-m> 0.05394</y-m>
647 <z-m>-0.14354</z-m>
648 </center>
649 <axis>
650 <x> -1 </x>
651 <y> 0 </y>
652 <z> 0 </z>
653 </axis>
654 </animation>
655
656 <animation>
657 <type>pick</type>
658 <visible>true</visible>
659 <object-name>Ident</object-name>
660 <action>
661 <button>0</button>
662 <repeatable>false</repeatable>
663 <binding>
664 <command>property-assign</command>
665 <!--<property>instrumentation/transponder/inputs/ident-btn</property>-->
666 <property alias="../../../../params/ident-btn"/>
667 <value type="bool">true</value>
668 </binding>
669 <binding>
670 <command>nasal</command>
671 <script>c172p.click("kt76a-ident")</script>
672 </binding>
673 <mod-up>
674 <binding>
675 <command>property-assign</command>
676 <!--<property>instrumentation/transponder/inputs/ident-btn</property>-->
677 <property alias="../../../../../params/ident-btn"/>
678 <value type="bool">false</value>
679 </binding>
680 <binding>
681 <command>nasal</command>
682 <script>c172p.click("kt76a-ident")</script>
683 </binding>
684 </mod-up>
685 </action>
686 <hovered>
687 <binding>
688 <command>set-tooltip</command>
689 <tooltip-id>transponder-ident</tooltip-id>
690 <label>Identify to ATC</label>
691 </binding>
692 </hovered>
693 </animation>
694
695 <animation>
696 <type>translate</type>
697 <object-name>Ident</object-name>
698 <!--<property>instrumentation/transponder/inputs/ident-btn</property>-->
699 <property alias="../../params/ident-btn"/>
700 <factor> 0.0018 </factor>
701 <axis>
702 <x> -1 </x>
703 <y> 0 </y>
704 <z> 0 </z>
705 </axis>
706 </animation>
707
708 </PropertyList>