Debian Codegraph @

Aircraft/Instruments/fuel.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Default fuel gauge.
5
6 2000 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
26 <PropertyList>
27 <name>Fuel Gauge</name>
28 <w-base>120</w-base>
29 <h-base>120</h-base>
30
31 <params>
32 <left-level-select>/consumables/fuel/tank[0]/level-gal_us</left-level-select>
33 <right-level-select>/consumables/fuel/tank[1]/level-gal_us</right-level-select>
34 </params>
35
36 <layers>
37 <layer>
38 <name>gauge face</name>
39 <texture>
40 <path>Aircraft/Instruments/Textures/egt-fuel.rgb</path>
41 <x1>0.3984375</x1>
42 <y1>0.3828125</y1>
43 <x2>0.7421875</x2>
44 <y2>0.7421875</y2>
45 </texture>
46 <w>100</w>
47 <h>100</h>
48 </layer>
49
50 <layer>
51 <name>bezel</name>
52 <condition>
53 <equals>
54 <property>/sim/aero</property>
55 <value>c172</value>
56 </equals>
57 </condition>
58 <texture>
59 <path>Aircraft/Instruments/Textures/bezel.rgb</path>
60 <x1>0.0</x1>
61 <y1>0.0</y1>
62 <x2>1.0</x2>
63 <y2>1.0</y2>
64 </texture>
65 <transformations>
66 <transformation>
67 <type>y-shift</type>
68 <offset>-0</offset>
69 </transformation>
70 <transformation>
71 <type>x-shift</type>
72 <offset>-0</offset>
73 </transformation>
74 </transformations>
75 <w>120</w>
76 <h>120</h>
77 </layer>
78
79 <layer>
80 <name>left tank needle</name>
81 <texture>
82 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
83 <x1>0.8</x1>
84 <y1>0.78125</y1>
85 <x2>0.8375</x2>
86 <y2>1.0</y2>
87 </texture>
88 <w>6</w>
89 <h>36</h>
90 <transformations>
91 <transformation>
92 <type>x-shift</type>
93 <offset>-46</offset>
94 </transformation>
95 <transformation>
96 <type>rotation</type>
97 <property alias="../../../../../params/left-level-select"/>
98 <min>0.0</min>
99 <max>26.0</max>
100 <scale>-3.4615</scale>
101 <offset>135</offset>
102 </transformation>
103 <transformation>
104 <type>y-shift</type>
105 <offset>18</offset>
106 </transformation>
107 </transformations>
108 </layer>
109
110 <layer>
111 <name>right tank needle</name>
112 <texture>
113 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
114 <x1>0.8</x1>
115 <y1>0.78125</y1>
116 <x2>0.8375</x2>
117 <y2>1.0</y2>
118 </texture>
119 <w>6</w>
120 <h>36</h>
121 <transformations>
122 <transformation>
123 <type>x-shift</type>
124 <offset>46</offset>
125 </transformation>
126 <transformation>
127 <type>rotation</type>
128 <property alias="../../../../../params/right-level-select"/>
129 <min>0.0</min>
130 <max>26.0</max>
131 <scale>3.4615</scale>
132 <offset>-135</offset>
133 </transformation>
134 <transformation>
135 <type>y-shift</type>
136 <offset>19</offset>
137 </transformation>
138 </transformations>
139 </layer>
140
141 <layer>
142 <name>gauge label</name>
143 <texture>
144 <path>Aircraft/Instruments/Textures/egt-fuel.rgb</path>
145 <x1>0.01953125</x1>
146 <y1>0.375</y1>
147 <x2>0.3828215</x2>
148 <y2>0.75</y2>
149 </texture>
150 <w>105</w>
151 <h>105</h>
152 <transformations>
153 <transformation>
154 <type>x-shift</type>
155 <offset>0</offset>
156 </transformation>
157 </transformations>
158 </layer>
159 <layer>
160 <name>glare shield</name>
161 <texture>
162 <path>Aircraft/Instruments/Textures/bezel1.rgb</path>
163 <x1>0.5</x1>
164 <y1>0.0</y1>
165 <x2>1.0</x2>
166 <y2>0.5</y2>
167 </texture>
168 <w>115</w>
169 <h>115</h>
170 <transformations>
171 <transformation>
172 <type>x-shift</type>
173 <offset>2</offset>
174 </transformation>
175 <transformation>
176 <type>y-shift</type>
177 <offset>-2</offset>
178 </transformation>
179 </transformations>
180 </layer>
181
182 </layers>
183
184
185 </PropertyList>