<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

  <path>SwitchPanel.ac</path>

  <animation>
    <object-name>SwitchPanel</object-name>
    <object-name>BMute</object-name>
    <object-name>BHSI</object-name>
    <object-name>BAltEnc</object-name>
    <object-name>BXPDR</object-name>
    <object-name>BNav1</object-name>
    <object-name>BCom1</object-name>
    <object-name>BAvionicBus1</object-name>
    <object-name>MuteOff</object-name>
    <object-name>MuteOn</object-name>
    <object-name>DimmerPanelKnob</object-name>
    <object-name>DimmerInstrKnob</object-name>
    <object-name>Switch-InstLight</object-name>
    <object-name>Switch-Strobe</object-name>
    <object-name>StrobeWhite</object-name>
    <object-name>StrobeOff</object-name>
    <object-name>StrobeRed</object-name>
    <object-name>Switch-NavLight</object-name>
    <object-name>DimmerMapKnob</object-name>
    <object-name>Switch-LdgLight</object-name>
    <object-name>Switch-PitotHeat</object-name>
    <object-name>Switch-Avionics</object-name>
    <object-name>Switch-Magneto</object-name>
    <object-name>Switch-Starter</object-name>
    <object-name>Switch-Fuel</object-name>
    <object-name>Switch-Generator</object-name>
    <object-name>GeneratorOn</object-name>
    <object-name>GeneratorOff</object-name>
    <object-name>GeneratorReset</object-name>
    <object-name>Switch-Battery</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>SwitchPanel</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>BMute</object-name>
    <object-name>BHSI</object-name>
    <object-name>BAltEnc</object-name>
    <object-name>BXPDR</object-name>
    <object-name>BNav1</object-name>
    <object-name>BCom1</object-name>
    <object-name>BAvionicBus1</object-name>
    <object-name>MuteOff</object-name>
    <object-name>MuteOn</object-name>
    <object-name>DimmerPanelKnob</object-name>
    <object-name>DimmerInstrKnob</object-name>
    <object-name>Switch-InstLight</object-name>
    <object-name>Switch-Strobe</object-name>
    <object-name>Switch-NavLight</object-name>
    <object-name>DimmerMapKnob</object-name>
    <object-name>Switch-LdgLight</object-name>
    <object-name>Switch-PitotHeat</object-name>
    <object-name>Switch-Avionics</object-name>
    <object-name>Switch-Magneto</object-name>
    <object-name>Switch-Starter</object-name>
    <object-name>Switch-Fuel</object-name>
    <object-name>Switch-Generator</object-name>
    <object-name>Switch-Battery</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>controls/lighting/instruments-norm</factor-prop>
      <red>   0.50 </red>
      <green> 0.40 </green>
      <blue>  0.30 </blue>
    </emission>
  </animation>

  <!-- ************** Fusibles ************** -->
  <animation>
    <type>pick</type>
    <visible>true</visible>
    <object-name>BMute</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/circuit-breakers/mute</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>BMute</object-name>
    <property>controls/circuit-breakers/mute</property>
    <factor>0.008</factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <visible>true</visible>
    <object-name>BHSI</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/circuit-breakers/hsi</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>BHSI</object-name>
    <property>controls/circuit-breakers/hsi</property>
    <factor>0.008</factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <visible>true</visible>
    <object-name>BAltEnc</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/circuit-breakers/alt-encoder</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>BAltEnc</object-name>
    <property>controls/circuit-breakers/alt-encoder</property>
    <factor>0.008</factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <visible>true</visible>
    <object-name>BXPDR</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/circuit-breakers/transponder</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>BXPDR</object-name>
    <property>controls/circuit-breakers/transponder</property>
    <factor>0.008</factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <visible>true</visible>
    <object-name>BNav1</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/circuit-breakers/nav1</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>BNav1</object-name>
    <property>controls/circuit-breakers/nav1</property>
    <factor>0.008</factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <visible>true</visible>
    <object-name>BCom1</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/circuit-breakers/com1</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>BCom1</object-name>
    <property>controls/circuit-breakers/com1</property>
    <factor>0.008</factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <visible>true</visible>
    <object-name>BAvionicBus1</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/circuit-breakers/avionic-bus-1</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>BAvionicBus1</object-name>
    <property>controls/circuit-breakers/avionic-bus-1</property>
    <factor>0.008</factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>Mute</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>controls/switches/mute</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Mute</object-name>
    <property>controls/switches/mute</property>
    <factor>22.5</factor>
    <center>
      <x-m> 0.006 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.023 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>DimmerPanelKnob</object-name>
    <visible>true</visible>
    <action>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/lighting/panel-norm</property>
        <step type="double">0.1</step>
        <max>1</max>
        <min>0</min>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/lighting/panel-norm</property>
        <step type="double">-0.1</step>
        <max>1</max>
        <min>0</min>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>DimmerPanelKnob</object-name>
    <property>/controls/lighting/panel-norm</property>
    <factor>270</factor>
    <center>
      <x-m>  0.000 </x-m>
      <y-m> -0.100 </y-m>
      <z-m>  0.023 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>DimmerInstrKnob</object-name>
    <visible>true</visible>
    <action>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/lighting/instruments-norm</property>
        <step type="double">0.1</step>
        <max>1</max>
        <min>0</min>
      </binding>
    </action>
    <object-name>DimmerInstrKnob</object-name>
    <action>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/lighting/instruments-norm</property>
        <step type="double">-0.1</step>
        <max>1</max>
        <min>0</min>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>DimmerInstrKnob</object-name>
    <property>controls/lighting/instruments-norm</property>
    <factor>270</factor>
    <center>
      <x-m>  0.000 </x-m>
      <y-m> -0.070 </y-m>
      <z-m>  0.023 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>Switch-InstLight</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>controls/lighting/instrument-lights</property>
      </binding>
      <binding>
        <command>nasal</command>
        <script>
          var state = props.globals.getNode("controls/lighting/instrument-lights",1);
          if (!state.getBoolValue()) {
            setprop("controls/lighting/instruments-norm",0);
          } else {
            setprop("controls/lighting/instruments-norm",0.8);
          }
        </script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Switch-InstLight</object-name>
    <property>controls/lighting/instrument-lights</property>
    <factor>30</factor>
    <center>
      <x-m> 0.002 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.023 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>StrobeWhite</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>/controls/switches/strobes</property>
        <value type="double">1</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>
          var state = props.globals.getNode("/controls/switches/strobes",1);
          if ( state == 1) {
            setprop("controls/lighting/strobe",1);
          } elseif ( state == 0) {
            setprop("controls/lighting/strobe",0);
            setprop("controls/lighting/beacon",0);
          } elseif ( state == -1) {
            setprop("controls/lighting/beacon",1);
          }
        </script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>StrobeOff</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>/controls/switches/strobes</property>
        <value type="double">0</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>
          var state = props.globals.getNode("/controls/switches/strobes",1);
          if ( state == 1) {
          setprop("controls/lighting/strobe",1);
          } elseif ( state == 0) {
          setprop("controls/lighting/strobe",0);
          setprop("controls/lighting/beacon",0);
          } elseif ( state == -1) {
          setprop("controls/lighting/beacon",1);
          }
        </script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>StrobeRed</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>/controls/switches/strobes</property>
        <value type="double">-1</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>
          var state = props.globals.getNode("/controls/switches/strobes",1);
          if ( state == 1) {
          setprop("controls/lighting/strobe",1);
          } elseif ( state == 0) {
          setprop("controls/lighting/strobe",0);
          setprop("controls/lighting/beacon",0);
          } elseif ( state == -1) {
          setprop("controls/lighting/beacon",1);
          }
        </script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Switch-Strobe</object-name>
    <property>controls/switches/strobes</property>
    <factor>15</factor>
    <center>
      <x-m> 0.002 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.023 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>Switch-NavLight</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/lighting/nav-lights</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Switch-NavLight</object-name>
    <property>/controls/lighting/nav-lights</property>
    <factor>30</factor>
    <center>
      <x-m> 0.002 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.023 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>DimmerMapKnob</object-name>
    <visible>true</visible>
    <action>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/lighting/map-dim</property>
        <step type="double">0.1</step>
        <min>0</min>
        <max>1</max>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/lighting/map-dim</property>
        <step type="double">-0.1</step>
        <min>0</min>
        <max>1</max>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>DimmerMapKnob</object-name>
    <property>/controls/lighting/map-dim</property>
    <factor>270</factor>
    <center>
      <x-m> 0.000 </x-m>
      <y-m> 0.010 </y-m>
      <z-m> 0.023 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>Switch-LdgLight</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/lighting/landing-lights</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Switch-LdgLight</object-name>
    <property>/controls/lighting/landing-lights</property>
    <factor>30</factor>
    <center>
      <x-m> 0.002 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.023 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>Switch-PitotHeat</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/switches/pitot-heat</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Switch-PitotHeat</object-name>
    <property>controls/switches/pitot-heat</property>
    <factor>30</factor>
    <center>
      <x-m> 0.002 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.023 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>Switch-Avionics</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/switches/avionic-master</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Switch-Avionics</object-name>
    <property>controls/switches/avionic-master</property>
    <factor>30</factor>
    <center>
      <x-m> 0.002 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.023 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>Switch-Magneto</object-name>
    <visible>true</visible>
    <action>
      <name>decrease mags</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/engines/engine/magnetos</property>
        <step> -1 </step>
        <min>   0 </min>
        <max>   3 </max>
      </binding>
    </action>
    <action>
      <name>increase mags</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/engines/engine/magnetos</property>
        <step> 1 </step>
        <min>  0 </min>
        <max>  3 </max>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Switch-Magneto</object-name>
    <property>/controls/engines/engine/magnetos</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep>  40 </dep></entry>
      <entry><ind> 2 </ind><dep>  80 </dep></entry>
      <entry><ind> 3 </ind><dep> 120 </dep></entry>
    </interpolation>
    <center>
      <x-m> 0.000 </x-m>
      <y-m> 0.120 </y-m>
      <z-m> 0.020 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>Switch-Starter</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>/controls/switches/starter</property>
        <value type="int">1</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>controls.startEngine()</script>
      </binding>
      <mod-up>
        <binding>
          <command>property-assign</command>
          <property>/controls/switches/starter</property>
          <value type="int">0</value>
        </binding>
        <binding>
          <command>nasal</command>
          <script>props.setAll("/controls/engines/engine", "starter", 0)</script>
        </binding>
      </mod-up>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>Switch-Starter</object-name>
    <property>controls/switches/starter</property>
    <factor>0.005</factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>rotate</type>
    <object-name>Switch-Fuel</object-name>
    <property>controls/engines/engine/fuel-pump</property>
    <factor>30</factor>
    <center>
      <x-m> 0.002 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.023 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>Switch-Fuel</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/engines/engine/fuel-pump</property>
      </binding>
    </action>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>GeneratorOn</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>/controls/switches/generator</property>
        <value type="double">1</value>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>GeneratorOff</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>/controls/switches/generator</property>
        <value type="double">0</value>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>GeneratorReset</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>/controls/switches/generator</property>
        <value type="double">-1</value>
      </binding>
      <mod-up>
        <binding>
          <command>property-assign</command>
          <property>/controls/switches/generator</property>
          <value type="double">0</value>
        </binding>
      </mod-up>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Switch-Generator</object-name>
    <property>controls/switches/generator</property>
    <factor>15</factor>
    <center>
      <x-m> 0.002 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.023 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- ************************************ -->
  <animation>
    <type>pick</type>
    <object-name>Switch-Battery</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/electric/battery-switch</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Switch-Battery</object-name>
    <property>/controls/electric/battery-switch</property>
    <factor>30</factor>
    <center>
      <x-m> 0.002 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.023 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

</PropertyList>
