Debian Codegraph @

Aircraft/Instruments/altimeter.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Improved altimeter instrument.
5 Adds enhancements allowing for calibration.
6
7 Jan, 2001 by Julian Foad <[email protected]>
8
9 Julian sez:
10 "provides a modified instrument definition with a knob
11 driving a subscale showing through a cut-out in the face....
12
13 I've put two lines in 'altimeter.xml', one to display millibars and
14 another, presently commented out, for inHg; USA pilots might want to
15 uncomment the inHg line instead. At present, my subscale texture map
16 only has marks on it, not numbers, so it can stay the same. Really
17 there should be two different versions of the altimeter, and a
18 USA-registered C172 would be fitted with an altimeter with inHg while
19 and a UK-registered C172 would be fitted with an altimeter with mb on
20 its subscale."
21 _________________________________________________________________
22
23 Based on default by David Megginson, [email protected].
24
25 This is an instrument configuration file for the open-source flight
26 simulator FlightGear (www.flightgear.org). The file is an XML-encoded
27 FlightGear property list defining the instrument's layers and actions.
28
29 Each instrument is composed of layers stacked on top of each other.
30 A layer may be a texture (with transparent parts to show the layers
31 underneath), text, or a special layer that switches between two
32 others (say, to turn an indicator light on or off). Each layer can
33 move independently in proportion to a property value, and text
34 can be generated from property values as well: all of the layer's
35 movements are defined as transformations.
36
37 Actions are hotspots on the instrument that will respond to a mouse
38 click. Actions always modify the values of properties, either by
39 adjusting them, toggling them, or swaping them with other
40 properties' values.
41 -->
42
43 <PropertyList>
44
45 <name>Altimeter</name>
46 <w-base>128</w-base>
47 <h-base>128</h-base>
48
49 <layers>
50
51 <layer>
52 <name>subscale</name>
53 <texture>
54 <path>Aircraft/Instruments/Textures/faces-6.rgb</path>
55 <x1>0.51</x1>
56 <y1>0.51</y1>
57 <x2>1.0</x2>
58 <y2>1.0</y2>
59 </texture>
60 <w>104</w>
61 <h>104</h>
62 <transformations>
63 <transformation>
64 <type>rotation</type>
65 <property>/instrumentation/altimeter/setting-inhg</property>
66 <scale>-152.37</scale> <!-- degrees rotation per inHG -->
67 </transformation>
68 </transformations>
69 </layer>
70 <layer>
71 <name>guage face</name>
72 <texture>
73 <path>Aircraft/Instruments/Textures/faces-1.rgb</path>
74 <x1>0.51</x1>
75 <y1>0.51</y1>
76 <x2>1.0</x2>
77 <y2>1.0</y2>
78 </texture>
79 <w>110</w>
80 <h>110</h>
81 </layer>
82 <layer>
83 <name>numeric datum</name>
84 <type>text</type>
85 <point-size>8</point-size>
86 <color>
87 <red>1.0</red>
88 <green>1.0</green>
89 <blue>1.0</blue>
90 </color>
91 <chunks>
92 <chunk>
93 <type>number-value</type>
94 <property>/instrumentation/altimeter/setting-inhg</property>
95 <format>%2.2f</format>
96 </chunk>
97 </chunks>
98 <transformations>
99 <transformation>
100 <type>x-shift</type>
101 <offset>10</offset>
102 </transformation>
103 <transformation>
104 <type>y-shift</type>
105 <offset>-5</offset>
106 </transformation>
107 </transformations>
108 </layer>
109 <layer>
110 <name>short needle (thousands)</name>
111 <texture>
112 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
113 <x1>0.8</x1>
114 <y1>0.859375</y1>
115 <x2>0.8375</x2>
116 <y2>1.0</y2>
117 </texture>
118 <w>6</w>
119 <h>24</h>
120 <transformations>
121 <transformation>
122 <type>rotation</type>
123 <property>/instrumentation/altimeter/indicated-altitude-ft</property>
124 <max>100000.0</max>
125 <scale>0.036</scale>
126 </transformation>
127 <transformation>
128 <type>y-shift</type>
129 <offset>14.0</offset>
130 </transformation>
131 </transformations>
132 </layer>
133 <layer>
134 <name>long needle (hundreds)</name>
135 <texture>
136 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
137 <x1>0.8</x1>
138 <y1>0.78125</y1>
139 <x2>0.8375</x2>
140 <y2>1.0</y2>
141 </texture>
142 <w>6</w>
143 <h>48</h>
144 <transformations>
145 <transformation>
146 <type>rotation</type>
147 <property>/instrumentation/altimeter/indicated-altitude-ft</property>
148 <max>100000.0</max>
149 <scale>0.36</scale>
150 </transformation>
151 <transformation>
152 <type>y-shift</type>
153 <offset>20.0</offset>
154 </transformation>
155 </transformations>
156 </layer>
157 <layer>
158 <name>bug (ten thousands)</name>
159 <texture>
160 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
161 <x1>0.85</x1>
162 <y1>0.8125</y1>
163 <x2>0.8755</x2>
164 <y2>0.84375</y2>
165 </texture>
166 <w>12</w>
167 <h>12</h>
168 <transformations>
169 <transformation>
170 <type>rotation</type>
171 <property>/instrumentation/altimeter/indicated-altitude-ft</property>
172 <max>100000.0</max>
173 <scale>0.0036</scale>
174 </transformation>
175 <transformation>
176 <type>y-shift</type>
177 <offset>50.0</offset>
178 </transformation>
179 </transformations>
180 </layer>
181 <layer>
182 <name>button</name>
183 <texture>
184 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
185 <x1>0.6171875</x1>
186 <y1>0.2421875</y1>
187 <x2>0.7890625</x2>
188 <y2>0.4140625</y2>
189 </texture>
190 <w>15</w>
191 <h>15</h>
192 </layer>
193 <layer>
194 <name>glare shield</name>
195 <texture>
196 <path>Aircraft/Instruments/Textures/bezel1.rgb</path>
197 <x1>0.5</x1>
198 <y1>0.0</y1>
199 <x2>1.0</x2>
200 <y2>0.5</y2>
201 </texture>
202 <w>128</w>
203 <h>128</h>
204 <transformations>
205 <transformation>
206 <type>x-shift</type>
207 <offset>2</offset>
208 </transformation>
209 <transformation>
210 <type>y-shift</type>
211 <offset>-2</offset>
212 </transformation>
213 </transformations>
214 </layer>
215 <layer>
216 <name>Knob</name>
217 <texture>
218 <path>Aircraft/Instruments/Textures/blister.rgb</path>
219 <x1>0.25</x1>
220 <y1>0.75</y1>
221 <x2>0.5</x2>
222 <y2>1.0</y2>
223 </texture>
224 <h>24</h>
225 <w>24</w>
226 <transformations>
227 <transformation>
228 <type>x-shift</type>
229 <offset>-45</offset>
230 </transformation>
231 <transformation>
232 <type>y-shift</type>
233 <offset>-45</offset>
234 </transformation>
235 <transformation>
236 <type>rotation</type>
237 <offset>180</offset>
238 </transformation>
239 </transformations>
240 </layer>
241
242 </layers>
243
244 <actions>
245
246 <action>
247 <name>calibrate fine</name>
248 <button>0</button>
249 <x>-56</x>
250 <y>-56</y>
251 <w>12</w>
252 <h>24</h>
253 <binding>
254 <command>property-adjust</command>
255 <property>/instrumentation/altimeter/setting-inhg</property>
256 <step>-0.01</step>
257 <min>26.0</min>
258 <max>33.0</max>
259 <wrap>false</wrap>
260 </binding>
261 </action>
262
263 <action>
264 <name>calibrate coarse</name>
265 <button>1</button>
266 <x>-56</x>
267 <y>-56</y>
268 <w>12</w>
269 <h>24</h>
270 <binding>
271 <command>property-adjust</command>
272 <property>/instrumentation/altimeter/setting-inhg</property>
273 <step>-0.1</step>
274 <min>26.0</min>
275 <max>33.0</max>
276 <wrap>false</wrap>
277 </binding>
278 </action>
279
280 <action>
281 <name>calibrate fine</name>
282 <button>0</button>
283 <x>-46</x>
284 <y>-56</y>
285 <w>12</w>
286 <h>24</h>
287 <binding>
288 <command>property-adjust</command>
289 <property>/instrumentation/altimeter/setting-inhg</property>
290 <step>0.01</step>
291 <min>26.0</min>
292 <max>33.0</max>
293 <wrap>false</wrap>
294 </binding>
295 </action>
296
297 <action>
298 <name>calibrate coarse</name>
299 <button>1</button>
300 <x>-46</x>
301 <y>-56</y>
302 <w>12</w>
303 <h>24</h>
304 <binding>
305 <command>property-adjust</command>
306 <property>/instrumentation/altimeter/setting-inhg</property>
307 <step>0.1</step>
308 <min>26.0</min>
309 <max>33.0</max>
310 <wrap>false</wrap>
311 </binding>
312 </action>
313
314 </actions>
315
316 </PropertyList>