<?xml version="1.0"?>

<!-- R-836 Block 1 -->

<PropertyList>
 <path>r-836b1b2b3b4.ac</path>

 <effect>
  <inherits-from>Aircraft/an24b/Models/Effects/alu</inherits-from>
   <object-name>b1</object-name>
   <object-name>b1_hood</object-name>
   <object-name>b1_fixatorL</object-name>
   <object-name>b1_fixatorR</object-name>
   <object-name>b1_knobA</object-name>
   <object-name>b1_lockA</object-name>
   <object-name>b1_knobB</object-name>
   <object-name>b1_lockB</object-name>
   <object-name>b1_knobV</object-name>
   <object-name>b1_lockV</object-name>
   <object-name>b2</object-name>
   <object-name>b2_hood</object-name>
   <object-name>b2_fixatorL</object-name>
   <object-name>b2_fixatorR</object-name>
   <object-name>b2_knobG</object-name>
   <object-name>b2_lockG</object-name>
   <object-name>b2_knobD</object-name>
   <object-name>b2_lockD</object-name>
   <object-name>b2_knobE</object-name>
   <object-name>b2_lockE</object-name>
   <object-name>b4</object-name>
   <object-name>undercarriage</object-name>
</effect>

<!-- B1 Hood animation open part 1 (open)-->

 <animation>
   <type>slider</type>
   <object-name>b1_hood</object-name>
   <property>an24/R-836/b1_hood_anim1</property>
    <condition>
     <!--equals>
      <property>devices/status/keyboard/shift</property>
      <value>1</value>
     </equals-->
     <equals>
      <property>an24/R-836/b1_hood_anim2</property>
      <value>0</value>
     </equals>
    </condition>
   <interpolation>
    <entry><ind>0.0</ind><dep> 0</dep></entry>
    <entry><ind>0.35</ind><dep> 0</dep></entry>
    <entry><ind>0.5</ind><dep>0.002</dep></entry>
    <entry><ind>1.0</ind><dep>0.01</dep></entry>
   </interpolation>
  <axis>
    <x>-1.0</x>
    <y>0.0</y>
    <z>0.0</z>
  </axis>
    <action>
     <binding>
      <command>property-adjust</command>
      <property>an24/R-836/b1_hood_anim1</property>
      <factor>0.05</factor>
      <min>0</min>
      <max>1</max>
      <wrap>false</wrap>
     </binding>
     <binding>
      <command>nasal</command>
    <condition>
     <equals>
     <property>an24/R-836/b1_hood_anim1</property>
     <value>1</value>
     </equals>
    </condition>
      <script>
	interpolate("an24/R-836/b1_hood_anim1", 0.0, 0.2);
	interpolate("an24/R-836/b1_hood_anim2", 0.2, 0.2, 1.0, 1.0);
      </script>
     </binding>
    </action>
   <hovered>
    <binding>
      <command>set-tooltip</command>
      <tooltip-id>r836hoodb1</tooltip-id>
      <label>Scroll to Open</label>
    </binding>
   </hovered>
 </animation>

 <animation>
  <type>translate</type>
   <object-name>b1_fixatorL</object-name>
   <object-name>b1_fixatorR</object-name>
   <property>an24/R-836/b1_hood_anim1</property>
   <interpolation>
    <entry><ind>0.0</ind><dep> 0</dep></entry>
    <entry><ind>0.35</ind><dep> 0</dep></entry>
    <entry><ind>0.5</ind><dep>0.002</dep></entry>
    <entry><ind>1.0</ind><dep>0.01</dep></entry>
   </interpolation>
  <axis>
   <x>-1</x>
   <y>0</y>
   <z>0</z>
  </axis>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>b1_fixatorL</object-name>
   <property>an24/R-836/b1_hood_anim1</property>
   <factor>50</factor>
  <axis>
   <x>0</x>
   <y>0</y>
   <z>1</z>
  </axis>
  <center>
   <x-m>-0.1324</x-m>
   <y-m>0.0649</y-m>
   <z-m>0</z-m>
  </center>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>b1_fixatorR</object-name>
   <property>an24/R-836/b1_hood_anim1</property>
   <factor>50</factor>
  <axis>
   <x>0</x>
   <y>0</y>
   <z>-1</z>
  </axis>
  <center>
   <x-m>-0.1324</x-m>
   <y-m>-0.0679</y-m>
   <z-m>0</z-m>
  </center>
 </animation>

