<Gauge Name="L188 Altitude Selector" Version="1.0">
   <Image Name="Alt_Alerter_Background_Off.bmp" ImageSizes="136,54,136,54"/>
   <Element>
      <Position X="7" Y="14"/>
      <Select>
         <Value>(*(A:Autopilot vertical hold, bool) 0 !=*) (G:Var2)</Value>
         <Case Value="0">
            <Image Name="Alt_alerter_button_eng_off.bmp" ImageSizes="19,12,19,12"/>
         </Case>
         <Case Value="1">
            <Image Name="Alt_alerter_button_eng_on.bmp" Bright="Yes" ImageSizes="19,12,19,12"/>
         </Case>
      </Select>
   </Element>
   <Element>
      <Position X="7" Y="28"/>
      <Select>
         <Value>(A:Autopilot altitude lock, bool) 0 !=</Value>
         <Case Value="0">
            <Image Name="Alt_alerter_button_arm_off.bmp" ImageSizes="19,12,19,12"/>
         </Case>
         <Case Value="1">
            <Image Name="Alt_alerter_button_arm_on.bmp" Bright="Yes" ImageSizes="19,12,19,12"/>
         </Case>
      </Select>
   </Element>
   <Element>
      <Position X="50" Y="15"/>
      <Text X="40" Y="16" Length="5" Fixed="Yes" Font="Quartz" Adjust="Center" VerticalAdjust="Center" Color="#FF0000" Bright="Yes">
         <String>%((A:Autopilot vertical hold var, feet/minute) abs 9000 min (A:Autopilot altitude lock var, feet) abs 90000 min (G:Var1) ? )%!5d!</String>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action=""/>
         </Failures>
      </Text>
   </Element>
   <Element>
      <Position X="45" Y="25"/>
      <Visible>(G:Var1)</Visible>
      <Text X="10" Y="14" Length="1" Fixed="Yes" Font="Quartz" Adjust="Center" VerticalAdjust="Center" Color="#FF0000" Bright="Yes">
         <String>^</String>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action=""/>
         </Failures>
      </Text>
      <Rotate>
         <Value>(A:Autopilot vertical hold var, feet/minute) 0 &lt; pi *</Value>
         <Center X="48" Y="25"/>
      </Rotate>
   </Element>
   <Element>
      <Position X="60" Y="35"/>
      <Text X="30" Y="10" Length="6" Fixed="Yes" Font="Quartz" Adjust="Center" VerticalAdjust="Center" Color="#FF0000" Bright="Yes">
         <String>%((G:Var1))%{if}FT/MIN%{else}FT    %{end}</String>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action=""/>
         </Failures>
      </Text>
   </Element>
   <Element>
      <Position X="40" Y="32"/>
      <Visible>(A:Autopilot altitude lock var, feet) (A:Indicated altitude, feet) - abs d 300 &gt;= r 1000 &lt;= &amp;&amp;</Visible>
      <Text X="15" Y="13" Length="2" Fixed="Yes" Font="Quartz" FontWeight="800" Adjust="Center" VerticalAdjust="Center" Color="#FF0000" Bright="Yes">
         <String>AL</String>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action=""/>
         </Failures>
      </Text>
   </Element>
   <Element>
      <Position X="108" Y="25"/>
      <Image Name="Alt_Alerter_Knob_Alt.bmp" ImageSizes="25,25,25,25">
         <Axis X="11" Y="11"/>
      </Image>
   </Element>
   <Element>
      <Position X="108" Y="25"/>
      <Image Name="Alt_Alerter_Knob_VS.bmp" ImageSizes="25,25,25,25">
         <Axis X="11" Y="11"/>
      </Image>
   </Element>
   <Mouse>
      <Help ID="HELPID_GAUGE_ALTITUDE_ALERTER"/>
      <Area Left="7" Top="14" Width="14" Height="8">
         <Cursor Type="Hand"/>
         <Click>(*(&gt;K:AP_PANEL_VS_HOLD)*) (G:Var1) (G:Var2) ! &amp;&amp; (&gt;G:Var2)</Click>
      </Area>
      <Area Left="7" Top="28" Width="14" Height="8">
         <Cursor Type="Hand"/>
         <Click>(G:Var1) ! (A:Autopilot altitude lock, bool) 0 != || if{ 0 (&gt;K:AP_PANEL_ALTITUDE_HOLD) }</Click>
      </Area>

      <Area Left="107" Top="20" Width="17" Height="17">
         <Cursor Type="Hand"/>
         <Click>(G:Var1) ! (&gt;G:Var1)</Click>
      </Area>
      <Area Left="40" Top="36" Width="50" Height="15">
            <Cursor Type="DownArrow"/>
            <Click Repeat="Yes">(G:Var1) if{ (&gt;K:AP_VS_VAR_DEC) } els{ (&gt;K:AP_ALT_VAR_DEC) }</Click>
      </Area>
      <Area Left="40" Top="15" Width="50" Height="20">
            <Cursor Type="UpArrow"/>
            <Click Repeat="Yes">(G:Var1) if{ (&gt;K:AP_VS_VAR_INC) } els{ (&gt;K:AP_ALT_VAR_INC) }</Click>
      </Area>
   </Mouse>
</Gauge>
