Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / switches / bano.xml
1 <?xml version="1.0"?>
2 <!--
3     #############################################################################
4     #    (C) 2008 by Yurik V. Nikiforoff - port for FGFS,  FDM,                 #
5     #   2d & 3d instruments, animations, systems and over.                      #
6     #           yurik@megasignal.com                                            #
7     #############################################################################         
8     -->
9
10 <!-- Light switches block
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>bano.ac</path>
14 <!--External panel lighting-->
15 <animation>
16   <type>material</type>
17   <object-name>handle_1</object-name>
18   <object-name>handle_2</object-name>
19   <object-name>handle_3</object-name>
20   <object-name>base_1</object-name>
21   <object-name>base_2</object-name>
22   <object-name>base_3</object-name>
23   <object-name>base_4</object-name>
24   <emission>
25     <red-prop>tu154/light/panel/ext-red</red-prop>
26     <green-prop>tu154/light/panel/ext-green</green-prop>
27     <blue-prop>tu154/light/panel/ext-blue</blue-prop>
28   </emission>
29 </animation>
30
31   
32 <animation>
33   <type>rotate</type>
34   <object-name>handle_1</object-name>
35   <property>tu154/switches/bano</property>  
36   <interpolation>
37     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
38     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
39   </interpolation>
40   <axis>
41     <x>0.0</x>
42     <y>-1.0</y>
43     <z>0.0</z>
44   </axis>
45 </animation>
46 <animation>
47   <type>rotate</type>
48   <object-name>handle_2</object-name>
49   <property>tu154/switches/omi</property>  
50   <interpolation>
51     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
52     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
53   </interpolation>
54   <axis>
55     <x>0.0</x>
56     <y>-1.0</y>
57     <z>0.0</z>
58   </axis>
59 </animation>
60 <animation>
61   <type>rotate</type>
62   <object-name>handle_3</object-name>
63   <property>tu154/switches/gauge-light</property>  
64   <interpolation>
65     <entry><ind>        0.0</ind>       <dep>   -60.0</dep></entry>
66     <entry><ind>        1.0</ind>       <dep>   60.0</dep></entry>
67   </interpolation>
68   <axis>
69     <x>0.0</x>
70     <y>-1.0</y>
71     <z>0.0</z>
72   </axis>
73 </animation>
74
75 <!--Control-->
76 <animation>
77   <type>pick</type>
78   <object-name>hotspot_1</object-name>
79   <visible>false</visible>
80   <action>
81     <button>0</button>
82     <repeatable>false</repeatable>
83     <binding>
84       <command>nasal</command>
85       <script>
86         interpolate("tu154/switches/bano", 1.0, 0.1 );
87       </script>
88     </binding>
89   </action>
90 </animation>
91 <animation>
92   <type>pick</type>
93   <object-name>hotspot_2</object-name>
94   <visible>false</visible>
95   <action>
96     <button>0</button>
97     <repeatable>false</repeatable>
98     <binding>
99       <command>nasal</command>
100       <script>
101         interpolate("tu154/switches/bano", 0.0, 0.1 );
102       </script>
103     </binding>
104   </action>
105 </animation>
106 <animation>
107   <type>pick</type>
108   <object-name>hotspot_3</object-name>
109   <visible>false</visible>
110   <action>
111     <button>0</button>
112     <repeatable>false</repeatable>
113     <binding>
114       <command>nasal</command>
115       <script>
116         interpolate("tu154/switches/omi", 1.0, 0.1 );
117         warning.strobe_control(1);
118       </script>
119     </binding>
120   </action>
121 </animation>
122 <animation>
123   <type>pick</type>
124   <object-name>hotspot_4</object-name>
125   <visible>false</visible>
126   <action>
127     <button>0</button>
128     <repeatable>false</repeatable>
129     <binding>
130       <command>nasal</command>
131       <script>
132         interpolate("tu154/switches/omi", 0.0, 0.1 );
133         warning.strobe_control(0);
134       </script>
135     </binding>
136   </action>
137 </animation>
138 <animation>
139   <type>pick</type>
140   <object-name>hotspot_5</object-name>
141   <visible>false</visible>
142   <action>
143     <button>0</button>
144     <repeatable>false</repeatable>
145     <binding>
146       <command>nasal</command>
147       <script>
148         interpolate("tu154/switches/gauge-light", 1.0, 0.1 );
149       </script>
150     </binding>
151   </action>
152 </animation>
153 <animation>
154   <type>pick</type>
155   <object-name>hotspot_6</object-name>
156   <visible>false</visible>
157   <action>
158     <button>0</button>
159     <repeatable>false</repeatable>
160     <binding>
161       <command>nasal</command>
162       <script>
163         interpolate("tu154/switches/gauge-light", 0.0, 0.1 );
164       </script>
165     </binding>
166   </action>
167 </animation>
168
169
170
171 </PropertyList>