Jump to content
Sign in to follow this  
DemonDNF

Compass tape not showing

Recommended Posts

Hi,

 

My first time trying to make a tape shift.  Any idea why the compass remains a black box with only the white line in the center?

 



<Gauge Name="Compass" Version="1.0">
  <Image Name="Compassbackground.bmp"/>
 
  <!-- Size = 102 x 42, black BMP -->
 
  <Element>
    <Position X="1" Y="1"/>
    <Image Name="CompassStrip.bmp">
 
    <!-- Size = 520 x 40, white text on black BMP -->
 
      <Nonlinearity>
        <Item Value="0" X="440" Y="0"/>
        <Item Value="359" X="81" Y="0"/>
      </Nonlinearity>
    </Image>
    <MaskImage Name="CompassWindow.bmp"> 
 
    <!-- Size = 100 x 40, black BMP -->
 
     <Axis X="50" Y="0"/>
    </MaskImage>
    <Shift>
      <Value>(L:KK_Compass,number)</Value>
    </Shift>
  </Element>
 
  <Element>
    <Position X="50" Y="0"/>
    <Image Name="CompassLine.bmp">
 
    <!-- Size = 2 x 40, white BMP -->
 
    </Image>
  </Element>
</Gauge>


 

CompassStrip_zpsaxyg2jjv.png

 

LUA displays 58 degrees onscreen (taken from offset x2B00 and rounded), this matches the existing compass reading.

 

I've tried painting the Mask file 1,1,1 as indicated here:


 

Same thing, no tape in gauge, just black with my white centerline.

 

Robert

 

 

P.S.: The size lines were added as comments to help here, they are not part of my source.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...