Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / switches / azs3-19.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/long-control</property>  
32   <factor>-120</factor>
33   <offset-deg>60</offset-deg>
34   <axis>
35     <x>0.0</x>
36     <y>-1.0</y>
37     <z>0.0</z>
38   </axis>
39 </animation>
40
41 <animation>
42   <type>rotate</type>
43   <object-name>cover</object-name>
44   <property>tu154/switches/long-control-cover</property>  
45   <factor>100</factor>
46   <offset-deg>10</offset-deg>
47   <center>
48     <x-m>0.00378</x-m>
49     <y-m>0.0</y-m>
50     <z-m>0.01429</z-m>
51   </center>
52   <axis>
53     <x>0.0</x>
54     <y>-1.0</y>
55     <z>0.0</z>
56   </axis>
57 </animation>
58
59
60 <!--Control-->
61 <animation>
62   <type>pick</type>
63   <object-name>hotspot_1</object-name>
64   <visible>false</visible>
65   <action>
66     <button>0</button>
67     <repeatable>false</repeatable>
68     <binding>
69       <command>nasal</command>
70       <script>
71         interpolate("tu154/switches/long-control", 0, 0.1 );
72         setprop("fdm/jsbsim/ap/suu-enable", 0 );
73       </script>
74     </binding>
75   </action>
76 </animation>
77 <animation>
78   <type>pick</type>
79   <object-name>hotspot_2</object-name>
80   <visible>false</visible>
81   <action>
82     <button>0</button>
83     <repeatable>false</repeatable>
84     <binding>
85       <command>nasal</command>
86       <script>
87         interpolate("tu154/switches/long-control", 1, 0.1 );
88         setprop("fdm/jsbsim/ap/suu-enable", 1 );
89       </script>
90     </binding>
91   </action>
92 </animation>
93 <animation>
94   <type>pick</type>
95   <object-name>cover_up</object-name>
96   <visible>true</visible>
97   <action>
98     <button>0</button>
99     <repeatable>false</repeatable>
100     <binding>
101       <command>nasal</command>
102       <script>
103         if( getprop("tu154/switches/long-control-cover") == 0.0 ){
104         interpolate("tu154/switches/long-control-cover", 1.0, 0.1 );}
105         else {interpolate("tu154/switches/long-control-cover", 0.0, 0.1 );}
106       </script>
107     </binding>
108   </action>
109 </animation>
110
111
112
113 </PropertyList>