Debian Codegraph @

Aircraft/Instruments/single-magneto-switch.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!--
3 Electrical panel.
4 John Check <[email protected]>
5 -->
6
7 <PropertyList>
8 <name>magneto switch panel</name>
9 <w-base>150</w-base>
10 <h-base>72</h-base>
11
12 <params>
13 <magneto-select>/controls/engines/engine[0]/magnetos</magneto-select>
14 <starter-select>/controls/engines/engine[0]/starter</starter-select>
15 </params>
16
17 <layers>
18
19 <layer>
20 <name>backplate</name>
21 <texture>
22 <path>Aircraft/Instruments/Textures/flaps.rgb</path>
23 <x1>0.378125</x1>
24 <y1>0.65</y1>
25 <x2>1.0</x2>
26 <y2>1.0</y2>
27 </texture>
28 <w>150</w>
29 <h>72</h>
30 </layer>
31
32 <layer>
33 <name>magneto label</name>
34 <texture>
35 <path>Aircraft/Instruments/Textures/flaps.rgb</path>
36 <x1>0.0</x1>
37 <y1>0.65</y1>
38 <x2>0.375</x2>
39 <y2>1.0</y2>
40 </texture>
41 <w>64</w>
42 <h>64</h>
43 <transformations>
44 <transformation>
45 <type>x-shift</type>
46 <offset>-35</offset>
47 </transformation>
48 <transformation>
49 <type>y-shift</type>
50 <offset>-5</offset>
51 </transformation>
52 </transformations>
53 </layer>
54
55 <layer>
56 <name>magneto switch</name>
57 <type>switch</type>
58 <layer>
59 <condition>
60 <property alias="../../../../../params/starter-select"/>
61 </condition>
62 <name>starter engage</name>
63 <texture>
64 <path>Aircraft/Instruments/Textures/navcom-radios.rgb</path>
65 <x1>0.53125</x1>
66 <x2>0.59765625</x2>
67 <y1>0.05859375</y1>
68 <y2>0.1484375</y2>
69 </texture>
70 <w>30</w>
71 <h>40</h>
72 <transformations>
73 <transformation>
74 <type>x-shift</type>
75 <offset>-40</offset>
76 </transformation>
77 <transformation>
78 <type>y-shift</type>
79 <offset>-13</offset>
80 </transformation>
81 <transformation>
82 <type>rotation</type>
83 <offset>90</offset>
84 </transformation>
85 <transformation>
86 <type>y-shift</type>
87 <offset>-5</offset>
88 </transformation>
89 </transformations>
90 </layer>
91
92
93 <layer>
94 <name>magneto select</name>
95 <texture>
96 <path>Aircraft/Instruments/Textures/navcom-radios.rgb</path>
97 <x1>0.53125</x1>
98 <x2>0.59765625</x2>
99 <y1>0.05859375</y1>
100 <y2>0.1484375</y2>
101 </texture>
102 <w>30</w>
103 <h>40</h>
104 <transformations>
105 <transformation>
106 <type>x-shift</type>
107 <offset>-40</offset>
108 </transformation>
109 <transformation>
110 <type>y-shift</type>
111 <offset>-13</offset>
112 </transformation>
113 <transformation>
114 <type>rotation</type>
115 <property alias="../../../../../../params/magneto-select"/>
116 <min>-0</min>
117 <max>135</max>
118 <scale>45</scale>
119 <offset>-90</offset>
120 </transformation>
121 <transformation>
122 <type>y-shift</type>
123 <offset>-5</offset>
124 </transformation>
125 </transformations>
126 </layer>
127
128
129 </layer>
130 <!-- magneto switch end -->
131
132
133 <layer include="switch.xml">
134 <transformations>
135 <transformation>
136 <type>x-shift</type>
137 <offset>-0</offset>
138 </transformation>
139 </transformations>
140 </layer>
141
142 <layer include="switch.xml">
143 <transformations>
144 <transformation>
145 <type>x-shift</type>
146 <offset>20</offset>
147 </transformation>
148 </transformations>
149 </layer>
150
151 <layer include="switch.xml">
152 <transformations>
153 <transformation>
154 <type>x-shift</type>
155 <offset>40</offset>
156 </transformation>
157 </transformations>
158 </layer>
159
160 <layer include="switch.xml">
161 <transformations>
162 <transformation>
163 <type>x-shift</type>
164 <offset>60</offset>
165 </transformation>
166 </transformations>
167 </layer>
168 </layers>
169
170 <actions>
171
172 <action>
173 <name>Rotate knob left</name>
174 <button>0</button>
175 <x>-74</x>
176 <y>-36</y>
177 <w>34</w>
178 <h>72</h>
179 <binding>
180 <command>property-adjust</command>
181 <property alias="../../../../params/magneto-select"/>
182 <step>-1</step>
183 <min>0</min>
184 <max>3</max>
185 <wrap>0</wrap>
186 </binding>
187 </action>
188
189 <action>
190 <condition>
191 <less-than>
192 <property alias="../../../../../params/magneto-select"/>
193 <value>3</value>
194 </less-than>
195 </condition>
196 <name>Rotate knob right</name>
197 <button>0</button>
198 <x>-40</x>
199 <y>-36</y>
200 <w>34</w>
201 <h>72</h>
202 <binding>
203 <command>property-adjust</command>
204 <property alias="../../../../params/magneto-select"/>
205 <step>1</step>
206 <min>0</min>
207 <max>3</max>
208 <wrap>0</wrap>
209 </binding>
210 </action>
211
212 <action>
213 <condition>
214 <equals>
215 <property alias="../../../../../params/magneto-select"/>
216 <value>3</value>
217 </equals>
218 </condition>
219 <name>Engage starter</name>
220 <button>0</button>
221 <x>-40</x>
222 <y>-36</y>
223 <w>34</w>
224 <h>72</h>
225 <repeatable type="bool">false</repeatable>
226 <binding>
227 <command>property-assign</command>
228 <property alias="../../../../params/starter-select"/>
229 <value type="bool">true</value>
230 <repeatable type="bool">false</repeatable>
231 </binding>
232 <mod-up>
233 <binding>
234 <command>property-assign</command>
235 <property alias="../../../../../params/starter-select"/>
236 <value type="bool">false</value>
237 </binding>
238 </mod-up>
239 </action>
240
241 </actions>
242
243 </PropertyList>