Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 781

Help: Rainmeter Skins • Re: How do I add a fade effect to this?

$
0
0
are you talking about these images?
Yep, exactly.
For now I just faded in and out the two images. Obviously the below posted code can be further improved (as Yincognito suggested above), but this requires little bit more time. For first try out this please this code and let me know what you think about it:

Code:

[Rainmeter]Update=1000[Variables]Alpha=0[MeasureFade]Measure=PluginPlugin=ActionTimerActionList1=Repeat FadeIn,20,10FadeIn=[!SetVariable Alpha "(Clamp((#Alpha#+22.5),0,255))"][!UpdateMeasure "MeasureFade"][!UpdateMeterGroup "Icon1"][!UpdateMeter "MeterString"][!Redraw]ActionList2=Repeat FadeOut,20,10FadeOut=[!SetVariable Alpha "(Clamp((#Alpha#-22.5),0,255))"][!UpdateMeasure "MeasureFade"][!UpdateMeterGroup "Icon1"][!UpdateMeter "MeterString"][!Redraw]DynamicVariables=1[Meter1]Meter=ImageImageName=#@#kBP1Eq6.pngX=0Y=0ImageAlpha=(255-#Alpha#)DynamicVariables=1Group=Icon1MouseOverAction=[!CommandMeasure "MeasureFade" "Execute 1"][!CommandMeasure "MeasureFade" "Stop 2"]MouseLeaveAction=[!CommandMeasure "MeasureFade" "Stop 1"][!CommandMeasure "MeasureFade" "Execute 2"][Meter2]Meter=ImageImageName=#@#HPmQtgZ.pngX=0Y=0ImageAlpha=#Alpha#DynamicVariables=1Group=Icon1MouseOverAction=[!CommandMeasure "MeasureFade" "Execute 1"][!CommandMeasure "MeasureFade" "Stop 2"]MouseLeaveAction=[!CommandMeasure "MeasureFade" "Stop 1"][!CommandMeasure "MeasureFade" "Execute 2"][MeterString]Meter=STRINGX=10Y=10Padding=15,5,15,5FontColor=220,220,220FontEffectColor=0,0,0StringEffect=ShadowSolidColor=0,0,0,150FontSize=8FontFace=Segoe UIStringStyle=BOLDStringAlign=LeftAntiAlias=1Text=#Alpha#DynamicVariables=1
I left the [MeterString] meter, to let you see how the Alpha variable is changing when you're hovering the mouse over or leave the skin. Obviously this will have to be removed.

Statistics: Posted by balala — Yesterday, 8:35 pm



Viewing all articles
Browse latest Browse all 781

Trending Articles