<?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>intcapotG</object-name>
    <object-name>intcapotD</object-name>
    <object-name>intcanope</object-name>
    <object-name>pedalier</object-name>
    <object-name>pedaleGG</object-name>
    <object-name>pedaleGD</object-name>
    <object-name>pedaleDG</object-name>
    <object-name>pedaleDD</object-name>
    <object-name>LeftVisor</object-name>
    <object-name>RightVisor</object-name>
    <object-name>intbarrecanope</object-name>
    <object-name>inttourbarre</object-name>

    <!-- Objets transparents -->
    <object-name>intvitres</object-name>
    <object-name>intverriere</object-name>
    <object-name>intentrevitres</object-name>
    <!-- HDR mode -->
    <object-name>HDRintvitres</object-name>
    <object-name>HDRintverriere</object-name>
    <object-name>HDRintentrevitres</object-name>
  </animation>

  <!-- working for Rembrandt -->
  <effect>
    <inherits-from>../Effects/Glass/glassrain</inherits-from>
    <object-name>intvitres</object-name>
    <object-name>intverriere</object-name>
    <object-name>intentrevitres</object-name>
  </effect>

  <effect>
    <inherits-from>../Effects/Glass/greenglass</inherits-from>
    <object-name>HDRintvitres</object-name>
    <object-name>HDRintverriere</object-name>
    <object-name>HDRintentrevitres</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>HDRintverriere</object-name>
    <object-name>HDRintentrevitres</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>intverriere</object-name>
    <object-name>intentrevitres</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/Yokes/all-yokes.xml</path>
  </model>

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

  <model>
    <path>Panel/Instruments/ParkBrake/all-parkbrake.xml</path>
  </model>

  <model>
    <path>Panel/Instruments/divers/all-ceniceros-air.xml</path>
  </model>

  <!-- Canopy -->
  <animation>
    <type>pick</type>
    <object-name>intcanope</object-name>
    <object-name>intbarrecanope</object-name>
    <object-name>inttourbarre</object-name>
    <object-name>intverriere</object-name>
    <object-name>intentrevitres</object-name>
    <object-name>HDRintverriere</object-name>
    <object-name>HDRintentrevitres</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>translate</type>
    <object-name>intcanope</object-name>
    <object-name>intbarrecanope</object-name>
    <object-name>inttourbarre</object-name>
    <object-name>intverriere</object-name>
    <object-name>intentrevitres</object-name>
    <object-name>HDRintverriere</object-name>
    <object-name>HDRintentrevitres</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[0]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.6 </dep></entry>
    </interpolation>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>intcanope</object-name>
    <object-name>intbarrecanope</object-name>
    <object-name>inttourbarre</object-name>
    <object-name>intverriere</object-name>
    <object-name>intentrevitres</object-name>
    <object-name>HDRintverriere</object-name>
    <object-name>HDRintentrevitres</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[0]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.00 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.08 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <!-- Capots moteur -->
  <animation>
    <type>pick</type>
    <object-name>intcapotG</object-name>
    <object-name>intcapotD</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <not><property>sim/current-view/internal</property></not>
            <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>intcapotG</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <factor> -85 </factor>
    <axis>
      <x1-m> -3.761 </x1-m>
      <y1-m> -0.038 </y1-m>
      <z1-m>  0.152 </z1-m>
      <x2-m> -2.880 </x2-m>
      <y2-m> -0.038 </y2-m>
      <z2-m>  0.304 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intcapotD</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <factor> 85 </factor>
    <axis>
      <x1-m> -3.761 </x1-m>
      <y1-m>  0.038 </y1-m>
      <z1-m>  0.152 </z1-m>
      <x2-m> -2.880 </x2-m>
      <y2-m>  0.038 </y2-m>
      <z2-m>  0.304 </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> -->
    <property>sim/multiplay/generic/float[13]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -60 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.81818 </x1-m>
      <y1-m> -0.38175 </y1-m>
      <z1-m>  0.59012 </z1-m>
      <x2-m> -1.94420 </x2-m>
      <y2-m> -0.01476 </y2-m>
      <z2-m>  0.62334 </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> -->
    <property>sim/multiplay/generic/float[14]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -60 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.94420 </x1-m>
      <y1-m>  0.01476 </y1-m>
      <z1-m>  0.62334 </z1-m>
      <x2-m> -1.81818 </x2-m>
      <y2-m>  0.38175 </y2-m>
      <z2-m>  0.59012 </z2-m>
    </axis>
  </animation>

  <!-- Séléction de l'objet visible -->
  <animation>
    <type>select</type>
    <object-name>intbarrecanope</object-name>
    <condition>
      <!-- <property>sim/model/show-typea</property> -->
      <property>sim/multiplay/generic/bool[6]</property>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>intentrevitres</object-name>
    <object-name>inttourbarre</object-name>
    <condition>
      <!-- <not><property>sim/model/show-typea</property></not> -->
      <not><property>sim/multiplay/generic/bool[6]</property></not>
    </condition>
  </animation>

</PropertyList>
