<?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>intleftdoor1</object-name>
    <object-name>intleftdoor2</object-name>
    <object-name>intrightdoor1</object-name>
    <object-name>intrightdoor2</object-name>

    <!-- Objets transparents -->
    <object-name>intwindows</object-name>
    <object-name>intleftwindow1</object-name>
    <object-name>intleftwindow2</object-name>
    <object-name>intrightwindow1</object-name>
    <object-name>intrightwindow2</object-name>
    <!-- HDR mode -->
    <object-name>HDRintwindows</object-name>
    <object-name>HDRintleftwindow1</object-name>
    <object-name>HDRintleftwindow2</object-name>
    <object-name>HDRintrightwindow1</object-name>
    <object-name>HDRintrightwindow2</object-name>
  </animation>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>../Effects/Glass/glassrain</inherits-from>
    <object-name>intwindows</object-name>
    <object-name>intleftwindow1</object-name>
    <object-name>intleftwindow2</object-name>
    <object-name>intrightwindow1</object-name>
    <object-name>intrightwindow2</object-name>
  </effect>

  <effect>
    <inherits-from>../Effects/Glass/glass</inherits-from>
    <object-name>HDRintwindows</object-name>
    <object-name>HDRintleftwindow1</object-name>
    <object-name>HDRintleftwindow2</object-name>
    <object-name>HDRintrightwindow1</object-name>
    <object-name>HDRintrightwindow2</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>HDRintwindows</object-name>
    <object-name>HDRintleftwindow1</object-name>
    <object-name>HDRintleftwindow2</object-name>
    <object-name>HDRintrightwindow1</object-name>
    <object-name>HDRintrightwindow2</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>intwindows</object-name>
    <object-name>intleftwindow1</object-name>
    <object-name>intleftwindow2</object-name>
    <object-name>intrightwindow1</object-name>
    <object-name>intrightwindow2</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>

  <model>
    <path>Panel/Instruments/collective/all-collectives.xml</path>
  </model>

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

  <model>
    <path>Panel/Instruments/pedals/all-pedals.xml</path>
  </model>

  <!--Door -->
  <animation>
    <name>IntRightRearDoor</name>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>intleftdoor1</object-name>
    <object-name>intleftwindow1</object-name>
    <object-name>HDRintleftwindow1</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <or>
              <property>gear/gear[0]/wow</property>
              <property>gear/gear[1]/wow</property>
              <property>gear/gear[2]/wow</property>
              <property>gear/gear[3]/wow</property>
            </or>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.crewG.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intleftdoor1</object-name>
    <object-name>intleftwindow1</object-name>
    <object-name>HDRintleftwindow1</object-name>
    <!-- <property>sim/model/door-positions/crewG/position-norm</property> -->
    <property>sim/multiplay/generic/float[30]</property>
    <factor> -80 </factor>
    <axis>
      <x1-m> -2.482 </x1-m>
      <y1-m> -0.698 </y1-m>
      <z1-m> -0.697 </z1-m>
      <x2-m> -2.150 </x2-m>
      <y2-m> -0.678 </y2-m>
      <z2-m> -0.062 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>intrightdoor1</object-name>
    <object-name>intrightwindow1</object-name>
    <object-name>HDRintrightwindow1</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <or>
              <property>gear/gear[0]/wow</property>
              <property>gear/gear[1]/wow</property>
              <property>gear/gear[2]/wow</property>
              <property>gear/gear[3]/wow</property>
            </or>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.crewD.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intrightdoor1</object-name>
    <object-name>intrightwindow1</object-name>
    <object-name>HDRintrightwindow1</object-name>
    <!-- <property>sim/model/door-positions/crewD/position-norm</property> -->
    <property>sim/multiplay/generic/float[31]</property>
    <factor> 80 </factor>
    <axis>
      <x1-m> -2.482 </x1-m>
      <y1-m>  0.698 </y1-m>
      <z1-m> -0.697 </z1-m>
      <x2-m> -2.150 </x2-m>
      <y2-m>  0.678 </y2-m>
      <z2-m> -0.062 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>intleftdoor2</object-name>
    <object-name>intleftwindow2</object-name>
    <object-name>HDRintleftwindow2</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <or>
              <property>gear/gear[0]/wow</property>
              <property>gear/gear[1]/wow</property>
              <property>gear/gear[2]/wow</property>
              <property>gear/gear[3]/wow</property>
            </or>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.rearG.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intleftdoor2</object-name>
    <object-name>intleftwindow2</object-name>
    <object-name>HDRintleftwindow2</object-name>
    <!-- <property>sim/model/door-positions/rearG/position-norm</property> -->
    <property>sim/multiplay/generic/float[32]</property>
    <factor> -80 </factor>
    <axis>
      <x1-m> -1.665 </x1-m>
      <y1-m> -0.700 </y1-m>
      <z1-m> -0.768 </z1-m>
      <x2-m> -1.535 </x2-m>
      <y2-m> -0.693 </y2-m>
      <z2-m> -0.136 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>intrightdoor2</object-name>
    <object-name>intrightwindow2</object-name>
    <object-name>HDRintrightwindow2</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <or>
              <property>gear/gear[0]/wow</property>
              <property>gear/gear[1]/wow</property>
              <property>gear/gear[2]/wow</property>
              <property>gear/gear[3]/wow</property>
            </or>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.rearD.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intrightdoor2</object-name>
    <object-name>intrightwindow2</object-name>
    <object-name>HDRintrightwindow2</object-name>
    <!-- <property>sim/model/door-positions/rearD/position-norm</property> -->
    <property>sim/multiplay/generic/float[33]</property>
    <factor> 80 </factor>
    <axis>
      <x1-m> -1.665 </x1-m>
      <y1-m>  0.700 </y1-m>
      <z1-m> -0.768 </z1-m>
      <x2-m> -1.535 </x2-m>
      <y2-m>  0.693 </y2-m>
      <z2-m> -0.136 </z2-m>
    </axis>
  </animation>

</PropertyList>
