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

<PropertyList>

  <path>interior.ac</path>

  <animation>
    <!-- Objets opaques -->
    <object-name>interieur</object-name>
    <object-name>inttour</object-name>
    <object-name>cloison</object-name>
    <object-name>cotes</object-name>
    <object-name>planchet</object-name>
    <object-name>intporteA</object-name>
    <object-name>intporteB</object-name>
    <object-name>intporteC</object-name>

    <!-- Objets transparents -->
    <object-name>intvitres</object-name>
    <object-name>intvitreporteA</object-name>
    <object-name>intvitreporteB</object-name>
    <object-name>intvitreporteC</object-name>
    <!-- HDR mode -->
    <object-name>HDRintvitres</object-name>
    <object-name>HDRintvitreporteA</object-name>
    <object-name>HDRintvitreporteB</object-name>
    <object-name>HDRintvitreporteC</object-name>
  </animation>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>../Effects/Glass/glassrain</inherits-from>
    <object-name>intvitres</object-name>
    <object-name>intvitreporteA</object-name>
    <object-name>intvitreporteB</object-name>
    <object-name>intvitreporteC</object-name>
  </effect>

  <effect>
    <inherits-from>../Effects/Glass/glass</inherits-from>
    <object-name>HDRintvitres</object-name>
    <object-name>HDRintvitreporteA</object-name>
    <object-name>HDRintvitreporteB</object-name>
    <object-name>HDRintvitreporteC</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>HDRintvitreporteA</object-name>
    <object-name>HDRintvitreporteB</object-name>
    <object-name>HDRintvitreporteC</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>intvitreporteA</object-name>
    <object-name>intvitreporteB</object-name>
    <object-name>intvitreporteC</object-name>
  </animation>

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

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

  <!-- Portes -->
  <animation>
    <type>pick</type>
    <object-name>intporteA</object-name>
    <object-name>intvitreporteA</object-name>
    <object-name>HDRintvitreporteA</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <less-than>
            <!-- <property>instrumentation/airspeed-indicator/indicated-speed-kt</property> -->
            <property>sim/multiplay/generic/float[16]</property>
            <value>10</value>
          </less-than>
        </condition>
        <command>nasal</command>
        <script>doors.porteA.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intporteA</object-name>
    <object-name>intvitreporteA</object-name>
    <object-name>HDRintvitreporteA</object-name>
    <!-- <property>sim/model/door-positions/porteA/position-norm</property> -->
    <property>sim/multiplay/generic/float[0]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>    0 </dep></entry>
      <entry><ind> 1 </ind><dep> -178 </dep></entry>
    </interpolation>
    <center>
      <x-m> -6.34790 </x-m>
      <y-m> -1.31484 </y-m>
      <z-m> -1.97753 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>intporteB</object-name>
    <object-name>intvitreporteB</object-name>
    <object-name>HDRintvitreporteB</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <less-than>
            <!-- <property>instrumentation/airspeed-indicator/indicated-speed-kt</property> -->
            <property>sim/multiplay/generic/float[16]</property>
            <value>10</value>
          </less-than>
        </condition>
        <command>nasal</command>
        <script>doors.porteB.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intporteB</object-name>
    <object-name>intvitreporteB</object-name>
    <object-name>HDRintvitreporteB</object-name>
    <!-- <property>sim/model/door-positions/porteB/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>    0 </dep></entry>
      <entry><ind> 1 </ind><dep> -175 </dep></entry>
    </interpolation>
    <center>
      <x-m>  1.40890 </x-m>
      <y-m> -1.09319 </y-m>
      <z-m> -1.82723 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>intporteC</object-name>
    <object-name>intvitreporteC</object-name>
    <object-name>HDRintvitreporteC</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <less-than>
            <!-- <property>instrumentation/airspeed-indicator/indicated-speed-kt</property> -->
            <property>sim/multiplay/generic/float[16]</property>
            <value>10</value>
          </less-than>
        </condition>
        <command>nasal</command>
        <script>doors.porteC.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intporteC</object-name>
    <object-name>intvitreporteC</object-name>
    <object-name>HDRintvitreporteC</object-name>
    <!-- <property>sim/model/door-positions/porteC/position-norm</property> -->
    <property>sim/multiplay/generic/float[6]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> 175 </dep></entry>
    </interpolation>
    <center>
      <x-m>  1.62939 </x-m>
      <y-m>  1.06325 </y-m>
      <z-m> -1.83128 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

</PropertyList>
