Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / switches / azs1-48.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 1
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>azs_3.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   <emission>
20     <red-prop>tu154/light/panel/ext-red</red-prop>
21     <green-prop>tu154/light/panel/ext-green</green-prop>
22     <blue-prop>tu154/light/panel/ext-blue</blue-prop>
23   </emission>
24 </animation>
25
26   
27 <animation>
28   <type>rotate</type>
29   <object-name>handle</object-name>
30   <property>tu154/switches/DISS-check</property>  
31   <factor>60</factor>
32   <axis>
33     <x>0.0</x>
34     <y>-1.0</y>
35     <z>0.0</z>
36   </axis>
37 </animation>
38
39 <!--Control-->
40 <animation>
41   <type>pick</type>
42   <object-name>hotspot_1</object-name>
43   <visible>false</visible>
44   <action>
45     <button>0</button>
46     <repeatable>false</repeatable>
47     <binding>
48       <command>nasal</command>
49       <script>
50         interpolate("tu154/switches/DISS-check",  1, 0.1 );
51         setprop("fdm/jsbsim/instrumentation/nvu/source", 2);
52       </script>
53     </binding>
54   </action>
55 </animation>
56 <animation>
57   <type>pick</type>
58   <object-name>hotspot_2</object-name>
59   <visible>false</visible>
60   <action>
61     <button>0</button>
62     <repeatable>false</repeatable>
63     <binding>
64       <command>nasal</command>
65       <script>
66         interpolate("tu154/switches/DISS-check", 0, 0.1 );
67         setprop("fdm/jsbsim/instrumentation/nvu/source", 1);
68       </script>
69     </binding>
70   </action>
71 </animation>
72 <animation>
73   <type>pick</type>
74   <object-name>hotspot_3</object-name>
75   <visible>false</visible>
76   <action>
77     <button>0</button>
78     <repeatable>false</repeatable>
79     <binding>
80       <command>nasal</command>
81       <script>
82         interpolate("tu154/switches/DISS-check", -1, 0.1 );
83         setprop("fdm/jsbsim/instrumentation/nvu/source", 0);
84       </script>
85     </binding>
86   </action>
87 </animation>
88
89 </PropertyList>