<?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>planchet</object-name>
    <object-name>intporteG</object-name>
    <object-name>intporteD</object-name>
    <object-name>intbaieA</object-name>
    <object-name>intbaieB</object-name>

    <!-- Objets transparents -->
    <object-name>intvitres</object-name>
    <object-name>intvitreporteG</object-name>
    <object-name>intvitreporteD</object-name>
    <object-name>intvitrebaieA</object-name>
    <object-name>intvitrebaieB</object-name>
    <!-- HDR mode -->
    <object-name>HDRintvitres</object-name>
    <object-name>HDRintvitreporteG</object-name>
    <object-name>HDRintvitreporteD</object-name>
    <object-name>HDRintvitrebaieA</object-name>
    <object-name>HDRintvitrebaieB</object-name>
  </animation>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>../Effects/Glass/glassrain</inherits-from>
    <object-name>intvitres</object-name>
    <object-name>intvitreporteG</object-name>
    <object-name>intvitreporteD</object-name>
    <object-name>intvitrebaieA</object-name>
    <object-name>intvitrebaieB</object-name>
  </effect>

  <!-- Panel -->
  <effect>
    <inherits-from>../Effects/Glass/glass</inherits-from>
    <object-name>HDRintvitres</object-name>
    <object-name>HDRintvitreporteG</object-name>
    <object-name>HDRintvitreporteD</object-name>
    <object-name>HDRintvitrebaieA</object-name>
    <object-name>HDRintvitrebaieB</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>HDRintvitreporteG</object-name>
    <object-name>HDRintvitreporteD</object-name>
    <object-name>HDRintvitrebaieA</object-name>
    <object-name>HDRintvitrebaieB</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>intvitreporteG</object-name>
    <object-name>intvitreporteD</object-name>
    <object-name>intvitrebaieA</object-name>
    <object-name>intvitrebaieB</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>
    <name>Console</name>
    <path>Console/all-consoles.xml</path>
  </model>

  <animation>
    <type>select</type>
    <object-name>Console</object-name>
    <condition>
      <!-- <property>sim/model/show-console</property> -->
      <property>sim/multiplay/generic/bool[18]</property>
    </condition>
  </animation>

  <!-- Les portes -->
  <animation>
    <type>pick</type>
    <object-name>intporteG</object-name>
    <object-name>intvitreporteG</object-name>
    <object-name>HDRintvitreporteG</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>intporteG</object-name>
    <object-name>intvitreporteG</object-name>
    <object-name>HDRintvitreporteG</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[0]</property>
    <factor> -70 </factor>
    <axis>
      <x1-m> -3.97336 </x1-m>
      <y1-m> -0.68316 </y1-m>
      <z1-m> -1.46115 </z1-m>
      <x2-m> -3.96149 </x2-m>
      <y2-m> -0.67606 </y2-m>
      <z2-m> -1.02804 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>intporteD</object-name>
    <object-name>intvitreporteD</object-name>
    <object-name>HDRintvitreporteD</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>intporteD</object-name>
    <object-name>intvitreporteD</object-name>
    <object-name>HDRintvitreporteD</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <factor> 70 </factor>
    <axis>
      <x1-m> -3.97336 </x1-m>
      <y1-m>  0.68316 </y1-m>
      <z1-m> -1.46115 </z1-m>
      <x2-m> -3.96149 </x2-m>
      <y2-m>  0.67606 </y2-m>
      <z2-m> -1.02804 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>intbaieA</object-name>
    <object-name>intvitrebaieA</object-name>
    <object-name>HDRintvitrebaieA</object-name>
    <object-name>intbaieB</object-name>
    <object-name>intvitrebaieB</object-name>
    <object-name>HDRintvitrebaieB</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.cargo.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intbaieA</object-name>
    <object-name>intvitrebaieA</object-name>
    <object-name>HDRintvitrebaieA</object-name>
    <!-- <property>sim/model/door-positions/cargo/position-norm</property> -->
    <property>sim/multiplay/generic/float[11]</property>
    <factor> -70 </factor>
    <axis>
      <x1-m> -3.09073 </x1-m>
      <y1-m> -0.77442 </y1-m>
      <z1-m> -1.60272 </z1-m>
      <x2-m> -3.07534 </x2-m>
      <y2-m> -0.76457 </y2-m>
      <z2-m> -0.90860 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intbaieB</object-name>
    <object-name>intvitrebaieB</object-name>
    <object-name>HDRintvitrebaieB</object-name>
    <!-- <property>sim/model/door-positions/cargo/position-norm</property> -->
    <property>sim/multiplay/generic/float[11]</property>
    <factor> 70 </factor>
    <axis>
      <x1-m> -1.70571 </x1-m>
      <y1-m> -0.80247 </y1-m>
      <z1-m> -1.62615 </z1-m>
      <x2-m> -1.68984 </x2-m>
      <y2-m> -0.79026 </y2-m>
      <z2-m> -0.91031 </z2-m>
    </axis>
  </animation>

</PropertyList>
