<Gauge Name="L188 ECU Right" Version="1.0">
   <Image Name="L188_Mix_Background.bmp" UseTransparency="Yes"/>
   <Size X="320" Y="85"/>

 <!-- Mixture Levers -->
    <Element>
      <Image Name="L188_Mix_short.bmp" ImageSizes="20,55,20,55" UseTransparency="Yes">
         <Axis X="0" Y="0"/>
      </Image>
      <Shift>
         <Value Minimum="0" Maximum="1">(A:general eng1 mixture lever position,part)</Value>
         <Nonlinearity>
            <Item Value="0" X="5" Y="35"/>
            <Item Value="1" X="5" Y="15"/>
         </Nonlinearity>
      </Shift>
   </Element>
    <Element>
      <Image Name="L188_Mix_short.bmp" ImageSizes="20,55,20,55" UseTransparency="Yes">
         <Axis X="0" Y="0"/>
      </Image>
      <Shift>
         <Value Minimum="0" Maximum="1">(A:general eng2 mixture lever position,part)</Value>
         <Nonlinearity>
            <Item Value="0" X="120" Y="35"/>
            <Item Value="1" X="120" Y="15"/>
         </Nonlinearity>
      </Shift>
   </Element>
    <Element>
      <Image Name="L188_Mix_short.bmp" ImageSizes="20,55,20,55" UseTransparency="Yes">
         <Axis X="0" Y="0"/>
      </Image>
      <Shift>
         <Value Minimum="0" Maximum="1">(A:general eng3 mixture lever position,part)</Value>
         <Nonlinearity>
            <Item Value="0" X="181" Y="30"/>
            <Item Value="1" X="181" Y="10"/>
         </Nonlinearity>
      </Shift>
   </Element>
    <Element>
      <Image Name="L188_Mix_short.bmp" ImageSizes="20,55,20,55" UseTransparency="Yes">
         <Axis X="0" Y="0"/>
      </Image>
      <Shift>
         <Value Minimum="0" Maximum="1">(A:general eng4 mixture lever position,part)</Value>
         <Nonlinearity>
            <Item Value="0" X="295" Y="30"/>
            <Item Value="1" X="294" Y="10"/>
         </Nonlinearity>
      </Shift>
   </Element>

 <!-- Prop Pitch Switches -->
   <Element>
      <Position X="34" Y="45"/>
      <Select>
         <Value>
            (G:Var1) if{
               (G:Var1) d 0 &gt; if{ -- (&gt;G:Var1) 2 } els{ ++ (&gt;G:Var1) 1 } quit
            }
            0
         </Value>
         <Case Value="0">
            <Image Name="SwitchToggleL_MI.bmp" ImageSizes="17,59,17,59"/> <!-- OFF -->
         </Case>
         <Case Value="1">
            <Image Name="SwitchToggleL_DN.bmp" ImageSizes="17,59,17,59"/> <!-- CLOSE -->
         </Case>
         <Case Value="2">
            <Image Name="SwitchToggleL_UP.bmp" ImageSizes="17,59,17,59"/>  <!-- OPEN -->
         </Case>
      </Select>
   </Element>
   <Element>
      <Position X="100" Y="42"/>
      <Select>
         <Value>
            (G:Var2) if{
               (G:Var2) d 0 &gt; if{ -- (&gt;G:Var2) 2 } els{ ++ (&gt;G:Var2) 1 } quit
            }
            0
         </Value>
         <Case Value="0">
            <Image Name="SwitchToggleL_MI.bmp" ImageSizes="17,59,17,59"/> <!-- OFF -->
         </Case>
         <Case Value="1">
            <Image Name="SwitchToggleL_DN.bmp" ImageSizes="17,59,17,59"/> <!-- CLOSE -->
         </Case>
         <Case Value="2">
            <Image Name="SwitchToggleL_UP.bmp" ImageSizes="17,59,17,59"/>  <!-- OPEN -->
         </Case>
      </Select>
   </Element>
   <Element>
      <Position X="220" Y="40"/>
      <Select>
         <Value>
            (G:Var3) if{
               (G:Var3) d 0 &gt; if{ -- (&gt;G:Var3) 2 } els{ ++ (&gt;G:Var3) 1 } quit
            }
            0
         </Value>
         <Case Value="0">
            <Image Name="SwitchToggleL_MI.bmp" ImageSizes="17,59,17,59"/> <!-- OFF -->
         </Case>
         <Case Value="1">
            <Image Name="SwitchToggleL_DN.bmp" ImageSizes="17,59,17,59"/> <!-- CLOSE -->
         </Case>
         <Case Value="2">
            <Image Name="SwitchToggleL_UP.bmp" ImageSizes="17,59,17,59"/>  <!-- OPEN -->
         </Case>
      </Select>
   </Element>
   <Element>
      <Position X="286" Y="38"/>
      <Select>
         <Value>
            (G:Var4) if{
               (G:Var4) d 0 &gt; if{ -- (&gt;G:Var4) 2 } els{ ++ (&gt;G:Var4) 1 } quit
            }
            0
         </Value>
         <Case Value="0">
            <Image Name="SwitchToggleL_MI.bmp" ImageSizes="17,59,17,59"/> <!-- OFF -->
         </Case>
         <Case Value="1">
            <Image Name="SwitchToggleL_DN.bmp" ImageSizes="17,59,17,59"/> <!-- CLOSE -->
         </Case>
         <Case Value="2">
            <Image Name="SwitchToggleL_UP.bmp" ImageSizes="17,59,17,59"/>  <!-- OPEN -->
         </Case>
      </Select>
   </Element>


 <!-- Mouse routine macros for the Prop Pitch Switches -->

   <Macro Name="Open">
      15 (&gt;G:Var@1)
      (A:General eng propeller lever position:@1, percent) 10 + 100 min 100 / 16384 * (&gt;K:PROP_PITCH@1_SET)
   </Macro>
   <Macro Name="Close">
      -15 (&gt;G:Var@1)
      (A:General eng propeller lever position:@1, percent) 10 - 0 max 100 / 16384 * (&gt;K:PROP_PITCH@1_SET)
   </Macro>

   <Mouse>

 <!-- Mouse specifications for the Prop Pitch Switches -->

      <Area Left="35" Width="20" Top="45" Height="40">
         <Tooltip ID="TOOLTIPTEXT_THROTTLE_ENG1_PROPELLER_PERCENT"/>
         <Area Bottom="30">
            <Cursor Type="UpArrow"/>
            <Click Repeat="Yes">(L:Prop1_Feathered,bool) 0 == if{ @Open(1) }</Click>
         </Area>
         <Area Top="30">
            <Cursor Type="DownArrow"/>
            <Click Repeat="Yes">@Close(1)</Click>
         </Area>
      </Area>
      <Area Left="100" Width="20" Top="44" Height="40">
         <Tooltip ID="TOOLTIPTEXT_THROTTLE_ENG2_PROPELLER_PERCENT"/>
         <Area Bottom="30">
            <Cursor Type="UpArrow"/>
            <Click Repeat="Yes">(L:Prop2_Feathered,bool) 0 == if{ @Open(2) }</Click>
         </Area>
         <Area Top="30">
            <Cursor Type="DownArrow"/>
            <Click Repeat="Yes">@Close(2)</Click>
         </Area>
      </Area>
      <Area Left="225" Width="20" Top="42" Height="40">
         <Tooltip ID="TOOLTIPTEXT_THROTTLE_ENG3_PROPELLER_PERCENT"/>
         <Area Bottom="30">
            <Cursor Type="UpArrow"/>
            <Click Repeat="Yes">(L:Prop3_Feathered,bool) 0 == if{ @Open(3) }</Click>
         </Area>
         <Area Top="30">
            <Cursor Type="DownArrow"/>
            <Click Repeat="Yes">@Close(3)</Click>
         </Area>
      </Area>
      <Area Left="282" Width="15" Top="42" Height="40">
         <Tooltip ID="TOOLTIPTEXT_THROTTLE_ENG4_PROPELLER_PERCENT"/>
         <Area Bottom="30">
            <Cursor Type="UpArrow"/>
            <Click Repeat="Yes">(L:Prop4_Feathered,bool) 0 == if{ @Open(4) }</Click>
         </Area>
         <Area Top="30">
            <Cursor Type="DownArrow"/>
            <Click Repeat="Yes">@Close(4)</Click>
         </Area>
      </Area>

 <!-- Mouse specifications for the Mixture Levers -->

   <Macro Name="Mix_Open">

      (A:general eng mixture lever position:@1, percent) 5 + 100 min 100 / 16384 * (&gt;K:MIXTURE@1_SET)
   </Macro>
   <Macro Name="Mix_Close">

      (A:general eng mixture lever position:@1, percent) 5 - 0 max 100 / 16384 * (&gt;K:MIXTURE@1_SET)
   </Macro>

      <Area Left="3" Right="20" Top="15" Height="70">
         <Help ID="HELPID_GAUGE_THROTTLE_MIXTURE"/>
         <Tooltip ID="TOOLTIPTEXT_THROTTLE_ENG1_MIXTURE_PERCENT"/>
         <Area Bottom="40">
            <Cursor Type="UpArrow"/>
            <Click Repeat="Yes">(L:Prop1_Feathered,bool) 0 == if{ @Mix_Open(1) }</Click>
         </Area>
         <Area Top="40">
            <Cursor Type="DownArrow"/>
            <Click Repeat="Yes">@Mix_Close(1)</Click>
         </Area>
      </Area>

      <Area Left="115" Right="130" Top="15" Height="70">
         <Help ID="HELPID_GAUGE_THROTTLE_MIXTURE"/>
         <Tooltip ID="TOOLTIPTEXT_THROTTLE_ENG2_MIXTURE_PERCENT"/>
         <Area Bottom="40">
            <Cursor Type="UpArrow"/>
            <Click Repeat="Yes">(L:Prop2_Feathered,bool) 0 == if{ @Mix_Open(2) }</Click>
         </Area>
         <Area Top="40">
            <Cursor Type="DownArrow"/>
            <Click Repeat="Yes">@Mix_Close(2)</Click>
         </Area>
      </Area>

      <Area Left="175" Right="200" Top="15" Height="70">
         <Help ID="HELPID_GAUGE_THROTTLE_MIXTURE"/>
         <Tooltip ID="TOOLTIPTEXT_THROTTLE_ENG3_MIXTURE_PERCENT"/>
         <Area Bottom="40">
            <Cursor Type="UpArrow"/>
            <Click Repeat="Yes">(L:Prop3_Feathered,bool) 0 == if{ @Mix_Open(3) }</Click>
         </Area>
         <Area Top="40">
            <Cursor Type="DownArrow"/>
            <Click Repeat="Yes">@Mix_Close(3)</Click>
         </Area>
      </Area>

      <Area Left="298" Right="310" Top="15" Height="70">
         <Help ID="HELPID_GAUGE_THROTTLE_MIXTURE"/>
         <Tooltip ID="TOOLTIPTEXT_THROTTLE_ENG4_MIXTURE_PERCENT"/>
         <Area Bottom="40">
            <Cursor Type="UpArrow"/>
            <Click Repeat="Yes">(L:Prop4_Feathered,bool) 0 == if{ @Mix_Open(4) }</Click>
         </Area>
         <Area Top="40">
            <Cursor Type="DownArrow"/>
            <Click Repeat="Yes">@Mix_Close(4)</Click>
         </Area>
      </Area>

   </Mouse>
</Gauge>
