<?xml version="1.0"?>

<!-- Cutoff valve left open(0)/closed(1) -->

<PropertyList>
 <path>../../shared/switches/switch03.ac</path>

 <animation>
  <type>pick</type>
  <object-name>clickspot_up</object-name>
  <visible>false</visible>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
        <condition>
         <equals>
         <property>an24/AZS/sw0105</property>
         <value>1.0</value>
         </equals>
        </condition>
      <command>nasal</command>
      <script>
	setprop("an24/FuelControl/cutoff-l-by-sw", 0.0 );
	if ( getprop("an24/FuelControl/cutoff-l-by-fs") == 0.0 ) {
	setprop("/controls/engines/engine[0]/cutoff", 0.0 );
	}
      </script>
    </binding>
    <binding>
      <command>nasal</command>
      <script>
	interpolate("an24/FuelControl/sw0401", 1.0, 0.2 );
	settimer(func {interpolate("an24/FuelControl/sw0401", 0.0, 0.1 );},0.2);
      </script>
    </binding>
  </action>
   <hovered>
    <binding>
      <command>set-tooltip</command>
      <tooltip-id>cutofflopen</tooltip-id>
      <label>Cutoff Valve</label>
    </binding>
   </hovered>
 </animation>

 <animation>
  <type>pick</type>
  <object-name>clickspot_middle</object-name>
  <visible>false</visible>
 </animation>

 <animation>
  <type>pick</type>
  <object-name>clickspot_down</object-name>
  <visible>false</visible>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
        <condition>
         <equals>
         <property>an24/AZS/sw0105</property>
         <value>1.0</value>
         </equals>
        </condition>
      <command>nasal</command>
      <script>
	setprop("an24/FuelControl/cutoff-l-by-sw", 1.0 );
	setprop("/controls/engines/engine[0]/cutoff", 1.0 );
      </script>
    </binding>
    <binding>
      <command>nasal</command>
      <script>
	interpolate("an24/FuelControl/sw0401", -1.0, 0.2 );
	settimer(func {interpolate("an24/FuelControl/sw0401", 0.0, 0.1 );},0.2);
      </script>
    </binding>
  </action>
   <hovered>
    <binding>
      <command>set-tooltip</command>
      <tooltip-id>cutofflclose</tooltip-id>
      <label>Cutoff Valve</label>
    </binding>
   </hovered>
</animation>

 <animation>
   <type>rotate</type>
   <object-name>lever</object-name>
   <property>an24/FuelControl/sw0401</property>
  <interpolation>
    <entry><ind>-1.0</ind>	<dep>-35.0</dep></entry>
    <entry><ind>1.0</ind>	<dep>35.0</dep></entry>
  </interpolation>
  <axis>
    <x>0.0</x>
    <y>-1.0</y>
    <z>0.0</z>
  </axis>
 </animation>
 

</PropertyList>
