Merge branch 'master' of gitorious.org:fg/fgdata
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / switches / azs3-10.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_5.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-test</property>  
32   <interpolation>
33     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
34     <entry><ind>        1.0</ind>       <dep>   0.0</dep></entry>
35     <entry><ind>        2.0</ind>       <dep>   60.0</dep></entry>
36   </interpolation>
37   <axis>
38     <x>0.0</x>
39     <y>-1.0</y>
40     <z>0.0</z>
41   </axis>
42 </animation>
43
44 <animation>
45   <type>rotate</type>
46   <object-name>cover</object-name>
47   <property>tu154/switches/BKK-test-cover</property>  
48   <interpolation>
49     <entry><ind>        0.0</ind>       <dep>   10.0</dep></entry>
50     <entry><ind>        1.0</ind>       <dep>   110.0</dep></entry>
51   </interpolation>
52   <center>
53     <x-m>0.00378</x-m>
54     <y-m>0.0</y-m>
55     <z-m>0.01429</z-m>
56   </center>
57   <axis>
58     <x>0.0</x>
59     <y>-1.0</y>
60     <z>0.0</z>
61   </axis>
62 </animation>
63
64
65 <!--Control-->
66 <animation>
67   <type>pick</type>
68   <object-name>hotspot_1</object-name>
69   <visible>false</visible>
70   <action>
71     <button>0</button>
72     <repeatable>false</repeatable>
73     <binding>
74       <command>nasal</command>
75       <script>
76         interpolate("tu154/switches/BKK-test", 2.0, 0.1 );
77         instruments.bkk_reset();
78       </script>
79     </binding>
80   <mod-up>
81     <binding>
82       <command>nasal</command>
83       <script>
84         interpolate("tu154/switches/BKK-test", 1.0, 0.1 );
85       </script>
86     </binding>
87   </mod-up>
88   </action>
89 </animation>
90 <animation>
91   <type>pick</type>
92   <object-name>hotspot_2</object-name>
93   <visible>false</visible>
94   <action>
95     <button>0</button>
96     <repeatable>false</repeatable>
97     <binding>
98       <command>nasal</command>
99       <script>
100         interpolate("tu154/switches/BKK-test", 0.0, 0.1 );
101         instruments.bkk_reset();
102       </script>
103     </binding>
104     <mod-up>
105       <binding>
106         <command>nasal</command>
107         <script>
108           interpolate("tu154/switches/BKK-test", 1.0, 0.1 );
109         </script>
110       </binding>
111     </mod-up>
112   </action>
113 </animation>
114
115
116 <animation>
117   <type>pick</type>
118   <object-name>cover_up</object-name>
119   <visible>true</visible>
120   <action>
121     <button>0</button>
122     <repeatable>false</repeatable>
123     <binding>
124       <command>nasal</command>
125       <script>
126         if( getprop("tu154/switches/BKK-test-cover") == 0.0 ){
127         interpolate("tu154/switches/BKK-test-cover", 1.0, 0.1 );}
128         else {interpolate("tu154/switches/BKK-test-cover", 0.0, 0.1 );}
129       </script>
130     </binding>
131   </action>
132 </animation>
133
134
135
136 </PropertyList>