Debian Codegraph @

Aircraft/Instruments/adf-radio.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Parameterized ADF radio instrument.
5 John Check <[email protected]>
6 June 2001
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
28 <name>ADF Radio</name>
29 <w-base>256</w-base>
30 <h-base>64</h-base>
31
32 <params>
33 <adf-freq-selected-prop>/instrumentation/adf/frequencies/selected-khz</adf-freq-selected-prop>
34 <adf-freq-standby-prop>/instrumentation/adf/frequencies/standby-khz</adf-freq-standby-prop>
35 <adf-morse-id-volume-prop>/instrumentation/adf/volume-norm</adf-morse-id-volume-prop>
36 <adf-morse-ident-toggle-prop>/instrumentation/adf/ident-audible</adf-morse-ident-toggle-prop>
37 <adf-pwr-volts-prop>/systems/electrical/outputs/adf[0]</adf-pwr-volts-prop>
38 </params>
39
40 <layers>
41
42 <layer>
43 <name>background</name>
44 <texture>
45 <path>Aircraft/Instruments/Textures/navcom-radios.rgb</path>
46 <x1>0.0</x1>
47 <y1>0.5</y1>
48 <x2>1.0</x2>
49 <y2>0.75</y2>
50 </texture>
51 </layer>
52
53 <layer>
54 <name>display</name>
55 <condition>
56 <greater-than>
57 <property alias="../../../../../params/adf-pwr-volts-prop"/>
58 <value>8.0</value>
59 </greater-than>
60 </condition>
61 <type>text</type>
62 <font>led</font>
63 <point-size>7</point-size>
64 <color>
65 <red>1.0</red>
66 <green>0.5</green>
67 <blue>0.0</blue>
68 </color>
69 <chunks>
70 <chunk>
71 <type>number-value</type>
72 <property alias="../../../../../params/adf-freq-selected-prop"/>
73 <format>%6.0f</format>
74 </chunk>
75 <chunk>
76 <type>number-value</type>
77 <property alias="../../../../../params/adf-freq-standby-prop"/>
78 <format>%12.0f</format>
79 </chunk>
80 </chunks>
81 <transformations>
82 <transformation>
83 <type>x-shift</type>
84 <offset>-110</offset>
85 </transformation>
86 <transformation>
87 <type>y-shift</type>
88 <offset>-4</offset>
89 </transformation>
90 </transformations>
91 </layer>
92
93 <layer>
94 <name>annunciator display</name>
95 <condition>
96 <greater-than>
97 <property alias="../../../../../params/adf-pwr-volts-prop"/>
98 <value>8.0</value>
99 </greater-than>
100 </condition>
101 <type>text</type>
102 <point-size>6</point-size>
103 <color>
104 <red>1.0</red>
105 <green>0.5</green>
106 <blue>0.0</blue>
107 </color>
108 <chunks>
109 <chunk>
110 <type>literal</type>
111 <text>SEL STDBY</text>
112 </chunk>
113 </chunks>
114 <transformations>
115 <transformation>
116 <type>x-shift</type>
117 <offset>-90</offset>
118 </transformation>
119 <transformation>
120 <type>y-shift</type>
121 <offset>14</offset>
122 </transformation>
123 </transformations>
124 </layer>
125
126 <layer>
127 <name>swap adffrequencies button label</name>
128 <type>text</type>
129 <point-size>6</point-size>
130 <color>
131 <red>0.0</red>
132 <green>0.0</green>
133 <blue>0.0</blue>
134 </color>
135 <chunks>
136 <chunk>
137 <type>literal</type>
138 <text>SWAP</text>
139 </chunk>
140 </chunks>
141 <transformations>
142 <transformation>
143 <type>x-shift</type>
144 <offset>-95</offset>
145 </transformation>
146 <transformation>
147 <type>y-shift</type>
148 <offset>-20</offset>
149 </transformation>
150 </transformations>
151 </layer>
152
153 <layer>
154 <name>knob</name>
155 <texture>
156 <path>Aircraft/Instruments/Textures/blister.rgb</path>
157 <x1>0.0</x1>
158 <y1>0.75</y1>
159 <x2>0.25</x2>
160 <y2>1.0</y2>
161 </texture>
162 <h>32</h>
163 <w>32</w>
164 <transformations>
165 <transformation>
166 <type>x-shift</type>
167 <offset>100</offset>
168 </transformation>
169 </transformations>
170 </layer>
171
172 <layer>
173 <name>ident knob</name>
174 <texture>
175 <path>Aircraft/Instruments/Textures/blister.rgb</path>
176 <x1>0.0</x1>
177 <y1>0.75</y1>
178 <x2>0.25</x2>
179 <y2>1.0</y2>
180 </texture>
181 <w>15</w>
182 <h>15</h>
183 <transformations>
184 <transformation>
185 <type>x-shift</type>
186 <offset>70</offset>
187 </transformation>
188 <transformation>
189 <type>y-shift</type>
190 <offset>-16</offset>
191 </transformation>
192 </transformations>
193 </layer>
194 <layer>
195 <name>ident knob pointer</name>
196 <texture>
197 <path>Aircraft/Instruments/Textures/blister.rgb</path>
198 <x1>0.0</x1>
199 <y1>0.1640625</y1>
200 <x2>0.1</x2>
201 <y2>0.328125</y2>
202 </texture>
203 <w>2</w>
204 <h>6</h>
205 <transformations>
206 <transformation>
207 <type>x-shift</type>
208 <offset>70</offset>
209 </transformation>
210 <transformation>
211 <type>y-shift</type>
212 <offset>-16</offset>
213 </transformation>
214 <transformation>
215 <type>rotation</type>
216 <property>/instrumentation/adf/volume-norm</property>
217 <min>0</min>
218 <max>2</max>
219 <scale>140</scale>
220 <offset>-140</offset>
221 </transformation>
222 <transformation>
223 <type>y-shift</type>
224 <offset>3</offset>
225 </transformation>
226 </transformations>
227 </layer>
228 <layer>
229 <name>voice/ident toggle</name>
230 <type>switch</type>
231 <layer>
232 <condition>
233 <property alias="../../../../../params/adf-morse-ident-toggle-prop"/>
234 </condition>
235 <name>voice on</name>
236 <texture>
237 <path>Aircraft/Instruments/Textures/switches.rgb</path>
238 <x1>0.0</x1>
239 <y1>0.75</y1>
240 <x2>0.25</x2>
241 <y2>1.0</y2>
242 </texture>
243 <w>12</w>
244 <h>12</h>
245 <transformations>
246 <transformation>
247 <type>y-shift</type>
248 <offset>1</offset>
249 </transformation>
250 </transformations>
251 </layer>
252 <layer>
253 <name>ident on</name>
254 <texture>
255 <path>Aircraft/Instruments/Textures/switches.rgb</path>
256 <x1>0.0</x1>
257 <y1>0.0</y1>
258 <x2>0.25</x2>
259 <y2>0.30</y2>
260 </texture>
261 <w>12</w>
262 <h>15</h>
263 </layer>
264 <transformations>
265 <transformation>
266 <type>x-shift</type>
267 <offset>42</offset>
268 </transformation>
269 <transformation>
270 <type>y-shift</type>
271 <offset>-20</offset>
272 </transformation>
273 </transformations>
274 </layer>
275
276 </layers>
277
278 <actions>
279
280 <action>
281 <name>small decrease</name>
282 <button>0</button>
283 <x>89</x>
284 <y>-12</y>
285 <w>12</w>
286 <h>24</h>
287 <binding>
288 <command>property-adjust</command>
289 <property alias="../../../../params/adf-freq-standby-prop"/>
290 <step>-1</step>
291 <min>100</min>
292 <max>1300</max>
293 <resolution>1</resolution>
294 <wrap>1</wrap>
295 </binding>
296 </action>
297
298 <action>
299 <name>large decrease</name>
300 <button>1</button>
301 <x>89</x>
302 <y>-12</y>
303 <w>12</w>
304 <h>24</h>
305 <binding>
306 <command>property-adjust</command>
307 <property alias="../../../../params/adf-freq-standby-prop"/>
308 <step>-100</step>
309 <min>100</min>
310 <max>1300</max>
311 <resolution>1</resolution>
312 <wrap>1</wrap>
313 </binding>
314 </action>
315
316 <action>
317 <name>small increase</name>
318 <button>0</button>
319 <x>100</x>
320 <y>-12</y>
321 <w>12</w>
322 <h>24</h>
323 <binding>
324 <command>property-adjust</command>
325 <property alias="../../../../params/adf-freq-standby-prop"/>
326 <step>1</step>
327 <min>100</min>
328 <max>1300</max>
329 <resolution>1</resolution>
330 <wrap>1</wrap>
331 </binding>
332 </action>
333
334 <action>
335 <name>large increase</name>
336 <button>1</button>
337 <x>100</x>
338 <y>-12</y>
339 <w>12</w>
340 <h>24</h>
341 <binding>
342 <command>property-adjust</command>
343 <property alias="../../../../params/adf-freq-standby-prop"/>
344 <step>100</step>
345 <min>100</min>
346 <max>1300</max>
347 <resolution>1</resolution>
348 <wrap>1</wrap>
349 </binding>
350 </action>
351
352 <action>
353 <name>swap adf frequencies</name>
354 <button>0</button>
355 <x>-95</x>
356 <y>-26</y>
357 <w>20</w>
358 <h>14</h>
359 <binding>
360 <command>property-swap</command>
361 <property alias="../../../../params/adf-freq-selected-prop"/>
362 <property alias="../../../../params/adf-freq-standby-prop"/>
363 </binding>
364 </action>
365
366 <action>
367 <name>ident volume increase</name>
368 <button>0</button>
369 <x>70</x>
370 <y>-24</y>
371 <w>8</w>
372 <h>16</h>
373 <binding>
374 <command>property-adjust</command>
375 <property alias="../../../../params/adf-morse-id-volume-prop"/>
376 <step>0.5</step>
377 <min>0</min>
378 <max>1</max>
379 </binding>
380 </action>
381
382 <action>
383 <name>ident volume decrease</name>
384 <button>0</button>
385 <x>62</x>
386 <y>-24</y>
387 <w>16</w>
388 <h>8</h>
389 <binding>
390 <command>property-adjust</command>
391 <property alias="../../../../params/adf-morse-id-volume-prop"/>
392 <step>-0.5</step>
393 <min>0</min>
394 <max>1</max>
395 </binding>
396 </action>
397
398 <action>
399 <name>ident volume</name>
400 <button>0</button>
401 <x>37</x>
402 <y>-30</y>
403 <w>14</w>
404 <h>16</h>
405 <binding>
406 <command>property-toggle</command>
407 <property alias="../../../../params/adf-morse-ident-toggle-prop"/>
408 </binding>
409 </action>
410
411 </actions>
412
413 </PropertyList>