Arne Anka wrote:
Sorry, but I don't understand. If I use W= and H= on a string-meter, and use X= and Y= to position in that meter, how do I position the different meters relative to each other? Could you please use the menu as an example, then maybe I can understand it...
Sorry, I should have explained it a little better.
When
vertically aligning text, the Y value gets modified (except Top alignment).
- Top alignment does not adjust the Y value.
- Center alignment subtracts half of the height of the meter from the Y value Y = Y - (H / 2). If no height is given, the height of the meter is the height of the font (in pixels). Use this for reference: http://rainmeter.net/cms/Tips-FontSizeToPixels
- Bottom alignment subtracts the entire height of the meter from the Y value Y = Y - H. Again, if no height is given, the height of the meter is the height of the font (in pixels).
- Note: If specifying a H=, then a W= must also be set since text reads from left to right (or right to left) and not top to bottom (or bottom to top).
The reason the Y value is adjusted is to match horizontal alignment (which modifies the X value in the same fashion). Horizontal alignment cannot be changed for backwards-compatibility, so vertical alignment needs to match.
When you use vertical alignment
and relative positioning, you need to compensate for the Y value adjustment. For center alignment, you need to
add half the height of the meter to your Y value. For bottom alignment, you need to
add the height of the meter to your Y value. If no height is given (or you do not know the height), use:
http://rainmeter.net/cms/Tips-FontSizeToPixels to determine the amount of pixels to add to your Y value. Horizontal alignment works in a similar way.
So Arne Anka, for your skin we are going to compensate (or adjust) the Y value(s) because of the vertical alignment (StringAlign=RightCenter).
In meter
[MeterMenuPlacesItem4], your Y value is
Y=20r.
This seems perfectly logical, however, it does not look right. The reason is because vertical alignment has changed your Y value. So, instead of starting the meter at 110 (which is 90 from the previous meter and adding 20 pixels to it), it is starting at 102.
How did I come up with 102? Simple. Your previous meter Y value is 90. This meter is 20r. So the new Y value is
Y = 90 + 20 - 8. Wait. Hold on. 8? Where did I come up with 8? Since you did not specify a height to the meter, you have to use the FontSize (which is 12 in this case) to find out the height of the meter. Using
this, the meter's height is 16, so half of 16 is 8.
So to fix your problem, add 8 to your meters Y value.
Y=28r
Same goes for the meter
[MeterMenuPlacesItem5]. Use
Y=10R
I hope that helps to clear things up a bit. I know it can be confusing and sometimes it takes a little trial and error to fully understand what is going on.
-Brian