<Gauge Name="attitude_indicator" Version="1.0">
  <Size X="160" Y="175"/>
  
  <Element>
    <Position X="0" Y="13"/>
    <Image Name="attitude_background.bmp"/>
  </Element>
  
  <Element>
    <Position X="23" Y="35"/>
    <MaskImage Name="attitude_window.bmp">
      <Axis X="46" Y="47"/>
    </MaskImage>
    <Image Name="attitude_horizon.bmp" Luminous="Yes">
      <Axis X="55" Y="35"/>
    </Image>
    <Shift>
       <Value Minimum="-25" Maximum="25">(A:Attitude indicator pitch degrees,degrees) /-/</Value>
       <Scale Y="0.94"/>
    </Shift>
    <Rotate>
       <Value>(A:Attitude indicator bank degrees,radians)</Value>
    </Rotate>
  </Element>
  
  <Element>
    <Position X="66" Y="35"/>
    <Image Name="attitude_bank_pointer.bmp" Luminous="Yes"/>
  </Element>
  
  <Element> 
    <Position X="69" Y="81"/>
    <Image Name="attitude_outer_ring.bmp" Luminous="Yes" PointsTo="North">
      <Axis X="61" Y="61"/>
    </Image>
    <Rotate>
      <Value Minumum="-90" Maximum="90">(A:Attitude indicator bank degrees:0,degrees) -90 max 90 min</Value>
      <Nonlinearity>
        <Item Value="-90" Degrees="-180"/>
        <Item Value="-60" Degrees="-150"/>
        <Item Value="-30" Degrees="-120"/>
        <Item Value="0" Degrees="-90"/>
        <Item Value="30" Degrees="-60"/>
        <Item Value="60" Degrees="-30"/>
        <Item Value="90" Degrees="0"/>
      </Nonlinearity>
    </Rotate>
  </Element>
  
  <Element>
    <Position X="23" Y="35"/>
    <MaskImage Name="attitude_window.bmp">
      <Axis X="47" Y="67"/>
    </MaskImage>
    <Image Name="attitude_pitch_lubber.bmp" Luminous="Yes">
      <Axis X="34" Y="23"/>
    </Image>
    <Shift>
      <Value Minimum="-9" Maximum="9">(G:Var1)</Value>
      <Scale X="0" Y="1"/>
    </Shift>
  </Element>

  <Element>
    <Position X="27" Y="24"/>
    <Failures>
      <SYSTEM_VACUUM Action="0"/>
      <GAUGE_ATTITUDE Action="0"/>
    </Failures>
    <Select>
       <Value>(A:PARTIAL PANEL ATTITUDE, enum) 1 !=</Value>
       <Case Value="0">
          <Image Name="attitude_gyro_flag.bmp" Luminous="Yes"/>
       </Case>
     </Select>
  </Element>

  <Element>
    <Position X="0" Y="0"/>
    <Image Name="attitude_shadow_alpha.bmp" Alpha="Yes"/>
  </Element>

  <Element>
    <Position X="0" Y="0"/>
    <Image Name="attitude_highlight_alpha.bmp" Alpha="Yes"/>
  </Element>

  <Element>
    <Position X="23" Y="0"/>
    <Image Name="attitude_fixed_lines.bmp"/>
  </Element>
  
  <Element>
    <Position X="132" Y="149.5"/>
    <Image Name="attitude_knob.bmp">
      <Axis X="12.5" Y="12.5"/>
    </Image>
    <Rotate>
      <Value>(G:Var1) -10 * dgrd</Value>
      <Delay DegreesPerSecond="90"/>
    </Rotate>
  </Element>
  
  <Mouse>
    <Tooltip ID="TOOLTIPTEXT_ATTITUDE_INDICATOR_BANK_PITCH"/>

    <Area Left="100" Top="135" Width="40" Height="35">
      <Area Right="20">
        <Cursor Type="DownArrow"/>
        <Click Repeat="Yes">
          (G:Var1) 1 + 9 min (&gt;G:Var1)
        </Click>
      </Area>
      <Area Left="19">
        <Cursor Type="UpArrow"/>
        <Click Repeat="Yes">
          (G:Var1) 1 - -9 max (&gt;G:Var1)
        </Click>
      </Area>
    </Area>
  </Mouse>
</Gauge>
