Debian Codegraph @

Aircraft/Instruments/controls.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Default control position indicator 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 <name>control position indicators</name>
28 <w-base>112</w-base>
29 <h-base>112</h-base>
30
31 <layers>
32
33 <layer>
34 <name>background</name>
35 <texture>
36 <path>Aircraft/Instruments/Textures/faces-3.rgb</path>
37 <x1>0.0</x1>
38 <y1>0.0</y1>
39 <x2>0.5</x2>
40 <y2>0.5</y2>
41 </texture>
42 </layer>
43
44 <layer>
45 <name>aileron indicator</name>
46 <texture>
47 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
48 <x1>0.11328125</x1>
49 <y1>0.2734375</y1>
50 <x2>0.15234375</x2>
51 <y2>0.3046875</y2>
52 </texture>
53 <transformations>
54 <transformation>
55 <type>x-shift</type>
56 <property>/controls/flight/aileron</property>
57 <min>-1</min>
58 <max>1</max>
59 <scale>42</scale>
60 </transformation>
61 <transformation>
62 <type>rotation</type>
63 <offset>180</offset>
64 </transformation>
65 <transformation>
66 <type>y-shift</type>
67 <offset>-50</offset>
68 </transformation>
69 <transformation>
70 <type>x-shift</type>
71 <offset>2</offset>
72 </transformation>
73 </transformations>
74 <w>8</w>
75 <h>8</h>
76 </layer>
77
78 <layer>
79 <name>rudder indicator</name>
80 <texture>
81 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
82 <x1>0.11328125</x1>
83 <y1>0.2734375</y1>
84 <x2>0.15234375</x2>
85 <y2>0.3046875</y2>
86 </texture>
87 <transformations>
88 <transformation>
89 <type>rotation</type>
90 <offset>0</offset>
91 </transformation>
92 <transformation>
93 <type>x-shift</type>
94 <property>/controls/flight/rudder</property>
95 <min>-1</min>
96 <max>1</max>
97 <scale>42</scale>
98 </transformation>
99 <transformation>
100 <type>y-shift</type>
101 <offset>-52</offset>
102 </transformation>
103 <transformation>
104 <type>x-shift</type>
105 <offset>-1</offset>
106 </transformation>
107 </transformations>
108 <w>8</w>
109 <h>8</h>
110 </layer>
111
112 <layer>
113 <name>elevator trim indicator</name>
114 <w>8</w>
115 <h>8</h>
116 <texture>
117 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
118 <x1>0.11328125</x1>
119 <y1>0.2734375</y1>
120 <x2>0.15234375</x2>
121 <y2>0.3046875</y2>
122 </texture>
123 <transformations>
124 <transformation>
125 <type>rotation</type>
126 <offset>90</offset>
127 </transformation>
128 <transformation>
129 <type>x-shift</type>
130 <property>/controls/flight/elevator-trim</property>
131 <min>-1.0</min>
132 <max>1.0</max>
133 <scale>-42</scale>
134 </transformation>
135 <transformation>
136 <type>y-shift</type>
137 <offset>-12</offset>
138 </transformation>
139 <transformation>
140 <type>x-shift</type>
141 <offset>2</offset>
142 </transformation>
143 </transformations>
144 </layer>
145
146 <layer>
147 <name>elevator indicator</name>
148 <w>8</w>
149 <h>8</h>
150 <texture>
151 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
152 <x1>0.11328125</x1>
153 <y1>0.2734375</y1>
154 <x2>0.15234375</x2>
155 <y2>0.3046875</y2>
156 </texture>
157 <transformations>
158 <transformation>
159 <type>rotation</type>
160 <offset>270</offset>
161 </transformation>
162 <transformation>
163 <type>x-shift</type>
164 <property>/controls/flight/elevator</property>
165 <min>-1.0</min>
166 <max>1.0</max>
167 <scale>42</scale>
168 </transformation>
169 <transformation>
170 <type>y-shift</type>
171 <offset>-10</offset>
172 </transformation>
173 <transformation>
174 <type>x-shift</type>
175 <offset>-1</offset>
176 </transformation>
177 </transformations>
178 </layer>
179
180 </layers>
181 <actions>
182 <action>
183 <desc>elevator trim up</desc>
184 <button>0</button>
185 <x>-15</x>
186 <y>0</y>
187 <w>30</w>
188 <h>40</h>
189 <binding>
190 <command>property-adjust</command>
191 <property>/controls/flight/elevator-trim</property>
192 <step>0.01</step>
193 <min>-1.0</min>
194 <max>1.0</max>
195 <wrap>false</wrap>
196 </binding>
197 </action>
198 <action>
199 <desc>elevator trim down</desc>
200 <button>0</button>
201 <x>-15</x>
202 <y>-42</y>
203 <w>30</w>
204 <h>40</h>
205 <binding>
206 <command>property-adjust</command>
207 <property>/controls/flight/elevator-trim</property>
208 <step>-0.01</step>
209 <min>-1.0</min>
210 <max>1.0</max>
211 <wrap>false</wrap>
212 </binding>
213 </action>
214 <!--
215 <action>
216 <desc>rudder trim left</desc>
217 <button>0</button>
218 <x>-45</x>
219 <y>-66</y>
220 <w>45</w>
221 <h>20</h>
222 <binding>
223 <command>property-adjust</command>
224 <property>/controls/flight/rudder-trim</property>
225 <step>-0.005</step>
226 <min>-1.0</min>
227 <max>1.0</max>
228 <wrap>false</wrap>
229 </binding>
230 </action>
231 <action>
232 <desc>rudder trim right</desc>
233 <button>0</button>
234 <x>0</x>
235 <y>-66</y>
236 <w>45</w>
237 <h>20</h>
238 <binding>
239 <command>property-adjust</command>
240 <property>/controls/flight/rudder-trim</property>
241 <step>0.005</step>
242 <min>-1.0</min>
243 <max>1.0</max>
244 <wrap>false</wrap>
245 </binding>
246 </action>
247 -->
248 </actions>
249 </PropertyList>