Debian Codegraph @

Aircraft/Instruments/kln89.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 _______________________________________________________________________________
5 KLN89B GPS instrument.
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>KLN89</name>
29 <w-base>1024</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/kln89.rgb</path>
40 <x1>0.0</x1>
41 <x2>0.8867</x2>
42 <y1>0.4668</y1>
43 <y2>1.0</y2>
44 </texture>
45 <w>908</w>
46 <h>273</h>
47 </layer>
48
49 <layer>
50 <name>scan-pull</name>
51 <condition>
52 <property>/instrumentation/kln89/scan-pull</property>
53 </condition>
54 <texture>
55 <path>Aircraft/Instruments/Textures/kln89.rgb</path>
56 <x1>0.005</x1>
57 <x2>0.1230</x2>
58 <y1>0.1953</y1>
59 <y2>0.4219</y2>
60 </texture>
61 <transformations>
62 <transformation>
63 <type>x-shift</type>
64 <offset>375</offset>
65 </transformation>
66 <transformation>
67 <type>y-shift</type>
68 <offset>-60</offset>
69 </transformation>
70 </transformations>
71 <w>117</w>
72 <h>112</h>
73 </layer>
74
75 </layers>
76
77 <!-- Actions -->
78
79 <actions>
80
81 <action>
82 <name>MSG Button</name>
83 <button>0</button>
84 <x>-285</x>
85 <y>-122</y>
86 <w>50</w>
87 <h>35</h>
88 <binding>
89 <command>kln89_msg_pressed</command>
90 </binding>
91 </action>
92
93 <action>
94 <name>OBS Button</name>
95 <button>0</button>
96 <x>-200</x>
97 <y>-122</y>
98 <w>50</w>
99 <h>35</h>
100 <binding>
101 <command>kln89_obs_pressed</command>
102 </binding>
103 </action>
104
105 <action>
106 <name>ALT Button</name>
107 <button>0</button>
108 <x>-115</x>
109 <y>-122</y>
110 <w>50</w>
111 <h>35</h>
112 <binding>
113 <command>kln89_alt_pressed</command>
114 </binding>
115 </action>
116
117 <action>
118 <name>NRST Button</name>
119 <button>0</button>
120 <x>-30</x>
121 <y>-122</y>
122 <w>50</w>
123 <h>35</h>
124 <binding>
125 <command>kln89_nrst_pressed</command>
126 </binding>
127 </action>
128
129 <action>
130 <name>DTO Button</name>
131 <button>0</button>
132 <x>55</x>
133 <y>-122</y>
134 <w>50</w>
135 <h>35</h>
136 <binding>
137 <command>kln89_dto_pressed</command>
138 </binding>
139 </action>
140
141 <action>
142 <name>CLR Button</name>
143 <button>0</button>
144 <x>140</x>
145 <y>-122</y>
146 <w>50</w>
147 <h>35</h>
148 <binding>
149 <command>kln89_clr_pressed</command>
150 </binding>
151 </action>
152
153 <action>
154 <name>ENT Button</name>
155 <button>0</button>
156 <x>225</x>
157 <y>-122</y>
158 <w>50</w>
159 <h>35</h>
160 <binding>
161 <command>kln89_ent_pressed</command>
162 </binding>
163 </action>
164
165 <action>
166 <name>CRSR Button</name>
167 <button>0</button>
168 <x>340</x>
169 <y>40</y>
170 <w>70</w>
171 <h>35</h>
172 <binding>
173 <command>kln89_crsr_pressed</command>
174 </binding>
175 </action>
176
177 <action>
178 <name>Outer Dial Clockwise</name>
179 <button>0</button>
180 <x>410</x>
181 <y>-105</y>
182 <w>35</w>
183 <h>100</h>
184 <binding>
185 <command>kln89_knob1right1</command>
186 </binding>
187 </action>
188
189 <action>
190 <name>Outer Dial Anti-Clockwise</name>
191 <button>0</button>
192 <x>300</x>
193 <y>-105</y>
194 <w>38</w>
195 <h>100</h>
196 <binding>
197 <command>kln89_knob1left1</command>
198 </binding>
199 </action>
200
201 <action>
202 <name>Inner Dial Clockwise</name>
203 <button>0</button>
204 <x>375</x>
205 <y>-85</y>
206 <w>35</w>
207 <h>60</h>
208 <binding>
209 <command>kln89_knob2right1</command>
210 </binding>
211 </action>
212
213 <action>
214 <name>Inner Dial Anti-Clockwise</name>
215 <button>0</button>
216 <x>340</x>
217 <y>-85</y>
218 <w>30</w>
219 <h>60</h>
220 <binding>
221 <command>kln89_knob2left1</command>
222 </binding>
223 </action>
224
225 <action>
226 <name>Inner Knob Toggle Scan</name>
227 <button>1</button>
228 <x>340</x>
229 <y>-110</y>
230 <w>90</w>
231 <h>90</h>
232 <binding>
233 <command>property-toggle</command>
234 <property>/instrumentation/kln89/scan-pull</property>
235 </binding>
236 </action>
237
238 <action>
239 <name>Photocell Obscure</name>
240 <!--This action represents the user obscuring the light-sensitive photocell
241 in order to test the night-time brightness level of the display-->
242 <button>0</button>
243 <x>-408</x>
244 <y>64</y>
245 <w>40</w>
246 <h>40</h>
247 <binding>
248 <command>property-assign</command>
249 <property>/instrumentation/kln89/photocell-obscured</property>
250 <value >1</value>
251 </binding>
252 <mod-up>
253 <binding>
254 <command>property-assign</command>
255 <property>/instrumentation/kln89/photocell-obscured</property>
256 <value>0</value>
257 </binding>
258 </mod-up>
259 </action>
260
261 </actions>
262
263 </PropertyList>