Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Compass tape not showing

Featured Replies

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.

  • Author

SOLVED!

 

24bit BMP using 1,1,1 as colour for the mask was the answer.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.