<!-- B1 Hood animation open part 2 (move) -->

 <animation>
  <type>translate</type>
   <object-name>b1_hood</object-name>
   <object-name>b1_fixatorL</object-name>
   <object-name>b1_fixatorR</object-name>
   <property>an24/R-836/b1_hood_anim2</property>
   <factor>0.14</factor>
  <axis>
   <x>-1</x>
   <y>0</y>
   <z>0</z>
  </axis>
 </animation>

 <animation>
  <type>translate</type>
   <object-name>b1_hood</object-name>
   <object-name>b1_fixatorL</object-name>
   <object-name>b1_fixatorR</object-name>
   <property>an24/R-836/b1_hood_anim2</property>
   <factor>0.35</factor>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>

 <animation>
  <type>translate</type>
   <object-name>b1_hood</object-name>
   <object-name>b1_fixatorL</object-name>
   <object-name>b1_fixatorR</object-name>
   <property>an24/R-836/b1_hood_anim2</property>
   <factor>0.575</factor>
  <axis>
   <x>0</x>
   <y>0</y>
   <z>-1</z>
  </axis>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>b1_hood</object-name>
   <object-name>b1_fixatorL</object-name>
   <object-name>b1_fixatorR</object-name>
   <property>an24/R-836/b1_hood_anim2</property>
   <factor>128</factor>
  <axis>
   <x>0</x>
   <y>0</y>
   <z>-1</z>
  </axis>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>b1_hood</object-name>
   <object-name>b1_fixatorL</object-name>
   <object-name>b1_fixatorR</object-name>
   <property>an24/R-836/b1_hood_anim2</property>
   <factor>27</factor>
  <axis>
   <x>0</x>
   <y>-1</y>
   <z>0</z>
  </axis>
 </animation>

 <!--animation>
   <type>rotate</type>
   <object-name>b1_hood</object-name>
   <object-name>b1_fixatorL</object-name>
   <object-name>b1_fixatorR</object-name>
   <property>an24/R-836/b1_hood_anim2</property>
   <factor>1</factor>
  <axis>
   <x>1</x>
   <y>0</y>
   <z>0</z>
  </axis>
 </animation-->

<!-- B1 Hood animation close -->

<animation>
  <type>pick</type>
   <object-name>b1_hood</object-name>
   <object-name>b1_fixatorL</object-name>
   <object-name>b1_fixatorR</object-name>
   <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
    <condition>
     <equals>
     <property>an24/R-836/b1_hood_anim2</property>
     <value>1</value>
     </equals>
    </condition>
      <script>
	interpolate("an24/R-836/b1_hood_anim1", 0.0, 0.8, 1.0, 0.2);
	interpolate("an24/R-836/b1_hood_anim2", 0.0, 1.0 );
      </script>
    </binding>
   </action>
 </animation>

<animation>
  <object-name>b1_knobA</object-name>
  <object-name>b1_knobB</object-name>
  <object-name>b1_knobV</object-name>
  <object-name>b1_lockA</object-name>
  <object-name>b1_lockB</object-name>
  <object-name>b1_lockV</object-name>
  <type>select</type>
  <condition>
   <not>
   <equals>
    <property>an24/R-836/b1_hood_anim2</property>
    <value>0.0</value>
   </equals>
   </not>
  </condition>
 </animation>

