2015-06-16 21:20:54 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
|
2016-08-12 18:57:03 +00:00
|
|
|
<path>magneto-switch.ac</path>
|
2015-06-16 21:20:54 +00:00
|
|
|
|
2016-08-12 18:57:03 +00:00
|
|
|
<effect>
|
2018-09-02 19:58:05 +00:00
|
|
|
<inherits-from>../../../../Effects/interior/lm-magswr</inherits-from>
|
2016-08-12 18:57:03 +00:00
|
|
|
<object-name>key</object-name>
|
2018-05-17 11:58:44 +00:00
|
|
|
</effect>
|
|
|
|
|
|
|
|
<effect>
|
2018-09-02 19:58:05 +00:00
|
|
|
<inherits-from>../../../../Effects/interior/lm-magsw</inherits-from>
|
2016-08-12 18:57:03 +00:00
|
|
|
<object-name>start</object-name>
|
|
|
|
<object-name>magsw</object-name>
|
|
|
|
</effect>
|
2015-06-16 21:20:54 +00:00
|
|
|
|
2016-08-12 18:57:03 +00:00
|
|
|
<animation>
|
|
|
|
<type>material</type>
|
|
|
|
<object-name>key</object-name>
|
|
|
|
<object-name>start</object-name>
|
|
|
|
<object-name>magsw</object-name>
|
|
|
|
</animation>
|
2015-06-16 21:20:54 +00:00
|
|
|
|
2016-08-12 18:57:03 +00:00
|
|
|
<!-- Magneto switch -->
|
|
|
|
<animation>
|
|
|
|
<type>knob</type>
|
|
|
|
<object-name>key</object-name>
|
|
|
|
<object-name>start</object-name>
|
|
|
|
<object-name>magsw</object-name>
|
|
|
|
<visible>true</visible>
|
|
|
|
<action>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/controls/switches/magnetos</property>
|
|
|
|
<factor>1</factor>
|
|
|
|
<min>0</min>
|
|
|
|
<max>3</max>
|
|
|
|
</binding>
|
|
|
|
</action>
|
|
|
|
<increase>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>c172p.click("magneto-forward")</script>
|
|
|
|
</binding>
|
|
|
|
</increase>
|
|
|
|
<decrease>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>c172p.click("magneto-back")</script>
|
|
|
|
</binding>
|
|
|
|
</decrease>
|
|
|
|
<hovered>
|
|
|
|
<binding>
|
|
|
|
<command>set-tooltip</command>
|
|
|
|
<tooltip-id>magneto-switch</tooltip-id>
|
|
|
|
<label>Magnetos: %s</label>
|
|
|
|
<property>controls/switches/magnetos</property>
|
|
|
|
<mapping>nasal</mapping>
|
|
|
|
<script>
|
|
|
|
var m = arg[0];
|
|
|
|
if (m == 1) return 'RIGHT';
|
|
|
|
if (m == 2) return 'LEFT';
|
|
|
|
if (m == 3) return 'BOTH';
|
|
|
|
return 'OFF';
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</hovered>
|
|
|
|
</animation>
|
2015-06-16 21:20:54 +00:00
|
|
|
|
2016-08-12 18:57:03 +00:00
|
|
|
<!-- Starter -->
|
|
|
|
<animation>
|
|
|
|
<type>pick</type>
|
|
|
|
<object-name>click-S</object-name>
|
|
|
|
<visible>false</visible>
|
|
|
|
<action>
|
|
|
|
<name>starter</name>
|
|
|
|
<button>0</button>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/controls/switches/starter</property>
|
|
|
|
<value>1</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>c172p.click("magneto-forward")</script>
|
|
|
|
</binding>
|
|
|
|
<mod-up>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/controls/switches/starter</property>
|
|
|
|
<value>0</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>c172p.click("magneto-back")</script>
|
|
|
|
</binding>
|
|
|
|
</mod-up>
|
|
|
|
</action>
|
|
|
|
<hovered>
|
|
|
|
<binding>
|
|
|
|
<command>set-tooltip</command>
|
|
|
|
<tooltip-id>starter-switch</tooltip-id>
|
|
|
|
<label>Engine Starter</label>
|
|
|
|
</binding>
|
|
|
|
</hovered>
|
|
|
|
</animation>
|
2015-06-16 21:20:54 +00:00
|
|
|
|
2016-08-12 18:57:03 +00:00
|
|
|
<!-- Key rotation animation -->
|
|
|
|
<animation>
|
|
|
|
<type>rotate</type>
|
|
|
|
<object-name>key</object-name>
|
|
|
|
<object-name>start</object-name>
|
|
|
|
<expression>
|
|
|
|
<sum>
|
|
|
|
<product>
|
|
|
|
<!-- 1 if starter is false, 0 if starter is true -->
|
|
|
|
<difference>
|
|
|
|
<value>1</value>
|
|
|
|
<property>/controls/switches/starter</property>
|
|
|
|
</difference>
|
|
|
|
<property>/controls/switches/magnetos</property>
|
|
|
|
<value>30</value>
|
|
|
|
</product>
|
|
|
|
<product>
|
|
|
|
<property>/controls/switches/starter</property>
|
|
|
|
<value>120</value>
|
|
|
|
</product>
|
|
|
|
</sum>
|
|
|
|
</expression>
|
|
|
|
<center>
|
2018-05-17 11:58:44 +00:00
|
|
|
<x-m>-0.369 </x-m>
|
|
|
|
<y-m>-0.364 </y-m>
|
|
|
|
<z-m>-0.24723</z-m>
|
2016-08-12 18:57:03 +00:00
|
|
|
</center>
|
|
|
|
<axis>
|
|
|
|
<x>-1</x>
|
|
|
|
<y>0</y>
|
|
|
|
<z>0</z>
|
|
|
|
</axis>
|
|
|
|
</animation>
|
2015-06-16 21:20:54 +00:00
|
|
|
|
|
|
|
</PropertyList>
|