Debian Codegraph @

Aircraft/Instruments/mixture-knob.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Default Mixture knob.
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
28 <name>Mixture Knob</name>
29 <w-base>64</w-base>
30 <h-base>72</h-base>
31 <params>
32 <engine-mixture-select>/controls/engines/engine[0]/mixture</engine-mixture-select>
33 </params>
34 <layers>
35 <layer>
36 <name>background</name>
37 <texture>
38 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
39 <x1>0.625</x1>
40 <y1>0.2275</y1>
41 <x2>0.8</x2>
42 <y2>0.415</y2>
43 </texture>
44 <w>64</w>
45 <h>64</h>
46 </layer>
47 <!-- fix texture -->
48 <!--layer>
49 <name>shaft</name>
50 <texture>
51 <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
52 <x1>0.890625</x1>
53 <y1>0.8125</y1>
54 <x2>0.921875</x2>
55 <y2>1.0</y2>
56 </texture>
57 <w>16</w>
58 <h>24</h>
59 <transformations>
60 <transformation>
61 <type>x-shift</type>
62 <offset>-5</offset>
63 </transformation>
64 </transformations>
65 </layer-->
66 <layer>
67 <name>knob</name>
68 <texture>
69 <path>Aircraft/Instruments/Textures/handles.rgb</path>
70 <x1>0.5</x1>
71 <y1>0.0</y1>
72 <x2>1.0</x2>
73 <y2>0.5</y2>
74 </texture>
75 <w>64</w>
76 <h>64</h>
77 <transformations>
78 <transformation>
79 <type>x-shift</type>
80 <offset>-3</offset>
81 </transformation>
82 <transformation>
83 <type>y-shift</type>
84 <property alias="../../../../../params/engine-mixture-select"/>
85 <min>0.0</min>
86 <max>1.0</max>
87 <scale>18</scale>
88 <offset>-22</offset>
89 </transformation>
90 </transformations>
91 </layer>
92 </layers>
93
94 <actions>
95
96 <action>
97 <name>small decrease</name>
98 <button>0</button>
99 <x>-32</x>
100 <y>-44</y>
101 <w>32</w>
102 <h>74</h>
103 <binding>
104 <command>property-adjust</command>
105 <property alias="../../../../params/engine-mixture-select"/>
106 <step>-0.01</step>
107 <min>0</min>
108 <max>1.0</max>
109 <wrap>false</wrap>
110 </binding>
111 </action>
112
113 <action>
114 <name>small increase</name>
115 <button>0</button>
116 <x>0</x>
117 <y>-44</y>
118 <w>32</w>
119 <h>74</h>
120 <binding>
121 <command>property-adjust</command>
122 <property alias="../../../../params/engine-mixture-select"/>
123 <step>0.01</step>
124 <min>0</min>
125 <max>1.0</max>
126 <wrap>false</wrap>
127 </binding>
128 </action>
129
130 <action>
131 <name>big decrease</name>
132 <button>1</button>
133 <x>-32</x>
134 <y>-44</y>
135 <w>32</w>
136 <h>74</h>
137 <binding>
138 <command>property-adjust</command>
139 <property alias="../../../../params/engine-mixture-select"/>
140 <step>-0.1</step>
141 <min>0</min>
142 <max>1.0</max>
143 <wrap>false</wrap>
144 </binding>
145 </action>
146
147 <action>
148 <name>big increase</name>
149 <button>1</button>
150 <x>0</x>
151 <y>-44</y>
152 <w>32</w>
153 <h>74</h>
154 <binding>
155 <command>property-adjust</command>
156 <property alias="../../../../params/engine-mixture-select"/>
157 <step>0.1</step>
158 <min>0</min>
159 <max>1.0</max>
160 <wrap>false</wrap>
161 </binding>
162 </action>
163
164 </actions>
165
166 </PropertyList>