Debian Codegraph @

Aircraft/Instruments/throttle-knob.xml

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