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

<PropertyList>

  <path>warning.ac</path>

  <animation>
    <!-- Objets opaques -->
    <object-name>fond</object-name>
    <object-name>warning04.on</object-name>
    <object-name>warning05.on</object-name>
    <object-name>warning06.on</object-name>

    <!-- Objets transparents -->
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>fond</object-name>
    <object-name>warning04.on</object-name>
    <object-name>warning05.on</object-name>
    <object-name>warning06.on</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>warning04.on</object-name>
    <object-name>warning05.on</object-name>
    <object-name>warning06.on</object-name>
    <condition>
      <or>
        <not><property>controls/lighting/warning-mode</property></not>
        <property>controls/lighting/warning-test</property>
      </or>
    </condition>
    <emission>
      <factor-prop>systems/electrical/volts</factor-prop>
      <red>   0.035 </red>
      <green> 0.035 </green>
      <blue>  0.035 </blue>
    </emission>
  </animation>

   <animation>
    <type>material</type>
    <object-name>warning04.on</object-name>
    <object-name>warning05.on</object-name>
    <object-name>warning06.on</object-name>
    <condition>
      <property>controls/lighting/warning-mode</property>
    </condition>
    <emission>
      <factor-prop>systems/electrical/volts</factor-prop>
      <red>   0.012 </red>
      <green> 0.012 </green>
      <blue>  0.012 </blue>
    </emission>
  </animation>

  <!-- battery charge : on if the engine not running and / or the alternator not engaged -->
  <animation>
    <type>select</type>
    <object-name>warning04.on</object-name>
    <condition>
      <and>
        <or>
          <not><property>engines/engine/running</property></not>
          <not><property>controls/engines/engine/master-alt</property></not>
          <property>controls/lighting/warning-test</property>
        </or>
        <property>controls/electric/battery-switch</property>
      </and>
    </condition>
  </animation>

  <!-- Starter : ON if voltage > 8V -->
  <animation>
    <type>select</type>
    <object-name>warning05.on</object-name>
    <condition>
      <and>
        <or>
          <greater-than-equals>
            <property>systems/electrical/outputs/starter</property>
            <value> 8 </value>
          </greater-than-equals>
          <property>controls/lighting/warning-test</property>
        </or>
        <property>controls/electric/battery-switch</property>
      </and>
    </condition>
  </animation>

  <!-- Flaps : ON if flap down -->
  <animation>
    <type>select</type>
    <object-name>warning06.on</object-name>
    <condition>
      <and>
        <or>
          <greater-than-equals>
            <property>surface-positions/flap-pos-norm</property>
            <value> 0.06 </value>
          </greater-than-equals>
          <property>controls/lighting/warning-test</property>
        </or>
        <property>controls/electric/battery-switch</property>
      </and>
    </condition>
  </animation>

</PropertyList>
