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

<!-- Hughes H4 Hercules - 1946 -->
<PropertyList>

  <path>interior.ac</path>

  <animation>
    <object-name>planchet</object-name>
    <object-name>tourvitres</object-name>
    <object-name>plafond</object-name>
    <object-name>inttrous</object-name>
    <object-name>intporte-A-G</object-name>
    <object-name>intporte-A-D</object-name>

    <!-- transparent objects -->
    <object-name>intvitres</object-name>
    <object-name>inthublot-A-G</object-name>
    <object-name>inthublot-A-D</object-name>
    <!-- HDR mode -->
    <object-name>HDRintvitres</object-name>
    <object-name>HDRinthublot-A-G</object-name>
    <object-name>HDRinthublot-A-D</object-name>
  </animation>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>../Effects/Glass/glassrain</inherits-from>
    <object-name>intvitres</object-name>
    <object-name>inthublot-A-G</object-name>
    <object-name>inthublot-A-D</object-name>
  </effect>

  <effect>
    <inherits-from>../Effects/Glass/glass</inherits-from>
    <object-name>HDRintvitres</object-name>
    <object-name>HDRinthublot-A-G</object-name>
    <object-name>HDRinthublot-A-D</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>HDRinthublot-A-G</object-name>
    <object-name>HDRinthublot-A-D</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>inthublot-A-G</object-name>
    <object-name>inthublot-A-D</object-name>
  </animation>

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

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

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

  <model>
    <path>Panel/Instruments/Bar/all-bar.xml</path>
  </model>

  <model>
    <path>Panel/Instruments/Yokes/all-yokes.xml</path>
  </model>

  <animation>
    <name>IntPorteGauche</name>
    <object-name>intporte-A-G</object-name>
    <object-name>inthublot-A-G</object-name>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>IntPorteGauche</object-name>
    <object-name>HDRhublot-A-G</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.crew.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>IntPorteGauche</object-name>
    <object-name>HDRinthublot-A-G</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[0]</property>
    <factor> -170 </factor>
    <center>
      <x-m> -14.989 </x-m>
      <y-m>  -2.879 </y-m>
      <z-m>   1.395 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <name>IntPorteDroite</name>
    <object-name>intporte-A-D</object-name>
    <object-name>inthublot-A-D</object-name>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>IntPorteDroite</object-name>
    <object-name>HDRinthublot-A-G</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>IntPorteDroite</object-name>
    <object-name>HDRinthublot-A-G</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <factor> 170 </factor>
    <center>
      <x-m> -14.989 </x-m>
      <y-m>   2.879 </y-m>
      <z-m>   1.395 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

</PropertyList>
