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

Help: Rainmeter Skins • Re: Rainmeter refresh

$
0
0

Code:

...[Variables]ButtonState=1[MeasureSkinStatus]Measure=LoopIfCondition=(#ButtonState#=1)IfTrueAction=[!ActivateConfig "PcKapat"]...
The ButtonState=1 before the measure will always have the measure's IfCondition be true on refresh, loading the other skins. So you would need change it to ButtonState=0 to have the other skins start unloaded. If you want the other skins to keep their state and only change based on this skin's actions, see if the ConfigActive plugin fits what you want to do.

Note the Loop measure as it is currently (counting from 1 to 100) does not affect the IfCondition, as the IfCondiiton is only looking at the ButtonState variable. You could simplify it to a Calc measure if you don't need the counter, but it's a minor detail.


MeasureSkinStatus, MeasureButonText, and ToggleText can be reduced down to two using the plugin, and will have the change be instant without having to rely on the update rate. See that the mouse click on ToggleText will update MeasureConfigActive which checks if the other skin is active, then based on that result, will set the text of ToggleText and update it. This shows toggling one skin, other skins can be added in depending on how they are meant to interact.

Code:

[MeasureConfigActive]Measure=PluginPlugin=ConfigActiveConfigName=PcKapatIfCondition= #CURRENTSECTION# = 1IfTrueAction=[!SetOption ToggleText Text "🔄 Kapat"][!UpdateMeter ToggleText][!Redraw]IfFalseAction=[!SetOption ToggleText Text "🔄 Aç"][!UpdateMeter ToggleText][!Redraw][ToggleText]Meter=StringFontSize=12FontColor=255,255,255StringStyle=BoldAntiAlias=1X=110Y=25SolidColor=0,0,0,1DynamicVariables=1LeftMouseUpAction=[!ToggleConfig "PcKapat"][!UpdateMeasure MeasureConfigActive]
ActiveConfig.gif

Statistics: Posted by Alex88 — Today, 12:24 am



Viewing all articles
Browse latest Browse all 1970

Trending Articles