Debian Codegraph @

Aircraft/Instruments-3d/kln94/kln94.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8" ?>
2
3 <!-- This simulates a Bendix/King KLN94 GPS
4
5 Nasal and XML 2013 James Turner
6 Model, Texture and Animations 2023 Benedikt Wolf
7
8 -->
9
10 <PropertyList>
11
12 <path>kln94.ac</path>
13
14 <animation>
15 <type>pick</type>
16 <object-name>ent-btn</object-name>
17 <action>
18 <button>0</button>
19 <repeatable>false</repeatable>
20 <binding>
21 <command>nasal</command>
22 <script>KLN94.kln94.enter();</script>
23 </binding>
24 <binding>
25 <command>property-assign</command>
26 <property>instrumentation/kln94[0]/enter-btn</property>
27 <value>1</value>
28 </binding>
29 <mod-up>
30 <binding>
31 <command>property-assign</command>
32 <property>instrumentation/kln94[0]/enter-btn</property>
33 <value>0</value>
34 </binding>
35 </mod-up>
36 </action>
37 </animation>
38 <animation>
39 <type>translate</type>
40 <object-name>ent-btn</object-name>
41 <property>instrumentation/kln94[0]/enter-btn</property>
42 <factor>-0.001</factor>
43 <axis>
44 <x>1</x>
45 </axis>
46 </animation>
47
48 <animation>
49 <type>pick</type>
50 <object-name>crsr-btn</object-name>
51 <action>
52 <button>0</button>
53 <repeatable>false</repeatable>
54 <binding>
55 <command>nasal</command>
56 <script>KLN94.kln94.toggleCursorMode();</script>
57 </binding>
58 <binding>
59 <command>property-assign</command>
60 <property>instrumentation/kln94[0]/cursor-btn</property>
61 <value>1</value>
62 </binding>
63 <mod-up>
64 <binding>
65 <command>property-assign</command>
66 <property>instrumentation/kln94[0]/cursor-btn</property>
67 <value>0</value>
68 </binding>
69 </mod-up>
70 </action>
71 </animation>
72 <animation>
73 <type>translate</type>
74 <object-name>crsr-btn</object-name>
75 <property>instrumentation/kln94[0]/cursor-btn</property>
76 <factor>-0.001</factor>
77 <axis>
78 <x>1</x>
79 </axis>
80 </animation>
81
82 <animation>
83 <type>pick</type>
84 <object-name>nrst-btn</object-name>
85 <action>
86 <button>0</button>
87 <repeatable>false</repeatable>
88 <binding>
89 <command>nasal</command>
90 <script>KLN94.kln94.nearestButton();</script>
91 </binding>
92 <binding>
93 <command>property-assign</command>
94 <property>instrumentation/kln94[0]/nearest-btn</property>
95 <value>1</value>
96 </binding>
97 <mod-up>
98 <binding>
99 <command>property-assign</command>
100 <property>instrumentation/kln94[0]/nearest-btn</property>
101 <value>0</value>
102 </binding>
103 </mod-up>
104 </action>
105 </animation>
106 <animation>
107 <type>translate</type>
108 <object-name>nrst-btn</object-name>
109 <property>instrumentation/kln94[0]/nearest-btn</property>
110 <factor>-0.001</factor>
111 <axis>
112 <x>1</x>
113 </axis>
114 </animation>
115
116 <animation>
117 <type>pick</type>
118 <object-name>dto-btn</object-name>
119 <action>
120 <button>0</button>
121 <repeatable>false</repeatable>
122 <binding>
123 <command>nasal</command>
124 <script>KLN94.kln94.directTo();</script>
125 </binding>
126 <binding>
127 <command>property-assign</command>
128 <property>instrumentation/kln94[0]/direct-to-btn</property>
129 <value>1</value>
130 </binding>
131 <mod-up>
132 <binding>
133 <command>property-assign</command>
134 <property>instrumentation/kln94[0]/direct-to-btn</property>
135 <value>0</value>
136 </binding>
137 </mod-up>
138 </action>
139 </animation>
140 <animation>
141 <type>translate</type>
142 <object-name>dto-btn</object-name>
143 <property>instrumentation/kln94[0]/direct-to-btn</property>
144 <factor>-0.001</factor>
145 <axis>
146 <x>1</x>
147 </axis>
148 </animation>
149
150 <animation>
151 <type>pick</type>
152 <object-name>obs-btn</object-name>
153 <action>
154 <button>0</button>
155 <repeatable>false</repeatable>
156 <binding>
157 <command>nasal</command>
158 <script>KLN94.kln94.obsButton();</script>
159 </binding>
160 <binding>
161 <command>property-assign</command>
162 <property>instrumentation/kln94[0]/obs-btn</property>
163 <value>1</value>
164 </binding>
165 <mod-up>
166 <binding>
167 <command>property-assign</command>
168 <property>instrumentation/kln94[0]/obs-btn</property>
169 <value>0</value>
170 </binding>
171 </mod-up>
172 </action>
173 </animation>
174 <animation>
175 <type>translate</type>
176 <object-name>obs-btn</object-name>
177 <property>instrumentation/kln94[0]/obs-btn</property>
178 <factor>-0.001</factor>
179 <axis>
180 <x>1</x>
181 </axis>
182 </animation>
183
184 <animation>
185 <type>pick</type>
186 <object-name>msg-btn</object-name>
187 <action>
188 <button>0</button>
189 <repeatable>false</repeatable>
190 <binding>
191 <command>nasal</command>
192 <script>KLN94.kln94.messageButton();</script>
193 </binding>
194 <binding>
195 <command>property-assign</command>
196 <property>instrumentation/kln94[0]/message-btn</property>
197 <value>1</value>
198 </binding>
199 <mod-up>
200 <binding>
201 <command>property-assign</command>
202 <property>instrumentation/kln94[0]/message-btn</property>
203 <value>0</value>
204 </binding>
205 </mod-up>
206 </action>
207 </animation>
208 <animation>
209 <type>translate</type>
210 <object-name>msg-btn</object-name>
211 <property>instrumentation/kln94[0]/message-btn</property>
212 <factor>-0.001</factor>
213 <axis>
214 <x>1</x>
215 </axis>
216 </animation>
217
218 <animation>
219 <type>pick</type>
220 <object-name>proc-btn</object-name>
221 <action>
222 <button>0</button>
223 <repeatable>false</repeatable>
224 <binding>
225 <command>nasal</command>
226 <script>KLN94.kln94.procedureButton();</script>
227 </binding>
228 <binding>
229 <command>property-assign</command>
230 <property>instrumentation/kln94[0]/procedure-btn</property>
231 <value>1</value>
232 </binding>
233 <mod-up>
234 <binding>
235 <command>property-assign</command>
236 <property>instrumentation/kln94[0]/procedure-btn</property>
237 <value>0</value>
238 </binding>
239 </mod-up>
240 </action>
241 </animation>
242 <animation>
243 <type>translate</type>
244 <object-name>proc-btn</object-name>
245 <property>instrumentation/kln94[0]/procedure-btn</property>
246 <factor>-0.001</factor>
247 <axis>
248 <x>1</x>
249 </axis>
250 </animation>
251
252 <animation>
253 <type>pick</type>
254 <object-name>alt-btn</object-name>
255 <action>
256 <button>0</button>
257 <repeatable>false</repeatable>
258 <binding>
259 <command>nasal</command>
260 <script>KLN94.kln94.altitudeButton();</script>
261 </binding>
262 <binding>
263 <command>property-assign</command>
264 <property>instrumentation/kln94[0]/altitude-btn</property>
265 <value>1</value>
266 </binding>
267 <mod-up>
268 <binding>
269 <command>property-assign</command>
270 <property>instrumentation/kln94[0]/altitude-btn</property>
271 <value>0</value>
272 </binding>
273 </mod-up>
274 </action>
275 </animation>
276 <animation>
277 <type>translate</type>
278 <object-name>alt-btn</object-name>
279 <property>instrumentation/kln94[0]/altitude-btn</property>
280 <factor>-0.001</factor>
281 <axis>
282 <x>1</x>
283 </axis>
284 </animation>
285
286 <animation>
287 <type>pick</type>
288 <object-name>clr-btn</object-name>
289 <action>
290 <button>0</button>
291 <repeatable>false</repeatable>
292 <binding>
293 <command>nasal</command>
294 <script>KLN94.kln94.clearButton();</script>
295 </binding>
296 <binding>
297 <command>property-assign</command>
298 <property>instrumentation/kln94[0]/clear-btn</property>
299 <value>1</value>
300 </binding>
301 <mod-up>
302 <binding>
303 <command>property-assign</command>
304 <property>instrumentation/kln94[0]/clear-btn</property>
305 <value>0</value>
306 </binding>
307 </mod-up>
308 </action>
309 </animation>
310 <animation>
311 <type>translate</type>
312 <object-name>clr-btn</object-name>
313 <property>instrumentation/kln94[0]/clear-btn</property>
314 <factor>-0.001</factor>
315 <axis>
316 <x>1</x>
317 </axis>
318 </animation>
319
320 <animation>
321 <type>pick</type>
322 <object-name>mnu-btn</object-name>
323 <action>
324 <button>0</button>
325 <repeatable>false</repeatable>
326 <binding>
327 <command>nasal</command>
328 <script>KLN94.kln94.menuButton();</script>
329 </binding>
330 <binding>
331 <command>property-assign</command>
332 <property>instrumentation/kln94[0]/menu-btn</property>
333 <value>1</value>
334 </binding>
335 <mod-up>
336 <binding>
337 <command>property-assign</command>
338 <property>instrumentation/kln94[0]/menu-btn</property>
339 <value>0</value>
340 </binding>
341 </mod-up>
342 </action>
343 </animation>
344 <animation>
345 <type>translate</type>
346 <object-name>mnu-btn</object-name>
347 <property>instrumentation/kln94[0]/menu-btn</property>
348 <factor>-0.001</factor>
349 <axis>
350 <x> 0.966</x> <!-- cos(15 deg) -->
351 <y>-0.259</y> <!-- -sin(15 deg) -->
352 </axis>
353 </animation>
354
355 <animation>
356 <type>pick</type>
357 <object-name>rng-btn</object-name>
358 <action>
359 <button>0</button>
360 <repeatable>false</repeatable>
361 <binding>
362 <command>nasal</command>
363 <script>KLN94.kln94.rangeButton( 1 );</script>
364 </binding>
365 <binding>
366 <command>property-assign</command>
367 <property>instrumentation/kln94[0]/range-btn</property>
368 <value>1</value>
369 </binding>
370 <mod-up>
371 <binding>
372 <command>property-assign</command>
373 <property>instrumentation/kln94[0]/range-btn</property>
374 <value>0</value>
375 </binding>
376 </mod-up>
377 </action>
378 <action>
379 <button>1</button>
380 <repeatable>false</repeatable>
381 <binding>
382 <command>nasal</command>
383 <script>KLN94.kln94.rangeButton( -1 );</script>
384 </binding>
385 <binding>
386 <command>property-assign</command>
387 <property>instrumentation/kln94[0]/range-btn</property>
388 <value>-1</value>
389 </binding>
390 <mod-up>
391 <binding>
392 <command>property-assign</command>
393 <property>instrumentation/kln94[0]/range-btn</property>
394 <value>0</value>
395 </binding>
396 </mod-up>
397 </action>
398 </animation>
399 <animation>
400 <type>pick</type>
401 <object-name>rng-btn-up</object-name>
402 <visible>0</visible>
403 <action>
404 <button>0</button>
405 <repeatable>false</repeatable>
406 <binding>
407 <command>nasal</command>
408 <script>KLN94.kln94.rangeButton( 1 );</script>
409 </binding>
410 <binding>
411 <command>property-assign</command>
412 <property>instrumentation/kln94[0]/range-btn</property>
413 <value>1</value>
414 </binding>
415 <mod-up>
416 <binding>
417 <command>property-assign</command>
418 <property>instrumentation/kln94[0]/range-btn</property>
419 <value>0</value>
420 </binding>
421 </mod-up>
422 </action>
423 </animation>
424 <animation>
425 <type>pick</type>
426 <object-name>rng-btn-down</object-name>
427 <visible>0</visible>
428 <action>
429 <button>0</button>
430 <repeatable>false</repeatable>
431 <binding>
432 <command>nasal</command>
433 <script>KLN94.kln94.rangeButton( -1 );</script>
434 </binding>
435 <binding>
436 <command>property-assign</command>
437 <property>instrumentation/kln94[0]/range-btn</property>
438 <value>-1</value>
439 </binding>
440 <mod-up>
441 <binding>
442 <command>property-assign</command>
443 <property>instrumentation/kln94[0]/range-btn</property>
444 <value>0</value>
445 </binding>
446 </mod-up>
447 </action>
448 </animation>
449 <animation>
450 <type>rotate</type>
451 <object-name>rng-btn</object-name>
452 <property>instrumentation/kln94[0]/range-btn</property>
453 <factor>-10</factor>
454 <center>
455 <x-m>0.0142</x-m>
456 <y-m>0.046</y-m>
457 <z-m>0.0108</z-m>
458 </center>
459 <axis>
460 <x>0.259</x> <!-- sin(15 deg) -->
461 <y>0.966</y> <!-- cos(15 deg) -->
462 </axis>
463 </animation>
464
465 <animation>
466 <type>knob</type>
467 <object-name>knob-inner</object-name>
468 <property>instrumentation/kln94[0]/inner-knob</property>
469 <factor>1</factor>
470 <center>
471 <y-m> 0.063 </y-m>
472 <z-m> -0.009 </z-m>
473 </center>
474 <axis>
475 <x>1</x>
476 </axis>
477 <action>
478 <binding>
479 <command>nasal</command>
480 <script>KLN94.kln94.innerKnob(cmdarg().getNode('offset').getValue());</script>
481 </binding>
482 <binding>
483 <command>property-adjust</command>
484 <property>instrumentation/kln94[0]/inner-knob</property>
485 <factor>5</factor>
486 <min>0</min>
487 <max>359</max>
488 <wrap>1</wrap>
489 </binding>
490 </action>
491 </animation>
492
493 <animation>
494 <type>knob</type>
495 <object-name>knob-outer</object-name>
496 <property>instrumentation/kln94[0]/outer-knob</property>
497 <factor>1</factor>
498 <center>
499 <y-m> 0.063 </y-m>
500 <z-m> -0.009 </z-m>
501 </center>
502 <axis>
503 <x>1</x>
504 </axis>
505 <action>
506 <binding>
507 <command>nasal</command>
508 <script>KLN94.kln94.outerKnob(cmdarg().getNode('offset').getValue());</script>
509 </binding>
510 <binding>
511 <command>property-adjust</command>
512 <property>instrumentation/kln94[0]/outer-knob</property>
513 <factor>5</factor>
514 <min>0</min>
515 <max>359</max>
516 <wrap>1</wrap>
517 </binding>
518 </action>
519 </animation>
520
521
522 <animation>
523 <type>knob</type>
524 <object-name>knob-brightness</object-name>
525 <property>/instrumentation/kln94/brightness-norm</property>
526 <factor>270</factor>
527 <center>
528 <y-m> -0.0605 </y-m>
529 <z-m> -0.014 </z-m>
530 </center>
531 <axis>
532 <x>1</x>
533 </axis>
534 <action>
535 <binding>
536 <command>property-adjust</command>
537 <property>instrumentation/kln94/brightness-norm</property>
538 <factor>0.05</factor>
539 <min>0</min>
540 <max>1</max>
541 <wrap>false</wrap>
542 </binding>
543 </action>
544 </animation>
545 <animation>
546 <type>pick</type>
547 <object-name>knob-brightness-push</object-name>
548 <action>
549 <button>0</button>
550 <repeatable>false</repeatable>
551 <binding>
552 <command>nasal</command>
553 <script>KLN94.kln94.powerButton();</script>
554 </binding>
555 <binding>
556 <command>property-assign</command>
557 <property>instrumentation/kln94[0]/power-brightness-knob</property>
558 <value>1</value>
559 </binding>
560 <mod-up>
561 <binding>
562 <command>property-assign</command>
563 <property>instrumentation/kln94[0]/power-brightness-knob</property>
564 <value>0</value>
565 </binding>
566 </mod-up>
567 </action>
568 </animation>
569 <animation>
570 <type>translate</type>
571 <object-name>knob-brightness</object-name>
572 <object-name>knob-brightness-push</object-name>
573 <property>instrumentation/kln94[0]/power-brightness-knob</property>
574 <factor>-0.001</factor>
575 <axis>
576 <x>1</x>
577 </axis>
578 </animation>
579
580 </PropertyList>