Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / nvu / b-8m.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 <!-- B-8M NVU (navigation system) control
11 3D instrument for Tu-154 -->
12 <PropertyList>
13  <path>b-8m.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 <!-- Internal instruments lighting -->
27 <animation>
28   <type>material</type>
29   <object-name>text</object-name>
30   <object-name>inner</object-name>
31   <object-name>outer</object-name>
32   <emission>
33     <red-prop>tu154/light/instruments/int-red</red-prop>
34     <green-prop>tu154/light/instruments/int-green</green-prop>
35     <blue-prop>tu154/light/instruments/int-blue</blue-prop>
36   </emission>
37 </animation>
38
39
40 <animation>
41   <type>rotate</type>
42   <object-name>inner</object-name>
43   <property>tu154/instrumentation/b-8m/inner</property>
44   <factor>3.6</factor>
45   <axis>
46     <x>1.0</x>
47     <y>0.0</y>
48     <z>0.0</z>
49   </axis>
50 </animation>
51 <animation>
52   <type>rotate</type>
53   <object-name>outer</object-name>
54   <property>tu154/instrumentation/b-8m/outer</property>
55   <factor>1.0</factor>
56   <axis>
57     <x>1.0</x>
58     <y>0.0</y>
59     <z>0.0</z>
60   </axis>
61 </animation>
62 <animation>
63   <type>rotate</type>
64   <object-name>handle</object-name>
65   <!--<property>tu154/switches/b-8m-handle</property>-->
66   <property>tu154/instrumentation/b-8m/outer</property>
67   <center>
68     <x-m>0.0</x-m>
69     <y-m>-0.00022</y-m>
70     <z-m>-0.03539</z-m>
71   </center>
72   <axis>
73     <x>-1.0</x>
74     <y>0.0</y>
75     <z>0.0</z>
76   </axis>
77 </animation>
78
79
80 <!--Control-->
81 <animation>
82   <type>knob</type>
83   <object-name>hs_1</object-name>
84   <object-name>hs_2</object-name>
85   <visible>false</visible>
86   <action>
87     <binding>
88       <command>property-adjust</command>
89       <property>tu154/instrumentation/b-8m/inner</property>
90       <min>0</min>
91       <max>100</max>
92       <wrap>true</wrap>
93     </binding>
94   </action>
95   <hovered>
96     <binding>
97       <command>set-tooltip</command>
98       <tooltip-id>b-8m-inner</tooltip-id>
99       <label>True heading: %s</label>
100       <property>tu154/instrumentation/b-8m/inner</property>
101       <mapping>nasal</mapping>
102       <script>
103         var outer = getprop("tu154/instrumentation/b-8m/outer");
104         var inner = arg[0];
105         return sprintf("%03d°%02d'", outer + int(inner / 10),
106                        (inner - int(inner / 10) * 10) * 6);
107       </script>
108     </binding>
109   </hovered>
110 </animation>
111 <animation>
112   <type>knob</type>
113   <object-name>hs_3</object-name>
114   <object-name>hs_4</object-name>
115   <visible>false</visible>
116   <action>
117     <binding>
118       <command>property-adjust</command>
119       <property>tu154/instrumentation/b-8m/outer</property>
120       <factor>10</factor>
121       <min>0</min>
122       <max>360</max>
123       <wrap>true</wrap>
124     </binding>
125   </action>
126   <hovered>
127     <binding>
128       <command>set-tooltip</command>
129       <tooltip-id>b-8m-outer</tooltip-id>
130       <label>True heading: %s</label>
131       <property>tu154/instrumentation/b-8m/outer</property>
132       <mapping>nasal</mapping>
133       <script>
134         var outer = arg[0];
135         var inner = getprop("tu154/instrumentation/b-8m/inner");
136         return sprintf("%03d°%02d'", outer + int(inner / 10),
137                        (inner - int(inner / 10) * 10) * 6);
138       </script>
139     </binding>
140   </hovered>
141 </animation>
142
143 </PropertyList>