Bug? changing (removing) Postfix doesn't work (in a special case)
Posted: February 2nd, 2018, 8:11 am
Hello!
Recently i stumbled across the following:
i have a text-meter with an associated style-definition that has a postix in it (Postfix="B")
On an if-condition i have a !SetOption-Bang that removes the postfix. That does not work.
After testing i found out:
Recently i stumbled across the following:
i have a text-meter with an associated style-definition that has a postix in it (Postfix="B")
On an if-condition i have a !SetOption-Bang that removes the postfix. That does not work.
After testing i found out:
- removing the postfix with a bang only works if the postfix is defined on the meter and not on its style-definition
- setting the postifx to some value works no matter if the postfix is defined in a style or on the meter itself
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
[Measure_Time]
Measure=TIME
Format="%S"
[Measure_CALC]
Measure=CALC
Formula=Measure_Time % 2
IfCondition=Measure_CALC = 0
IfTrueAction=[!SetOption "Meter_Text" "Postfix" ""][!UpdateMeter "Meter_Text"][!Redraw]
IfFalseAction=[!SetOption "Meter_Text" "Postfix" "B"][!UpdateMeter "Meter_Text"][!Redraw]
DynamicVariables=1
[Style_With_Postfix]
Postfix="B"
InlineSetting= Face | Arial
InlineSetting2=Size | 32
InlineSetting3=Weight | 600
SolidColor=FFFFFFFF
AntiAlias=1
DynamicVariables=1
[Meter_Text]
Meter=STRING
MeterStyle=Style_With_Postfix
MeasureName=Measure_Time