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

<PropertyList>

  <path>pylons.ac</path>

  <animation>
    <object-name>pylon1.L</object-name>
    <object-name>pylon2.L</object-name>
    <object-name>pylon3.L</object-name>
    <object-name>pylon4.L</object-name>
    <object-name>pylon.C</object-name>
    <object-name>pylon.C.double_gbu</object-name>
    <object-name>pylon4.R</object-name>
    <object-name>pylon3.R</object-name>
    <object-name>pylon2.R</object-name>
    <object-name>pylon1.R</object-name>
  </animation>

  <effect>
    <inherits-from>Aircraft/Mirage-2000/Models/Effects/aircraft/aircraft</inherits-from>
    <object-name>pylon1.L</object-name>
    <object-name>pylon2.L</object-name>
    <object-name>pylon3.L</object-name>
    <object-name>pylon4.L</object-name>
    <object-name>pylon.C</object-name>
    <object-name>pylon.C.double_gbu</object-name>
    <object-name>pylon4.R</object-name>
    <object-name>pylon3.R</object-name>
    <object-name>pylon2.R</object-name>
    <object-name>pylon1.R</object-name>
    <condition>
      <not><property>sim/rendering/rembrandt/enabled</property></not>
    </condition>
  </effect>

  <!-- pylon options
      _________________|___|_________________
      \                |   |                /
       \               |   |               /
        \2.L        4.L|   |4.R        2.R/
         (1)        (7)|   |(8)        (5)
          \   3.L      |   |      3.R   /
           \  (2)      |   |      (4)  /
            \          |   |          /
             \         |   |         /
              \        |   |        /
               \       |.C |       /
                \      |(3)|      /
                 \     |   |     /
                  \ 1.L|   |1.R /
                   \(0)|   |(6)/
                    \  |   |  /
                     \ |   | /
                      \|___|/
  -->

  <animation>
    <type>select</type>
    <object-name>pylon1.L</object-name>
    <condition>
      <not-equals>
        <property>payload/armament/station/id-0-set</property>
        <value>none</value>
      </not-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>pylon2.L</object-name>
    <condition>
      <not-equals>
        <property>payload/armament/station/id-1-set</property>
        <value>none</value>
      </not-equals>
    </condition>
  </animation>


<!-- TODO : afficher si tank selectionne :-->
  <animation>
    <type>select</type>
    <object-name>pylon3.tank.L</object-name>
    <condition>
      <or>
        <equals>
          <property>payload/armament/station/id-2-set</property>
          <value>2000 l Droptank</value>
        </equals>
        <equals>
          <property>payload/armament/station/id-2-set</property>
           <value>1700 l Droptank</value>
        </equals>
      </or>
    </condition>
  </animation>

<!-- TODO : afficher si missile selectionne :-->
  <animation>
    <type>select</type>
    <object-name>pylon3.L</object-name>
    <condition>
      <and>
        <not-equals>
          <property>payload/armament/station/id-2-set</property>
          <value>none</value>
        </not-equals>
        <not-equals>
          <property>payload/armament/station/id-2-set</property>
          <value>2000 l Droptank</value>
        </not-equals>
        <not-equals>
          <property>payload/armament/station/id-2-set</property>
          <value>1700 l Droptank</value>
        </not-equals>
    </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>pylon4.L</object-name>
    <condition>
      <not-equals>
        <property>payload/armament/station/id-7-set</property>
        <value>none</value>
      </not-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>pylon.C</object-name>
    <condition>
      <not-equals>
        <property>payload/armament/station/id-3-set</property>
        <value>none</value>
      </not-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>pylon.C.double_gbu</object-name>
    <condition>
      <equals>
        <property>payload/armament/station/id-3-set</property>
        <value>2 x GBU-12</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>pylon1.R</object-name>
    <condition>
      <not-equals>
        <property>payload/armament/station/id-6-set</property>
        <value>none</value>
      </not-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>pylon2.R</object-name>
    <condition>
      <not-equals>
        <property>payload/armament/station/id-5-set</property>
        <value>none</value>
      </not-equals>
    </condition>
  </animation>


<!-- TODO : afficher si tank selectionne :-->
  <animation>
    <type>select</type>
    <object-name>pylon3.tank.R</object-name>
    <condition>
      <or>
       <equals>
          <property>payload/armament/station/id-2-set</property>
          <value>2000 l Droptank</value>
        </equals>
        <equals>
          <property>payload/armament/station/id-2-set</property>
           <value>1700 l Droptank</value>
         </equals>
        </or>
    </condition>
  </animation>

<!-- TODO : afficher si missile selectionne :-->
  <animation>
    <type>select</type>
    <object-name>pylon3.R</object-name>
    <condition>
      <and>
        <not-equals>
          <property>payload/armament/station/id-4-set</property>
          <value>none</value>
        </not-equals>
        <not-equals>
          <property>payload/armament/station/id-2-set</property>
          <value>2000 l Droptank</value>
        </not-equals>
        <not-equals>
          <property>payload/armament/station/id-2-set</property>
           <value>1700 l Droptank</value>
         </not-equals>
        </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>pylon4.R</object-name>
    <condition>
      <not-equals>
        <property>payload/armament/station/id-8-set</property>
        <value>none</value>
      </not-equals>
    </condition>
  </animation>

</PropertyList>
