Debian Codegraph @

Aircraft/Instruments/three-step-flap-quadrant.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Throttle qquadrant.
5
6 December 2001 by John Check, [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 Hacked to create a three step flap quadrant - the flaps are
26 extended/retracted in three steps.
27
28 2003/01 Lee Elliott
29 -->
30
31 <PropertyList>
32
33 <name>flap quadrant</name>
34 <w-base>22</w-base>
35 <h-base>70</h-base>
36
37 <params>
38 <flaps-select>/controls/flight/flaps</flaps-select>
39 </params>
40
41 <layers>
42
43 <layer>
44 <name>backplate</name>
45 <texture>
46 <path>Aircraft/Instruments/Textures/faces-LE-misc1.rgb</path>
47 <x1>0.0</x1>
48 <x2>0.125</x2>
49 <y1>0.75</y1>
50 <y2>1.0</y2>
51 </texture>
52 <w>22</w>
53 <h>70</h>
54 </layer>
55
56 <!-- flap -->
57
58 <layer>
59 <name>flap handle </name>
60 <texture>
61 <path>Aircraft/Instruments/Textures/handles.rgb</path>
62 <x1>0.0</x1>
63 <x2>0.37890625</x2>
64 <y1>0.6015625</y1>
65 <y2>0.72265625</y2>
66 </texture>
67 <w>20</w>
68 <h>30</h>
69 <transformations>
70 <transformation>
71 <type>x-shift</type>
72 <offset>0</offset>
73 </transformation>
74 <transformation>
75 <type>y-shift</type>
76 <property alias="../../../../../params/flaps-select"/>
77 <min>0.0</min>
78 <max>1.0</max>
79 <scale>40</scale>
80 <offset>-20</offset>
81 </transformation>
82 </transformations>
83 </layer>
84
85 </layers>
86
87 <actions>
88
89 <!-- flap extend/retract -->
90 <action>
91 <name>Flap Retract</name>
92 <button>0</button>
93 <x>-20</x>
94 <y>-35</y>
95 <w>40</w>
96 <h>20</h>
97 <binding>
98 <command>property-adjust</command>
99 <property alias="../../../../params/flaps-select"/>
100 <step>-0.34</step>
101 <min>0</min>
102 <max>1.0</max>
103 <wrap>false</wrap>
104 </binding>
105 </action>
106
107 <action>
108 <name>Flap Extend</name>
109 <button>0</button>
110 <x>-20</x>
111 <y>10</y>
112 <w>40</w>
113 <h>20</h>
114 <binding>
115 <command>property-adjust</command>
116 <property alias="../../../../params/flaps-select"/>
117 <step>0.34</step>
118 <min>0</min>
119 <max>1.0</max>
120 <wrap>false</wrap>
121 </binding>
122 </action>
123
124 </actions>
125
126 </PropertyList>