Tupolev Tu-154B-2 by Yurik and his team.
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / switches / azs3-11.xml
1 <?xml version="1.0"?>
2 <!--
3     #############################################################################
4     #    (C) 2007 by Yurik V. Nikiforoff - port for FGFS,  FDM,                 #
5     #   2d & 3d instruments, animations, systems and over.                      #
6     #           yurik@megasignal.com                                            #
7     #############################################################################         
8     -->
9
10 <!-- AZS type 3 with cover
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>azs_2.ac</path>
14 <!--External panel lighting-->
15 <animation>
16   <type>material</type>
17   <object-name>base</object-name>
18   <object-name>handle</object-name>
19   <object-name>cover_up</object-name>
20   <emission>
21     <red-prop>tu154/light/panel/ext-red</red-prop>
22     <green-prop>tu154/light/panel/ext-green</green-prop>
23     <blue-prop>tu154/light/panel/ext-blue</blue-prop>
24   </emission>
25 </animation>
26
27   
28 <animation>
29   <type>rotate</type>
30   <object-name>handle</object-name>
31   <property>tu154/switches/BKK-power</property>  
32   <interpolation>
33     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
34     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
35   </interpolation>
36   <axis>
37     <x>0.0</x>
38     <y>-1.0</y>
39     <z>0.0</z>
40   </axis>
41 </animation>
42
43 <animation>
44   <type>rotate</type>
45   <object-name>cover</object-name>
46   <property>tu154/switches/BKK-power-cover</property>  
47   <interpolation>
48     <entry><ind>        0.0</ind>       <dep>   10.0</dep></entry>
49     <entry><ind>        1.0</ind>       <dep>   110.0</dep></entry>
50   </interpolation>
51   <center>
52     <x-m>0.00378</x-m>
53     <y-m>0.0</y-m>
54     <z-m>0.01429</z-m>
55   </center>
56   <axis>
57     <x>0.0</x>
58     <y>-1.0</y>
59     <z>0.0</z>
60   </axis>
61 </animation>
62
63
64 <!--Control-->
65 <animation>
66   <type>pick</type>
67   <object-name>hotspot_1</object-name>
68   <visible>false</visible>
69   <action>
70     <button>0</button>
71     <repeatable>false</repeatable>
72     <binding>
73       <command>nasal</command>
74       <script>
75         interpolate("tu154/switches/BKK-power", 1.0, 0.1 );
76       </script>
77     </binding>
78   </action>
79 </animation>
80 <animation>
81   <type>pick</type>
82   <object-name>hotspot_2</object-name>
83   <visible>false</visible>
84   <action>
85     <button>0</button>
86     <repeatable>false</repeatable>
87     <binding>
88       <command>nasal</command>
89       <script>
90         interpolate("tu154/switches/BKK-power", 0.0, 0.1 );
91       </script>
92     </binding>
93   </action>
94 </animation>
95 <animation>
96   <type>pick</type>
97   <object-name>cover_up</object-name>
98   <visible>true</visible>
99   <action>
100     <button>0</button>
101     <repeatable>false</repeatable>
102     <binding>
103       <command>nasal</command>
104       <script>
105         if( getprop("tu154/switches/BKK-power-cover") == 0.0 ){
106         interpolate("tu154/switches/BKK-power-cover", 1.0, 0.1 );}
107         else {interpolate("tu154/switches/BKK-power-cover", 0.0, 0.1 );}
108       </script>
109     </binding>
110   </action>
111 </animation>
112
113
114
115 </PropertyList>