Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 871

Help: Rainmeter Skins • MeasureName in MeterStyle

$
0
0
Is there a way to use MeasureName inside of MeterStyle?

I just want to change some shape parameters based on measure. But i still want to make my component reusable for other situations with defferent measures. As i can see it's possible to get options like X,Y,W,H from #CURRENTSECTION# varibale, but i cant find any way to get the MeasureName and use it.

Here is a simple example that describes my problem (maybe it's not not that useful in this case but i find it very helpful in more complex situations):

Code:

[Measure]Measure=CalcFormula=24[Style]Shape=Rectangle 0,0,([#CURRENTSECTION#:W]*(get_parent_measure_value_here)),[#CURRENTSECTION#:H] | Fill Color 0,0,0 | StrokeWidth 0[Example]Meter=ShapeMeterStyle=StyleMeasureName=MeasureW=10H=10
All i know about using Measure without call it by "global" name is to use "%n" in string meters, like this:

Code:

[StringExample]Meter=StringMeasureName=MeasureText=Measure values is: %1
Also, in this case it's possible to use Measure in Style the same way:

Code:

[StringStyle]Text=Measure value is: %1[StringExample]Meter=StringMeterStyle=StringStyleMeasureName=Measure
Would be proud of someone who could help me find a way to make this possible.

Statistics: Posted by vakot — Yesterday, 1:11 pm — Replies 7 — Views 170



Viewing all articles
Browse latest Browse all 871

Trending Articles