Debian Codegraph @

Aircraft/Instruments/navcom-radio.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Default NAVCOM radio instrument.
5 Parameterized and improved
6 John Check <[email protected]>
7 June 2001
8
9 This is an instrument configuration file for the open-source flight
10 simulator FlightGear (www.flightgear.org). The file is an XML-encoded
11 FlightGear property list defining the instrument's layers and actions.
12
13 Each instrument is composed of layers stacked on top of each other.
14 A layer may be a texture (with transparent parts to show the layers
15 underneath), text, or a special layer that switches between two
16 others (say, to turn an indicator light on or off). Each layer can
17 move independently in proportion to a property value, and text
18 can be generated from property values as well: all of the layer's
19 movements are defined as transformations.
20
21 Actions are hotspots on the instrument that will respond to a mouse
22 click. Actions always modify the values of properties, either by
23 adjusting them, toggling them, or swaping them with other
24 properties' values.
25 -->
26
27 <PropertyList>
28
29 <name>NavCom Radio</name>
30 <w-base>256</w-base>
31 <h-base>64</h-base>
32
33 <params>
34 <comm-freq-selected-prop>/instrumentation/comm[0]/frequencies/selected-mhz</comm-freq-selected-prop>
35 <comm-freq-standby-prop>/instrumentation/comm[0]/frequencies/standby-mhz</comm-freq-standby-prop>
36 <nav-freq-selected-prop>/instrumentation/nav[0]/frequencies/selected-mhz</nav-freq-selected-prop>
37 <nav-freq-standby-prop>/instrumentation/nav[0]/frequencies/standby-mhz</nav-freq-standby-prop>
38 <nav-morse-id-volume-prop>/instrumentation/nav[0]/volume</nav-morse-id-volume-prop>
39 <nav-morse-ident-toggle-prop>/instrumentation/nav[0]/ident</nav-morse-ident-toggle-prop>
40 </params>
41
42 <layers>
43
44 <layer>
45 <name>background</name>
46 <texture>
47 <path>Aircraft/Instruments/Textures/navcom-radios.rgb</path>
48 <x1>0.0</x1>
49 <y1>0.75</y1>
50 <x2>1.0</x2>
51 <y2>1.0</y2>
52 </texture>
53 </layer>
54
55 <layer>
56 <name>nav frequencies</name>
57 <type>text</type>
58 <font>led</font>
59 <point-size>7</point-size>
60 <color>
61 <red>1.0</red>
62 <green>0.5</green>
63 <blue>0.0</blue>
64 </color>
65 <chunks>
66 <chunk>
67 <type>number-value</type>
68 <property alias="../../../../../params/nav-freq-selected-prop"/>
69 <format>%.2f</format>
70 </chunk>
71 <chunk>
72 <type>number-value</type>
73 <property alias="../../../../../params/nav-freq-standby-prop"/>
74 <format>%8.2f</format>
75 </chunk>
76 </chunks>
77 <transformations>
78 <transformation>
79 <type>x-shift</type>
80 <offset>5</offset>
81 </transformation>
82 <transformation>
83 <type>y-shift</type>
84 <offset>5</offset>
85 </transformation>
86 </transformations>
87 </layer>
88
89 <layer>
90 <name>com frequencies</name>
91 <type>text</type>
92 <font>led</font>
93 <point-size>7</point-size>
94 <color>
95 <red>1.0</red>
96 <green>0.5</green>
97 <blue>0.0</blue>
98 </color>
99 <chunks>
100 <chunk>
101 <type>number-value</type>
102 <property alias="../../../../../params/comm-freq-selected-prop"/>
103 <scale>0.999992</scale>
104 <!--The above is to ensure that 25kHz increments with an undisplayed last 0.005 are always
105 rounded down as occurs in real life-->
106 <format>%.2f</format>
107 </chunk>
108 <chunk>
109 <type>number-value</type>
110 <property alias="../../../../../params/comm-freq-standby-prop"/>
111 <scale>0.999992</scale>
112 <format>%8.2f</format>
113 </chunk>
114 </chunks>
115 <transformations>
116 <transformation>
117 <type>x-shift</type>
118 <offset>-119</offset>
119 </transformation>
120 <transformation>
121 <type>y-shift</type>
122 <offset>5</offset>
123 </transformation>
124 </transformations>
125 </layer>
126
127 <layer>
128 <name>nav knob</name>
129 <texture>
130 <path>Aircraft/Instruments/Textures/blister.rgb</path>
131 <x1>0.0</x1>
132 <y1>0.75</y1>
133 <x2>0.25</x2>
134 <y2>1.0</y2>
135 </texture>
136 <h>20</h>
137 <w>20</w>
138 <transformations>
139 <transformation>
140 <type>x-shift</type>
141 <offset>110</offset>
142 </transformation>
143 <transformation>
144 <type>y-shift</type>
145 <offset>-14</offset>
146 </transformation>
147 </transformations>
148 </layer>
149
150 <layer>
151 <name>voice knob</name>
152 <texture>
153 <path>Aircraft/Instruments/Textures/blister.rgb</path>
154 <x1>0.0</x1>
155 <y1>0.75</y1>
156 <x2>0.25</x2>
157 <y2>1.0</y2>
158 </texture>
159 <h>20</h>
160 <w>20</w>
161 <transformations>
162 <transformation>
163 <type>x-shift</type>
164 <offset>-17</offset>
165 </transformation>
166 <transformation>
167 <type>y-shift</type>
168 <offset>-14</offset>
169 </transformation>
170 </transformations>
171 </layer>
172
173 <layer>
174 <name>ident knob</name>
175 <texture>
176 <path>Aircraft/Instruments/Textures/blister.rgb</path>
177 <x1>0.0</x1>
178 <y1>0.75</y1>
179 <x2>0.25</x2>
180 <y2>1.0</y2>
181 </texture>
182 <w>15</w>
183 <h>15</h>
184 <transformations>
185 <transformation>
186 <type>x-shift</type>
187 <offset>40</offset>
188 </transformation>
189 <transformation>
190 <type>y-shift</type>
191 <offset>-16</offset>
192 </transformation>
193 </transformations>
194 </layer>
195 <layer>
196 <name>ident knob pointer</name>
197 <texture>
198 <path>Aircraft/Instruments/Textures/blister.rgb</path>
199 <x1>0.0</x1>
200 <y1>0.1640625</y1>
201 <x2>0.1</x2>
202 <y2>0.328125</y2>
203 </texture>
204 <w>2</w>
205 <h>6</h>
206 <transformations>
207 <transformation>
208 <type>x-shift</type>
209 <offset>40</offset>
210 </transformation>
211 <transformation>
212 <type>y-shift</type>
213 <offset>-16</offset>
214 </transformation>
215 <transformation>
216 <type>rotation</type>
217 <property alias="../../../../../params/nav-morse-id-volume-prop"/>
218 <min>0</min>
219 <max>1</max>
220 <scale>140</scale>
221 <offset>-140</offset>
222 </transformation>
223 <transformation>
224 <type>y-shift</type>
225 <offset>3</offset>
226 </transformation>
227 </transformations>
228 </layer>
229
230 <layer>
231 <name>voice/ident toggle</name>
232 <type>switch</type>
233 <layer>
234 <condition>
235 <property alias="../../../../../params/nav-morse-ident-toggle-prop"/>
236 </condition>
237 <name>voice on</name>
238 <texture>
239 <path>Aircraft/Instruments/Textures/switches.rgb</path>
240 <x1>0.0</x1>
241 <y1>0.75</y1>
242 <x2>0.25</x2>
243 <y2>1.0</y2>
244 </texture>
245 <w>12</w>
246 <h>12</h>
247 <transformations>
248 <transformation>
249 <type>y-shift</type>
250 <offset>1</offset>
251 </transformation>
252 </transformations>
253 </layer>
254 <layer>
255 <name>ident on</name>
256 <texture>
257 <path>Aircraft/Instruments/Textures/switches.rgb</path>
258 <x1>0.0</x1>
259 <y1>0.0</y1>
260 <x2>0.25</x2>
261 <y2>0.30</y2>
262 </texture>
263 <w>12</w>
264 <h>15</h>
265 </layer>
266 <transformations>
267 <transformation>
268 <type>y-shift</type>
269 <offset>-20</offset>
270 </transformation>
271 </transformations>
272 </layer>
273
274 </layers>
275
276 <actions>
277
278 <action>
279 <name>nav frequency decrease (decimal part)</name>
280 <button>0</button>
281 <x>96</x>
282 <y>-32</y>
283 <w>16</w>
284 <h>32</h>
285 <binding>
286 <command>property-adjust</command>
287 <property alias="../../../../params/nav-freq-standby-prop"/>
288 <mask>decimal</mask>
289 <step>-0.05</step>
290 <min>0.00</min>
291 <max>1.00</max>
292 <resolution>0.05</resolution>
293 <wrap>true</wrap>
294 </binding>
295 </action>
296
297 <action>
298 <name>nav frequency decrease (integer part)</name>
299 <button>1</button>
300 <x>96</x>
301 <y>-32</y>
302 <w>16</w>
303 <h>32</h>
304 <binding>
305 <command>property-adjust</command>
306 <property alias="../../../../params/nav-freq-standby-prop"/>
307 <mask>integer</mask>
308 <step>-1</step>
309 <min>108</min>
310 <max>118</max>
311 <resolution>1</resolution>
312 <wrap>true</wrap>
313 </binding>
314 </action>
315
316 <action>
317 <name>nav frequency increase (decimal part)</name>
318 <button>0</button>
319 <x>112</x>
320 <y>-32</y>
321 <w>16</w>
322 <h>32</h>
323 <binding>
324 <command>property-adjust</command>
325 <property alias="../../../../params/nav-freq-standby-prop"/>
326 <mask>decimal</mask>
327 <step>0.05</step>
328 <min>0.00</min>
329 <max>1.00</max>
330 <resolution>0.05</resolution>
331 <wrap>true</wrap>
332 </binding>
333 </action>
334
335 <action>
336 <name>nav frequency increase (integer part)</name>
337 <button>1</button>
338 <x>112</x>
339 <y>-32</y>
340 <w>16</w>
341 <h>32</h>
342 <binding>
343 <command>property-adjust</command>
344 <property alias="../../../../params/nav-freq-standby-prop"/>
345 <mask>integer</mask>
346 <step>1</step>
347 <min>108</min>
348 <max>118</max>
349 <resolution>1</resolution>
350 <wrap>true</wrap>
351 </binding>
352 </action>
353
354
355 <action>
356 <name>com frequency decrease (decimal part)</name>
357 <button>0</button>
358 <x>-32</x>
359 <y>-32</y>
360 <w>16</w>
361 <h>32</h>
362 <binding>
363 <command>property-adjust</command>
364 <property alias="../../../../params/comm-freq-standby-prop"/>
365 <mask>decimal</mask>
366 <step>-0.025</step>
367 <min>0.000</min>
368 <max>1.000</max>
369 <resolution>0.025</resolution>
370 <wrap>true</wrap>
371 </binding>
372 </action>
373
374 <action>
375 <name>com frequency decrease (integer part)</name>
376 <button>1</button>
377 <x>-32</x>
378 <y>-32</y>
379 <w>16</w>
380 <h>32</h>
381 <binding>
382 <command>property-adjust</command>
383 <property alias="../../../../params/comm-freq-standby-prop"/>
384 <mask>integer</mask>
385 <step>-1</step>
386 <min>118</min>
387 <max>136</max>
388 <resolution>1</resolution>
389 <wrap>true</wrap>
390 </binding>
391 </action>
392
393 <action>
394 <name>com frequency increase (decimal part)</name>
395 <button>0</button>
396 <x>-16</x>
397 <y>-32</y>
398 <w>16</w>
399 <h>32</h>
400 <binding>
401 <command>property-adjust</command>
402 <property alias="../../../../params/comm-freq-standby-prop"/>
403 <mask>decimal</mask>
404 <step>0.025</step>
405 <min>0.000</min>
406 <max>1.000</max>
407 <resolution>0.025</resolution>
408 <wrap>true</wrap>
409 </binding>
410 </action>
411
412 <action>
413 <name>com frequency increase (integer part)</name>
414 <button>1</button>
415 <x>-16</x>
416 <y>-32</y>
417 <w>16</w>
418 <h>32</h>
419 <binding>
420 <command>property-adjust</command>
421 <property alias="../../../../params/comm-freq-standby-prop"/>
422 <mask>integer</mask>
423 <step>1</step>
424 <min>118</min>
425 <max>136</max>
426 <resolution>1</resolution>
427 <wrap>true</wrap>
428 </binding>
429 </action>
430
431 <action>
432 <name>swap nav frequencies</name>
433 <button>0</button>
434 <x>48</x>
435 <y>-32</y>
436 <w>32</w>
437 <h>32</h>
438 <binding>
439 <command>property-swap</command>
440 <property alias="../../../../params/nav-freq-selected-prop"/>
441 <property alias="../../../../params/nav-freq-standby-prop"/>
442 </binding>
443 </action>
444
445 <action>
446 <name>swap com frequencies</name>
447 <button>0</button>
448 <x>-80</x>
449 <y>-32</y>
450 <w>32</w>
451 <h>32</h>
452 <binding>
453 <command>property-swap</command>
454 <property alias="../../../../params/comm-freq-selected-prop"/>
455 <property alias="../../../../params/comm-freq-standby-prop"/>
456 </binding>
457 </action>
458
459
460 <action>
461 <name>ident volume increase</name>
462 <button>0</button>
463 <x>40</x>
464 <y>-24</y>
465 <w>8</w>
466 <h>16</h>
467 <binding>
468 <command>property-adjust</command>
469 <property alias="../../../../params/nav-morse-id-volume-prop"/>
470 <step>0.5</step>
471 <min>0</min>
472 <max>2</max>
473 </binding>
474 </action>
475
476 <action>
477 <name>ident volume decrease</name>
478 <button>0</button>
479 <x>32</x>
480 <y>-24</y>
481 <w>16</w>
482 <h>8</h>
483 <binding>
484 <command>property-adjust</command>
485 <property alias="../../../../params/nav-morse-id-volume-prop"/>
486 <step>-0.5</step>
487 <min>0</min>
488 <max>2</max>
489 </binding>
490 </action>
491
492 <action>
493 <name>ident volume on/off</name>
494 <button>0</button>
495 <x>-6</x>
496 <y>-30</y>
497 <w>14</w>
498 <h>16</h>
499 <binding>
500 <command>property-toggle</command>
501 <property alias="../../../../params/nav-morse-ident-toggle-prop"/>
502 </binding>
503 </action>
504
505 </actions>
506
507 </PropertyList>