It is currently September 14th, 2024, 10:11 pm

BitmapExtend Only showing one digit

Get help with creating, editing & fixing problems with skins
jedislight
Posts: 2
Joined: October 10th, 2010, 3:20 am

BitmapExtend Only showing one digit

Post by jedislight »

I am trying to setup a basic bitmap font for my skin. I have tried many different examples but none work as advertised. No matter what I do I only get one digit of the value. If I set BitmapDigits to 1 I see the last column's digit. When I set it to 2 I get only the seconds columns digit, etc.

For example MeasureCPU = 25:
BitmapDigits=1 only shows 5
BitmapDigits=2 only shows 2

What I have so far that I expect should work from the manual, this forum, Google scouring:
(I am using nums.png from an example here : http://rainmeter.net/cms/Meters-Bitmap_beta)

Code: Select all

[Rainmeter]
Update=1000

[MeasureCPU]
Measure=CPU


[MeterCPU]
Meter=BITMAP
MeasureName=MeasureCPU
BitmapImage=nums.png
BitmapExtend=1
BitmapFrames=10
BitmapDigits=2
User avatar
kenz0
Developer
Posts: 263
Joined: July 31st, 2009, 2:23 pm
Location: Tokyo, JPN

Re: BitmapExtend Only showing one digit

Post by kenz0 »

BITMAP has a little bit confusing behavior.
Actually, second digits is staying in invisible area.
To display second digits, you need to difine proper X and expand visible area.

Code: Select all

[MeterCPU]
Meter=BITMAP
X=(bitmap width)
MeasureName=MeasureCPU
BitmapImage=alarm10.png
BitmapFrames=10
BitmapExtend=1
BitmapDigits=2
BitmapAlign=CENTER
BitmapZeroFrame=1
As another solution, if you add some kind of another meter bigger than bitmap as background, a visible area would expand inevitably and all digits would appear.
.
Image
jedislight
Posts: 2
Joined: October 10th, 2010, 3:20 am

Re: BitmapExtend Only showing one digit

Post by jedislight »

thanks kenz0.

This did work for me, but because of the way were artificially adding visible space, I found that:

Code: Select all

BitmapAlign=RIGHT 
works much better for large numbers that could get cut off. As well as minimizing dead space on the left side of the skin.

Also for anyone else reading this

Code: Select all

X=(bitmap width)
(bitmap width) should be the value of the BitmapDigits setting multiplied by the width of a single frame, not the width of the file.

It seems like Rainmeter has all of these values to do this math for us though, maybe a good feature candidate?