<?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>inttour</object-name>
    <object-name>intporte</object-name>
    <object-name>porteint</object-name>
    <object-name>RightVisor</object-name>
    <object-name>LeftVisor</object-name>

    <!-- Objets transparents -->
    <object-name>intvitres</object-name>
    <object-name>intvitreporte</object-name>
    <!-- HDR mode -->
    <object-name>HDRintvitres</object-name>
    <object-name>HDRintvitreporte</object-name>
  </animation>

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

  <effect>
    <inherits-from>../Effects/Glass/glass</inherits-from>
    <object-name>HDRintvitres</object-name>
    <object-name>HDRintvitreporte</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>HDRintvitreporte</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>intvitreporte</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>

  <!-- Ouverture des portes -->
  <animation>
    <type>pick</type>
    <object-name>intporte</object-name>
    <object-name>porteint</object-name>
    <object-name>intvitreporte</object-name>
    <object-name>HDRintvitreporte</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>intporte</object-name>
    <object-name>porteint</object-name>
    <object-name>intvitreporte</object-name>
    <object-name>HDRintvitreporte</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[0]</property>
    <factor> -80 </factor>
    <axis>
      <x1-m> -1.69953 </x1-m>
      <y1-m>  0.56963 </y1-m>
      <z1-m> -0.12354 </z1-m>
      <x2-m> -1.69953 </x2-m>
      <y2-m>  0.58823 </y2-m>
      <z2-m> -0.51063 </z2-m>
    </axis>
  </animation>

  <!-- picks for left visor -->
  <animation>
    <type>pick</type>
    <object-name>LeftVisor</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.leftvisor.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>LeftVisor</object-name>
    <property>sim/model/door-positions/leftvisor/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -60 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.30906 </x1-m>
      <y1-m> -0.38236 </y1-m>
      <z1-m>  0.29071 </z1-m>
      <x2-m> -1.43518 </x2-m>
      <y2-m> -0.01537 </y2-m>
      <z2-m>  0.32393 </z2-m>
    </axis>
  </animation>

  <!-- picks for right visor -->
  <animation>
    <type>pick</type>
    <object-name>RightVisor</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.rightvisor.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>RightVisor</object-name>
    <property>sim/model/door-positions/rightvisor/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -60 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.43518 </x1-m>
      <y1-m>  0.01537 </y1-m>
      <z1-m>  0.32393 </z1-m>
      <x2-m> -1.30906 </x2-m>
      <y2-m>  0.38236 </y2-m>
      <z2-m>  0.29071 </z2-m>
    </axis>
  </animation>

</PropertyList>
