2015-06-16 21:20:54 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
|
|
|
|
<path>magneto-switch.ac</path>
|
|
|
|
|
|
|
|
<effect>
|
2016-05-18 21:11:05 +00:00
|
|
|
<inherits-from>../../../../Effects/interior/c172p-interior-radiance</inherits-from>
|
2015-06-16 21:20:54 +00:00
|
|
|
<object-name>key</object-name>
|
|
|
|
<object-name>start</object-name>
|
|
|
|
<object-name>magsw</object-name>
|
|
|
|
<object-name>click-L</object-name>
|
|
|
|
<object-name>click-R</object-name>
|
|
|
|
<object-name>click-S</object-name>
|
|
|
|
</effect>
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>material</type>
|
|
|
|
<object-name>key</object-name>
|
|
|
|
<object-name>start</object-name>
|
|
|
|
<object-name>magsw</object-name>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<!-- magneto switch -->
|
|
|
|
<animation>
|
|
|
|
<type>knob</type>
|
|
|
|
<object-name>click-L</object-name>
|
|
|
|
<object-name>click-R</object-name>
|
|
|
|
|
|
|
|
<visible>false</visible>
|
|
|
|
<action>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
2015-07-05 18:32:41 +00:00
|
|
|
<property>/controls/switches/magnetos</property>
|
2015-06-16 21:20:54 +00:00
|
|
|
<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>
|
2015-07-05 18:32:41 +00:00
|
|
|
<property>controls/switches/magnetos</property>
|
2015-06-16 21:20:54 +00:00
|
|
|
<mapping>nasal</mapping>
|
|
|
|
<script>
|
2015-07-05 18:32:41 +00:00
|
|
|
var m = arg[0];
|
2015-06-16 21:20:54 +00:00
|
|
|
if (m == 1) return 'RIGHT';
|
|
|
|
if (m == 2) return 'LEFT';
|
|
|
|
if (m == 3) return 'BOTH';
|
|
|
|
return 'OFF';
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</hovered>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 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>
|
|
|
|
<!-- key animations -->
|
|
|
|
<animation>
|
|
|
|
<name>mags-key</name>
|
|
|
|
<type>rotate</type>
|
|
|
|
<object-name>key</object-name>
|
2015-07-05 18:32:41 +00:00
|
|
|
<property>/controls/switches/magnetos</property>
|
2015-06-16 21:20:54 +00:00
|
|
|
<factor>30</factor>
|
|
|
|
<center>
|
|
|
|
<x-m>0.0257195</x-m>
|
|
|
|
<y-m>3.91249e-006</y-m>
|
|
|
|
<z-m>8.14768e-006</z-m>
|
|
|
|
</center>
|
|
|
|
<axis>
|
|
|
|
<x>-1</x>
|
|
|
|
<y>0</y>
|
|
|
|
<z>0</z>
|
|
|
|
</axis>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>select</type>
|
|
|
|
<object-name>key</object-name>
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<property>/controls/switches/starter</property>
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>select</type>
|
|
|
|
<object-name>start</object-name>
|
|
|
|
<condition>
|
|
|
|
<property>/controls/switches/starter</property>
|
|
|
|
</condition>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
</PropertyList>
|
|
|
|
|
|
|
|
|