Debian Codegraph @

Aircraft/Instruments/oil.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Oil temp/pressure gauge for Cessna172.
5
6 October 2000 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>Oil Temp/Pressure Gauge</name>
29 <w-base>120</w-base>
30 <h-base>120</h-base>
31
32 <params>
33 <engine-oil-temp-select>/engines/engine[0]/oil-temperature-degf</engine-oil-temp-select>
34 <engine-oil-press-select>/engines/engine[0]/oil-pressure-psi</engine-oil-press-select>
35 </params>
36
37 <layers>
38
39 <layer>
40 <name>gauge face</name>
41 <texture>
42 <path>Aircraft/Instruments/Textures/vac-amp-oil.rgb</path>
43 <x1>0.5078125</x1>
44 <y1>0.484375</y1>
45 <x2>1.0</x2>
46 <y2>0.9609375</y2>
47 </texture>
48 <w>110</w>
49 <h>110</h>
50 </layer>
51
52 <layer>
53 <name>temperature needle</name>
54 <texture>
55 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
56 <x1>0.8</x1>
57 <y1>0.78125</y1>
58 <x2>0.8375</x2>
59 <y2>1.0</y2>
60 </texture>
61 <w>6</w>
62 <h>36</h>
63 <transformations>
64 <transformation>
65 <type>x-shift</type>
66 <offset>-46</offset>
67 </transformation>
68 <transformation>
69 <type>rotation</type>
70 <property alias="../../../../../params/engine-oil-temp-select"/>
71 <min>75.0</min>
72 <max>245.0</max>
73 <scale>-0.6</scale>
74 <offset>180</offset>
75 </transformation>
76 <transformation>
77 <type>y-shift</type>
78 <offset>19</offset>
79 </transformation>
80 </transformations>
81 </layer>
82
83 <layer>
84 <name>pressure needle</name>
85 <texture>
86 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
87 <x1>0.8</x1>
88 <y1>0.78125</y1>
89 <x2>0.8375</x2>
90 <y2>1.0</y2>
91 </texture>
92 <w>6</w>
93 <h>36</h>
94 <transformations>
95 <transformation>
96 <type>x-shift</type>
97 <offset>46</offset>
98 </transformation>
99 <transformation>
100 <type>rotation</type>
101 <property alias="../../../../../params/engine-oil-press-select"/>
102 <min>0.0</min>
103 <max>115.0</max>
104 <scale>1.0</scale>
105 <offset>-150</offset>
106 </transformation>
107 <transformation>
108 <type>y-shift</type>
109 <offset>19</offset>
110 </transformation>
111 </transformations>
112 </layer>
113 <layer>
114 <name>bezel</name>
115 <texture>
116 <path>Aircraft/Instruments/Textures/bezel.rgb</path>
117 <x1>0.0</x1>
118 <y1>0.0</y1>
119 <x2>1.0</x2>
120 <y2>1.0</y2>
121 </texture>
122 <transformations>
123 <transformation>
124 <type>y-shift</type>
125 <offset>0</offset>
126 </transformation>
127 <transformation>
128 <type>x-shift</type>
129 <offset>-0</offset>
130 </transformation>
131 </transformations>
132 <w>120</w>
133 <h>120</h>
134 </layer>
135
136 <layer>
137 <name>gauge labels</name>
138 <texture>
139 <path>Aircraft/Instruments/Textures/vac-amp-oil.rgb</path>
140 <x1>0.515625</x1>
141 <y1>0.0</y1>
142 <x2>1.0</x2>
143 <y2>0.4575</y2>
144 </texture>
145 <transformations>
146 <transformation>
147 <type>y-shift</type>
148 <offset>0</offset>
149 </transformation>
150 <transformation>
151 <type>x-shift</type>
152 <offset>-0</offset>
153 </transformation>
154 </transformations>
155 <w>102</w>
156 <h>102</h>
157 </layer>
158 <layer>
159 <name>glare shield</name>
160 <texture>
161 <path>Aircraft/Instruments/Textures/bezel1.rgb</path>
162 <x1>0.5</x1>
163 <y1>0.0</y1>
164 <x2>1.0</x2>
165 <y2>0.5</y2>
166 </texture>
167 <w>114</w>
168 <h>114</h>
169 <transformations>
170 <transformation>
171 <type>x-shift</type>
172 <offset>2</offset>
173 </transformation>
174 <transformation>
175 <type>y-shift</type>
176 <offset>-2</offset>
177 </transformation>
178 </transformations>
179 </layer>
180 </layers>
181
182 </PropertyList>