Debian Codegraph @

Aircraft/Instruments/rmi.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 <min>-720.0</min>
54 <max>720.0</max>
55 <scale>-1.0</scale>
56 </transformation>
57 </transformations>
58 </layer>
59 <!-- fix misc.rgb -->
60
61 <!-- style A -->
62 <layer>
63 <name>fixed center</name>
64 <condition>
65 <equals>
66 <property alias="../../../../../params/dg-style"/>
67 <value>0</value>
68 </equals>
69 </condition>
70 <texture>
71 <path>Aircraft/Instruments/Textures/gyro-fronts.rgb</path>
72 <x1>0.50390625</x1>
73 <y1>0.5078125</y1>
74 <x2>0.9765625</x2>
75 <y2>0.98046875</y2>
76 </texture>
77 <w>105</w>
78 <h>105</h>
79 <transformations>
80 <transformation>
81 <type>x-shift</type>
82 <offset>-1.5</offset>
83 </transformation>
84 <transformation>
85 <type>y-shift</type>
86 <offset>-1.5</offset>
87 </transformation>
88 </transformations>
89 </layer>
90 <!-- style B -->
91 <layer>
92 <name>fixed center</name>
93 <condition>
94 <equals>
95 <property alias="../../../../../params/dg-style"/>
96 <value>1</value>
97 </equals>
98 </condition>
99 <texture>
100 <path>Aircraft/Instruments/Textures/gyro-fronts.rgb</path>
101 <x1>0.0</x1>
102 <y1>0.0</y1>
103 <x2>0.49609375</x2>
104 <y2>0.49609375</y2>
105 </texture>
106 <w>110</w>
107 <h>110</h>
108 <transformations>
109 <transformation>
110 <type>x-shift</type>
111 <offset>-1</offset>
112 </transformation>
113 <transformation>
114 <type>y-shift</type>
115 <offset>-1</offset>
116 </transformation>
117 </transformations>
118 </layer>
119
120 <layer>
121 <name>glare shield</name>
122 <texture>
123 <path>Aircraft/Instruments/Textures/bezel1.rgb</path>
124 <x1>0.5</x1>
125 <y1>0.0</y1>
126 <x2>1.0</x2>
127 <y2>0.5</y2>
128 </texture>
129 <w>128</w>
130 <h>128</h>
131 <transformations>
132 <transformation>
133 <type>x-shift</type>
134 <offset>2</offset>
135 </transformation>
136 <transformation>
137 <type>y-shift</type>
138 <offset>-2</offset>
139 </transformation>
140 </transformations>
141 </layer>
142
143
144 <layer>
145 <name>OBS Knob</name>
146 <texture>
147 <path>Aircraft/Instruments/Textures/blister.rgb</path>
148 <x1>0.25</x1>
149 <y1>0.75</y1>
150 <x2>0.5</x2>
151 <y2>1.0</y2>
152 </texture>
153 <h>24</h>
154 <w>24</w>
155 <transformations>
156 <transformation>
157 <type>x-shift</type>
158 <offset>-45</offset>
159 </transformation>
160 <transformation>
161 <type>y-shift</type>
162 <offset>-45</offset>
163 </transformation>
164 <transformation>
165 <type>rotation</type>
166 <offset>180</offset>
167 </transformation>
168 </transformations>
169 </layer>
170
171 <layer>
172 <name>OBS label</name>
173 <texture>
174 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
175 <x1>0.0078125</x1>
176 <y1>0.66015625</y1>
177 <x2>0.1640625</x2>
178 <y2>0.82421875</y2>
179 </texture>
180 <w>15</w>
181 <h>15</h>
182 <transformations>
183 <transformation>
184 <type>x-shift</type>
185 <offset>-45</offset>
186 </transformation>
187 <transformation>
188 <type>y-shift</type>
189 <offset>-45</offset>
190 </transformation>
191 <transformation>
192 <type>rotation</type>
193 <property>/instrumentation/heading-indicator/indicated-heading-deg</property>
194 <min>0</min>
195 <max>360</max>
196 </transformation>
197 </transformations>
198 </layer>
199 <layer>
200 <name>ADF Needle</name>
201 <texture>
202 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
203 <x1>0.8671875</x1>
204 <y1>0.25</y1>
205 <x2>0.921875</x2>
206 <y2>1.0</y2>
207 </texture>
208 <w>9</w>
209 <h>64</h>
210 <transformations>
211 <transformation>
212 <type>rotation</type>
213 <!--set>45</offset-->
214 <property>/instrumentation/kr-87/outputs/needle-deg</property>
215 <min>-360</min>
216 <max>360</max>
217 </transformation>
218 <transformation>
219 <type>x-shift</type>
220 <offset>-1</offset>
221 </transformation>
222 </transformations>
223 </layer>
224 <layer>
225 <name>Plane</name>
226 <texture>
227 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
228 <x1>0.5</x1>
229 <y1>0.734375</y1>
230 <x2>0.59375</x2>
231 <y2>0.828125</y2>
232 </texture>
233 <w>25</w>
234 <h>25</h>
235 <transformations>
236 <transformation>
237 <type>y-shift</type>
238 <offset>-6</offset>
239 </transformation>
240 </transformations>
241 </layer>
242 </layers>
243
244 <actions>
245
246 <action>
247 <name></name>
248 <button>0</button>
249 <x>-56</x>
250 <y>-56</y>
251 <w>12</w>
252 <h>24</h>
253 <binding>
254 <command>property-adjust</command>
255 <property>/instrumentation/heading-indicator/offset-deg</property>
256 <step>-1</step>
257 <min>0</min>
258 <max>360</max>
259 <wrap>true</wrap>
260 </binding>
261 </action>
262
263 <action>
264 <name></name>
265 <button>1</button>
266 <x>-56</x>
267 <y>-56</y>
268 <w>12</w>
269 <h>24</h>
270 <binding>
271 <command>property-adjust</command>
272 <property>/instrumentation/heading-indicator/offset-deg</property>
273 <step>-5</step>
274 <min>0</min>
275 <max>360</max>
276 <wrap>1</wrap>
277 </binding>
278 </action>
279
280 <action>
281 <name></name>
282 <button>0</button>
283 <x>-46</x>
284 <y>-56</y>
285 <w>12</w>
286 <h>24</h>
287 <binding>
288 <command>property-adjust</command>
289 <property>/instrumentation/heading-indicator/offset-deg</property>
290 <step>1</step>
291 <min>0</min>
292 <max>360</max>
293 <wrap>1</wrap>
294 </binding>
295 </action>
296
297 <action>
298 <name></name>
299 <button>1</button>
300 <x>-46</x>
301 <y>-56</y>
302 <w>12</w>
303 <h>24</h>
304 <binding>
305 <command>property-adjust</command>
306 <property>/instrumentation/heading-indicator/offset-deg</property>
307 <step>5</step>
308 <min>0</min>
309 <max>360</max>
310 <wrap>1</wrap>
311 </binding>
312 </action>
313
314 </actions>
315
316 </PropertyList>