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

<PropertyList>

  <path>interior.ac</path>

  <animation>
    <!-- Objets opaques -->
    <object-name>interieur</object-name>
    <object-name>tour</object-name>
    <object-name>cabine</object-name>
    <object-name>planchet</object-name>
    <object-name>intporteA</object-name>
    <object-name>intporteBG</object-name>
    <object-name>intporteBD</object-name>
    <object-name>intbaieB</object-name>
    <object-name>intbaieH</object-name>

    <!-- Objets transparents -->
    <object-name>intvitres</object-name>
    <object-name>inthublotBG</object-name>
    <object-name>inthublotBD</object-name>
    <!-- HDR mode -->
    <object-name>HDRintvitres</object-name>
    <object-name>HDRinthublotBG</object-name>
    <object-name>HDRinthublotBD</object-name>
  </animation>

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

  <effect>
    <inherits-from>../Effects/Glass/glass</inherits-from>
    <object-name>HDRintvitres</object-name>
    <object-name>HDRinthublotBG</object-name>
    <object-name>HDRinthublotBD</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>HDRinthublotBG</object-name>
    <object-name>HDRinthublotBD</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>inthublotBG</object-name>
    <object-name>inthublotBD</object-name>
  </animation>

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

  <model>
    <path>Panel/Overhead/all-overheads.xml</path>
  </model>

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

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

  <!-- Portes cargo arrière et petite porte arrière/coté -->
  <animation>
    <name>IntPorteCargo</name>
    <object-name>intbaieB</object-name>
    <object-name>intbaieH</object-name>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>IntPorteCargo</object-name>
    <object-name>intporteBG</object-name>
    <object-name>intporteBD</object-name>
    <object-name>inthublotBG</object-name>
    <object-name>inthublotBD</object-name>
    <object-name>intPorteCargo</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.passenger.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intbaieB</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <factor> 31.12 </factor>
    <center>
      <x-m>  2.46907 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -5.23274 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intbaieH</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <factor> 22.52 </factor>
    <center>
      <x-m>  9.00680 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -2.13374 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Petites portes arrières -->
  <animation>
    <type>translate</type>
    <object-name>intporteBG</object-name>
    <object-name>inthublotBG</object-name>
    <object-name>HDRinthublotBG</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep> 0.00 </dep></entry>
      <entry><ind> 0.2 </ind><dep> 0.05 </dep></entry>
      <entry><ind> 1.0 </ind><dep> 0.05 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intporteBG</object-name>
    <object-name>inthublotBG</object-name>
    <object-name>HDRinthublotBG</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>  0 </dep></entry>
      <entry><ind> 0.2 </ind><dep>  0 </dep></entry>
      <entry><ind> 1.0 </ind><dep> 40 </dep></entry>
    </interpolation>
    <center>
      <x-m>  2.02133 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -3.21666 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>intporteBD</object-name>
    <object-name>inthublotBD</object-name>
    <object-name>HDRinthublotBD</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep> 0.00 </dep></entry>
      <entry><ind> 0.2 </ind><dep> 0.05 </dep></entry>
      <entry><ind> 1.0 </ind><dep> 0.05 </dep></entry>
    </interpolation>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intporteBD</object-name>
    <object-name>inthublotBD</object-name>
    <object-name>HDRinthublotBD</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>  0 </dep></entry>
      <entry><ind> 0.2 </ind><dep>  0 </dep></entry>
      <entry><ind> 1.0 </ind><dep> 40 </dep></entry>
    </interpolation>
    <center>
      <x-m>  2.02133 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -3.21666 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Porte équipage avant -->
  <animation>
    <type>pick</type>
    <object-name>intporteA</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>intporteA</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[0]</property>
    <factor> 88 </factor>
    <center>
      <x-m> -9.21695 </x-m>
      <y-m> -1.16833 </y-m>
      <z-m> -4.90735 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

</PropertyList>
