- Messages
- 35
- Country

SOLVED: 24bit BMP mask file using 1,1,1 as fill colour.
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?

LUA displays 58 degrees onscreen (taken from offset x2B00 and rounded), this matches the existing compass reading.
Robert
P.S.: The size lines were added as comments to help here, they are not part of my source.
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?
Code:
<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>

LUA displays 58 degrees onscreen (taken from offset x2B00 and rounded), this matches the existing compass reading.
Robert
P.S.: The size lines were added as comments to help here, they are not part of my source.
Last edited:






