I changed the location of the actions to disable the mouse actions and combined the transitions to move into the fade action timer.
This code will complete the cycle of fading out the temp, fading in the icon and text, wait 3 seconds, then fade out the icon and text, fading in the temp. The MouseOverAction is disabled during this transition. Once the animations are completed, the MouseOverAction is enabled.
vcloudshift.gif
Code: Select all
;If the cycle is running fine you should have at the start:
;iAlpha=15
;tAlpha=200
;iconY=150
;at the end of MouseOver action:
;iAlpha=253
;tAlpha=0
;iconY=130
;wait 3 seconds and the cycle revert to the start position
[Rainmeter]
Update=1000
AccurateText=1
AntiAlias=1
[Variables]
U=[!UpdateMeasureGroup Weather][!UpdateMeterGroup Weather][!Redraw]
tAlpha=200
iAlpha=15
C=140,140,140
ff=Neon 80s
Degrees=°
img=#@#VClouds Weather Icons\0.png
maxcycle=4
;=======================================
; Animation
;=======================================
; [Cycle]
; Measure=Calc
; Formula=(Cycle+1)%(#maxcycle#+1)
; IfEqualValue=#maxcycle#
; IfEqualAction=[!EnableMouseAction Icon "MouseOverAction"][!PauseMeasure "Cycle"]
[FadeAlpha]
Measure=Plugin
Plugin=ActionTimer
Group=Weather
ActionList1=DisableMouseOver | Wait 50 | SlideUp | Repeat Rise,50,34 | Wait 3000 | SlideDown | Repeat Fall,50,34 | EnableMouseOver
DisableMouseOver=[!DisableMouseAction Icon "MouseOverAction"]
EnableMouseOver=[!EnableMouseAction Icon "MouseOverAction"]
Rise=[!SetVariable iAlpha (Min(#iAlpha#+7,255))][!SetVariable tAlpha (Max(#tAlpha#-6,0))]#U#
Fall=[!SetVariable iAlpha (Max(#iAlpha#-15,15))][!SetVariable tAlpha (Min(#tAlpha#+10,200))]#U#
SlideUp=[!CommandMeasure Transition "Stop 1"][!CommandMeasure Transition "Stop 2"][!CommandMeasure Transition "Execute 1"]
SlideDown=[!CommandMeasure Transition "Stop 1"][!CommandMeasure Transition "Stop 2"][!CommandMeasure Transition "Execute 2"]
IgnoreWarnings=1
UpdateDivider=-1
DynamicVariables=1
[Transition]
Measure=Plugin
Plugin=ActionTimer
Group=Weather
ActionList1=Wait 300 | Repeat MoveUp,40,20
MoveUp=[!SetOption Icon Y (Clamp([Icon:Y]-1,130,150))]#U#
ActionList2=Wait 300 | Repeat MoveDn,50,20
MoveDn=[!SetOption Icon Y (Clamp([Icon:Y]+1,130,150))]#U#
IgnoreWarnings=1
UpdateDivider=-1
[Icon]
Meter=Image
ImageName=#img#
SolidColor=0,0,0,1
Group=Weather
W=160
X=80
Y=150
PreserveAspectRatio=1
ImageAlpha=#iAlpha#
AntiAlias=1
DynamicVariables=1
MouseOverAction=[!CommandMeasure Transition "Stop 1"][!CommandMeasure Transition "Stop 2"][!CommandMeasure FadeAlpha "Stop 1"][!CommandMeasure FadeAlpha "Execute 1"]
[Temp]
Meter=String
Group=Weather
X=175
Y=185
FontSize=18
FontFace=#ff#
AntiAlias=1
FontColor=#C#,#tAlpha#
SolidColor=0,0,0,1
StringAlign=Center
DynamicVariables=1
Text=31#Degrees#C
[Cond]
Meter=String
Group=Weather
X=r
Y=30r
FontSize=10
FontFace=#ff#
AntiAlias=1
FontColor=#C#,#tAlpha#
SolidColor=0,0,0,1
StringAlign=Center
DynamicVariables=1
Text=Thunderstorm
[Narative1]
Meter=String
Group=Weather
X=r
Y=20r
W=200
H=34
FontSize=10
FontFace=#ff#
AntiAlias=1
FontColor=#C#,(#iAlpha#-53)
SolidColor=0,0,0,1
StringAlign=Center
DynamicVariables=1
ClipString=1
Text=Partly cloudy. Highs 30 to 32. Lows 18 to 20
You do not have the required permissions to view the files attached to this post.