It is currently November 26th, 2022, 8:12 pm

Relative Meter

Report bugs with the Rainmeter application and suggest features.
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Relative Meter

Post by Kaelri »

Code: Select all

[OriginalMeter]
Meter=STRING
X=0
Y=0
FontFace=Calibri
FontColor=255,255,255
FontSize=10
StringStyle=NORMAL
StringAlign=RIGHT
AntiAlias=1
Text="Something fascinating."

[CopyMeter]
Meter=R
Y=10r
Except1=AntiAlias
Except2=StringAlign
This "meter" would copy all of the keys and values of the meter preceding it, excepting any that are explicitly omitted or redefined. In this example, [CopyMeter] would be rendered as a String meter with all of [OriginalMeter]'s properties - color, size, style, etc. - but would have a new Y position, and would not be anti-aliased or right-aligned.
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: Relative Meter

Post by Alex2539 »

So how would you define it? Just by leaving out "Meter="? That seems prone to error (ie: i've done it before by accident). Perhaps use "Meter=COPY". This would be useful though. Especially for those times where you have a dozen (or two) repetitions of the same thing, slightly altered each time.
ImageImageImageImage
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Relative Meter

Post by Kaelri »

Alex2539 wrote:So how would you define it? Just by leaving out "Meter="? That seems prone to error (ie: i've done it before by accident). Perhaps use "Meter=COPY". This would be useful though. Especially for those times where you have a dozen (or two) repetitions of the same thing, slightly altered each time.
Well, in the example above I use "Meter=R." The name is arbitrary, of course; the method is the same.
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: Relative Meter

Post by Alex2539 »

Ah, I missed that. I must have assumed it was some other property. That's what I get for not reading ;).
ImageImageImageImage
User avatar
Dave_W
Posts: 37
Joined: April 20th, 2009, 10:58 am

Re: Relative Meter

Post by Dave_W »

Sorry to drag up an old point, but this could save me a lot of work on something I'm looking at - and, in my opinion, make a lot of skins (particularly reader skins or launcher skins) much easier to read for novices like me.

Is this something that got actioned or added to the list, or was it not taken any further?
User avatar
gschoppe
Developer
Posts: 93
Joined: April 26th, 2009, 8:30 pm
Location: St Johnsbury, VT

Re: Relative Meter

Post by gschoppe »

check out styles and includes from the rainmeter 1.1 upcoming release
Image
User avatar
Dave_W
Posts: 37
Joined: April 20th, 2009, 10:58 am

Re: Relative Meter

Post by Dave_W »

Ah! Meterstyle looks like what I need.

Awesome, thanks.