It is currently March 28th, 2024, 8:26 pm

It's all Relative?

Get help with creating, editing & fixing problems with skins
User avatar
Fuzzybat23
Posts: 44
Joined: May 10th, 2013, 1:21 am

It's all Relative?

Post by Fuzzybat23 »

Let's say my background for a meter is set as such:

Code: Select all

[Background]
Meter=Image
ImageName="#@#\Gmail\Gmail.png"
x=0
y=0
I know that in the next meter, if I put:

Code: Select all

x=0R
y=0R
That it will begin at the bottom right corner of the background image. Then if I put another meter with the same code, it will begin at the lower right of the meter directly above it and so forth. Is there a way to make all meters in a skin relative to the background image meter?
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: It's all Relative?

Post by balala »

Fuzzybat23 wrote:Is there a way to make all meters in a skin relative to the background image meter?
Yes, there is. For example:

Code: Select all

[MyMeter]
...
X=([Background:X]+[Background:W])
Y=([Background:Y]+[Background:H])
DynamicVariables=1
The above [MyMeter] will be positioned at the bottom right corner of the background image, as same as your meter. But here an extremely important option, which doesn't have to be forget, is the DynamicVariables=1. Without it, [MyMeter] will be wrong placed.
User avatar
Fuzzybat23
Posts: 44
Joined: May 10th, 2013, 1:21 am

Re: It's all Relative?

Post by Fuzzybat23 »

That did the trick, thanks! :)
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: It's all Relative?

Post by balala »

Glad to help.