<?xml version="1.0"?>

<!-- 747 vertical mode switch :

-->

<PropertyList>
 <name>Vertical mode switch</name>
 <w-base>200</w-base>
 <h-base>100</h-base>


 <layers>
  <layer>
   <name>background</name>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/747-ap-mode.rgb</path>
    <x1>0.0</x1>
    <y1>0.0</y1>
    <x2>1.0</x2>
    <y2>0.5</y2>
   </texture>
   <w>200</w>
   <h>100</h>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>-5</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>-20</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>knob rotation</name>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/navcom-radios.rgb</path>
    <x1>0.53125</x1>
    <x2>0.59765625</x2>
    <y1>0.05859375</y1>
    <y2>0.1484375</y2>
   </texture>
   <w>40</w>
   <h>50</h>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>-1</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>-5</offset>
    </transformation>
    <transformation>
     <type>rotation</type>
     <property>/controls/autoflight/vertical-selector</property>
     <scale>45</scale>
     <offset>20</offset>      <!-- V/S -->
    </transformation>
    <transformation>
    <type>y-shift</type>
    <offset>-4</offset>
    </transformation>
   </transformations>
  </layer>

 </layers>

 <actions>

  <action>
   <name>to the left</name>
   <button>0</button>
   <x>-50</x>
   <y>-27</y>
   <w>50</w>
   <h>50</h>
   <binding>
    <command>property-adjust</command>
    <property>/controls/autoflight/vertical-selector</property>
    <step>-1</step>
    <min>-1</min>
    <max>0</max>
   </binding>
   <binding>
    <command>nasal</command>
    <script>globals.Boeing747.autopilotsystem.apverticalexport();</script>
   </binding>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/generic/click</property>
   </binding>
  </action>

  <action>
   <name>to the right</name>
   <button>0</button>
   <x>0</x>
   <y>-27</y>
   <w>50</w>
   <h>50</h>
   <binding>
    <command>property-adjust</command>
    <property>/controls/autoflight/vertical-selector</property>
    <step>1</step>
    <min>-1</min>
    <max>0</max>
   </binding>
   <binding>
    <command>nasal</command>
    <script>globals.Boeing747.autopilotsystem.apverticalexport();</script>
   </binding>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/generic/click</property>
   </binding>
  </action>

 </actions>

</PropertyList>
