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

<PropertyList>

  <path>flaps-gears.ac</path>

  <animation>
    <object-name>fond</object-name>
    <object-name>face</object-name>
    <object-name>profil</object-name>
    <object-name>foldwing</object-name>
    <object-name>airbrake</object-name>
    <object-name>spoilerL</object-name>
    <object-name>spoilerR</object-name>
    <object-name>flapsL</object-name>
    <object-name>flapsR</object-name>
    <object-name>hookstate</object-name>
    <object-name>gear0</object-name>
    <object-name>gear1</object-name>
    <object-name>gear2</object-name>
    <object-name>gearserror</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>fond</object-name>
    <object-name>face</object-name>
    <object-name>profil</object-name>
    <object-name>foldwing</object-name>
    <object-name>airbrake</object-name>
    <object-name>spoilerL</object-name>
    <object-name>spoilerR</object-name>
    <object-name>flapsL</object-name>
    <object-name>flapsR</object-name>
    <object-name>hookstate</object-name>
    <object-name>gear0</object-name>
    <object-name>gear1</object-name>
    <object-name>gear2</object-name>
    <object-name>gearserror</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>face</object-name>
    <object-name>profil</object-name>
    <object-name>gearserror</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>material</type>
    <object-name>foldwing</object-name>
    <object-name>airbrake</object-name>
    <object-name>spoilerL</object-name>
    <object-name>spoilerR</object-name>
    <object-name>flapsL</object-name>
    <object-name>flapsR</object-name>
    <object-name>hookstate</object-name>
    <object-name>gear0</object-name>
    <object-name>gear1</object-name>
    <object-name>gear2</object-name>
    <condition>
      <property>/controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>/controls/lighting/instruments-norm</factor-prop>
      <red>   0.50 </red>
      <green> 1.00 </green>
      <blue>  0.50 </blue>
    </emission>
  </animation>

  <animation>
    <type>material</type>
    <object-name>gearserror</object-name>
    <condition>
      <property>/controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>/controls/lighting/instruments-norm</factor-prop>
      <red>   1.00 </red>
      <green> 0.10 </green>
      <blue>  0.10 </blue>
    </emission>
  </animation>

  <animation>
    <type>select</type>
    <object-name>spoilerL</object-name>
    <object-name>spoilerR</object-name>
    <condition>
      <greater-than>
        <property>/surface-positions/slat-pos-norm</property>
        <value>0</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>gear0</object-name>
    <condition>
      <not-equals>
        <property>/gear/gear[0]/position-norm</property>
        <value>0</value>
      </not-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>gear1</object-name>
    <condition>
      <not-equals>
        <property>/gear/gear[1]/position-norm</property>
        <value>0</value>
      </not-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>gear2</object-name>
    <condition>
      <not-equals>
        <property>/gear/gear[2]/position-norm</property>
        <value>0</value>
      </not-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>flapsL</object-name>
    <object-name>flapsR</object-name>
    <condition>
      <not-equals>
        <property>/surface-positions/flap-pos-norm</property>
        <value>0</value>
      </not-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>airbrake</object-name>
    <condition>
      <not-equals>
        <property>/surface-positions/spoiler-pos-norm</property>
        <value>0</value>
      </not-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>foldwing</object-name>
    <condition>
      <not-equals>
        <property>/sim/model/door-positions/wing/position-norm</property>
        <value>0</value>
      </not-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>hookstate</object-name>
    <condition>
      <not-equals>
        <property>/gear/tailhook/position-norm</property>
        <value>0</value>
      </not-equals>
    </condition>
  </animation>

  <!-- just for test :) -->
  <animation>
    <type>select</type>
    <object-name>gearserror</object-name>
    <condition>
      <equals>
        <property>/gear/tailhook/position-norm</property>
        <value>1967</value>
      </equals>
    </condition>
  </animation>

</PropertyList>
