<?xml version="1.0"?>

<!-- Lockheed 1049 deviation indicator switch.
-->

<PropertyList>

 <name>Deviation indicator switch</name>
 <w-base>156</w-base>
 <h-base>52</h-base>


 <layers>

  <layer>
   <name>pointer switch</name>
   <type>switch</type>

   <layer>
    <condition>
     <property>/instrumentation/deviation-indicator/frequency</property>
    </condition>
    <name>on</name>
    <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>3</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>0</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>0</offset>
     </transformation>
     <transformation>
      <type>rotation</type>
      <offset>-90</offset>
     </transformation>
   </transformations>
  </layer>

  <layer>
   <name>VOR 1</name>
   <type>switch</type>

   <layer>
    <name>on</name>
    <type>group</type>
    <condition>
     <property>/instrumentation/nav[0]/in-range</property>
    </condition>

    <layer include="l1049-bulb-led-on.xml">
     <w>30</w>
     <h>30</h>
    </layer>
    <layer>
     <name>Lens orange</name>
     <texture>
      <path>Aircraft/Lockheed1049/Panels/Instruments/Textures/l1049-led.rgb</path>
      <x1>0.25</x1>
      <y1>0.25</y1>
      <x2>0.5</x2>
      <y2>0.5</y2>
     </texture>
     <w>30</w>
     <h>30</h>
     <emissive>true</emissive>
    </layer>
   </layer>

   <layer>
    <name>off</name>
    <type>group</type>

    <layer include="l1049-bulb-led-off.xml">
     <w>30</w>
     <h>30</h>
    </layer>
    <layer>
     <name>Lens orange</name>
     <texture>
      <path>Aircraft/Lockheed1049/Panels/Instruments/Textures/l1049-led.rgb</path>
      <x1>0.25</x1>
      <y1>0.25</y1>
      <x2>0.5</x2>
      <y2>0.5</y2>
     </texture>
     <w>30</w>
     <h>30</h>
    </layer>
   </layer>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>-57</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>0</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>VOR 2</name>
   <type>switch</type>

   <layer>
    <name>on</name>
    <type>group</type>
    <condition>
     <property>/instrumentation/nav[1]/in-range</property>
    </condition>

    <layer include="l1049-bulb-led-on.xml">
     <w>30</w>
     <h>30</h>
    </layer>
    <layer>
     <name>Lens orange</name>
     <texture>
      <path>Aircraft/Lockheed1049/Panels/Instruments/Textures/l1049-led.rgb</path>
      <x1>0.25</x1>
      <y1>0.25</y1>
      <x2>0.5</x2>
      <y2>0.5</y2>
     </texture>
     <w>30</w>
     <h>30</h>
     <emissive>true</emissive>
    </layer>
   </layer>

   <layer>
    <name>off</name>
    <type>group</type>

    <layer include="l1049-bulb-led-off.xml">
     <w>30</w>
     <h>30</h>
    </layer>
    <layer>
     <name>Lens orange</name>
     <texture>
      <path>Aircraft/Lockheed1049/Panels/Instruments/Textures/l1049-led.rgb</path>
      <x1>0.25</x1>
      <y1>0.25</y1>
      <x2>0.5</x2>
      <y2>0.5</y2>
     </texture>
     <w>30</w>
     <h>30</h>
    </layer>
   </layer>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>47</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>0</offset>
    </transformation>
   </transformations>
  </layer>

 </layers>

 <actions>

  <action>
   <name>Toggle</name>
   <button>0</button>
   <x>-25</x>
   <y>-23</y>
   <w>44</w>
   <h>44</h>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/deviation-indicator/frequency</property>
   </binding>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/generic/click</property>
   </binding>
  </action>

 </actions>
 
</PropertyList>
