Playing an animation every time i click on the meter
Posted: November 19th, 2017, 8:38 pm
Hi everyone! I'm trying to create a little skin, and I'm trying to implement a little animation everytime i click on the meter. I've been working on it for a while and i still cant figure it out, this is the code i wrote
What happens is that the ripple animation act as i wanted, but in order to make it work, i have to spam click it. The thing that i'm trying to achieve is:
- Click on the ball
- Play the ripple animation once
- Stop
This has to occour every time i click on it. Help?
Code: Select all
[Rainmeter]
Update=16
[MeterAct]
Meter=Button
Padding=120,120
MeasureName=MeasureAct
LeftMouseUpAction=[!SetOption MeasureTrasp InvertMeasure 1][!UpdateMeasure MeasureTrasp][!SetOption MeterRipple Shape "Ellipse $MouseX$,$MouseY$,[*MeasureDiam*] | Fill Color 255,255,255,[*MeasureTrasp*] | StrokeWidth 0 "][!Redraw]
[MeterBG]
Meter=Shape
Shape=Ellipse 60,60,60 | Fill Color 100,50,80,255 | StrokeWidth 0
[MeterRipple]
Meter=Shape
Shape=Ellipse 0,0,0 | Fill Color 255,255,255,0 | StrokeWidth 0
Shape2=Rectangle 0,0,120,120 | Fill Color 255,255,255,100 | StrokeWidth 0
Shape3=Ellipse 60,60,60 | Fill Color 255,255,255,100 | StrokeWidth 0
Shape4=Combine Shape2 | XOR Shape3
Shape5=Combine Shape | XOR Shape4 | Exclude Shape4
[MeasureDiam]
Measure=Loop
StartValue=10
EndValue=60
Increment=1
LoopCount=0
[MeasureTrasp]
Measure=Loop
StartValue=0
EndValue=60
Increment=1
LoopCount=0
- Click on the ball
- Play the ripple animation once
- Stop
This has to occour every time i click on it. Help?