Debian Codegraph @

Aircraft/Instruments/rpm.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Default RPM gauge 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>RPM Gauge</name>
28 <w-base>128</w-base>
29 <h-base>128</h-base>
30
31 <params>
32 <rpm-select>/engines/engine[0]/rpm</rpm-select>
33 </params>
34
35 <layers>
36 <layer>
37 <name>gauge face</name>
38 <texture>
39 <path>Aircraft/Instruments/Textures/faces-3.rgb</path>
40 <x1>0.0</x1>
41 <y1>0.51</y1>
42 <x2>0.49</x2>
43 <y2>1.0</y2>
44 </texture>
45 <w>104</w>
46 <h>104</h>
47 </layer>
48 <layer>
49 <texture>
50 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
51 <x1>0.8</x1>
52 <y1>0.78125</y1>
53 <x2>0.8375</x2>
54 <y2>1.0</y2>
55 </texture>
56 <w>6</w>
57 <h>48</h>
58 <transformations>
59 <transformation>
60 <type>rotation</type>
61 <property alias="../../../../../params/rpm-select"/>
62 <scale>0.1</scale>
63 <offset>-150</offset>
64 </transformation>
65 <transformation>
66 <type>y-shift</type>
67 <offset>20</offset>
68 </transformation>
69 </transformations>
70 </layer>
71 <layer>
72 <name>button</name>
73 <texture>
74 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
75 <x1>0.6171875</x1>
76 <y1>0.2421875</y1>
77 <x2>0.7890625</x2>
78 <y2>0.4140625</y2>
79 </texture>
80 <w>14</w>
81 <h>14</h>
82 <transformations>
83 <transformation>
84 <type>rotation</type>
85 <property>/orientation/roll-deg</property>
86 <min>-360.0</min>
87 <max>360.0</max>
88 <scale>1.0</scale>
89 <wrap>1</wrap>
90 </transformation>
91 </transformations>
92 </layer>
93 <layer>
94 <name>glare shield</name>
95 <texture>
96 <path>Aircraft/Instruments/Textures/bezel1.rgb</path>
97 <x1>0.5</x1>
98 <y1>0.0</y1>
99 <x2>1.0</x2>
100 <y2>0.5</y2>
101 </texture>
102 <w>124</w>
103 <h>124</h>
104 <transformations>
105 <transformation>
106 <type>x-shift</type>
107 <offset>2</offset>
108 </transformation>
109 <transformation>
110 <type>y-shift</type>
111 <offset>-2</offset>
112 </transformation>
113 </transformations>
114 </layer>
115 </layers>
116 </PropertyList>