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 #############################################################################
10 <!-- B-8M NVU (navigation system) control
11 3D instrument for Tu-154 -->
14 <!--External panel lighting-->
17 <object-name>base</object-name>
18 <object-name>handle</object-name>
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>
26 <!-- Internal instruments lighting -->
29 <object-name>text</object-name>
30 <object-name>inner</object-name>
31 <object-name>outer</object-name>
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>
42 <object-name>inner</object-name>
43 <property>tu154/instrumentation/b-8m/inner</property>
53 <object-name>outer</object-name>
54 <property>tu154/instrumentation/b-8m/outer</property>
64 <object-name>handle</object-name>
65 <!--<property>tu154/switches/b-8m-handle</property>-->
66 <property>tu154/instrumentation/b-8m/outer</property>
83 <object-name>hs_1</object-name>
84 <object-name>hs_2</object-name>
85 <visible>false</visible>
88 <command>property-adjust</command>
89 <property>tu154/instrumentation/b-8m/inner</property>
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>
103 var outer = getprop("tu154/instrumentation/b-8m/outer");
105 return sprintf("%03d°%02d'", outer + int(inner / 10),
106 (inner - int(inner / 10) * 10) * 6);
113 <object-name>hs_3</object-name>
114 <object-name>hs_4</object-name>
115 <visible>false</visible>
118 <command>property-adjust</command>
119 <property>tu154/instrumentation/b-8m/outer</property>
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>
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);