You have to use the
ActionTimer plugin. If you're interested, here is what to do:
First add the following ActionTimer plugin to your code:
Code: Select all
[MeasureFade]
Measure=Plugin
Plugin=ActionTimer
Group=Sliders
ActionList1=Repeat FadeIn,20,20
FadeIn=[!SetVariable Alpha "(Clamp((#Alpha#+12.75),0,255))"]#U#
ActionList2=Repeat FadeOut,20,20
FadeOut=[!SetVariable Alpha "(Clamp((#Alpha#-12.75),0,255))"]#U#
DynamicVariables=1
The newly introduced Alpha variable controls the transparency of the Image meters (see below). Its value varies between 0 (fully transparent) and 255 (completely opac).
To get it to work, you have to define in the [Variables] section both newly added variables, Alpha and U. Add them:
Code: Select all
[Variables]
...
U=[!UpdateMeasure "MeasureFade"][!UpdateMeterGroup "Menu"][!UpdateMeterGroup "Tile"][!Redraw]
Alpha=0
(take care not to remove the already existing variables, just add these ones).
Now add an
ImageAlpha=#Alpha# option to all meters belonging to the Menu group, along with a
DynamicVariables=1 option as well. With ImageAlpha you set the transparency of those Image meters. This will be controled by the value of the Alpha variable, which changes through the previously added [MeasureFade] measure:
Code: Select all
[Mask1]
...
ImageAlpha=#Alpha#
DynamicVariables=1
[Mask2]
...
ImageAlpha=#Alpha#
DynamicVariables=1
[Mask3]
...
ImageAlpha=#Alpha#
DynamicVariables=1
The final step is to modify the IfTrueAction and IfFalseAction options of the [MeasureMenu] measure, in order to can control the [MeasureFade] measure:
Code: Select all
[MeasureMenu]
...
IfTrueAction=[!CommandMeasure "MeasureFade" "Execute 1"][!CommandMeasure "MeasureFade" "Stop 2"]
IfFalseAction=[!CommandMeasure "MeasureFade" "Stop 1"][!CommandMeasure "MeasureFade" "Execute 2"]
...
That's it. If you want to modify the speed of fading, you have to modify the first numeric value into the ActionList1 and ActionList2 options of the [MeasureFade] measure. Just take care that increasing the value decreases the speed and vice-versa: decreasing the value, increases the speed of the fade effect.