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

<PropertyList>

  <path>interior.ac</path>

  <animation>
    <!-- Objets opaques -->
    <object-name>interieur</object-name>
    <object-name>planchet</object-name>
    <object-name>tourvitres</object-name>
    <object-name>intporteAG</object-name>
    <object-name>intporteBGB</object-name>
    <object-name>intporteBGH</object-name>
    <object-name>inttrapeG</object-name>
    <object-name>intporteAD</object-name>
    <object-name>intporteBDB</object-name>
    <object-name>intporteBDH</object-name>
    <object-name>inttrapeD</object-name>
    <object-name>cloison</object-name>
    <object-name>inttourcockpit</object-name>

    <!-- Objets transparents -->
    <object-name>intvitres</object-name>
    <object-name>intvitresporteG</object-name>
    <object-name>intvitresporteD</object-name>
    <!-- HDR mode -->
    <object-name>HDRintvitres</object-name>
    <object-name>HDRintvitresporteG</object-name>
    <object-name>HDRintvitresporteD</object-name>
  </animation>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>../Effects/Glass/glassrain</inherits-from>
    <object-name>intvitres</object-name>
    <object-name>intvitresporteG</object-name>
    <object-name>intvitresporteD</object-name>
  </effect>

  <!-- Panel -->
  <effect>
    <inherits-from>../Effects/Glass/glass</inherits-from>
    <object-name>HDRintvitres</object-name>
    <object-name>HDRintvitresporteG</object-name>
    <object-name>HDRintvitresporteD</object-name>
  </effect>

  <!-- Sélection des vitres en fonction de HDR ou pas -->
  <animation>
    <type>select</type>
    <condition>
      <!-- <property>sim/rendering/hdr/hdr-enabled</property> -->
      <property>sim/multiplay/generic/bool[2]</property>
    </condition>
    <object-name>HDRintvitres</object-name>
    <object-name>HDRintvitresporteG</object-name>
    <object-name>HDRintvitresporteD</object-name>
  </animation>

  <animation>
    <type>select</type>
    <condition>
      <!-- <not><property>sim/rendering/hdr/hdr-enabled</property></not> -->
      <not><property>sim/multiplay/generic/bool[2]</property></not>
    </condition>
    <object-name>intvitres</object-name>
    <object-name>intvitresporteG</object-name>
    <object-name>intvitresporteD</object-name>
  </animation>

  <model>
    <path>Panel/all-panels.xml</path>
  </model>

  <model>
    <path>../Pilot/all-pilots.xml</path>
  </model>

  <model>
    <path>seat/all-seats.xml</path>
  </model>

  <!-- Les portes avant -->
  <animation>
    <name>IntLaPorteGauche</name>
    <object-name>intporteAG</object-name>
    <object-name>intvitresporteG</object-name>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>IntLaPorteGauche</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>gear/gear[0]/wow</property>
            <property>gear/gear[1]/wow</property>
            <property>gear/gear[2]/wow</property>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.crew.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>IntLaPorteGauche</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[0]</property>
    <factor> -170 </factor>
    <center>
      <x-m> -7.751 </x-m>
      <y-m> -1.380 </y-m>
      <z-m> -1.918 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <name>IntLaPorteDroite</name>
    <object-name>intporteAD</object-name>
    <object-name>intvitresporteD</object-name>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>IntLaPorteDroite</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>gear/gear[0]/wow</property>
            <property>gear/gear[1]/wow</property>
            <property>gear/gear[2]/wow</property>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.passenger.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>IntLaPorteDroite</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <factor> 170 </factor>
    <center>
      <x-m> -7.751 </x-m>
      <y-m>  1.380 </y-m>
      <z-m> -1.918 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <!-- Portes arriere -->
  <animation>
    <type>pick</type>
    <object-name>intporteBGB</object-name>
    <object-name>intporteBGH</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>gear/gear[0]/wow</property>
            <property>gear/gear[1]/wow</property>
            <property>gear/gear[2]/wow</property>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.rearL.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intporteBGB</object-name>
    <!-- <property>sim/model/door-positions/rearL/position-norm</property> -->
    <property>sim/multiplay/generic/float[20]</property>
    <factor> 130 </factor>
    <center>
      <x-m>  2.123 </x-m>
      <y-m> -1.005 </y-m>
      <z-m> -2.891 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intporteBGH</object-name>
    <!-- <property>sim/model/door-positions/rearL/position-norm</property> -->
    <property>sim/multiplay/generic/float[20]</property>
    <factor> -60 </factor>
    <center>
      <x-m>  2.123 </x-m>
      <y-m> -0.996 </y-m>
      <z-m> -1.038 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>intporteBDB</object-name>
    <object-name>intporteBDH</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>gear/gear[0]/wow</property>
            <property>gear/gear[1]/wow</property>
            <property>gear/gear[2]/wow</property>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.rearR.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intporteBDB</object-name>
    <!-- <property>sim/model/door-positions/rearR/position-norm</property> -->
    <property>sim/multiplay/generic/float[21]</property>
    <factor> -130 </factor>
    <center>
      <x-m>  2.123 </x-m>
      <y-m>  1.005 </y-m>
      <z-m> -2.891 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intporteBDH</object-name>
    <!-- <property>sim/model/door-positions/rearR/position-norm</property> -->
    <property>sim/multiplay/generic/float[21]</property>
    <factor> 60 </factor>
    <center>
      <x-m>  2.123 </x-m>
      <y-m>  0.996 </y-m>
      <z-m> -1.038 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Portes cargo arriere -->
  <animation>
    <type>pick</type>
    <object-name>inttrapeG</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>gear/gear[0]/wow</property>
            <property>gear/gear[1]/wow</property>
            <property>gear/gear[2]/wow</property>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.bayL.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>inttrapeG</object-name>
    <!-- <property>sim/model/door-positions/bayL/position-norm</property> -->
    <property>sim/multiplay/generic/float[22]</property>
    <factor> -115 </factor>
    <axis>
      <x1-m>  3.911 </x1-m>
      <y1-m> -1.225 </y1-m>
      <z1-m> -1.455 </z1-m>
      <x2-m>  4.553 </x2-m>
      <y2-m> -1.161 </y2-m>
      <z2-m> -1.455 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>inttrapeD</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>gear/gear[0]/wow</property>
            <property>gear/gear[1]/wow</property>
            <property>gear/gear[2]/wow</property>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.bayR.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>inttrapeD</object-name>
    <!-- <property>sim/model/door-positions/bayR/position-norm</property> -->
    <property>sim/multiplay/generic/float[23]</property>
    <factor> 115 </factor>
    <axis>
      <x1-m>  3.911 </x1-m>
      <y1-m>  1.225 </y1-m>
      <z1-m> -1.455 </z1-m>
      <x2-m>  4.553 </x2-m>
      <y2-m>  1.161 </y2-m>
      <z2-m> -1.455 </z2-m>
    </axis>
  </animation>

</PropertyList>