<!-- B2 Hood animation open part 1 (open)-->

 <animation>
   <type>slider</type>
   <object-name>b2_hood</object-name>
   <property>an24/R-836/b2_hood_anim1</property>
    <condition>
     <!--equals>
      <property>devices/status/keyboard/shift</property>
      <value>1</value>
     </equals-->
     <equals>
      <property>an24/R-836/b2_hood_anim2</property>
      <value>0</value>
     </equals>
    </condition>
   <interpolation>
    <entry><ind>0.0</ind><dep> 0</dep></entry>
    <entry><ind>0.35</ind><dep> 0</dep></entry>
    <entry><ind>0.5</ind><dep>0.002</dep></entry>
    <entry><ind>1.0</ind><dep>0.01</dep></entry>
   </interpolation>
  <axis>
    <x>-1.0</x>
    <y>0.0</y>
    <z>0.0</z>
  </axis>
    <action>
     <binding>
      <command>property-adjust</command>
      <property>an24/R-836/b2_hood_anim1</property>
      <factor>0.05</factor>
      <min>0</min>
      <max>1</max>
      <wrap>false</wrap>
     </binding>
     <binding>
      <command>nasal</command>
    <condition>
     <equals>
     <property>an24/R-836/b2_hood_anim1</property>
     <value>1</value>
     </equals>
    </condition>
      <script>
	interpolate("an24/R-836/b2_hood_anim1", 0.0, 0.2);
	interpolate("an24/R-836/b2_hood_anim2", 0.2, 0.2, 1.0, 1.0);
      </script>
     </binding>
    </action>
   <hovered>
    <binding>
      <command>set-tooltip</command>
      <tooltip-id>r836hoodb2</tooltip-id>
      <label>Scroll to Open</label>
    </binding>
   </hovered>
 </animation>

 <animation>
  <type>translate</type>
   <object-name>b2_fixatorL</object-name>
   <object-name>b2_fixatorR</object-name>
   <property>an24/R-836/b2_hood_anim1</property>
   <interpolation>
    <entry><ind>0.0</ind><dep> 0</dep></entry>
    <entry><ind>0.35</ind><dep> 0</dep></entry>
    <entry><ind>0.5</ind><dep>0.002</dep></entry>
    <entry><ind>1.0</ind><dep>0.01</dep></entry>
   </interpolation>
  <axis>
   <x>-1</x>
   <y>0</y>
   <z>0</z>
  </axis>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>b2_fixatorL</object-name>
   <property>an24/R-836/b2_hood_anim1</property>
   <factor>50</factor>
  <axis>
   <x>0</x>
   <y>0</y>
   <z>1</z>
  </axis>
  <center>
   <x-m>-0.1324</x-m>
   <y-m>0.0649</y-m>
   <z-m>0</z-m>
  </center>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>b2_fixatorR</object-name>
   <property>an24/R-836/b2_hood_anim1</property>
   <factor>50</factor>
  <axis>
   <x>0</x>
   <y>0</y>
   <z>-1</z>
  </axis>
  <center>
   <x-m>-0.1324</x-m>
   <y-m>-0.0679</y-m>
   <z-m>0</z-m>
  </center>
 </animation>

<!-- B2 Hood animation open part 2 (move)-->

 <animation>
  <type>translate</type>
   <object-name>b2_hood</object-name>
   <object-name>b2_fixatorL</object-name>
   <object-name>b2_fixatorR</object-name>
   <property>an24/R-836/b2_hood_anim2</property>
   <factor>0.32</factor>
  <axis>
   <x>-1</x>
   <y>0</y>
   <z>0</z>
  </axis>
 </animation>

 <animation>
  <type>translate</type>
   <object-name>b2_hood</object-name>
   <object-name>b2_fixatorL</object-name>
   <object-name>b2_fixatorR</object-name>
   <property>an24/R-836/b2_hood_anim2</property>
   <factor>0.45</factor>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
 </animation>

 <animation>
  <type>translate</type>
   <object-name>b2_hood</object-name>
   <object-name>b2_fixatorL</object-name>
   <object-name>b2_fixatorR</object-name>
   <property>an24/R-836/b2_hood_anim2</property>
   <factor>0.78</factor>
  <axis>
   <x>0</x>
   <y>0</y>
   <z>-1</z>
  </axis>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>b2_hood</object-name>
   <object-name>b2_fixatorL</object-name>
   <object-name>b2_fixatorR</object-name>
   <property>an24/R-836/b2_hood_anim2</property>
   <factor>92</factor>
  <axis>
   <x>0</x>
   <y>0</y>
   <z>-1</z>
  </axis>
 </animation>
 <animation>
   <type>rotate</type>
   <object-name>b2_hood</object-name>
   <object-name>b2_fixatorL</object-name>
   <object-name>b2_fixatorR</object-name>
   <property>an24/R-836/b2_hood_anim2</property>
   <factor>1</factor>
  <axis>
   <x>0</x>
   <y>-1</y>
   <z>0</z>
  </axis>
 </animation>

