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

Help: Rainmeter Skins • Re: Begginner having trouble with conditinal styling of shapes

$
0
0
Well crap. A bit of a logic flaw in that as well. The trouble is that the OnChangeAction takes place after the IfCondition stuff is evaluated. so the boxes are turned off but then not back on.

Try this instead:

Code:

[MeasureDayOfWeek]Measure=TimeFormat=%wOnChangeAction=[!SetOptionGroup Shapes "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0"][!UpdateMeterGroup Shapes][!Redraw][!UpdateMeasure MeasureTest][MeasureTest]Measure=CalcUpdateDivider=-1IfCondition=(MeasureDayOfWeek = 0)IfTrueAction=[!SetOption Shape0 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape0"][!Redraw]IfCondition2=(MeasureDayOfWeek= 1)IfTrueAction2=[!SetOption Shape1 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape1"][!Redraw]IfCondition3=(MeasureDayOfWeek = 2)IfTrueAction3=[!SetOption Shape2 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape2"][!Redraw]IfCondition4=(MeasureDayOfWeek = 3)IfTrueAction4=[!SetOption Shape3 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape3"][!Redraw]IfCondition5=(MeasureDayOfWeek = 4)IfTrueAction5=[!SetOption Shape4 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape4"][!Redraw]IfCondition6=(MeasureDayOfWeek = 5)IfTrueAction6=[!SetOption Shape5 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape5"][!Redraw]IfCondition7=(MeasureDayOfWeek = 6)IfTrueAction7=[!SetOption Shape6 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape6"][!Redraw]
This will force the IfCondition(s) to be after the OnChangeAction.

Statistics: Posted by jsmorley — Yesterday, 5:47 pm



Viewing all articles
Browse latest Browse all 1609

Trending Articles