Debian Codegraph @

Aircraft/Instruments/md41-52x-gps-annunciator.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 _______________________________________________________________________________
5 MD41-52x series GPS annunciator for KLN89 (and similar) GPS units.
6
7 Started 2005 by David Luff, [email protected].
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 <name>MD41</name>
29 <w-base>256</w-base>
30 <h-base>256</h-base>
31
32 <!-- Layers -->
33
34 <layers>
35
36 <layer>
37 <name>background</name>
38 <texture>
39 <path>Aircraft/Instruments/Textures/md41-52x-gps-annunciator.rgb</path>
40 <x1>0.0</x1>
41 <x2>0.6094</x2>
42 <y1>0.0</y1>
43 <y2>0.2383</y2>
44 </texture>
45 <w>156</w>
46 <h>62</h>
47 </layer>
48
49 <layer>
50 <name>nav-annunciation</name>
51 <condition>
52 <or>
53 <not>
54 <property>/instrumentation/nav[0]/slaved-to-gps</property>
55 </not>
56 <property>/instrumentation/gps-annunciator/lamp-test</property>
57 </or>
58 </condition>
59 <texture>
60 <path>Aircraft/Instruments/Textures/md41-52x-gps-annunciator.rgb</path>
61 <x1>0.6211</x1>
62 <x2>0.7109</x2>
63 <y1>0.0742</y1>
64 <y2>0.1172</y2>
65 </texture>
66 <transformations>
67 <transformation>
68 <type>x-shift</type>
69 <offset>-45</offset>
70 </transformation>
71 <transformation>
72 <type>y-shift</type>
73 <offset>18</offset>
74 </transformation>
75 </transformations>
76 <w>23</w>
77 <h>11</h>
78 </layer>
79
80 <layer>
81 <name>gps-annunciation</name>
82 <condition>
83 <or>
84 <property>/instrumentation/nav[0]/slaved-to-gps</property>
85 <property>/instrumentation/gps-annunciator/lamp-test</property>
86 </or>
87 </condition>
88 <texture>
89 <path>Aircraft/Instruments/Textures/md41-52x-gps-annunciator.rgb</path>
90 <x1>0.6211</x1>
91 <x2>0.7148</x2>
92 <y1>0.0234</y1>
93 <y2>0.0625</y2>
94 </texture>
95 <transformations>
96 <transformation>
97 <type>x-shift</type>
98 <offset>-46</offset>
99 </transformation>
100 <transformation>
101 <type>y-shift</type>
102 <offset>9</offset>
103 </transformation>
104 </transformations>
105 <w>23</w>
106 <h>11</h>
107 </layer>
108
109 <layer>
110 <name>approach-arm-annunciation</name>
111 <condition>
112 <or>
113 <property>/instrumentation/gps/approach-arm</property>
114 <property>/instrumentation/gps-annunciator/lamp-test</property>
115 </or>
116 </condition>
117 <texture>
118 <path>Aircraft/Instruments/Textures/md41-52x-gps-annunciator.rgb</path>
119 <x1>0.6133</x1>
120 <x2>0.7148</x2>
121 <y1>0.1719</y1>
122 <y2>0.2188</y2>
123 </texture>
124 <transformations>
125 <transformation>
126 <type>x-shift</type>
127 <offset>-16</offset>
128 </transformation>
129 <transformation>
130 <type>y-shift</type>
131 <offset>18</offset>
132 </transformation>
133 </transformations>
134 <w>26</w>
135 <h>12</h>
136 </layer>
137
138 <layer>
139 <name>approach-active-annunciation</name>
140 <condition>
141 <or>
142 <property>/instrumentation/gps/approach-active</property>
143 <property>/instrumentation/gps-annunciator/lamp-test</property>
144 </or>
145 </condition>
146 <texture>
147 <path>Aircraft/Instruments/Textures/md41-52x-gps-annunciator.rgb</path>
148 <x1>0.6094</x1>
149 <x2>0.7266</x2>
150 <y1>0.125</y1>
151 <y2>0.1719</y2>
152 </texture>
153 <transformations>
154 <transformation>
155 <type>x-shift</type>
156 <offset>-15</offset>
157 </transformation>
158 <transformation>
159 <type>y-shift</type>
160 <offset>9</offset>
161 </transformation>
162 </transformations>
163 <w>30</w>
164 <h>12</h>
165 </layer>
166
167 <layer>
168 <name>obs-mode-annunciation</name>
169 <condition>
170 <or>
171 <property>/instrumentation/gps/obs-mode</property>
172 <property>/instrumentation/gps-annunciator/lamp-test</property>
173 </or>
174 </condition>
175 <texture>
176 <path>Aircraft/Instruments/Textures/md41-52x-gps-annunciator.rgb</path>
177 <x1>0.7383</x1>
178 <x2>0.8398</x2>
179 <y1>0.125</y1>
180 <y2>0.1680</y2>
181 </texture>
182 <transformations>
183 <transformation>
184 <type>x-shift</type>
185 <offset>15</offset>
186 </transformation>
187 <transformation>
188 <type>y-shift</type>
189 <offset>19</offset>
190 </transformation>
191 </transformations>
192 <w>26</w>
193 <h>11</h>
194 </layer>
195
196 <layer>
197 <name>leg-mode-annunciation</name>
198 <condition>
199 <or>
200 <property>/instrumentation/gps/leg-mode</property>
201 <property>/instrumentation/gps-annunciator/lamp-test</property>
202 </or>
203 </condition>
204 <texture>
205 <path>Aircraft/Instruments/Textures/md41-52x-gps-annunciator.rgb</path>
206 <x1>0.7383</x1>
207 <x2>0.8398</x2>
208 <y1>0.0742</y1>
209 <y2>0.1172</y2>
210 </texture>
211 <transformations>
212 <transformation>
213 <type>x-shift</type>
214 <offset>15</offset>
215 </transformation>
216 <transformation>
217 <type>y-shift</type>
218 <offset>10</offset>
219 </transformation>
220 </transformations>
221 <w>26</w>
222 <h>11</h>
223 </layer>
224
225 <layer>
226 <name>message-alert-annunciation</name>
227 <condition>
228 <or>
229 <property>/instrumentation/gps/message-alert</property>
230 <property>/instrumentation/gps-annunciator/lamp-test</property>
231 </or>
232 </condition>
233 <texture>
234 <path>Aircraft/Instruments/Textures/md41-52x-gps-annunciator.rgb</path>
235 <x1>0.7383</x1>
236 <x2>0.8398</x2>
237 <y1>0.1758</y1>
238 <y2>0.2188</y2>
239 </texture>
240 <transformations>
241 <transformation>
242 <type>x-shift</type>
243 <offset>45</offset>
244 </transformation>
245 <transformation>
246 <type>y-shift</type>
247 <offset>19</offset>
248 </transformation>
249 </transformations>
250 <w>26</w>
251 <h>11</h>
252 </layer>
253
254 <layer>
255 <name>waypoint-alert-annunciation</name>
256 <condition>
257 <or>
258 <property>/instrumentation/gps/waypoint-alert</property>
259 <property>/instrumentation/gps-annunciator/lamp-test</property>
260 </or>
261 </condition>
262 <texture>
263 <path>Aircraft/Instruments/Textures/md41-52x-gps-annunciator.rgb</path>
264 <x1>0.7383</x1>
265 <x2>0.8398</x2>
266 <y1>0.0234</y1>
267 <y2>0.0664</y2>
268 </texture>
269 <transformations>
270 <transformation>
271 <type>x-shift</type>
272 <offset>45</offset>
273 </transformation>
274 <transformation>
275 <type>y-shift</type>
276 <offset>10</offset>
277 </transformation>
278 </transformations>
279 <w>26</w>
280 <h>11</h>
281 </layer>
282
283 </layers>
284
285 <!-- Actions -->
286
287 <actions>
288
289 <action>
290 <name>NAV-GPS Button</name>
291 <button>0</button>
292 <x>-57</x>
293 <y>-25</y>
294 <w>22</w>
295 <h>22</h>
296 <binding>
297 <command>property-toggle</command>
298 <property>/instrumentation/nav[0]/slaved-to-gps</property>
299 </binding>
300 </action>
301
302 <action>
303 <name>GPS-APR Button</name>
304 <button>0</button>
305 <x>-26</x>
306 <y>-25</y>
307 <w>22</w>
308 <h>22</h>
309 <binding>
310 <command>kln89_gps_apr_pressed</command>
311 </binding>
312 </action>
313
314 <action>
315 <name>OBS-LEG Button</name>
316 <button>0</button>
317 <x>3</x>
318 <y>-25</y>
319 <w>22</w>
320 <h>22</h>
321 <binding>
322 <command>kln89_obs_pressed</command>
323 </binding>
324 </action>
325
326 <action>
327 <name>Lamp-Test</name>
328 <button>0</button>
329 <x>60</x>
330 <y>-6</y>
331 <w>15</w>
332 <h>15</h>
333 <binding>
334 <command>property-assign</command>
335 <property>/instrumentation/gps-annunciator/lamp-test</property>
336 <value type="bool">true</value>
337 <repeatable type="bool">false</repeatable>
338 </binding>
339 <mod-up>
340 <binding>
341 <command>property-assign</command>
342 <property>/instrumentation/gps-annunciator/lamp-test</property>
343 <value type="bool">false</value>
344 </binding>
345 </mod-up>
346 </action>
347
348 </actions>
349
350 </PropertyList>