<!-- B2 Hood animation close -->

<animation>
  <type>pick</type>
   <object-name>b2_hood</object-name>
   <object-name>b2_fixatorL</object-name>
   <object-name>b2_fixatorR</object-name>
   <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
    <condition>
     <equals>
     <property>an24/R-836/b2_hood_anim2</property>
     <value>1</value>
     </equals>
    </condition>
      <script>
	interpolate("an24/R-836/b2_hood_anim1", 0.0, 0.8, 1.0, 0.2);
	interpolate("an24/R-836/b2_hood_anim2", 0.0, 1.0 );
      </script>
    </binding>
   </action>
 </animation>

 <animation>
  <object-name>b2_knobG</object-name>
  <object-name>b2_knobD</object-name>
  <object-name>b2_knobE</object-name>
  <object-name>b2_lockG</object-name>
  <object-name>b2_lockD</object-name>
  <object-name>b2_lockE</object-name>
  <type>select</type>
  <condition>
   <not>
   <equals>
    <property>an24/R-836/b2_hood_anim2</property>
    <value>0.0</value>
   </equals>
   </not>
  </condition>
 </animation>

<!--********** Knobs **********-->

 <animation>
   <type>knob</type>
   <object-name>b2_knobD</object-name>
   <property>an24/R-836/b2_knob_D</property>
    <condition>
     <property>an24/R-836/b2_lockD</property>
    </condition>
    <condition>
     <property>an24/R-836/b2_anim</property>
    </condition>
   <factor>30</factor>
  <center>
   <x-m>0.0</x-m>
   <y-m>0.0</y-m>
   <z-m>0.0901</z-m>
  </center>
  <axis>
    <x>-1.0</x>
    <y>0.0</y>
    <z>0.0</z>
  </axis>
    <action>
     <binding>
      <command>property-adjust</command>
      <property>an24/R-836/b2_knob_D</property>
      <factor>-1</factor>
      <min>0</min>
      <max>12</max>                
      <wrap>true</wrap>
     </binding>
    <binding>
      <command>nasal</command>
      <script>
	var d01 = ["1", "1", "1", "0", "0", "0", "1", "0", "0", "0", "0", "0"];
	setprop("/an24/R-836/b2_d01", d01[getprop("/an24/R-836/b2_knob_D")] );
#
	var d02 = ["1", "1", "1", "0", "0", "0", "0", "0", "0", "0", "0", "0"];
	setprop("/an24/R-836/b2_d02", d02[getprop("/an24/R-836/b2_knob_D")] );
#
	var d03 = ["1", "1", "0", "0", "0", "0", "0", "1", "0", "0", "0", "0"];
	setprop("/an24/R-836/b2_d03", d03[getprop("/an24/R-836/b2_knob_D")] );
#
	var d04 = ["1", "1", "0", "0", "0", "1", "0", "1", "0", "0", "0", "0"];
	setprop("/an24/R-836/b2_d04", d04[getprop("/an24/R-836/b2_knob_D")] );
#
	var d05 = ["1", "0", "1", "1", "1", "1", "0", "1", "0", "0", "0", "0"];
	setprop("/an24/R-836/b2_d05", d05[getprop("/an24/R-836/b2_knob_D")] );
