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

<PropertyList>

  <path>Gear_Lights.ac</path>

  <animation>
    <object-name>gearLOn</object-name>
    <object-name>gearNOn</object-name>
    <object-name>gearROn</object-name>
    <object-name>gearOn</object-name>
    <object-name>gearLOff</object-name>
    <object-name>gearNOff</object-name>
    <object-name>gearROff</object-name>
    <object-name>gearOff</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>gearLOn</object-name>
    <object-name>gearNOn</object-name>
    <object-name>gearROn</object-name>
    <object-name>gearOn</object-name>
    <object-name>gearLOff</object-name>
    <object-name>gearNOff</object-name>
    <object-name>gearROff</object-name>
    <object-name>gearOff</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>controls/lighting/instruments-norm</factor-prop>
      <red>   0.60 </red>
      <green> 0.50 </green>
      <blue>  0.40 </blue>
    </emission>
  </animation>

  <!-- Lampe verte allumee si train sortie -->
  <animation>
    <type>select</type>
    <object-name>gearNon</object-name>
    <condition>
      <equals>
        <property>gear/gear[0]/position-norm</property>
        <value> 1 </value>
      </equals>
    </condition>
  </animation>

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

  <animation>
    <type>select</type>
    <object-name>gearRon</object-name>
    <condition>
      <equals>
        <property>gear/gear[2]/position-norm</property>
        <value> 1 </value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>gearon</object-name>
    <condition>
      <and>
        <or>
          <greater-than>
            <property>gear/gear[0]/position-norm</property>
            <value>0</value>
          </greater-than>
          <greater-than>
            <property>gear/gear[1]/position-norm</property>
            <value>0</value>
          </greater-than>
          <greater-than>
            <property>gear/gear[2]/position-norm</property>
            <value>0</value>
          </greater-than>
        </or>
        <or>
          <less-than>
            <property>gear/gear[0]/position-norm</property>
            <value>1</value>
          </less-than>
          <less-than>
            <property>gear/gear[1]/position-norm</property>
            <value>1</value>
          </less-than>
          <less-than>
            <property>gear/gear[2]/position-norm</property>
            <value>1</value>
          </less-than>
        </or>
      </and>
    </condition>
  </animation>

</PropertyList>
