Debian Codegraph @

Aircraft/Instruments-3d/chronometer/chronometer.xml

raw symbols SCIP
1 <!--
2 Boeing style chronometer, by Syd Adams
3 -->
4
5 <PropertyList>
6
7 <path>chronometer.ac</path>
8
9 <animation>
10 <type>rotate</type>
11 <object-name>Chrono.needle</object-name>
12 <property>instrumentation/clock/ET-sec</property>
13 <factor>6</factor>
14 <center>
15 <x-m>0.0</x-m>
16 <y-m>0</y-m>
17 <z-m>0.0</z-m>
18 </center>
19 <axis>
20 <x>-1</x>
21 <y>0</y>
22 <z>0</z>
23 </axis>
24 </animation>
25
26 <animation>
27 <type>rotate</type>
28 <object-name>ET.switch</object-name>
29 <property>instrumentation/clock/et-knob</property>
30 <interpolation>
31 <entry><ind>-1</ind><dep>-144</dep></entry>
32 <entry><ind>0</ind><dep>0</dep></entry>
33 <entry><ind>1</ind><dep>35</dep></entry>
34 </interpolation>
35 <center>
36 <x-m>0</x-m>
37 <y-m>-0.032</y-m>
38 <z-m>-0.033</z-m>
39 </center>
40 <axis>
41 <x>-1</x>
42 <y>0</y>
43 <z>0</z>
44 </axis>
45 </animation>
46
47 <animation>
48 <type>rotate</type>
49 <object-name>SET.switch</object-name>
50 <property>instrumentation/clock/set-knob</property>
51 <interpolation>
52 <entry><ind>0</ind><dep>0</dep></entry>
53 <entry><ind>1</ind><dep>30</dep></entry>
54 <entry><ind>2</ind><dep>60</dep></entry>
55 <entry><ind>3</ind><dep>90</dep></entry>
56 </interpolation>
57 <center>
58 <x-m>0</x-m>
59 <y-m>0.029</y-m>
60 <z-m>-0.033</z-m>
61 </center>
62 <axis>
63 <x>-1</x>
64 <y>0</y>
65 <z>0</z>
66 </axis>
67 </animation>
68
69 <animation>
70 <type>rotate</type>
71 <object-name>UTC.switch</object-name>
72 <property>instrumentation/clock/time-knob</property>
73 <interpolation>
74 <entry><ind>-1</ind><dep>-135</dep></entry>
75 <entry><ind>0</ind><dep>0</dep></entry>
76 <entry><ind>1</ind><dep>35</dep></entry>
77 </interpolation>
78 <center>
79 <x-m>0</x-m>
80 <y-m>0.032</y-m>
81 <z-m>0.034</z-m>
82 </center>
83 <axis>
84 <x>-1</x>
85 <y>0</y>
86 <z>0</z>
87 </axis>
88 </animation>
89
90 <!-- Digital displays -->
91
92 <animation>
93 <type>textranslate</type>
94 <object-name>Hr.10</object-name>
95 <property>instrumentation/clock/indicated-hour</property>
96 <factor>0.01</factor>
97 <step>10</step>
98 <axis>
99 <x>0</x>
100 <y>1</y>
101 <z>0</z>
102 </axis>
103 </animation>
104
105 <animation>
106 <type>textranslate</type>
107 <object-name>Hr.01</object-name>
108 <property>instrumentation/clock/indicated-hour</property>
109 <factor>0.1</factor>
110 <step>1</step>
111 <axis>
112 <x>0</x>
113 <y>1</y>
114 <z>0</z>
115 </axis>
116 </animation>
117
118 <animation>
119 <type>textranslate</type>
120 <object-name>Mn.10</object-name>
121 <property>instrumentation/clock/indicated-min</property>
122 <factor>0.01</factor>
123 <step>10</step>
124 <axis>
125 <x>0</x>
126 <y>1</y>
127 <z>0</z>
128 </axis>
129 </animation>
130
131 <animation>
132 <type>textranslate</type>
133 <object-name>Mn.01</object-name>
134 <property>instrumentation/clock/indicated-min</property>
135 <factor>0.1</factor>
136 <step>1</step>
137 <axis>
138 <x>0</x>
139 <y>1</y>
140 <z>0</z>
141 </axis>
142 </animation>
143
144 <animation>
145 <type>textranslate</type>
146 <object-name>ET10</object-name>
147 <property>instrumentation/clock/ET-display</property>
148 <factor>0.0001</factor>
149 <step>1000</step>
150 <axis>
151 <x>0</x>
152 <y>1</y>
153 <z>0</z>
154 </axis>
155 </animation>
156
157 <animation>
158 <type>textranslate</type>
159 <object-name>ET01</object-name>
160 <property>instrumentation/clock/ET-display</property>
161 <factor>0.001</factor>
162 <step>100</step>
163 <axis>
164 <x>0</x>
165 <y>1</y>
166 <z>0</z>
167 </axis>
168 </animation>
169
170 <animation>
171 <type>textranslate</type>
172 <object-name>ET.10</object-name>
173 <property>instrumentation/clock/ET-display</property>
174 <factor>0.01</factor>
175 <step>10</step>
176 <axis>
177 <x>0</x>
178 <y>1</y>
179 <z>0</z>
180 </axis>
181 </animation>
182
183 <animation>
184 <type>textranslate</type>
185 <object-name>ET.01</object-name>
186 <property>instrumentation/clock/ET-display</property>
187 <factor>0.1</factor>
188 <step>1</step>
189 <axis>
190 <x>0</x>
191 <y>1</y>
192 <z>0</z>
193 </axis>
194 </animation>
195
196 <animation>
197 <type>select</type>
198 <object-name>ET10</object-name>
199 <object-name>ET01</object-name>
200 <condition>
201 <greater-than>
202 <property>instrumentation/clock/ET-display</property>
203 <value>99.99</value>
204 </greater-than>
205 </condition>
206 </animation>
207
208 <!-- Hotspots -->
209
210 <hotspot-action-script>
211 if (!contains(aircraft, "boeing_chronometer"))
212 {
213 aircraft.boeing_chronometer = aircraft.timer.new("/instrumentation/clock/ET-sec", 1);
214 aircraft.boeing_chronometer.stop();
215 props.globals.initNode("/instrumentation/clock/ET-display",0,"INT");
216 props.globals.initNode("/instrumentation/clock/time-display",0,"INT");
217 props.globals.initNode("/instrumentation/clock/time-knob",0,"INT");
218 props.globals.initNode("/instrumentation/clock/et-knob",0,"INT");
219 props.globals.initNode("/instrumentation/clock/set-knob",0,"INT");
220 print("Boeing chronometer ... initialized");
221 }
222
223 var tmp = props.globals.getNode("/instrumentation/clock/et-knob").getValue();
224 if (tmp == -1)
225 {
226 aircraft.boeing_chronometer.reset();
227 }
228 elsif (tmp == 0)
229 {
230 aircraft.boeing_chronometer.stop();
231 }
232 elsif (tmp == 1)
233 {
234 aircraft.boeing_chronometer.start();
235 }
236 </hotspot-action-script>
237
238 <animation>
239 <type>pick</type>
240 <object-name>ET.run</object-name>
241 <action>
242 <button>0</button>
243 <repeatable>false</repeatable>
244 <binding>
245 <command>property-assign</command>
246 <property>instrumentation/clock/et-knob</property>
247 <value>1</value>
248 </binding>
249 <binding>
250 <command>nasal</command>
251 <script alias="../../../../hotspot-action-script" />
252 </binding>
253 </action>
254 </animation>
255
256 <animation>
257 <type>pick</type>
258 <object-name>ET.hld</object-name>
259 <action>
260 <button>0</button>
261 <repeatable>false</repeatable>
262 <binding>
263 <command>property-assign</command>
264 <property>instrumentation/clock/et-knob</property>
265 <value>0</value>
266 </binding>
267 <binding>
268 <command>nasal</command>
269 <script alias="../../../../hotspot-action-script" />
270 </binding>
271 </action>
272 </animation>
273
274 <animation>
275 <type>pick</type>
276 <object-name>ET.reset</object-name>
277 <action>
278 <button>0</button>
279 <repeatable>false</repeatable>
280 <binding>
281 <command>property-assign</command>
282 <property>instrumentation/clock/et-knob</property>
283 <value>-1</value>
284 </binding>
285 <binding>
286 <command>nasal</command>
287 <script alias="../../../../hotspot-action-script" />
288 </binding>
289 <mod-up>
290 <binding>
291 <command>property-assign</command>
292 <property>instrumentation/clock/et-knob</property>
293 <value>0</value>
294 </binding>
295 <binding>
296 <command>nasal</command>
297 <script alias="../../../../../hotspot-action-script" />
298 </binding>
299 </mod-up>
300 </action>
301 </animation>
302
303 <animation>
304 <type>pick</type>
305 <object-name>ET.switch</object-name>
306 <action>
307 <button>0</button>
308 <repeatable>false</repeatable>
309 <binding>
310 <command>property-toggle</command>
311 <property>instrumentation/clock/et-knob</property>
312 </binding>
313 <binding>
314 <command>nasal</command>
315 <script alias="../../../../hotspot-action-script" />
316 </binding>
317 </action>
318 <action>
319 <button>1</button>
320 <repeatable>false</repeatable>
321 <binding>
322 <command>property-assign</command>
323 <property>instrumentation/clock/et-knob</property>
324 <value>-1</value>
325 </binding>
326 <binding>
327 <command>nasal</command>
328 <script alias="../../../../hotspot-action-script" />
329 </binding>
330 <mod-up>
331 <binding>
332 <command>property-assign</command>
333 <property>instrumentation/clock/et-knob</property>
334 <value>0</value>
335 </binding>
336 <binding>
337 <command>nasal</command>
338 <script alias="../../../../../hotspot-action-script" />
339 </binding>
340 </mod-up>
341 </action>
342 </animation>
343
344 </PropertyList>