Debian Codegraph @

Aircraft/Instruments/adf.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Default ADF gauge 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>ADF Gauge</name>
29
30 <w-base>128</w-base>
31 <h-base>128</h-base>
32
33 <layers>
34
35 <layer>
36 <name>gauge face</name>
37 <texture>
38 <path>Aircraft/Instruments/Textures/faces-1.rgb</path>
39 <x1>0.0</x1>
40 <y1>0.515625</y1>
41 <x2>0.484375</x2>
42 <y2>1.0</y2>
43 </texture>
44 <w>104</w>
45 <h>104</h>
46 <transformations>
47 <transformation>
48 <type>rotation</type>
49 <property>/instrumentation/adf/rotation-deg</property>
50 <min>-360.0</min>
51 <max>360.0</max>
52 </transformation>
53 </transformations>
54 </layer>
55
56 <layer>
57 <name>Face with markings</name>
58 <texture>
59 <path>Aircraft/Instruments/Textures/gyro-fronts.rgb</path>
60 <x1>0.01</x1>
61 <y1>0.5</y1>
62 <x2>0.5</x2>
63 <y2>1.0</y2>
64 </texture>
65 <w>104</w>
66 <h>104</h>
67 </layer>
68 <!-- fix misc.rgb -->
69 <layer>
70 <name>Needle</name>
71 <texture>
72 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
73 <x1>0.8671875</x1>
74 <y1>0.25</y1>
75 <x2>0.921875</x2>
76 <y2>1.0</y2>
77 </texture>
78 <w>9</w>
79 <h>64</h>
80 <transformations>
81 <transformation>
82 <type>rotation</type>
83 <!--set>45</offset-->
84 <property>/instrumentation/adf/indicated-bearing-deg</property>
85 <min>-360</min>
86 <max>360</max>
87 </transformation>
88 <transformation>
89 <type>x-shift</type>
90 <offset>-1</offset>
91 </transformation>
92 </transformations>
93 </layer>
94
95 <layer>
96 <name>Plane</name>
97 <texture>
98 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
99 <x1>0.5</x1>
100 <y1>0.734375</y1>
101 <x2>0.59375</x2>
102 <y2>0.828125</y2>
103 </texture>
104 <w>25</w>
105 <h>25</h>
106 <transformations>
107 <transformation>
108 <type>y-shift</type>
109 <offset>-6</offset>
110 </transformation>
111 </transformations>
112 </layer>
113
114 <layer>
115 <name>bezel</name>
116 <texture>
117 <path>Aircraft/Instruments/Textures/bezel.rgb</path>
118 <x1>0.0</x1>
119 <y1>0.0</y1>
120 <x2>1.0</x2>
121 <y2>1.0</y2>
122 </texture>
123 <transformations>
124 <transformation>
125 <type>x-shift</type>
126 <offset>-1</offset>
127 </transformation>
128 </transformations>
129 </layer>
130
131 <layer>
132 <name>glare shield</name>
133 <texture>
134 <path>Aircraft/Instruments/Textures/bezel1.rgb</path>
135 <x1>0.5</x1>
136 <y1>0.0</y1>
137 <x2>1.0</x2>
138 <y2>0.5</y2>
139 </texture>
140 <w>124</w>
141 <h>124</h>
142 <transformations>
143 <transformation>
144 <type>rotation</type>
145 <property>/orientation/roll-deg</property>
146 <min>-360.0</min>
147 <max>360.0</max>
148 <scale>1.0</scale>
149 <wrap>1</wrap>
150 </transformation>
151 <transformation>
152 <type>x-shift</type>
153 <offset>2</offset>
154 </transformation>
155 <transformation>
156 <type>y-shift</type>
157 <offset>-2</offset>
158 </transformation>
159 </transformations>
160 </layer>
161
162 <layer>
163 <name>Knob</name>
164 <texture>
165 <path>Aircraft/Instruments/Textures/blister.rgb</path>
166 <x1>0.25</x1>
167 <y1>0.75</y1>
168 <x2>0.5</x2>
169 <y2>1.0</y2>
170 </texture>
171 <h>24</h>
172 <w>24</w>
173 <transformations>
174 <transformation>
175 <type>x-shift</type>
176 <offset>-45</offset>
177 </transformation>
178 <transformation>
179 <type>y-shift</type>
180 <offset>-45</offset>
181 </transformation>
182 <transformation>
183 <type>rotation</type>
184 <property>/instrumentation/adf/rotation-deg</property>
185 <min>-360.0</min>
186 <max>360.0</max>
187 </transformation>
188 </transformations>
189 </layer>
190
191 </layers>
192
193 <actions>
194 <action>
195 <name>small clockwise rotation</name>
196 <button>0</button>
197 <x>-56</x>
198 <y>-56</y>
199 <w>12</w>
200 <h>24</h>
201 <binding>
202 <command>property-adjust</command>
203 <property>/instrumentation/adf/rotation-deg</property>
204 <step>-1.0</step>
205 <min>0</min>
206 <max>360</max>
207 <wrap>1</wrap>
208 </binding>
209 </action>
210 <action>
211 <name>large clockwise rotation</name>
212 <button>1</button>
213 <x>-56</x>
214 <y>-56</y>
215 <w>12</w>
216 <h>24</h>
217 <binding>
218 <command>property-adjust</command>
219 <property>/instrumentation/adf/rotation-deg</property>
220 <step>-5.0</step>
221 <min>0</min>
222 <max>360</max>
223 <wrap>1</wrap>
224 </binding>
225 </action>
226 <action>
227 <name>small counter-clockwise rotation</name>
228 <button>0</button>
229 <x>-46</x>
230 <y>-56</y>
231 <w>12</w>
232 <h>24</h>
233 <binding>
234 <command>property-adjust</command>
235 <property>/instrumentation/adf/rotation-deg</property>
236 <step>1.0</step>
237 <min>0</min>
238 <max>360</max>
239 <wrap>1</wrap>
240 </binding>
241 </action>
242 <action>
243 <name>large counter-clockwise rotation</name>
244 <button>1</button>
245 <x>-46</x>
246 <y>-56</y>
247 <w>12</w>
248 <h>24</h>
249 <binding>
250 <command>property-adjust</command>
251 <property>/instrumentation/adf/rotation-deg</property>
252 <step>5.0</step>
253 <min>0</min>
254 <max>360</max>
255 <wrap>1</wrap>
256 </binding>
257 </action>
258 </actions>
259
260 </PropertyList>