Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 326

[NOT A BUG] The meter bounding box and drawn visuals of a String meter differ, resulting in unexpected behaivour

$
0
0
EDIT: As explained by the developers, the "bug" as described below in my post isn't a bug, on String meters the drawn element will differ from the usual defined elements. A drawing showing this behavior can be found here.

As the title says, let's see the code and the image!

Example skin

Code:

[EasierStyle]FontSize=100SolidColor=FF000044Text=#CurrentSection#[First]Meter=StringMeterStyle=EasierStyle[Second]Meter=StringMeterStyle=EasierStyleX=12RY=12RStringAlign=LeftBottom[Third]Meter=StringMeterStyle=EasierStyleText=ThirdY=12R
Image of the bug
Image

Wonderfull cursed usage of Text=#CurrentSection# there, now let's get to the description of the bug
  1. [First] is positioned normal, no problem there
  2. [Second] has Y=R, which means that the anchor for the text will start from the bottom of the previous meter, on StringAlign=RightTop (which is default), this will just look like a list, which is normal, however, I want to make the text some form of subtitle, so I want it to (roughly) have the same baseline as [First], so what do we do? We make the anchor position of the text be the top right corner of [First], this can be done easily with X=R, Y=R and StringAlign=LeftBottom to make the text start drawing from there
  3. This is where the bug happens. Now we maybe want to add text, so we added [Third]. For it, the thing I want to do is simple, I just want to add simple paragraph text, I know I want the text to be StringAlign=RightTop and to be relative to the bottom of the previous meter, when we do that though, we find something funny, the meter is relative to the String before the StringAlign transformation
Just for LULZ, I wanted to see what happens with numbers before relative positioning, they are relative to the top left corner of the skin and aren't some form of magical vector from anchor point like you would imagine, that number affects only the final bitmap and not the positioning.
Sadly I won't provide half-assed inspections of the code this time, since I have 0 clue where to look when it comes to meters.

I hope this wasn't reported before, if it was, please just delete the thread.

Statistics: Posted by Jeff — October 23rd, 2024, 3:00 pm — Replies 6 — Views 298



Viewing all articles
Browse latest Browse all 326

Trending Articles