Debian Codegraph @

Aircraft/Instruments/flap.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 C172 flaps control.
5
6 Oct 20 2000 by John Check <[email protected]>
7 ________________________________________________________________________________
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>Flaps Indicator</name>
29 <w-base>56</w-base>
30 <h-base>96</h-base>
31
32 <layers>
33 <layer>
34 <name>background</name>
35 <texture>
36 <path>Aircraft/Instruments/Textures/flaps.rgb</path>
37 <x1>0.0</x1>
38 <y1>0.0</y1>
39 <x2>0.3515625</x2>
40 <y2>0.625</y2>
41 </texture>
42 </layer>
43 <layer>
44 <name>handle</name>
45 <texture>
46 <path>Aircraft/Instruments/Textures/handles.rgb</path>
47 <x1>0.0</x1>
48 <x2>0.38</x2>
49 <y1>0.875</y1>
50 <y2>1.0</y2>
51 </texture>
52 <w>34</w>
53 <h>15</h>
54 <transformations>
55 <transformation>
56 <type>x-shift</type>
57 <property>/controls/flight/flaps</property>
58 <min>0.0</min>
59 <max>1.0</max>
60 <scale>17.0</scale>
61 <offset>0</offset>
62 </transformation>
63 <transformation>
64 <type>y-shift</type>
65 <property>/controls/flight/flaps</property>
66 <min>0.0</min>
67 <max>1.0</max>
68 <scale>-45.0</scale>
69 <offset>24</offset>
70 </transformation>
71 <transformation>
72 <type>rotation</type>
73 <offset>180</offset>
74 </transformation>
75 </transformations>
76 </layer>
77 </layers>
78
79 <actions>
80
81 <action>
82 <name>extend</name>
83 <button>0</button>
84 <x>-30</x>
85 <y>-48</y>
86 <w>30</w>
87 <h>96</h>
88 <binding>
89 <command>property-adjust</command>
90 <property>/controls/flight/flaps</property>
91 <step>-0.34</step>
92 <min>0.0</min>
93 <max>1.0</max>
94 <wrap>false</wrap>
95 </binding>
96 </action>
97
98 <action>
99 <name>retract</name>
100 <button>0</button>
101 <x>0</x>
102 <y>-48</y>
103 <w>30</w>
104 <h>96</h>
105 <binding>
106 <command>property-adjust</command>
107 <property>/controls/flight/flaps</property>
108 <step>0.34</step>
109 <min>0.0</min>
110 <max>1.0</max>
111 <wrap>false</wrap>
112 </binding>
113 </action>
114
115 </actions>
116 </PropertyList>