Tu-154B2 version 3.1:
[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   <factor>60</factor>
33   <axis>
34     <x>0.0</x>
35     <y>-1.0</y>
36     <z>0.0</z>
37   </axis>
38 </animation>
39
40 <animation>
41   <type>rotate</type>
42   <object-name>cover</object-name>
43   <property>tu154/switches/BKK-test-cover</property>  
44   <factor>100</factor>
45   <offset-deg>10</offset-deg>
46   <center>
47     <x-m>0.00378</x-m>
48     <y-m>0.0</y-m>
49     <z-m>0.01429</z-m>
50   </center>
51   <axis>
52     <x>0.0</x>
53     <y>-1.0</y>
54     <z>0.0</z>
55   </axis>
56 </animation>
57
58
59 <!--Control-->
60 <animation>
61   <type>pick</type>
62   <object-name>hotspot_1</object-name>
63   <visible>false</visible>
64   <action>
65     <button>0</button>
66     <repeatable>false</repeatable>
67     <binding>
68       <command>nasal</command>
69       <script>
70         interpolate("tu154/switches/BKK-test", 1, 0.1 );
71         instruments.bkk_reset(2);
72       </script>
73     </binding>
74   <mod-up>
75     <binding>
76       <command>nasal</command>
77       <script>
78         interpolate("tu154/switches/BKK-test", 0, 0.1 );
79       </script>
80     </binding>
81   </mod-up>
82   </action>
83 </animation>
84 <animation>
85   <type>pick</type>
86   <object-name>hotspot_2</object-name>
87   <visible>false</visible>
88   <action>
89     <button>0</button>
90     <repeatable>false</repeatable>
91     <binding>
92       <command>nasal</command>
93       <script>
94         interpolate("tu154/switches/BKK-test", -1, 0.1 );
95         instruments.bkk_reset(1);
96       </script>
97     </binding>
98     <mod-up>
99       <binding>
100         <command>nasal</command>
101         <script>
102           interpolate("tu154/switches/BKK-test", 0, 0.1 );
103         </script>
104       </binding>
105     </mod-up>
106   </action>
107 </animation>
108
109
110 <animation>
111   <type>pick</type>
112   <object-name>cover_up</object-name>
113   <visible>true</visible>
114   <action>
115     <button>0</button>
116     <repeatable>false</repeatable>
117     <binding>
118       <command>nasal</command>
119       <script>
120         if( getprop("tu154/switches/BKK-test-cover") == 0.0 ){
121         interpolate("tu154/switches/BKK-test-cover", 1.0, 0.1 );}
122         else {interpolate("tu154/switches/BKK-test-cover", 0.0, 0.1 );}
123       </script>
124     </binding>
125   </action>
126 </animation>
127
128
129
130 </PropertyList>