Debian Codegraph @

Aircraft/Instruments/nav1.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Default NAV1 gauge instrument.
5
6 Started summer 2000 by David Megginson, [email protected].
7
8 This is an instrument configuration file for the open-source flight
9 simulator FlightGear (www.flightgear.org). The file is an XML-encoded
10 FlightGear property list defining the instrument's layers and actions.
11
12 Each instrument is composed of layers stacked on top of each other.
13 A layer may be a texture (with transparent parts to show the layers
14 underneath), text, or a special layer that switches between two
15 others (say, to turn an indicator light on or off). Each layer can
16 move independently in proportion to a property value, and text
17 can be generated from property values as well: all of the layer's
18 movements are defined as transformations.
19
20 Actions are hotspots on the instrument that will respond to a mouse
21 click. Actions always modify the values of properties, either by
22 adjusting them, toggling them, or swaping them with other
23 properties' values.
24 -->
25
26 <PropertyList>
27 <name>Nav1</name>
28 <w-base>128</w-base>
29 <h-base>128</h-base>
30
31 <params>
32 <nav-to-flag>/instrumentation/nav[0]/to-flag</nav-to-flag>
33 <nav-from-flag>/instrumentation/nav[0]/from-flag</nav-from-flag>
34 <nav-radial-selected>/instrumentation/nav[0]/radials/selected-deg</nav-radial-selected>
35 <nav-gs-needle-deflection>/instrumentation/nav[0]/gs-needle-deflection-norm</nav-gs-needle-deflection>
36 <nav-heading-needle-deflection>/instrumentation/nav[0]/heading-needle-deflection</nav-heading-needle-deflection>
37 <nav-has-gs-needle>/sim/instrument-options/nav[0]/has-gs-needle</nav-has-gs-needle>
38 <nav-needles-pivot>/sim/instrument-options/nav[0]/needles-pivot</nav-needles-pivot>
39 </params>
40
41 <layers>
42 <layer>
43 <name>gauge face</name>
44 <texture>
45 <path>Aircraft/Instruments/Textures/faces-1.rgb</path>
46 <x1>0.0</x1>
47 <y1>0.51</y1>
48 <x2>0.49</x2>
49 <y2>1.0</y2>
50 </texture>
51 <w>104</w>
52 <h>104</h>
53 <transformations>
54 <transformation>
55 <type>x-shift</type>
56 <offset>1</offset>
57 </transformation>
58 <transformation>
59 <type>rotation</type>
60 <property alias="../../../../../params/nav-radial-selected"/>
61 <min>0.0</min>
62 <max>360.0</max>
63 <scale>-1.0</scale>
64 </transformation>
65 </transformations>
66 </layer>
67 <layer>
68 <name>TO/FROM/OFF flag</name>
69 <type>switch</type>
70 <layer>
71 <condition>
72 <property alias="../../../../../params/nav-to-flag"/>
73 </condition>
74 <name>TO flag</name>
75 <texture>
76 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
77 <x1>0.9375</x1>
78 <y1>0.578125</y1>
79 <x2>1.0</x2>
80 <y2>0.625</y2>
81 </texture>
82 <w>16</w>
83 <h>16</h>
84 </layer>
85 <layer>
86 <name>FROM/OFF flag</name>
87 <type>switch</type>
88 <layer>
89 <condition>
90 <property alias="../../../../../../params/nav-from-flag"/>
91 </condition>
92 <name>FROM flag</name>
93 <texture>
94 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
95 <x1>0.9375</x1>
96 <y1>0.625</y1>
97 <x2>1.0</x2>
98 <y2>0.671875</y2>
99 </texture>
100 <w>16</w>
101 <h>16</h>
102 </layer>
103 <layer>
104 <name>OFF flag</name>
105 <texture>
106 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
107 <x1>0.9375</x1>
108 <y1>0.5</y1>
109 <x2>1.0</x2>
110 <y2>0.546875</y2>
111 </texture>
112 <w>16</w>
113 <h>16</h>
114 </layer>
115 </layer>
116 <transformations>
117 <transformation>
118 <type>y-shift</type>
119 <offset>-24</offset>
120 </transformation>
121 </transformations>
122 </layer>
123
124 <layer>
125 <name>pivoting vertical needle</name>
126 <condition>
127 <equals>
128 <property alias="../../../../../params/nav-needles-pivot"/>
129 <value>1</value>
130 </equals>
131 </condition>
132 <texture>
133 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
134 <x1>0.439</x1>
135 <y1>0.5</y1>
136 <x2>0.4575</x2>
137 <y2>1.0</y2>
138 </texture>
139 <w>6</w>
140 <h>64</h>
141 <transformations>
142 <transformation>
143 <type>y-shift</type>
144 <offset>32</offset>
145 </transformation>
146 <transformation>
147 <type>rotation</type>
148 <property alias="../../../../../params/nav-heading-needle-deflection"/>
149 <min>-10.0</min>
150 <max>10.0</max>
151 <scale>-3.2</scale>
152 </transformation>
153 <transformation>
154 <type>y-shift</type>
155 <offset>-32</offset>
156 </transformation>
157 </transformations>
158 </layer>
159
160 <layer>
161 <name>arcing vertical needle</name>
162 <condition>
163 <equals>
164 <property alias="../../../../../params/nav-needles-pivot"/>
165 <value>0</value>
166 </equals>
167 </condition>
168 <texture>
169 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
170 <x1>0.439</x1>
171 <y1>0.5</y1>
172 <x2>0.4575</x2>
173 <y2>1.0</y2>
174 </texture>
175 <w>6</w>
176 <h>64</h>
177 <transformations>
178 <transformation>
179 <type>x-shift</type>
180 <property alias="../../../../../params/nav-heading-needle-deflection"/>
181 <min>-10.0</min>
182 <max>10.0</max>
183 <scale>3.2</scale>
184 </transformation>
185 </transformations>
186 </layer>
187
188 <layer>
189 <name>pivoting glidescope needle</name>
190 <condition>
191 <equals>
192 <property alias="../../../../../params/nav-has-gs-needle"/>
193 <value>1</value>
194 </equals>
195 <equals>
196 <property alias="../../../../../params/nav-needles-pivot"/>
197 <value>1</value>
198 </equals>
199 </condition>
200 <texture>
201 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
202 <x1>0.439</x1>
203 <y1>0.5</y1>
204 <x2>0.4575</x2>
205 <y2>1.0</y2>
206 </texture>
207 <w>6</w>
208 <h>64</h>
209 <transformations>
210 <transformation>
211 <type>x-shift</type>
212 <offset>-32</offset>
213 </transformation>
214 <transformation>
215 <type>rotation</type>
216 <property alias="../../../../../params/nav-gs-needle-deflection"/>
217 <scale>-24.5</scale>
218 </transformation>
219 <transformation>
220 <type>x-shift</type>
221 <offset>32</offset>
222 </transformation>
223 <transformation>
224 <type>rotation</type>
225 <offset>90</offset>
226 </transformation>
227 </transformations>
228 </layer>
229
230 <layer>
231 <name>sliding glidescope needle</name>
232 <condition>
233 <equals>
234 <property alias="../../../../../params/nav-has-gs-needle"/>
235 <value>1</value>
236 </equals>
237 <equals>
238 <property alias="../../../../../params/nav-needles-pivot"/>
239 <value>0</value>
240 </equals>
241 </condition>
242 <texture>
243 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
244 <x1>0.439</x1>
245 <y1>0.5</y1>
246 <x2>0.4575</x2>
247 <y2>1.0</y2>
248 </texture>
249 <w>6</w>
250 <h>64</h>
251 <transformations>
252 <transformation>
253 <type>y-shift</type>
254 <property alias="../../../../../params/nav-gs-needle-deflection"/>
255 <min>-1</min>
256 <max>1</max>
257 <scale>25.6</scale>
258 </transformation>
259 <transformation>
260 <type>rotation</type>
261 <offset>90</offset>
262 </transformation>
263 </transformations>
264 </layer>
265
266 <!-- fix misc.rgb -->
267 <layer>
268 <name>face</name>
269 <w>55</w>
270 <h>70</h>
271 <texture>
272 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
273 <x1>0</x1>
274 <y1>0</y1>
275 <x2>0.25</x2>
276 <y2>0.3125</y2>
277 </texture>
278 </layer>
279
280 <layer>
281 <name>bezel</name>
282 <condition>
283 <not-equals>
284 <property>/sim/aero</property>
285 <value>c310u3a</value>
286 </not-equals>
287 </condition>
288 <texture>
289 <path>Aircraft/Instruments/Textures/bezel.rgb</path>
290 <x1>0.0</x1>
291 <y1>0.0</y1>
292 <x2>1.0</x2>
293 <y2>1.0</y2>
294 </texture>
295 <transformations>
296 <transformation>
297 <type>x-shift</type>
298 <offset>-1</offset>
299 </transformation>
300 </transformations>
301 </layer>
302
303 <layer>
304 <name>glare shield</name>
305 <texture>
306 <path>Aircraft/Instruments/Textures/bezel1.rgb</path>
307 <x1>0.5</x1>
308 <y1>0.0</y1>
309 <x2>1.0</x2>
310 <y2>0.5</y2>
311 </texture>
312 <w>124</w>
313 <h>124</h>
314 <transformations>
315 <transformation>
316 <type>x-shift</type>
317 <offset>2</offset>
318 </transformation>
319 <transformation>
320 <type>y-shift</type>
321 <offset>-2</offset>
322 </transformation>
323 </transformations>
324 </layer>
325
326 <layer>
327 <name>OBS Knob</name>
328 <texture>
329 <path>Aircraft/Instruments/Textures/blister.rgb</path>
330 <x1>0.25</x1>
331 <y1>0.75</y1>
332 <x2>0.5</x2>
333 <y2>1.0</y2>
334 </texture>
335 <h>24</h>
336 <w>24</w>
337 <transformations>
338 <transformation>
339 <type>x-shift</type>
340 <offset>-45</offset>
341 </transformation>
342 <transformation>
343 <type>y-shift</type>
344 <offset>-45</offset>
345 </transformation>
346 <transformation>
347 <type>rotation</type>
348 <property alias="../../../../../params/nav-radial-selected"/>
349 <scale>5</scale>
350 </transformation>
351 </transformations>
352 </layer>
353
354 <layer>
355 <name>OBS label</name>
356 <texture>
357 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
358 <x1>0.0078125</x1>
359 <y1>0.66015625</y1>
360 <x2>0.1640625</x2>
361 <y2>0.82421875</y2>
362 </texture>
363 <w>15</w>
364 <h>15</h>
365 <transformations>
366 <transformation>
367 <type>x-shift</type>
368 <offset>-45</offset>
369 </transformation>
370 <transformation>
371 <type>y-shift</type>
372 <offset>-45</offset>
373 </transformation>
374 <transformation>
375 <type>rotation</type>
376 <property alias="../../../../../params/nav-radial-selected"/>
377 <scale>5</scale>
378 </transformation>
379 </transformations>
380 </layer>
381
382 </layers>
383
384 <actions>
385 <action>
386 <name>small clockwise rotation</name>
387 <button>0</button>
388 <x>-56</x>
389 <y>-56</y>
390 <w>12</w>
391 <h>24</h>
392 <binding>
393 <command>property-adjust</command>
394 <property alias="../../../../params/nav-radial-selected"/>
395 <step>-1.0</step>
396 <min>0</min>
397 <max>360</max>
398 <wrap>1</wrap>
399 </binding>
400 </action>
401
402 <action>
403 <name>large clockwise rotation</name>
404 <button>1</button>
405 <x>-56</x>
406 <y>-56</y>
407 <w>12</w>
408 <h>24</h>
409 <binding>
410 <command>property-adjust</command>
411 <property alias="../../../../params/nav-radial-selected"/>
412 <step>-5.0</step>
413 <min>0</min>
414 <max>360</max>
415 <wrap>1</wrap>
416 </binding>
417 </action>
418
419 <action>
420 <name>small counter-clockwise rotation</name>
421 <button>0</button>
422 <x>-46</x>
423 <y>-56</y>
424 <w>12</w>
425 <h>24</h>
426 <binding>
427 <command>property-adjust</command>
428 <property alias="../../../../params/nav-radial-selected"/>
429 <step>1.0</step>
430 <min>0</min>
431 <max>360</max>
432 <wrap>1</wrap>
433 </binding>
434 </action>
435
436 <action>
437 <name>large counter-clockwise rotation</name>
438 <button>1</button>
439 <x>-46</x>
440 <y>-56</y>
441 <w>12</w>
442 <h>24</h>
443 <binding>
444 <command>property-adjust</command>
445 <property alias="../../../../params/nav-radial-selected"/>
446 <step>5.0</step>
447 <min>0</min>
448 <max>360</max>
449 <wrap>1</wrap>
450 </binding>
451 </action>
452 </actions>
453
454 </PropertyList>
455