The new led font is now antialiased (`a la Andy) and has
[fg:toms-fgdata.git] / Aircraft / Instruments / navcom-kx155.xml
1 <?xml version="1.0"?>
2
3 <!--
4 Default NAVCOM  radio instrument.
5 Parameterized and improved
6 John Check <j4strngs@rockfish.net>
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>86</h-base>
32
33  <params>
34   <comm-freq-selected-prop>/radios/comm[0]/frequencies/selected-mhz</comm-freq-selected-prop>
35   <comm-freq-standby-prop>/radios/comm[0]/frequencies/standby-mhz</comm-freq-standby-prop>
36   <nav-freq-selected-prop>/radios/nav[0]/frequencies/selected-mhz</nav-freq-selected-prop>
37   <nav-freq-standby-prop>/radios/nav[0]/frequencies/standby-mhz</nav-freq-standby-prop>
38   <nav-morse-id-volume-prop>/radios/nav[0]/volume</nav-morse-id-volume-prop>
39   <nav-morse-ident-toggle-prop>/radios/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/bendix-kx155.rgb</path>
48     <y1>0.0</y1>
49     <y2>0.30859375</y2>
50     <x1>0.0</x1>
51     <x2>1.0</x2>
52    </texture>
53   </layer>
54
55   <layer>
56    <name>nav frequencies</name>
57    <type>text</type>
58    <font>led</font>
59    <point-size>6.5</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>%9.2f</format>
75     </chunk>
76    </chunks>
77    <transformations>
78     <transformation>
79      <type>x-shift</type>
80      <offset>10</offset>
81     </transformation>
82     <transformation>
83      <type>y-shift</type>
84      <offset>18</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>6.5</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>%9.2f</format>
113     </chunk>
114    </chunks>
115    <transformations>
116     <transformation>
117      <type>x-shift</type>
118      <offset>-118</offset>
119     </transformation>
120     <transformation>
121      <type>y-shift</type>
122      <offset>18</offset>
123     </transformation>
124    </transformations>
125   </layer>
126
127   <layer>
128    <name>morse ident status</name>
129    <condition>
130     <equals>
131     <property alias="../../../../../params/nav-morse-ident-toggle-prop"/>
132     <value>true</value>
133     </equals>
134    </condition>
135    <type>text</type>
136    <point-size>6</point-size>
137    <color>
138     <red>1.0</red>
139     <green>0.5</green>
140     <blue>0.0</blue>
141    </color>
142    <chunks>
143     <chunk>
144      <type>literal</type>
145      <text>ID</text>
146     </chunk>
147    </chunks> 
148    <transformations>
149     <transformation>
150      <type>x-shift</type>
151      <offset>10</offset>
152     </transformation>
153     <transformation>
154      <type>y-shift</type>
155      <offset>8</offset>
156     </transformation>
157    </transformations>
158   </layer>
159   
160   <layer>
161    <name>ident knob pointer</name>
162    <texture>
163     <path>Aircraft/Instruments/Textures/bendix-kx155.rgb</path>
164     <x1>0.1</x1>
165     <x2>0.2</x2>
166     <y1>0.29298675</y1>
167     <y2>0.3078125</y2>
168    </texture>
169    <w>7</w>
170    <h>4</h>
171    <transformations>
172     <transformation>
173      <type>x-shift</type>
174      <offset>29.5</offset>
175     </transformation>
176     <transformation>
177      <type>y-shift</type>
178      <offset>-27</offset>
179     </transformation>
180     <transformation>
181      <type>rotation</type>
182      <property alias="../../../../../params/nav-morse-id-volume-prop"/>
183      <min>0</min>
184      <max>1</max>
185      <scale>180</scale>
186      <offset>-60</offset>
187     </transformation>
188     <transformation>
189     <type>x-shift</type>
190     <offset>-2</offset>
191     </transformation>
192    </transformations>
193   </layer>
194
195  </layers>
196
197  <actions>
198
199   <action>
200    <name>small nav frequency decrease</name>
201    <button>0</button>
202    <x>86</x>
203    <y>-24</y>
204    <w>12</w>
205    <h>18</h>
206    <binding>
207     <command>property-adjust</command>
208     <property alias="../../../../params/nav-freq-standby-prop"/>
209     <step>-0.05</step>
210     <min>108.0</min>
211     <max>117.95</max>
212     <wrap>1</wrap>
213    </binding>
214   </action>
215
216   <action>
217    <name>large nav frequency decrease</name>
218    <button>1</button>
219    <x>86</x>
220    <y>-24</y>
221    <w>12</w>
222    <h>18</h>
223    <binding>
224     <command>property-adjust</command>
225     <property alias="../../../../params/nav-freq-standby-prop"/>
226     <step>-0.5</step>
227     <min>108.0</min>
228     <max>117.95</max>
229     <wrap>1</wrap>
230    </binding>
231   </action>
232
233   <action>
234    <name>small nav frequency increase</name>
235    <button>0</button>
236    <x>99</x>
237    <y>-24</y>
238    <w>12</w>
239    <h>18</h>
240    <binding>
241     <command>property-adjust</command>
242     <property alias="../../../../params/nav-freq-standby-prop"/>
243     <step>0.05</step>
244     <min>108.0</min>
245     <max>117.95</max>
246     <wrap>1</wrap>
247    </binding>
248   </action>
249
250   <action>
251    <name>large nav frequency increase</name>
252    <button>1</button>
253    <x>99</x>
254    <y>-24</y>
255    <w>12</w>
256    <h>18</h>
257    <binding>
258     <command>property-adjust</command>
259     <property alias="../../../../params/nav-freq-standby-prop"/>
260     <step>0.5</step>
261     <min>108.0</min>
262     <max>117.95</max>
263     <wrap>1</wrap>
264    </binding>
265   </action>
266
267
268   <action>
269    <name>small com frequency decrease</name>
270    <button>0</button>
271    <x>-36</x>
272    <y>-24</y>
273    <w>12</w>
274    <h>18</h>
275    <binding>
276     <command>property-adjust</command>
277     <property alias="../../../../params/comm-freq-standby-prop"/>
278     <step>-0.025</step>
279     <min>0.0</min>
280     <max>140.0</max>
281     <wrap>1</wrap>
282    </binding>
283   </action>
284
285   <action>
286    <name>large com frequency decrease</name>
287    <button>1</button>
288    <x>-36</x>
289    <y>-24</y>
290    <w>12</w>
291    <h>18</h>
292    <binding>
293     <command>property-adjust</command>
294     <property alias="../../../../params/comm-freq-standby-prop"/>
295     <step>-1.0</step>
296     <min>0.0</min>
297     <max>140.0</max>
298     <wrap>1</wrap>
299    </binding>
300   </action>
301
302   <action>
303    <name>small com frequency increase</name>
304    <button>0</button>
305    <x>-45</x>
306    <y>-24</y>
307    <w>12</w>
308    <h>18</h>
309    <binding>
310     <command>property-adjust</command>
311     <property alias="../../../../params/comm-freq-standby-prop"/>
312     <step>0.025</step>
313     <min>0.0</min>
314     <max>140.0</max>
315     <wrap>1</wrap>
316    </binding>
317   </action>
318
319   <action>
320    <name>large com frequency increase</name>
321    <button>1</button>
322    <x>-45</x>
323    <y>-24</y>
324    <w>12</w>
325    <h>18</h>
326    <binding>
327     <command>property-adjust</command>
328     <property alias="../../../../params/comm-freq-standby-prop"/>
329     <step>1.0</step>
330     <min>0.0</min>
331     <max>140.0</max>
332     <wrap>1</wrap>
333    </binding>
334   </action>
335
336
337   <action>
338    <name>swap nav frequencies</name>
339    <button>0</button>
340    <x>48</x>
341    <y>-9</y>
342    <w>18</w>
343    <h>11</h>
344    <binding>
345     <command>property-swap</command>
346     <property alias="../../../../params/nav-freq-selected-prop"/>
347     <property alias="../../../../params/nav-freq-standby-prop"/>
348    </binding>
349   </action>
350
351   <action>
352    <name>swap com frequencies</name>
353    <button>0</button>
354    <x>-85</x>
355    <y>-9</y>
356    <w>18</w>
357    <h>11</h>
358    <binding>
359     <command>property-swap</command>
360     <property alias="../../../../params/comm-freq-selected-prop"/>
361     <property alias="../../../../params/comm-freq-standby-prop"/>
362    </binding>
363   </action>
364
365
366   <action>
367    <name>ident volume increase</name>
368    <button>0</button>
369    <x>33</x>
370    <y>-36</y>
371    <w>7</w>
372    <h>14</h>
373    <binding>
374     <command>property-adjust</command>
375     <property alias="../../../../params/nav-morse-id-volume-prop"/>
376     <step>0.5</step>
377     <min>0</min>
378     <max>2</max>
379    </binding>
380   </action>
381
382   <action>
383    <name>ident volume decrease</name>
384    <button>0</button>
385    <x>24</x>
386    <y>-36</y>
387    <w>7</w>
388    <h>14</h>
389    <binding>
390     <command>property-adjust</command>
391     <property alias="../../../../params/nav-morse-id-volume-prop"/>
392     <step>-0.5</step>
393     <min>0</min>
394     <max>2</max>
395    </binding>
396   </action>
397  
398   <action>
399    <name>ident volume on/off</name>
400    <button>1</button>
401    <x>24</x>
402    <y>-36</y>
403    <w>14</w>
404    <h>14</h>
405    <binding>
406     <command>property-adjust</command>
407     <property alias="../../../../params/nav-morse-ident-toggle-prop"/>
408     <step>1.0</step>
409     <min>0</min>
410     <max>1</max>
411     <wrap>1</wrap>
412    </binding>
413   </action>
414
415  </actions>
416
417 </PropertyList>