Slyranger : Updating xml headers, patch 3D etc ...
[fg:toms-fgdata.git] / Aircraft / 777 / Models / Instruments / EFIS / efis-ctl.xml
1 <!--
2 Syd Adams
3 777-200 Efis controller
4 -->
5
6 <PropertyList>
7
8  <path>efis-ctl.ac</path>
9
10         <effect>
11                 <inherits-from>Effects/model-transparent</inherits-from>
12                 <object-name>efisletters</object-name>
13         </effect>
14
15         <animation>
16                 <type>material</type>
17                 <object-name>efisletters</object-name>
18                 <condition>
19                          <greater-than>
20                                 <property>systems/electrical/CPT-FLT-INST</property>
21                                 <value>24.0</value>
22                          </greater-than>
23                 </condition>
24                 <emission>
25                         <red>0.2</red>
26                         <green>0.6</green>
27                         <blue>0.2</blue>
28                         <factor-prop>controls/lighting/panel-flood-intencity</factor-prop>
29                 </emission>
30         </animation>
31
32     <animation>
33         <type>rotate</type>
34         <object-name>BARO.knob</object-name>
35         <object-name>BARO.knob.001</object-name>
36         <property>instrumentation/efis/inputs/kpa-mode</property>
37         <factor>80</factor>
38         <center>
39             <x-m>0.02324</x-m>
40             <y-m>0.04439</y-m>
41             <z-m>0.02781</z-m>
42         </center>
43         <axis>
44             <x>-1</x>
45             <y>0</y>
46             <z>0</z>
47         </axis>
48     </animation>
49
50     <animation>
51         <type>rotate</type>
52         <object-name>Range.knob</object-name>
53         <object-name>Range.knob.001</object-name>
54         <property>instrumentation/efis/inputs/range</property>
55         <interpolation>
56             <entry><ind>10</ind><dep>0</dep></entry>
57             <entry><ind>20</ind><dep>30</dep></entry>
58             <entry><ind>40</ind><dep>60</dep></entry>
59             <entry><ind>80</ind><dep>90</dep></entry>
60             <entry><ind>160</ind><dep>120</dep></entry>
61             <entry><ind>320</ind><dep>150</dep></entry>
62             <entry><ind>640</ind><dep>180</dep></entry>
63         </interpolation>
64         <center>
65             <x-m>0.01246</x-m>
66             <y-m>0.02425</y-m>
67             <z-m>-0.002298</z-m>
68         </center>
69         <axis>
70             <x>-1</x>
71             <y>0</y>
72             <z>0</z>
73         </axis>
74     </animation>
75
76     <animation>
77         <type>rotate</type>
78         <object-name>MINS.knob</object-name>
79         <object-name>MINS.knob.001</object-name>
80         <property>instrumentation/efis/inputs/minimums-mode</property>
81         <factor>80</factor>
82         <center>
83             <x-m>0.02322</x-m>
84             <y-m>-0.042224</y-m>
85             <z-m>0.02781</z-m>
86         </center>
87         <axis>
88             <x>-1</x>
89             <y>0</y>
90             <z>0</z>
91         </axis>
92     </animation>
93
94     <animation>
95         <type>rotate</type>
96         <object-name>MODE.knob</object-name>
97         <object-name>MODE.knob.001</object-name>
98         <property>instrumentation/efis/mfd/mode-num</property>
99         <interpolation>
100             <entry><ind>0</ind><dep>0</dep></entry>
101             <entry><ind>1</ind><dep>30</dep></entry>
102             <entry><ind>2</ind><dep>60</dep></entry>
103             <entry><ind>3</ind><dep>90</dep></entry>
104         </interpolation>
105         <center>
106             <x-m>0.01234</x-m>
107             <y-m>-0.02134</y-m>
108             <z-m>-0.002082</z-m>
109         </center>
110         <axis>
111             <x>-1</x>
112             <y>0</y>
113             <z>0</z>
114         </axis>
115     </animation>
116
117     <animation>
118         <type>translate</type>
119         <object-name>LVOR.toggle</object-name>
120         <property>instrumentation/efis/inputs/lh-vor-adf</property>
121         <factor>0.003</factor>
122         <center>
123             <x-m>-0.000672</x-m>
124             <y-m>-0.0371</y-m>
125             <z-m>-0.002628</z-m>
126         </center>
127         <axis>
128             <x>0</x>
129             <y>0</y>
130             <z>1</z>
131         </axis>
132     </animation>
133
134     <animation>
135         <type>translate</type>
136         <object-name>RVOR.toggle</object-name>
137         <property>instrumentation/efis/inputs/rh-vor-adf</property>
138         <factor>0.003</factor>
139         <center>
140             <x-m>-0.000824</x-m>
141             <y-m>0.0017</y-m>
142             <z-m>-0.002628</z-m>
143         </center>
144         <axis>
145             <x>0</x>
146             <y>0</y>
147             <z>1</z>
148         </axis>
149     </animation>
150
151 <!-- 
152 #############   hotspots   ############## -->
153
154     <animation>
155         <type>pick</type>
156         <object-name>ND.center</object-name>
157         <action>
158             <button>0</button>
159             <repeatable>false</repeatable>
160             <binding>
161                 <command>nasal</command>
162                 <script>b777.Efis.ctl_func("center",0);</script>
163             </binding>
164         </action>
165     </animation>
166
167     <animation>
168         <type>pick</type>
169         <object-name>Mtrs.btn</object-name>
170         <action>
171             <button>0</button>
172             <repeatable>false</repeatable>
173             <binding>
174                 <command>property-toggle</command>
175                 <property>instrumentation/efis/inputs/alt-meters</property>
176             </binding>
177             <binding>
178                 <command>nasal</command>
179                 <script>controls.click(4);</script>
180             </binding>
181         </action>
182     </animation>
183
184     <animation>
185         <type>pick</type>
186         <object-name>FPV.btn</object-name>
187         <action>
188             <button>0</button>
189             <repeatable>false</repeatable>
190             <binding>
191                 <command>property-toggle</command>
192                 <property>instrumentation/efis/inputs/fpv-view</property>
193             </binding>
194             <binding>
195                 <command>nasal</command>
196                 <script>controls.click(4);</script>
197             </binding>
198         </action>
199     </animation>
200
201     <animation>
202         <type>pick</type>
203         <object-name>RDR.pos</object-name>
204         <action>
205             <button>0</button>
206             <repeatable>false</repeatable>
207             <binding>
208                 <command>property-toggle</command>
209                 <property>instrumentation/radar/display-controls/pos</property>
210             </binding>
211             <binding>
212                 <command>nasal</command>
213                 <script>controls.click(3);</script>
214             </binding>
215         </action>
216     </animation>
217
218     <animation>
219         <type>pick</type>
220         <object-name>RDR.data</object-name>
221         <action>
222             <button>0</button>
223             <repeatable>false</repeatable>
224             <binding>
225                 <command>property-toggle</command>
226                 <property>instrumentation/radar/display-controls/data</property>
227             </binding>
228             <binding>
229                 <command>nasal</command>
230                 <script>controls.click(3);</script>
231             </binding>
232         </action>
233     </animation>
234
235     <animation>
236         <type>pick</type>
237         <object-name>RDR.terr</object-name>
238         <action>
239             <button>0</button>
240             <repeatable>false</repeatable>
241             <binding>
242                 <command>property-toggle</command>
243                 <property>instrumentation/efis/inputs/terr</property>
244             </binding>
245             <binding>
246                 <command>nasal</command>
247                 <script>controls.click(3);</script>
248             </binding>
249         </action>
250     </animation>
251
252     <animation>
253         <type>pick</type>
254         <object-name>RDR.arpt</object-name>
255         <action>
256             <button>0</button>
257             <repeatable>false</repeatable>
258             <binding>
259                 <command>property-toggle</command>
260                 <property>instrumentation/efis/inputs/arpt</property>
261             </binding>
262             <binding>
263                 <command>nasal</command>
264                 <script>controls.click(3);</script>
265             </binding>
266         </action>
267     </animation>
268
269     <animation>
270         <type>pick</type>
271         <object-name>RDR.wpt</object-name>
272         <action>
273             <button>0</button>
274             <repeatable>false</repeatable>
275             <binding>
276                 <command>property-toggle</command>
277                 <property>instrumentation/efis/inputs/wpt</property>
278             </binding>
279             <binding>
280                 <command>nasal</command>
281                 <script>controls.click(3);</script>
282             </binding>
283         </action>
284     </animation>
285
286     <animation>
287         <type>pick</type>
288         <object-name>RDR.sta</object-name>
289         <action>
290             <button>0</button>
291             <repeatable>false</repeatable>
292             <binding>
293                 <command>property-toggle</command>
294                 <property>instrumentation/efis/inputs/sta</property>
295             </binding>
296             <binding>
297                 <command>nasal</command>
298                 <script>controls.click(3);</script>
299             </binding>
300         </action>
301     </animation>
302
303     <animation>
304         <type>pick</type>
305         <object-name>RDR.wxr</object-name>
306         <action>
307             <button>0</button>
308             <repeatable>false</repeatable>
309             <binding>
310                 <command>property-toggle</command>
311                 <property>instrumentation/efis/inputs/wxr</property>
312             </binding>
313             <binding>
314                 <command>nasal</command>
315                 <script>controls.click(3);</script>
316             </binding>
317         </action>
318     </animation>
319
320     <animation>
321         <type>pick</type>
322         <object-name>Rvor.toggle</object-name>
323         <action>
324             <button>0</button>
325             <repeatable>false</repeatable>
326             <binding>
327                 <command>nasal</command>
328                 <script>b777.Efis.ctl_func("rhvor",1);</script>
329             </binding>
330         </action>
331     </animation>
332
333     <animation>
334         <type>pick</type>
335         <object-name>Radf.toggle</object-name>
336         <action>
337             <button>0</button>
338             <repeatable>false</repeatable>
339             <binding>
340                 <command>nasal</command>
341                 <script>b777.Efis.ctl_func("rhvor",-1);</script>
342             </binding>
343         </action>
344     </animation>
345
346     <animation>
347         <type>pick</type>
348         <object-name>Lvor.toggle</object-name>
349         <action>
350             <button>0</button>
351             <repeatable>false</repeatable>
352             <binding>
353                 <command>nasal</command>
354                 <script>b777.Efis.ctl_func("lhvor",1);</script>
355             </binding>
356         </action>
357     </animation>
358
359     <animation>
360         <type>pick</type>
361         <object-name>Ladf.toggle</object-name>
362         <action>
363             <button>0</button>
364             <repeatable>false</repeatable>
365             <binding>
366                 <command>nasal</command>
367                 <script>b777.Efis.ctl_func("lhvor",-1);</script>
368             </binding>
369         </action>
370     </animation>
371
372     <animation>
373         <type>pick</type>
374         <object-name>rng.inc</object-name>
375         <object-name>rng2.inc</object-name>
376         <object-name>rng.dec</object-name>
377         <object-name>rng2.dec</object-name>
378         <object-name>Range.knob</object-name>
379         <object-name>Range.knob.001</object-name>
380         <action>
381             <button>0</button>
382             <repeatable>true</repeatable>
383             <binding>
384                 <command>nasal</command>
385                 <script>b777.Efis.ctl_func("range",1);</script>
386             </binding>
387         </action>
388     </animation>
389
390     <animation>
391         <type>pick</type>
392         <object-name>rng.inc</object-name>
393         <object-name>rng2.inc</object-name>
394         <object-name>rng.dec</object-name>
395         <object-name>rng2.dec</object-name>
396         <object-name>Range.knob</object-name>
397         <object-name>Range.knob.001</object-name>
398         <action>
399             <button>1</button>
400             <repeatable>true</repeatable>
401             <binding>
402                 <command>nasal</command>
403                 <script>b777.Efis.ctl_func("range",-1);</script>
404             </binding>
405         </action>
406     </animation>
407
408     <animation>
409         <type>pick</type>
410         <object-name>rng.inc</object-name>
411         <object-name>rng2.inc</object-name>
412         <object-name>rng.dec</object-name>
413         <object-name>rng2.dec</object-name>
414         <object-name>TFC</object-name>
415         <object-name>Range.knob</object-name>
416         <object-name>Range.knob.001</object-name>
417         <action>
418             <button>3</button> <!--  scroll up -->
419             <repeatable>false</repeatable>
420             <binding>
421                 <command>nasal</command>
422                 <script>b777.Efis.ctl_func("range",1);</script>
423             </binding>
424         </action>
425     </animation>
426
427     <animation>
428         <type>pick</type>
429         <object-name>rng.inc</object-name>
430         <object-name>rng2.inc</object-name>
431         <object-name>rng.dec</object-name>
432         <object-name>rng2.dec</object-name>
433         <object-name>TFC</object-name>
434         <object-name>Range.knob</object-name>
435         <object-name>Range.knob.001</object-name>
436         <action>
437             <button>4</button> <!--  scroll down -->
438             <repeatable>false</repeatable>
439             <binding>
440                 <command>nasal</command>
441                 <script>b777.Efis.ctl_func("range",-1);</script>
442             </binding>
443         </action>
444     </animation>
445
446     <animation>
447         <type>pick</type>
448         <object-name>TFC</object-name>
449         <action>
450             <button>0</button>
451             <repeatable>false</repeatable>
452             <binding>
453                 <command>property-toggle</command>
454                 <property>instrumentation/efis/inputs/tfc</property>
455             </binding>
456             <binding>
457                 <command>nasal</command>
458                 <script>controls.click(3);</script>
459             </binding>
460         </action>
461     </animation>
462
463     <animation>
464         <type>pick</type>
465         <object-name>BARO.knob</object-name>
466         <object-name>BARO.knob.001</object-name>
467         <action>
468             <button>0</button>
469             <button>3</button>
470             <repeatable>false</repeatable>
471             <binding>
472                 <command>property-assign</command>
473                 <property>instrumentation/efis/inputs/kpa-mode</property>
474                 <value>1</value>
475             </binding>
476             <binding>
477                 <command>nasal</command>
478                 <script>controls.click(4);</script>
479             </binding>
480         </action>
481     </animation>
482
483      <animation>
484         <type>pick</type>
485         <object-name>BARO.knob</object-name>
486         <object-name>BARO.knob.001</object-name>
487         <action>
488             <button>1</button>
489             <button>4</button>
490             <repeatable>false</repeatable>
491             <binding>
492                 <command>property-assign</command>
493                 <property>instrumentation/efis/inputs/kpa-mode</property>
494                 <value>0</value>
495             </binding>
496             <binding>
497                 <command>nasal</command>
498                 <script>controls.click(4);</script>
499             </binding>
500         </action>
501     </animation>
502
503    <animation>
504         <type>pick</type>
505         <object-name>inhg.inc</object-name>
506         <object-name>inhg.dec</object-name>
507         <action>
508             <button>0</button> <!--  left button -->
509             <repeatable>true</repeatable>
510             <binding>
511                                 <condition>
512                                         <not><property>instrumentation/inputs/setting-std</property></not>
513                                 </condition>
514                 <command>property-adjust</command>
515                 <property>instrumentation/altimeter/setting-inhg</property>
516                 <step>0.01</step>
517                 <min>26.0</min>
518                 <max>33.0</max>
519                 <wrap>false</wrap>
520             </binding>
521             <binding>
522                 <command>nasal</command>
523                 <script>controls.click(4);</script>
524             </binding>
525         </action>
526     </animation>
527
528     <animation>
529         <type>pick</type>
530         <object-name>inhg.inc</object-name>
531         <object-name>inhg.dec</object-name>
532         <action>
533             <button>1</button> <!--  center button -->
534             <repeatable>true</repeatable>
535             <binding>
536                                 <condition>
537                                         <not><property>instrumentation/inputs/setting-std</property></not>
538                                 </condition>
539                 <command>property-adjust</command>
540                 <property>instrumentation/altimeter/setting-inhg</property>
541                 <step>-0.01</step>
542                 <min>26.0</min>
543                 <max>33.0</max>
544                 <wrap>false</wrap>
545             </binding>
546             <binding>
547                 <command>nasal</command>
548                 <script>controls.click(4);</script>
549             </binding>
550         </action>
551     </animation>
552
553     <animation>
554         <type>pick</type>
555         <object-name>inhg.inc</object-name>
556         <object-name>inhg.dec</object-name>
557         <object-name>inhg.reset</object-name>
558         <action>
559             <button>3</button> <!--  scroll up -->
560             <repeatable>false</repeatable>
561             <binding>
562                                 <condition>
563                                         <not><property>instrumentation/inputs/setting-std</property></not>
564                                 </condition>
565                 <command>property-adjust</command>
566                 <property>instrumentation/altimeter/setting-inhg</property>
567                 <step>0.01</step>
568                 <min>26.0</min>
569                 <max>33.0</max>
570                 <wrap>false</wrap>
571             </binding>
572             <binding>
573                 <command>nasal</command>
574                 <script>controls.click(4);</script>
575             </binding>
576         </action>
577     </animation>
578
579     <animation>
580         <type>pick</type>
581         <object-name>inhg.inc</object-name>
582         <object-name>inhg.dec</object-name>
583         <object-name>inhg.reset</object-name>
584         <action>
585             <button>4</button> <!--  scroll down -->
586             <repeatable>false</repeatable>
587             <binding>
588                                 <condition>
589                                         <not><property>instrumentation/inputs/setting-std</property></not>
590                                 </condition>
591                 <command>property-adjust</command>
592                 <property>instrumentation/altimeter/setting-inhg</property>
593                 <step>-0.01</step>
594                 <min>26.0</min>
595                 <max>33.0</max>
596                 <wrap>false</wrap>
597             </binding>
598             <binding>
599                 <command>nasal</command>
600                 <script>controls.click(4);</script>
601             </binding>
602         </action>
603     </animation>
604
605         <animation>
606         <type>pick</type>
607         <object-name>inhg.reset</object-name>
608         <visible>true</visible>
609         <action>
610             <button>0</button>
611             <repeatable>false</repeatable>
612             <binding>
613                 <command>property-toggle</command>
614                 <property>instrumentation/inputs/setting-std</property>
615             </binding>
616                         <binding>
617                                 <condition>
618                                         <property>instrumentation/inputs/setting-std</property>
619                                 </condition>
620                 <command>property-assign</command>
621                 <property>instrumentation/efis/inhg-previos</property>
622                 <property>instrumentation/altimeter/setting-inhg</property>
623             </binding>
624                         <binding>
625                                 <condition>
626                                         <property>instrumentation/inputs/setting-std</property>
627                                 </condition>
628                 <command>property-assign</command>
629                                 <property>instrumentation/altimeter/setting-inhg</property>
630                                 <value>29.92</value>
631             </binding>
632                         <binding>
633                                 <condition>
634                                         <not><property>instrumentation/inputs/setting-std</property></not>
635                                 </condition>
636                 <command>property-assign</command>
637                 <property>instrumentation/altimeter/setting-inhg</property>
638                 <property>instrumentation/efis/inhg-previos</property>
639             </binding>
640             <binding>
641                 <command>nasal</command>
642                 <script>controls.click(4);</script>
643             </binding>
644         </action>
645     </animation>
646
647         <animation>
648         <type>pick</type>
649         <object-name>Mins.inc</object-name>
650         <object-name>Mins.dec</object-name>
651         <action>
652             <button>0</button>
653             <button>3</button>
654             <repeatable>false</repeatable>
655             <binding>
656                 <command>nasal</command>
657                 <script>b777.Efis.ctl_func("mins",1);</script>
658             </binding>
659         </action>
660     </animation>
661
662         <animation>
663         <type>pick</type>
664         <object-name>Mins.inc</object-name>
665         <object-name>Mins.dec</object-name>
666         <action>
667             <button>1</button>
668             <button>4</button>
669             <repeatable>false</repeatable>
670             <binding>
671                 <command>nasal</command>
672                 <script>b777.Efis.ctl_func("mins",0);</script>
673             </binding>
674         </action>
675     </animation>
676
677     <animation>
678         <type>pick</type>
679         <object-name>minset.inc</object-name>
680         <object-name>minset.dec</object-name>
681         <action>
682             <button>0</button>
683             <repeatable>true</repeatable>
684             <binding>
685                 <command>nasal</command>
686                 <script>b777.Efis.ctl_func("dh",10);</script>
687             </binding>
688         </action>
689     </animation>
690
691     <animation>
692         <type>pick</type>
693         <object-name>minset.inc</object-name>
694         <object-name>minset.dec</object-name>
695         <action>
696             <button>1</button>
697             <repeatable>true</repeatable>
698             <binding>
699                 <command>nasal</command>
700                 <script>b777.Efis.ctl_func("dh",-10);</script>
701             </binding>
702         </action>
703     </animation>
704     
705     <animation>
706         <type>pick</type>
707         <object-name>minset.dec</object-name>
708         <object-name>minset.inc</object-name>
709         <object-name>DH.reset</object-name>
710         <action>
711             <button>3</button>
712             <repeatable>true</repeatable>
713             <binding>
714                 <command>nasal</command>
715                 <script>b777.Efis.ctl_func("dh",10);</script>
716             </binding>
717         </action>
718     </animation>
719
720     <animation>
721         <type>pick</type>
722         <object-name>minset.dec</object-name>
723         <object-name>minset.inc</object-name>
724         <object-name>DH.reset</object-name>
725         <action>
726             <button>4</button>
727             <repeatable>true</repeatable>
728             <binding>
729                 <command>nasal</command>
730                 <script>b777.Efis.ctl_func("dh",-10);</script>
731             </binding>
732         </action>
733     </animation>
734
735     <animation>
736         <type>pick</type>
737         <object-name>DH.reset</object-name>
738         <visible>true</visible>
739         <action>
740             <button>0</button>
741             <repeatable>false</repeatable>
742             <binding>
743                 <command>nasal</command>
744                 <script>b777.Efis.ctl_func("dh",0);</script>
745             </binding>
746         </action>
747     </animation>
748
749     <animation>
750         <type>pick</type>
751         <object-name>Mode.inc</object-name>
752         <object-name>Mode.dec</object-name>
753         <object-name>Mode2.inc</object-name>
754         <object-name>Mode2.dec</object-name>
755         <action>
756             <button>0</button>
757             <repeatable>true</repeatable>
758             <binding>
759                 <command>nasal</command>
760                 <script>b777.Efis.ctl_func("display",1);</script>
761             </binding>
762         </action>
763     </animation>
764
765     <animation>
766         <type>pick</type>
767         <object-name>Mode.inc</object-name>
768         <object-name>Mode.dec</object-name>
769         <object-name>Mode2.inc</object-name>
770         <object-name>Mode2.dec</object-name>
771         <action>
772             <button>1</button>
773             <repeatable>true</repeatable>
774             <binding>
775                 <command>nasal</command>
776                 <script>b777.Efis.ctl_func("display",-1);</script>
777             </binding>
778         </action>
779     </animation>
780     
781     <animation>
782         <type>pick</type>
783         <object-name>Mode.inc</object-name>
784         <object-name>Mode.dec</object-name>
785         <object-name>Mode2.inc</object-name>
786         <object-name>Mode2.dec</object-name>
787         <object-name>ND.center</object-name>
788         <action>
789             <button>3</button>
790             <repeatable>false</repeatable>
791             <binding>
792                 <command>nasal</command>
793                 <script>b777.Efis.ctl_func("display",1);</script>
794             </binding>
795         </action>
796     </animation>
797     <animation>
798         <type>pick</type>
799         <object-name>Mode.inc</object-name>
800         <object-name>Mode.dec</object-name>
801         <object-name>Mode2.inc</object-name>
802         <object-name>Mode2.dec</object-name>
803         <object-name>ND.center</object-name>
804         <action>
805             <button>4</button>
806             <repeatable>false</repeatable>
807             <binding>
808                 <command>nasal</command>
809                 <script>b777.Efis.ctl_func("display",-1);</script>
810             </binding>
811         </action>
812     </animation>
813
814 </PropertyList>