<?xml version="1.0"?>

<!-- Autopilot switch -->

<PropertyList>

 <name>Autopilot switch</name>
 <w-base>120</w-base>
 <h-base>120</h-base>


 <layers>

  <layer>
   <name>background</name>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/747-black-bg.rgb</path>
   </texture>
    <w>50</w>
    <h>10</h>
   <transformations>
    <transformation>
     <type>rotation</type>
     <offset>90</offset>
    </transformation>
    <transformation>
     <type>x-shift</type>
     <offset>-10</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>-30</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>Autopilot switch</name>
   <type>switch</type>
   <layer>
    <name>on</name>
    <condition>
     <property>/controls/autoflight/autopilot[0]/engage</property>
    </condition>
    <texture>
     <path>Aircraft/747-200/Panels/Instruments/Textures/747-white-button.rgb</path>
     <x1>0.0</x1>
     <y1>1.0</y1>
     <x2>0.0</x2>
     <y2>1.0</y2>
    </texture>
    <w>40</w>
    <h>20</h>
    <transformations>
     <transformation>
      <type>y-shift</type>
      <offset>40.0</offset>
     </transformation>
    </transformations>
   </layer>
   <layer>
    <name>off</name>
    <texture>
     <path>Aircraft/747-200/Panels/Instruments/Textures/747-white-button.rgb</path>
     <x1>0.0</x1>
     <y1>1.0</y1>
     <x2>0.0</x2>
     <y2>1.0</y2>
    </texture>
    <w>40</w>
    <h>20</h>
   </layer>
   <layer>
    <name>3rd state</name>
    <texture>
     <path>Aircraft/747-200/Panels/Instruments/Textures/747-white-button.rgb</path>
     <x1>0.0</x1>
     <y1>1.0</y1>
     <x2>0.0</x2>
     <y2>1.0</y2>
    </texture>
    <w>40</w>
    <h>20</h>
    <transformations>
     <transformation>
      <type>y-shift</type>
      <offset>10.0</offset>
     </transformation>
    </transformations>
   </layer>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>-30</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>-9</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>Title on</name>
   <type>text</type>
   <point-size>12</point-size>
   <color>
    <red>1.0</red>
    <green>1.0</green>
    <blue>1.0</blue>
   </color>
   <chunks>
    <chunk>
     <type>literal</type>
     <text>COMMAND</text>
    </chunk>
   </chunks>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>-10</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>50</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>Title 3</name>
   <type>text</type>
   <point-size>12</point-size>
   <color>
    <red>1.0</red>
    <green>1.0</green>
    <blue>1.0</blue>
   </color>
   <chunks>
    <chunk>
     <type>literal</type>
     <text>MAN</text>
    </chunk>
   </chunks>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>0</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>5</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>Title off</name>
   <type>text</type>
   <point-size>12</point-size>
   <color>
    <red>1.0</red>
    <green>1.0</green>
    <blue>1.0</blue>
   </color>
   <chunks>
    <chunk>
     <type>literal</type>
     <text>OFF</text>
    </chunk>
   </chunks>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>0</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>-35</offset>
    </transformation>
   </transformations>
  </layer>

 </layers>

 <actions>

<!--
  <action>
   <name>Manual</name>
   <button>0</button>
   <x>-5</x>
   <y>-21</y>
   <w>42</w>
   <h>42</h>
   <binding>
    <command>property-assign</command>
    <property>/autopilot/locks/altitude</property>
    <value></value>
   </binding>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/generic/click</property>
   </binding>
  </action>
-->

  <action>
   <name>Toggle autopilot</name>
   <button>0</button>
   <x>-50</x>
   <y>-21</y>
   <w>42</w>
   <h>62</h>
   <binding>
    <command>property-toggle</command>
    <property>/controls/autoflight/autopilot[0]/engage</property>
   </binding>
   <binding>
    <command>nasal</command>
    <script>globals.Boeing747.autopilotsystem.apengageexport();</script>
   </binding>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/generic/click</property>
   </binding>
  </action>

 </actions>
 
</PropertyList>
