Debian Codegraph @

Aircraft/Instruments/adf-hi.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-hi.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/kr-87/inputs/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/kr-87/outputs/needle-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 <layer>
95 <name>Plane</name>
96 <texture>
97 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
98 <x1>0.5</x1>
99 <y1>0.734375</y1>
100 <x2>0.59375</x2>
101 <y2>0.828125</y2>
102 </texture>
103 <w>25</w>
104 <h>25</h>
105 <transformations>
106 <transformation>
107 <type>y-shift</type>
108 <offset>-6</offset>
109 </transformation>
110 </transformations>
111 </layer>
112 <layer>
113 <name>bezel</name>
114 <texture>
115 <path>Aircraft/Instruments/Textures/bezel.rgb</path>
116 <x1>0.0</x1>
117 <y1>0.0</y1>
118 <x2>1.0</x2>
119 <y2>1.0</y2>
120 </texture>
121 <transformations>
122 <transformation>
123 <type>x-shift</type>
124 <offset>-1</offset>
125 </transformation>
126 </transformations>
127 </layer>
128
129 <layer>
130 <name>glare shield</name>
131 <texture>
132 <path>Aircraft/Instruments/Textures/bezel1.rgb</path>
133 <x1>0.5</x1>
134 <y1>0.0</y1>
135 <x2>1.0</x2>
136 <y2>0.5</y2>
137 </texture>
138 <w>124</w>
139 <h>124</h>
140 <transformations>
141 <transformation>
142 <type>rotation</type>
143 <property>/orientation/roll-deg</property>
144 <min>-360.0</min>
145 <max>360.0</max>
146 <scale>1.0</scale>
147 <wrap>1</wrap>
148 </transformation>
149 <transformation>
150 <type>x-shift</type>
151 <offset>2</offset>
152 </transformation>
153 <transformation>
154 <type>y-shift</type>
155 <offset>-2</offset>
156 </transformation>
157 </transformations>
158 </layer>
159
160 <layer>
161 <name>Knob</name>
162 <texture>
163 <path>Aircraft/Instruments/Textures/blister.rgb</path>
164 <x1>0.25</x1>
165 <y1>0.75</y1>
166 <x2>0.5</x2>
167 <y2>1.0</y2>
168 </texture>
169 <h>24</h>
170 <w>24</w>
171 <transformations>
172 <transformation>
173 <type>x-shift</type>
174 <offset>-45</offset>
175 </transformation>
176 <transformation>
177 <type>y-shift</type>
178 <offset>-45</offset>
179 </transformation>
180 <transformation>
181 <type>rotation</type>
182 <property>/instrumentation/kr-87/inputs/rotation-deg</property>
183 <min>-360.0</min>
184 <max>360.0</max>
185 </transformation>
186 </transformations>
187 </layer>
188
189 </layers>
190
191 <actions>
192 <action>
193 <name>small clockwise rotation</name>
194 <button>0</button>
195 <x>-56</x>
196 <y>-56</y>
197 <w>12</w>
198 <h>24</h>
199 <binding>
200 <command>property-adjust</command>
201 <property>/instrumentation/kr-87/inputs/rotation-deg</property>
202 <step>-1.0</step>
203 <min>0</min>
204 <max>360</max>
205 <wrap>1</wrap>
206 </binding>
207 </action>
208 <action>
209 <name>large clockwise rotation</name>
210 <button>1</button>
211 <x>-56</x>
212 <y>-56</y>
213 <w>12</w>
214 <h>24</h>
215 <binding>
216 <command>property-adjust</command>
217 <property>/instrumentation/kr-87/inputs/rotation-deg</property>
218 <step>-5.0</step>
219 <min>0</min>
220 <max>360</max>
221 <wrap>1</wrap>
222 </binding>
223 </action>
224 <action>
225 <name>small counter-clockwise rotation</name>
226 <button>0</button>
227 <x>-46</x>
228 <y>-56</y>
229 <w>12</w>
230 <h>24</h>
231 <binding>
232 <command>property-adjust</command>
233 <property>/instrumentation/kr-87/inputs/rotation-deg</property>
234 <step>1.0</step>
235 <min>0</min>
236 <max>360</max>
237 <wrap>1</wrap>
238 </binding>
239 </action>
240 <action>
241 <name>large counter-clockwise rotation</name>
242 <button>1</button>
243 <x>-46</x>
244 <y>-56</y>
245 <w>12</w>
246 <h>24</h>
247 <binding>
248 <command>property-adjust</command>
249 <property>/instrumentation/kr-87/inputs/rotation-deg</property>
250 <step>5.0</step>
251 <min>0</min>
252 <max>360</max>
253 <wrap>1</wrap>
254 </binding>
255 </action>
256 </actions>
257
258 </PropertyList>