<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
    #############################################################################
    #    (C) 2008 by Yurik V. Nikiforoff - port for FGFS,  FDM,                 #
    #    2d & 3d instruments, animations, systems and over.                     #
    #    yurik@megasignal.com                                                   #
    #                                                                           #
    #    Updated BARANGER Emmanuel 2015                                         #
    #    Updated BARANGER Emmanuel 09/2022                                      #
    #############################################################################
    Light switches block -AN-12 3D instrument for Tu-154
-->
<PropertyList>

  <path>bano.ac</path>

  <animation>
    <object-name>base</object-name>
    <object-name>handle_1</object-name>
    <object-name>handle_2</object-name>
    <object-name>handle_3</object-name>
    <object-name>hotspot_1</object-name>
    <object-name>hotspot_2</object-name>
    <object-name>hotspot_3</object-name>
    <object-name>hotspot_4</object-name>
    <object-name>hotspot_5</object-name>
    <object-name>hotspot_6</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>base</object-name>
    <object-name>handle_1</object-name>
    <object-name>handle_2</object-name>
    <object-name>handle_3</object-name>
    <object-name>hotspot_1</object-name>
    <object-name>hotspot_2</object-name>
    <object-name>hotspot_3</object-name>
    <object-name>hotspot_4</object-name>
    <object-name>hotspot_5</object-name>
    <object-name>hotspot_6</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>handle_1</object-name>
    <object-name>handle_2</object-name>
    <object-name>handle_3</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>

  <animation>
    <type>rotate</type>
    <object-name>handle_1</object-name>
    <property>instrumentation/adf[0]/power-btn</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -60 </dep></entry>
      <entry><ind> 1 </ind><dep>  60 </dep></entry>
    </interpolation>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>handle_2</object-name>
    <property>instrumentation/adf[1]/power-btn</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -60 </dep></entry>
      <entry><ind> 1 </ind><dep>  60 </dep></entry>
    </interpolation>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>handle_3</object-name>
    <property>instrumentation/heading-indicator[0]/serviceable</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> -60 </dep></entry>
      <entry><ind> 1 </ind><dep>  60 </dep></entry>
    </interpolation>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!--Control-->
  <animation>
    <type>pick</type>
    <object-name>hotspot_1</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/adf[0]/power-btn</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hotspot_2</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/adf[0]/power-btn</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hotspot_3</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/adf[1]/power-btn</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hotspot_4</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/adf[1]/power-btn</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hotspot_5</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/heading-indicator[0]/serviceable</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hotspot_6</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>instrumentation/heading-indicator[0]/serviceable</property>
      </binding>
    </action>
  </animation>

</PropertyList>
