<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- #######################################################################################
     # Lake of Constance Hangar :: M.Kraus                                                 #
     # Septemper 2013                                                                      #
     # This file is licenced under the terms of the GNU General Public Licence V2 or later #
     #                                                                                     #
     # Updated BARANGER Emmanuel    2015                                                   #
     # Updated BARANGER Emmanuel 09/2022                                                   #
     #######################################################################################
-->
<PropertyList>

  <path>altset.ac</path>

  <animation>
    <object-name>AltSet.bezel</object-name>
    <object-name>AltSet.cancel</object-name>
    <object-name>AltSet.knob</object-name>
    <object-name>APalt1</object-name>
    <object-name>APalt2</object-name>
    <object-name>APalt3</object-name>
    <object-name>APalt4</object-name>
    <object-name>APalt5</object-name>

    <object-name>AltSet.plane</object-name>
    <object-name>vitre</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>AltSet.bezel</object-name>
    <object-name>AltSet.cancel</object-name>
    <object-name>AltSet.knob</object-name>
    <object-name>APalt1</object-name>
    <object-name>APalt2</object-name>
    <object-name>APalt3</object-name>
    <object-name>APalt4</object-name>
    <object-name>APalt5</object-name>
    <object-name>AltSet.plane</object-name>
    <object-name>vitre</object-name>
  </animation>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>../../../../Effects/Glass/glass</inherits-from>
    <object-name>vitre</object-name>
  </effect>

  <animation>
    <type>material</type>
    <object-name>AltSet.cancel</object-name>
    <object-name>AltSet.knob</object-name>
    <object-name>APalt1</object-name>
    <object-name>APalt2</object-name>
    <object-name>APalt3</object-name>
    <object-name>APalt4</object-name>
    <object-name>APalt5</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>controls/lighting/instruments-norm</factor-prop>
      <red>   0.50 </red>
      <green> 0.40 </green>
      <blue>  0.30 </blue>
    </emission>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>APalt1</object-name>
    <property>/autopilot/settings/target-altitude-ft</property>
    <factor>0.00001</factor>
    <step>10000</step>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>APalt2</object-name>
    <property>/autopilot/settings/target-altitude-ft</property>
    <factor>0.0001</factor>
    <step>1000</step>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>APalt3</object-name>
    <property>/autopilot/settings/target-altitude-ft</property>
    <factor>0.001</factor>
    <step>100</step>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>APalt4</object-name>
    <property>/autopilot/settings/target-altitude-ft</property>
    <factor>0.01</factor>
    <step>10</step>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>APalt5</object-name>
    <property>/autopilot/settings/target-altitude-ft</property>
    <factor>0.1</factor>
    <step>1</step>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Hotspots -->
  <animation>
    <type>translate</type>
    <object-name>AltSet.cancel</object-name>
    <property>/instrumentation/alt-set/knob-pos</property>
    <factor> -0.003 </factor>
    <center>
      <x-m>  0.007 </x-m>
      <y-m>  0.026 </y-m>
      <z-m> -0.026 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>AltSet.cancel</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <binding>
        <command>property-assign</command>
        <property>/autopilot/settings/target-altitude-ft</property>
        <value>0.0</value>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>/sim/sound/switch2</property>
      </binding>
      <binding>
        <command>property-assign</command>
        <property>/instrumentation/alt-set/knob-pos</property>
        <value>1.0</value>
      </binding>
      <mod-up>
        <binding>
          <command>property-assign</command>
          <property>/instrumentation/alt-set/knob-pos</property>
          <value>0.0</value>
        </binding>
      </mod-up>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>AltSet.knob</object-name>
    <property>/autopilot/settings/target-altitude-ft</property>
    <factor> 0.1 </factor>
    <center>
      <x-m> 0.0000 </x-m>
      <y-m> 0.0278 </y-m>
      <z-m> 0.0000 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>AltSet.plane</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <interval-sec>0.2</interval-sec>
      <binding>
        <condition>
          <not><property>devices/status/keyboard/shift</property></not>
          <not><property>devices/status/keyboard/super</property></not>
        </condition>
        <command>property-adjust</command>
        <property>/autopilot/settings/target-altitude-ft</property>
        <step>-1</step>
        <min>0.0</min>
        <max>40000.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <condition>
          <or>
            <property>devices/status/keyboard/shift</property>
            <property>devices/status/keyboard/super</property>
          </or>
        </condition>
        <command>property-adjust</command>
        <property>/autopilot/settings/target-altitude-ft</property>
        <step>-10</step>
        <min>0.0</min>
        <max>40000.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>/sim/sound/switch3</property>
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <interval-sec>0.2</interval-sec>
      <binding>
        <condition>
          <not><property>devices/status/keyboard/shift</property></not>
          <not><property>devices/status/keyboard/super</property></not>
        </condition>
        <command>property-adjust</command>
        <property>/autopilot/settings/target-altitude-ft</property>
        <step>1</step>
        <min>0.0</min>
        <max>40000.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <condition>
          <or>
            <property>devices/status/keyboard/shift</property>
            <property>devices/status/keyboard/super</property>
          </or>
        </condition>
        <command>property-adjust</command>
        <property>/autopilot/settings/target-altitude-ft</property>
        <step>10</step>
        <min>0.0</min>
        <max>40000.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>/sim/sound/switch3</property>
      </binding>
    </action>
    <action>
      <button>3</button>
      <binding>
        <condition>
          <not><property>devices/status/keyboard/shift</property></not>
          <not><property>devices/status/keyboard/super</property></not>
        </condition>
        <command>property-adjust</command>
        <property>/autopilot/settings/target-altitude-ft</property>
        <step>-100</step>
        <min>0.0</min>
        <max>40000.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <condition>
          <or>
            <property>devices/status/keyboard/shift</property>
            <property>devices/status/keyboard/super</property>
          </or>
        </condition>
        <command>property-adjust</command>
        <property>/autopilot/settings/target-altitude-ft</property>
        <step>-1000</step>
        <min>0.0</min>
        <max>40000.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>/sim/sound/switch3</property>
      </binding>
    </action>
    <action>
      <button>4</button>
      <binding>
        <condition>
          <not><property>devices/status/keyboard/shift</property></not>
          <not><property>devices/status/keyboard/super</property></not>
        </condition>
        <command>property-adjust</command>
        <property>/autopilot/settings/target-altitude-ft</property>
        <step>100</step>
        <min>0.0</min>
        <max>40000.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <condition>
          <or>
            <property>devices/status/keyboard/shift</property>
            <property>devices/status/keyboard/super</property>
          </or>
        </condition>
        <command>property-adjust</command>
        <property>/autopilot/settings/target-altitude-ft</property>
        <step>1000</step>
        <min>0.0</min>
        <max>40000.0</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <command>property-toggle</command>
        <property>/sim/sound/switch3</property>
      </binding>
    </action>
  </animation>

</PropertyList>