#
	var d06 = ["1", "0", "1", "1", "0", "1", "0", "1", "0", "0", "0", "0"];
	setprop("/an24/R-836/b2_d06", d06[getprop("/an24/R-836/b2_knob_D")] );
#
	var d07 = ["1", "0", "0", "1", "1", "1", "0", "1", "0", "0", "0", "0"];
	setprop("/an24/R-836/b2_d07", d07[getprop("/an24/R-836/b2_knob_D")] );
#
	var d08 = ["1", "0", "0", "1", "0", "1", "1", "1", "0", "0", "0", "0"];
	setprop("/an24/R-836/b2_d08", d08[getprop("/an24/R-836/b2_knob_D")] );
#
	var d09 = ["1", "0", "0", "1", "0", "1", "0", "1", "0", "0", "0", "0"];
	setprop("/an24/R-836/b2_d09", d09[getprop("/an24/R-836/b2_knob_D")] );
#
	var d10 = ["1", "0", "0", "1", "0", "1", "0", "1", "1", "0", "0", "0"];
	setprop("/an24/R-836/b2_d10", d10[getprop("/an24/R-836/b2_knob_D")] );
#
	var d11 = ["0", "0", "1", "1", "1", "1", "0", "1", "1", "0", "0", "0"];
	setprop("/an24/R-836/b2_d11", d11[getprop("/an24/R-836/b2_knob_D")] );
#
	var d12 = ["0", "0", "0", "1", "1", "1", "0", "1", "1", "0", "0", "0"];
	setprop("/an24/R-836/b2_d12", d12[getprop("/an24/R-836/b2_knob_D")] );
      </script>
    </binding>
     <binding>
      <command>nasal</command>
       <script>
	interpolate("an24/R-836/adjust-in-progress", 1.0, 0.2, 0.0, 5.0);
       </script>
     </binding>
    </action>
 </animation>

 <animation>
   <type>knob</type>
   <object-name>b2_lockD</object-name>
     <!--condition>
       <property>devices/status/keyboard/shift</property>
     </condition-->
   <property>an24/R-836/b2_lockD</property>
   <factor>52</factor>
  <center>
   <x-m>0.0</x-m>
   <y-m>0.0</y-m>
   <z-m>0.0901</z-m>
  </center>
  <axis>
    <x>-1.0</x>
    <y>0.0</y>
    <z>0.0</z>
  </axis>
    <action>
     <binding>
      <command>property-adjust</command>
      <property>an24/R-836/b2_lockD</property>
      <factor>1</factor>
      <min>0</min>
      <max>1</max>
      <wrap>false</wrap>
     </binding>
    </action>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>b2_lockD</object-name>
   <property>an24/R-836/b2_knob_D</property>
   <factor>30</factor>
  <center>
   <x-m>0.0</x-m>
   <y-m>0.0</y-m>
   <z-m>0.0901</z-m>
  </center>
  <axis>
    <x>-1.0</x>
    <y>0.0</y>
    <z>0.0</z>
  </axis>
 </animation>

 <!-- Text OSG -->

  <animation>
    <type>select</type>
    <object-name>textosg</object-name>
    <condition>
      <property>sim/panel-hotspots</property>
    </condition>
  </animation>

  <text>
    <name>textosg</name>
    <type type="string">literal</type>
    <text type="string">R-836 Radio</text>
    <draw-text type="bool">true</draw-text>
    <font>Helvetica.txf</font>
    <character-size type="double">0.06</character-size>
    <character-aspect-ratio type="double">1.0</character-aspect-ratio>
    <axis-alignment>yz-plane</axis-alignment>
    <max-height>0.16</max-height>
    <max-width>0.16</max-width>
    <font-resolution>
      <width type="int">64</width>
      <height type="int">64</height>
    </font-resolution>
    <alignment>center-center</alignment>
    <offsets>
      <x-m>  -0.2 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.000 </z-m>
        <heading-deg>180</heading-deg>
    </offsets>
  </text>

</PropertyList>
