zivallh wrote: ↑
June 30th, 2020, 3:55 pm
Thanks for your reply!
Yes interested for sure, but the thing is I have a skin I want to show a meter group when I toggle to show fade, I don't know about your method could you write it for me may it work
Ok, here is a simple workaround. If you can't get it to work, please post the whole code you have so far, to can check it.
So, first add two variables to the [Variables] section, beside the existing ones:
Secondly add the following two measures:
Code: Select all
IfTrueAction=[!CommandMeasure "MeasurePushDays" "Execute 1"][!CommandMeasure "MeasurePushDays" "Stop 2"]
IfFalseAction=[!CommandMeasure "MeasurePushDays" "Stop 1"][!CommandMeasure "MeasurePushDays" "Execute 2"]
FadeIn=[!SetVariable Alpha "(Clamp((#Alpha#+13),0,255))"][!UpdateMeasure "#CURRENTSECTION#"][!UpdateMeterGroup "Conditions"][!Redraw]
FadeOut=[!SetVariable Alpha "(Clamp((#Alpha#-13),0,255))"][!UpdateMeasure "#CURRENTSECTION#"][!UpdateMeterGroup "Conditions"][!Redraw]
And finally modify the existing meters, as it follows:
Code: Select all
LeftMouseUpAction=[!SetVariable Toggle "(1-#Toggle#)"][!UpdateMeasure "MeasureToggle"]
Note that this will work ONLY if the existing FontColor variable (which I don't know) doesn't have a transparency set. So, if the FontColor variable consist of three values (RGB), it's gonna work, but if it consist of four values (RGBA), the code won't work. If this is the case, remove the fourth element of this variable (for instance if your variable is FontColor=255,255,255
, it is ok, but if it's FontColor=255,255,255,255
, remove the last term, replacing it with FontColor=255,255,255
Hope this modifications are working. Please let me know if they aren't and in this case post the code you have so far.