<?xml version="1.0"?>

<!-- engine ignition :

     - includes the cutoff.
-->

<PropertyList>
 <name>Engine ignition</name>
 <w-base>102</w-base>
 <h-base>102</h-base>

 <params>
  <control-starter>/controls/engines/engine[0]/starter</control-starter>
  <control-cutoff>/controls/engines/engine[0]/cutoff</control-cutoff>
  <num>/systems/engines/engine[0]/engine-num</num>
 </params>


 <layers>

  <layer>
   <name>Engine ignition</name>
   <type>switch</type>

   <layer>
    <name>3rd state</name>
    <condition>
     <and>
      <property alias="../../../../../../params/control-starter"/>
      <not>
       <property alias="../../../../../../../params/control-cutoff"/>
      </not>
     </and>
    </condition>
    <texture>
     <path>Aircraft/Concorde/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>on</name>
    <condition>
     <and>
      <property alias="../../../../../../params/control-cutoff"/>
      <not>
       <property alias="../../../../../../../params/control-starter"/>
      </not>
     </and>
    </condition>
    <texture>
     <path>Aircraft/Concorde/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>

   <layer>
    <name>off</name>
    <texture>
     <path>Aircraft/Concorde/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>

   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>16</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>-3</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>Title 3</name>
   <condition>
    <or>
     <equals>
      <property alias="../../../../../../params/num"/>
      <value>2</value>
     </equals>
     <equals>
      <property alias="../../../../../../params/num"/>
      <value>4</value>
     </equals>
    </or>
   </condition>
   <type>text</type>
   <point-size>10</point-size>
   <color>
    <red>1.0</red>
    <green>1.0</green>
    <blue>1.0</blue>
   </color>
   <chunks>
    <chunk>
     <type>literal</type>
     <text>START</text>
    </chunk>
   </chunks>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>-47</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>23</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>Title off</name>
   <condition>
    <or>
     <equals>
      <property alias="../../../../../../params/num"/>
      <value>2</value>
     </equals>
     <equals>
      <property alias="../../../../../../params/num"/>
      <value>4</value>
     </equals>
    </or>
   </condition>
   <type>text</type>
   <point-size>10</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>-38</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>-7</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>Title on</name>
   <condition>
    <or>
     <equals>
      <property alias="../../../../../../params/num"/>
      <value>2</value>
     </equals>
     <equals>
      <property alias="../../../../../../params/num"/>
      <value>4</value>
     </equals>
    </or>
   </condition>
   <type>text</type>
   <point-size>10</point-size>
   <color>
    <red>1.0</red>
    <green>1.0</green>
    <blue>1.0</blue>
   </color>
   <chunks>
    <chunk>
     <type>literal</type>
     <text>CUTOFF</text>
    </chunk>
   </chunks>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>-50</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>-37</offset>
    </transformation>
   </transformations>
  </layer>

 </layers>

 <actions>

  <action>
   <name>Toggle cutoff</name>
   <condition>
    <not>
     <property alias="../../../../../params/control-cutoff"/>
    </not>
   </condition>
   <button>0</button>
   <x>-37</x>
   <y>-21</y>
   <w>32</w>
   <h>42</h>
   <binding>
    <command>property-toggle</command>
    <property alias="../../../../params/control-cutoff"/>
   </binding>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/generic/click</property>
   </binding>
  </action>

  <action>
   <name>Toggle starter</name>
   <condition>
    <property alias="../../../../params/control-cutoff"/>
   </condition>
   <button>0</button>
   <x>-37</x>
   <y>-21</y>
   <w>32</w>
   <h>42</h>
   <binding>
    <command>property-assign</command>
    <property alias="../../../../params/control-starter"/>
    <value>true</value>
   </binding>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/generic/click</property>
   </binding>
  </action>

  <action>
   <name>Ignition</name>
   <condition>
    <and>
     <property alias="../../../../../params/control-cutoff"/>
     <property alias="../../../../../params/control-starter"/>
    </and>
   </condition>
   <button>0</button>
   <x>-5</x>
   <y>-21</y>
   <w>42</w>
   <h>42</h>
   <binding>
    <command>property-toggle</command>
    <property alias="../../../../params/control-cutoff"/>
   </binding>
   <binding>
    <command>property-toggle</command>
    <property>/instrumentation/generic/click</property>
   </binding>
  </action>

 </actions>

</PropertyList>
