Quantcast
Viewing all articles
Browse latest Browse all 704

Help: Rainmeter Skins • Re: How can I do scale Skin Size with pulling

In the first picture you can see that [Background] is generated first and then [MusicTicker], this leads to the small corner shape attaching itself to the shape of [MusicTicker], which is wrong.
[...]
In the second image, the shape [MusicTicker] is created first, followed by the shape for [Background]. Now the small corner shape attaches itself to the correct position of the skin and maintains this without any offset. The only problem I have now is getting the font color to white because it is overlaid by [Background]
And... is there a question there or what? Image may be NSFW.
Clik here to view.
:D


This is correct and precisely what is supposed to happen, assuming the corner shape is just after these two shapes. That's how relative positioning works, it's always relative to the previous meter, which is probably the ticker in the 1st paragraph and the background in the 2nd paragraph, again assuming the corner shape is just after these two shapes.

This behavior is abundantly clear if one reads the meter X,Y part from the manual describing it:
Relative positioning: If the value is appended with r, the position is relative to the top/left edge of the previous meter. If the value is appended with R, the position is relative to the bottom/right edge of the previous meter.
The manual also describes the exception from that rule in the case of container meters and their contained meters, if that's the case:
The first content meter in a container is automatically relative to the top left of the container.
"r" is assumed and "R" is ignored.
Subsequent content meters in a container are relative to each other.
"r" and "R" function normally.
Meters that are not content are relative to the immediately preceding meter that is not content.
Not only that, but it also describes the solution if you don't or can't use relative positioning, in the section variables' parameters:
:W, :H                                                             Example: [MeterName:W]
The current width or height of the meter.
Notes: This provides the "real" W or H value. This is always an integer, even if the meter has no W and H options set, or if the options use formulas or variables.
The values for W or H may be different than the values in the meter options if Padding is used.
There you go, you learned something new... I mean old, again. Image may be NSFW.
Clik here to view.
:p
Did you figure out why I posted the :W, :H quote and not the :X, :Y one above? Image may be NSFW.
Clik here to view.
:sly:
Image may be NSFW.
Clik here to view.
:)

Statistics: Posted by Yincognito — Today, 5:36 am



Viewing all articles
Browse latest Browse all 704

Trending Articles