<?xml version="1.0"?>

<!-- Lockheed 1049 terrain warning selector. -->

<PropertyList>

 <name>Terrain selector</name>
 <w-base>102</w-base>
 <h-base>102</h-base>


 <layers>

  <layer>
   <name>Battery selector</name>
   <type>switch</type>

   <layer>
    <name>on</name>
    <condition>
     <equals>
      <property>/instrumentation/terrain-warning/selector</property>
      <value>2</value>
     </equals>
    </condition>
    <texture>
     <path>Aircraft/Lockheed1049/Panels/Instruments/Textures/switches.rgb</path>
     <x1>0.0</x1>
     <y1>0.74</y1>
     <x2>0.25</x2>
     <y2>1.0</y2>
    </texture>
    <w>40</w>
    <h>40</h>
    <transformations>
     <transformation>
      <type>y-shift</type>
      <offset>2.75</offset>
     </transformation>
    </transformations>
   </layer>

   <layer>
    <name>3rd state</name>
    <condition>
     <equals>
      <property>/instrumentation/terrain-warning/selector</property>
      <value>1</value>
     </equals>
    </condition>
    <texture>
     <path>Aircraft/Lockheed1049/Panels/Instruments/Textures/switches.rgb</path>
     <x1>0.0</x1>
     <y1>0.47</y1>
     <x2>0.25</x2>
     <y2>0.745</y2>
    </texture>
    <w>40</w>
    <h>42</h>
    <transformations>
     <transformation>
      <type>y-shift</type>
      <offset>1.5</offset>
     </transformation>
    </transformations>
   </layer>

   <layer>
    <name>off</name>
    <texture>
     <path>Aircraft/Lockheed1049/Panels/Instruments/Textures/switches.rgb</path>
     <x1>0.0</x1>
     <y1>0.0</y1>
     <x2>0.25</x2>
     <y2>0.31</y2>
    </texture>
    <w>40</w>
    <h>47</h>
   </layer>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>-34</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>-3</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>Title on</name>
   <type>text</type>
   <point-size>15</point-size>
   <color>
    <red>1.0</red>
    <green>1.0</green>
    <blue>1.0</blue>
   </color>
   <chunks>
    <chunk>
     <type>literal</type>
     <text>2000</text>
    </chunk>
   </chunks>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>-52</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>39</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>Title 3</name>
   <type>text</type>
   <point-size>15</point-size>
   <color>
    <red>1.0</red>
    <green>1.0</green>
    <blue>1.0</blue>
   </color>
   <chunks>
    <chunk>
     <type>literal</type>
     <text>1000</text>
    </chunk>
   </chunks>
   <transformations>
    <transformation>
     <type>rotation</type>
     <offset>90</offset>
    </transformation>
    <transformation>
     <type>x-shift</type>
     <offset>-21</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>8</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>Title off</name>
   <type>text</type>
   <point-size>15</point-size>
   <color>
    <red>1.0</red>
    <green>1.0</green>
    <blue>1.0</blue>
   </color>
   <chunks>
    <chunk>
     <type>literal</type>
     <text>500</text>
    </chunk>
   </chunks>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>-46</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>-47</offset>
    </transformation>
   </transformations>
  </layer>

 </layers>

 <actions>

  <action>
   <name>Increment</name>
   <button>0</button>
   <x>-55</x>
   <y>-21</y>
   <w>42</w>
   <h>42</h>
   <binding>
    <command>property-adjust</command>
    <property>/instrumentation/terrain-warning/selector</property>
    <step>1</step>
    <min>0</min>
    <max>2</max>
    <wrap>false</wrap>
   </binding>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/generic/click</property>
   </binding>
  </action>

  <action>
   <name>Decrement</name>
   <button>1</button>
   <x>-55</x>
   <y>-21</y>
   <w>42</w>
   <h>42</h>
   <binding>
    <command>property-adjust</command>
    <property>/instrumentation/terrain-warning/selector</property>
    <step>-1</step>
    <min>0</min>
    <max>2</max>
    <wrap>false</wrap>
   </binding>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/generic/click</property>
   </binding>
  </action>

<!--
  <action>
   <name>Select 1000 ft</name>
   <button>0</button>
   <x>-5</x>
   <y>-21</y>
   <w>42</w>
   <h>42</h>
   <binding>
    <command>property-assign</command>
    <property>/instrumentation/terrain-warning/selector-ft</property>
    <value>1000.0</value>
   </binding>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/generic/click</property>
   </binding>
  </action>
-->

 </actions>
 
</PropertyList>
