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

Bugs & Feature Suggestions • MeasureStyle

$
0
0
+1-ing this too! Though I have come around some of the limitations by using Groups, Lua and !SetOption, it would still be worth to bring this system to Measures too, in order to fix the same issue MeterStyles solve(d), that is classes and repetition (and also to keep parity).

Ever since I made that post with examples, the only other place where I wished I had MeasureStyles was when making an HSL example.
The skin I made was

Code:

[Rainmeter]Update=25[Variables]V=1S=1[DummyMeter]Meter=string[Loop]Measure=LoopStartValue=1EndValue=360[V]Measure=CalcFormula=#V#[S]Measure=CalcFormula=#S#[H]Measure=CalcFormula=Loop[C]Measure=CalcFormula=V*S[X]Measure=CalcFormula=C*(1 - Abs( H/60 % 2 - 1) )[m]Measure=CalcFormula=V-C; newlined to make it easier to read[Rprime]Measure=CalcFormula=(0 <= H) && (H < 60) ?C :((60 <= H) && (H < 120) ?X :((120 <= H) && (H < 180) ?0 :((180 <= H) && (H < 240) ?0 :((240 <= H) && (H < 300) ?X :((300 <= H) && (H < 360) ?C : C)))))[Gprime]Measure=CalcFormula=(0 <= H) && (H < 60) ?X :((60 <= H) && (H < 120) ?C :((120 <= H) && (H < 180) ?C :((180 <= H) && (H < 240) ?X :((240 <= H) && (H < 300) ?0 :((300 <= H) && (H < 360) ?0 : 0)))))[Bprime]Measure=CalcFormula=(0 <= H) && (H < 60) ?0 :((60 <= H) && (H < 120) ?0 :((120 <= H) && (H < 180) ?X :((180 <= H) && (H < 240) ?C :((240 <= H) && (H < 300) ?C :((300 <= H) && (H < 360) ?X : X)))))[R]Measure=CalcFormula=Trunc((Rprime+m)*255)[G]Measure=CalcFormula=Trunc((Gprime+m)*255)[B]Measure=CalcFormula=Trunc((Bprime+m)*255)[TestShape]Meter=ImageSolidColor=[R],[G],[B]H=200W=200DynamicVariables=1
but if I had MeasureStyles, the skin would become

Code:

[Rainmeter]Update=25[Variables]V=1S=1; put like this here for convenience to read, however they should be one line downRp1=C  Gp1=X  Bp1=0Rp2=X  Gp2=C  Bp2=0Rp3=0  Gp3=C  Bp3=XRp4=0  Gp4=X  Bp4=CRp5=X  Gp5=0  Bp5=CRp6=C  Gp6=0  Bp6=X[DummyMeter]Meter=string[Loop]Measure=LoopStartValue=1EndValue=360[V]Measure=CalcFormula=#V#[S]Measure=CalcFormula=#S#[H]Measure=CalcFormula=Loop[C]Measure=CalcFormula=V*S[X]Measure=CalcFormula=C*(1 - Abs( H/60 % 2 - 1) )[m]Measure=CalcFormula=V-C; now we need a single measurestyle for all of that previous stuff, since nested variables set the correct measure name! newlined in this example to make it easier to read[prime]Formula=(0 <= H) && (H < 60) ?[#[#CURRENTSECTION#]1] :((60 <= H) && (H < 120) ?[#[#CURRENTSECTION#]2] :((120 <= H) && (H < 180) ?[#[#CURRENTSECTION#]3] :((180 <= H) && (H < 240) ?[#[#CURRENTSECTION#]4] :((240 <= H) && (H < 300) ?[#[#CURRENTSECTION#]5] :((300 <= H) && (H < 360) ?[#[#CURRENTSECTION#]6] : [#[#CURRENTSECTION#]6])))))[Rp]Measure=CalcMeasureStyle=prime[Gp]Measure=CalcMeasureStyle=prime[Bp]Measure=CalcMeasureStyle=prime[R]Measure=CalcFormula=Trunc((Rp+m)*255)[G]Measure=CalcFormula=Trunc((Gp+m)*255)[B]Measure=CalcFormula=Trunc((Bp+m)*255)[TestShape]Meter=ImageSolidColor=[R],[G],[B]H=200W=200DynamicVariables=1

Statistics: Posted by Jeff — 7 minutes ago — Replies 2 — Views 97



Viewing all articles
Browse latest Browse all 585

Trending Articles