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 #############################################################################
10 <!-- Engines start panel
11 3D instrument for Tu-154 -->
13 <path>startpanel.ac</path>
14 <!-- Internal instruments lighting -->
17 <object-name>base</object-name>
18 <object-name>cover</object-name>
20 <red-prop>tu154/light/panel/amb-red</red-prop>
21 <green-prop>tu154/light/panel/amb-green</green-prop>
22 <blue-prop>tu154/light/panel/amb-blue</blue-prop>
27 <object-name>_c_1</object-name>
28 <object-name>_c_2</object-name>
29 <object-name>handle_1</object-name>
30 <object-name>handle_2</object-name>
31 <object-name>handle_3</object-name>
32 <object-name>handle_4</object-name>
33 <object-name>button_1</object-name>
34 <object-name>button_2</object-name>
36 <red-prop>tu154/light/panel/ext-red</red-prop>
37 <green-prop>tu154/light/panel/ext-green</green-prop>
38 <blue-prop>tu154/light/panel/ext-blue</blue-prop>
42 <!-- "PDA working" green lamp -->
46 <object-name>_d_2</object-name>
51 <factor-prop>tu154/systems/electrical/checking-lamps/lamps-power</factor-prop>
58 <object-name>_d_2</object-name>
61 <property>controls/engines/engine[0]/starter</property>
62 <property>controls/engines/engine[1]/starter</property>
63 <property>controls/engines/engine[2]/starter</property>
64 <property>tu154/systems/electrical/checking-lamps/engine-panel</property>
74 <object-name>cover</object-name>
75 <property>tu154/switches/startpanel-cover</property>
92 <object-name>handle_1</object-name>
93 <property>tu154/switches/startpanel-start</property>
95 <entry><ind> 0.0</ind> <dep> -60.0</dep></entry>
96 <entry><ind> 1.0</ind> <dep> 60.0</dep></entry>
112 <object-name>handle_2</object-name>
113 <property>tu154/switches/startpanel-cold</property>
115 <entry><ind> 0.0</ind> <dep> -60.0</dep></entry>
116 <entry><ind> 1.0</ind> <dep> 60.0</dep></entry>
130 <!--Heating switch-->
133 <object-name>handle_3</object-name>
134 <property>tu154/switches/startpanel-heating</property>
136 <entry><ind> 0.0</ind> <dep> -60.0</dep></entry>
137 <entry><ind> 1.0</ind> <dep> 60.0</dep></entry>
151 <!--Engine selector switch-->
154 <object-name>handle_4</object-name>
155 <property>tu154/switches/startpanel-selector-2</property>
157 <entry><ind> 0.0</ind> <dep> 0.0</dep></entry>
158 <entry><ind> 1.0</ind> <dep> 60.0</dep></entry>
173 <object-name>handle_4</object-name>
174 <property>tu154/switches/startpanel-selector-3</property>
176 <entry><ind> 0.0</ind> <dep> 0.0</dep></entry>
177 <entry><ind> 1.0</ind> <dep> 60.0</dep></entry>
192 <object-name>handle_4</object-name>
193 <property>tu154/switches/startpanel-selector-1</property>
195 <entry><ind> 0.0</ind> <dep> 0.0</dep></entry>
196 <entry><ind> 1.0</ind> <dep> 60.0</dep></entry>
212 <type>translate</type>
213 <object-name>b_3_1</object-name>
214 <property>tu154/switches/startpanel-button-1</property>
215 <factor>0.002</factor>
223 <type>translate</type>
224 <object-name>b_3_2</object-name>
225 <property>tu154/switches/startpanel-button-2</property>
226 <factor>0.002</factor>
239 <object-name>b_3_1</object-name>
240 <visible>true</visible>
243 <repeatable>false</repeatable>
245 <command>nasal</command>
247 engines.start_engine();
251 <command>property-assign</command>
252 <property>tu154/switches/startpanel-button-1</property>
257 <command>property-assign</command>
258 <property>tu154/switches/startpanel-button-1</property>
267 <object-name>b_3_2</object-name>
268 <visible>true</visible>
271 <repeatable>false</repeatable>
273 <command>nasal</command>
275 engines.break_start();
279 <command>property-assign</command>
280 <property>tu154/switches/startpanel-button-2</property>
285 <command>property-assign</command>
286 <property>tu154/switches/startpanel-button-2</property>
296 <object-name>cover</object-name>
297 <visible>true</visible>
300 <repeatable>false</repeatable>
302 <command>nasal</command>
304 if( getprop("tu154/switches/startpanel-cover" ) == 0.0 )
305 interpolate("tu154/switches/startpanel-cover", 1.0, 0.1 );
306 else interpolate("tu154/switches/startpanel-cover", 0.0, 0.1 );
315 <object-name>hotspot_1</object-name>
316 <visible>false</visible>
319 <repeatable>false</repeatable>
321 <command>nasal</command>
323 interpolate("tu154/switches/startpanel-start", 1.0, 0.1 );
330 <object-name>hotspot_2</object-name>
331 <visible>false</visible>
334 <repeatable>false</repeatable>
336 <command>nasal</command>
338 interpolate("tu154/switches/startpanel-start", 0.0, 0.1 );
347 <object-name>hotspot_3</object-name>
348 <visible>false</visible>
351 <repeatable>false</repeatable>
353 <command>nasal</command>
355 interpolate("tu154/switches/startpanel-cold", 1.0, 0.1 );
362 <object-name>hotspot_4</object-name>
363 <visible>false</visible>
366 <repeatable>false</repeatable>
368 <command>nasal</command>
370 interpolate("tu154/switches/startpanel-cold", 0.0, 0.1 );
376 <!--Heating switch-->
379 <object-name>hotspot_5</object-name>
380 <visible>false</visible>
383 <repeatable>false</repeatable>
385 <command>nasal</command>
387 interpolate("tu154/switches/startpanel-heating", 1.0, 0.1 );
394 <object-name>hotspot_6</object-name>
395 <visible>false</visible>
398 <repeatable>false</repeatable>
400 <command>nasal</command>
402 interpolate("tu154/switches/startpanel-heating", 0.0, 0.1 );
408 <!--Engine selector-->
411 <object-name>hotspot_7</object-name>
412 <visible>false</visible>
415 <repeatable>false</repeatable>
417 <command>nasal</command>
419 interpolate("tu154/switches/startpanel-selector-2", 1.0, 0.1 );
420 setprop("tu154/switches/startpanel-selector-3", 0.0 );
421 setprop("tu154/switches/startpanel-selector-1", 0.0 );
428 <object-name>hotspot_8</object-name>
429 <visible>false</visible>
432 <repeatable>false</repeatable>
434 <command>nasal</command>
436 setprop("tu154/switches/startpanel-selector-2", 0.0 );
437 interpolate("tu154/switches/startpanel-selector-3", 1.0, 0.1 );
438 setprop("tu154/switches/startpanel-selector-1", 0.0 );
445 <object-name>hotspot_9</object-name>
446 <visible>false</visible>
449 <repeatable>false</repeatable>
451 <command>nasal</command>
453 setprop("tu154/switches/startpanel-selector-2", 0.0 );
454 setprop("tu154/switches/startpanel-selector-3", 0.0 );
455 interpolate("tu154/switches/startpanel-selector-1", 1.0, 0.1 );
462 <object-name>base_hs_10</object-name>
463 <visible>true</visible>
466 <repeatable>false</repeatable>
468 <command>nasal</command>
470 interpolate("tu154/switches/startpanel-selector-1", 0.0, 0.1 );
471 interpolate("tu154/switches/startpanel-selector-2", 0.0, 0.1 );
472 interpolate("tu154/switches/startpanel-selector-3", 0.0, 0.1 );