It is currently April 20th, 2024, 4:14 am

help:what does the 'r' mean?

Get help with creating, editing & fixing problems with skins
User avatar
lance_vs
Posts: 3
Joined: July 5th, 2010, 12:48 pm

help:what does the 'r' mean?

Post by lance_vs »

[MeterCPUGraph]
Meter=Line MeasureName=MeasureCPU
X=r
Y=15r
W=100
H=50
SolidColor=#Color3#
LineColor=#Color2#
__________________________
I can't understand the explanation about the use of 'r'.
keep silence! ^^
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: help:what does the 'r' mean?

Post by jsmorley »

"r" (or "R") means "relative". What this does is set the X or Y position of a meter relative to the position of the meter just before it.

So if you have

[Meter1]
X=10
Y=10

[Meter2]
X=r
Y=10r

Then Meter2 will follow immediately to the right of the right hand side of Meter1, and 10 pixels below the bottom of Meter1. An "r" without any value just means the same as "0r".

In addition, you can use the capital "R" to mean relative to the beginning of the previous meter, instead of the end.

[Meter1]
X=10
Y=10

[Meter2]
X=30R
Y=10R

This means Meter2 will be positioned 30 pixels to the right of the left edge of Meter1, and 10 pixels from the top of Meter1.

Hope this helps.
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: help:what does the 'r' mean?

Post by Alex2539 »

It means "relative to the previous meter". With X=r, the meter will look at the X-position of the previous meter and use that as its X-position. With Y=15r, the meter will look at the Y-position of the previous meter and use that as its Y-position, then add 15 to it. So if you previous meter was at (30, 20) this meter will show up at (30, 35).

EDIT: Beat me to it ;).
ImageImageImageImage
pashashocky
Posts: 5
Joined: July 5th, 2010, 8:32 pm

Re: help:what does the 'r' mean?

Post by pashashocky »

Thanks jsmorley, reminded me, i knew it ment relative, but i clearly forgot that it was with meters :P
[img]http://img96.imageshack.us/img96/6144/jokeryo.png[/img]
User avatar
lance_vs
Posts: 3
Joined: July 5th, 2010, 12:48 pm

Re: help:what does the 'r' mean?

Post by lance_vs »

jsmorley wrote:"r" (or "R") means "relative". What this does is set the X or Y position of a meter relative to the position of the meter just before it.

So if you have

[Meter1]
X=10
Y=10

[Meter2]
X=r
Y=10r

Then Meter2 will follow immediately to the right of the right hand side of Meter1, and 10 pixels below the bottom of Meter1. An "r" without any value just means the same as "0r".

In addition, you can use the capital "R" to mean relative to the beginning of the previous meter, instead of the end.

[Meter1]
X=10
Y=10

[Meter2]
X=30R
Y=10R

This means Meter2 will be positioned 30 pixels to the right of the left edge of Meter1, and 10 pixels from the top of Meter1.

Hope this helps.
Thank you. I think i have got it!
keep silence! ^^