It is currently May 6th, 2024, 4:38 am

What does X=r mean?

Get help with creating, editing & fixing problems with skins
sbr68
Posts: 2
Joined: January 17th, 2012, 4:29 am

What does X=r mean?

Post by sbr68 »

I've been playing around with some skins and I've noticed that the positions of things often reference some variable r. What is this r?? For example:

[Name5]
MeasureName=N5
Meter=STRING
MeterStyle=Style
FontColor=#SenderFontColor(Odds)#
X=r
Y=16r

What does this mean exactly? Thanks!
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: What does X=r mean?

Post by smurfier »

r and R denote relative positioning when used in X and Y on meters.

What X=r means:
Use the same X coordinate as the meter directly above it in the skin file.

What Y=16r means:
Add 16 to the Y coordinate as the meter directly above it in the skin file.

r is for the top left while R references the bottom right of the meter.

Reference
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
sbr68
Posts: 2
Joined: January 17th, 2012, 4:29 am

Re: What does X=r mean?

Post by sbr68 »

That makes sense, I guessed it was some reference to the previous meter. Thanks for the precise answer!