Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / usvp / usvp.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 <!-- IAS/groundspeed indicator USVP
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>usvp.ac</path>
14 <!-- Internal instruments lighting -->
15 <animation>
16   <type>material</type>
17   <object-name>base</object-name>
18   <object-name>text</object-name>
19   <object-name>needle</object-name>
20   <object-name>vozd</object-name>
21   <object-name>put</object-name>
22   <object-name>top</object-name>
23   <emission>
24     <red-prop>tu154/light/instruments/int-red</red-prop>
25     <green-prop>tu154/light/instruments/int-green</green-prop>
26     <blue-prop>tu154/light/instruments/int-blue</blue-prop>
27   </emission>
28 </animation>
29
30
31 <!--Needles-->
32 <animation>
33     <type>rotate</type>
34     <object-name>needle</object-name>
35     <property>tu154/instrumentation/usvp/speed-fps</property>
36     <factor>0.3950208</factor>
37     <axis>
38       <x>-1.0</x>
39       <y>0.0</y>
40       <z>0.0</z>
41     </axis>
42 </animation>
43
44 <animation>
45   <type>rotate</type>
46   <object-name>handle</object-name>
47   <property>tu154/switches/usvp-selector-trans</property>
48   <factor>30.0</factor>
49   <center>
50     <x-m>0.0</x-m>
51     <y-m>0.0</y-m>
52     <z-m>-0.04844</z-m>
53   </center>
54   <axis>
55     <x>-1.0</x>
56     <y>0.0</y>
57     <z>0.0</z>
58   </axis>
59 </animation>
60
61 <animation>
62   <type>pick</type>
63   <object-name>hs</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         var sel = getprop("tu154/switches/usvp-selector") or 0;
72         sel = 1 - sel;
73         setprop("tu154/switches/usvp-selector", sel);
74         interpolate("tu154/switches/usvp-selector-trans", sel, 0.15);
75       </script>
76     </binding>
77   </action>
78 </animation>
79
80
81 </PropertyList>