Debian Codegraph @

Aircraft/Instruments/gyro.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Default gyro compass 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
28 <name>Gyro Compass</name>
29 <w-base>128</w-base>
30 <h-base>128</h-base>
31
32 <params>
33 <dg-style>/sim/instrument-options/dg/style</dg-style>
34 </params>
35
36 <layers>
37
38 <layer>
39 <name>compass rose</name>
40 <texture>
41 <path>Aircraft/Instruments/Textures/faces-1.rgb</path>
42 <x1>0.0</x1>
43 <y1>0.515625</y1>
44 <x2>0.484375</x2>
45 <y2>1.0</y2>
46 </texture>
47 <w>110</w>
48 <h>110</h>
49 <transformations>
50 <transformation>
51 <type>rotation</type>
52 <property>/instrumentation/heading-indicator/indicated-heading-deg</property>
53 <scale>-1.0</scale>
54 </transformation>
55 </transformations>
56 </layer>
57 <!-- fix misc.rgb -->
58 <layer>
59 <name>heading bug</name>
60 <texture>
61 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
62 <x1>0.9375</x1>
63 <y1>0.4375</y1>
64 <x2>1.0</x2>
65 <y2>0.5</y2>
66 </texture>
67 <w>16</w>
68 <h>16</h>
69 <transformations>
70 <transformation>
71 <type>rotation</type>
72 <property>/autopilot/settings/heading-bug-deg</property>
73 </transformation>
74 <transformation>
75 <type>rotation</type>
76 <property>/instrumentation/heading-indicator/indicated-heading-deg</property>
77 <scale>-1.0</scale>
78 </transformation>
79 <transformation>
80 <type>y-shift</type>
81 <offset>50</offset>
82 </transformation>
83 </transformations>
84 </layer>
85 <!-- style A -->
86 <layer>
87 <name>fixed center</name>
88 <condition>
89 <equals>
90 <property alias="../../../../../params/dg-style"/>
91 <value>0</value>
92 </equals>
93 </condition>
94 <texture>
95 <path>Aircraft/Instruments/Textures/gyro-fronts.rgb</path>
96 <x1>0.50390625</x1>
97 <y1>0.5078125</y1>
98 <x2>0.9765625</x2>
99 <y2>0.98046875</y2>
100 </texture>
101 <w>105</w>
102 <h>105</h>
103 <transformations>
104 <transformation>
105 <type>x-shift</type>
106 <offset>-1.5</offset>
107 </transformation>
108 <transformation>
109 <type>y-shift</type>
110 <offset>-1.5</offset>
111 </transformation>
112 </transformations>
113 </layer>
114 <!-- style B -->
115 <layer>
116 <name>fixed center</name>
117 <condition>
118 <equals>
119 <property alias="../../../../../params/dg-style"/>
120 <value>1</value>
121 </equals>
122 </condition>
123 <texture>
124 <path>Aircraft/Instruments/Textures/gyro-fronts.rgb</path>
125 <x1>0.0</x1>
126 <y1>0.0</y1>
127 <x2>0.49609375</x2>
128 <y2>0.49609375</y2>
129 </texture>
130 <w>110</w>
131 <h>110</h>
132 <transformations>
133 <transformation>
134 <type>x-shift</type>
135 <offset>-1</offset>
136 </transformation>
137 <transformation>
138 <type>y-shift</type>
139 <offset>-1</offset>
140 </transformation>
141 </transformations>
142 </layer>
143
144 <layer>
145 <name>glare shield</name>
146 <texture>
147 <path>Aircraft/Instruments/Textures/bezel1.rgb</path>
148 <x1>0.5</x1>
149 <y1>0.0</y1>
150 <x2>1.0</x2>
151 <y2>0.5</y2>
152 </texture>
153 <w>128</w>
154 <h>128</h>
155 <transformations>
156 <transformation>
157 <type>x-shift</type>
158 <offset>2</offset>
159 </transformation>
160 <transformation>
161 <type>y-shift</type>
162 <offset>-2</offset>
163 </transformation>
164 </transformations>
165 </layer>
166
167 <layer>
168 <name>Heading Knob</name>
169 <texture>
170 <path>Aircraft/Instruments/Textures/blister.rgb</path>
171 <x1>0.25</x1>
172 <y1>0.75</y1>
173 <x2>0.5</x2>
174 <y2>1.0</y2>
175 </texture>
176 <h>24</h>
177 <w>24</w>
178 <transformations>
179 <transformation>
180 <type>x-shift</type>
181 <offset>45</offset>
182 </transformation>
183 <transformation>
184 <type>y-shift</type>
185 <offset>-45</offset>
186 </transformation>
187 <transformation>
188 <type>rotation</type>
189 <property>/autopilot/settings/heading-bug-deg</property>
190 <scale>5.0</scale>
191 </transformation>
192 </transformations>
193 </layer>
194
195 <layer>
196 <name>Heading label</name>
197 <texture>
198 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
199 <x1>0.0078125</x1>
200 <y1>0.5</y1>
201 <x2>0.1640625</x2>
202 <y2>0.6640625</y2>
203 </texture>
204 <w>15</w>
205 <h>15</h>
206 <transformations>
207 <transformation>
208 <type>x-shift</type>
209 <offset>45</offset>
210 </transformation>
211 <transformation>
212 <type>y-shift</type>
213 <offset>-45</offset>
214 </transformation>
215 <transformation>
216 <type>rotation</type>
217 <property>/autopilot/settings/heading-bug-deg</property>
218 <scale>5.0</scale>
219 </transformation>
220 </transformations>
221 </layer>
222
223 <layer>
224 <name>OBS Knob</name>
225 <texture>
226 <path>Aircraft/Instruments/Textures/blister.rgb</path>
227 <x1>0.25</x1>
228 <y1>0.75</y1>
229 <x2>0.5</x2>
230 <y2>1.0</y2>
231 </texture>
232 <h>24</h>
233 <w>24</w>
234 <transformations>
235 <transformation>
236 <type>x-shift</type>
237 <offset>-45</offset>
238 </transformation>
239 <transformation>
240 <type>y-shift</type>
241 <offset>-45</offset>
242 </transformation>
243 <transformation>
244 <type>rotation</type>
245 <property>/instrumentation/heading-indicator/indicated-heading-deg</property>
246 <scale>5.0</scale>
247 </transformation>
248 </transformations>
249 </layer>
250
251 <layer>
252 <name>OBS label</name>
253 <texture>
254 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
255 <x1>0.0078125</x1>
256 <y1>0.66015625</y1>
257 <x2>0.1640625</x2>
258 <y2>0.82421875</y2>
259 </texture>
260 <w>15</w>
261 <h>15</h>
262 <transformations>
263 <transformation>
264 <type>x-shift</type>
265 <offset>-45</offset>
266 </transformation>
267 <transformation>
268 <type>y-shift</type>
269 <offset>-45</offset>
270 </transformation>
271 <transformation>
272 <type>rotation</type>
273 <property>/instrumentation/heading-indicator/indicated-heading-deg</property>
274 <scale>5.0</scale>
275 </transformation>
276 </transformations>
277 </layer>
278 </layers>
279
280 <actions>
281
282 <action>
283 <name></name>
284 <button>0</button>
285 <x>-56</x>
286 <y>-56</y>
287 <w>10</w>
288 <h>24</h>
289 <binding>
290 <command>property-adjust</command>
291 <property>/instrumentation/heading-indicator/offset-deg</property>
292 <step>-1</step>
293 <min>0</min>
294 <max>360</max>
295 <wrap>true</wrap>
296 </binding>
297 </action>
298
299 <action>
300 <name></name>
301 <button>1</button>
302 <x>-56</x>
303 <y>-56</y>
304 <w>10</w>
305 <h>24</h>
306 <binding>
307 <command>property-adjust</command>
308 <property>/instrumentation/heading-indicator/offset-deg</property>
309 <step>-5</step>
310 <min>0</min>
311 <max>360</max>
312 <wrap>1</wrap>
313 </binding>
314 </action>
315
316 <action>
317 <name></name>
318 <button>0</button>
319 <x>-46</x>
320 <y>-56</y>
321 <w>10</w>
322 <h>24</h>
323 <binding>
324 <command>property-adjust</command>
325 <property>/instrumentation/heading-indicator/offset-deg</property>
326 <step>1</step>
327 <min>0</min>
328 <max>360</max>
329 <wrap>1</wrap>
330 </binding>
331 </action>
332
333 <action>
334 <name></name>
335 <button>1</button>
336 <x>-46</x>
337 <y>-56</y>
338 <w>10</w>
339 <h>24</h>
340 <binding>
341 <command>property-adjust</command>
342 <property>/instrumentation/heading-indicator/offset-deg</property>
343 <step>5</step>
344 <min>0</min>
345 <max>360</max>
346 <wrap>1</wrap>
347 </binding>
348 </action>
349
350 <action>
351 <name></name>
352 <button>0</button>
353 <x>36</x>
354 <y>-56</y>
355 <w>10</w>
356 <h>24</h>
357 <binding>
358 <command>property-adjust</command>
359 <property>/autopilot/settings/heading-bug-deg</property>
360 <step>-1</step>
361 <min>0</min>
362 <max>360</max>
363 <wrap>1</wrap>
364 </binding>
365 </action>
366
367 <action>
368 <name></name>
369 <button>1</button>
370 <x>36</x>
371 <y>-56</y>
372 <w>10</w>
373 <h>24</h>
374 <binding>
375 <command>property-adjust</command>
376 <property>/autopilot/settings/heading-bug-deg</property>
377 <step>-5</step>
378 <min>0</min>
379 <max>360</max>
380 <wrap>1</wrap>
381 </binding>
382 </action>
383
384 <action>
385 <name></name>
386 <button>0</button>
387 <x>46</x>
388 <y>-56</y>
389 <w>10</w>
390 <h>24</h>
391 <binding>
392 <command>property-adjust</command>
393 <property>/autopilot/settings/heading-bug-deg</property>
394 <step>1</step>
395 <min>0</min>
396 <max>360</max>
397 <wrap>1</wrap>
398 </binding>
399 </action>
400
401 <action>
402 <name></name>
403 <button>1</button>
404 <x>46</x>
405 <y>-56</y>
406 <w>10</w>
407 <h>24</h>
408 <binding>
409 <command>property-adjust</command>
410 <property>/autopilot/settings/heading-bug-deg</property>
411 <step>5</step>
412 <min>0</min>
413 <max>360</max>
414 <wrap>1</wrap>
415 </binding>
416 </action>
417
418 </actions>
419
420 </PropertyList>