If you're sliding the meter from right to left, you have to duplicate the [Chrome] Image meter, because the original image (which I didn't want to manually manipulate through an image processing software, like Photoshop, or anything else) has the icon on right and the string on left. This is the normal position of them if you're sliding the meter to right: the right placed icon is what is visible on the refreshed skin, then when you're hovering the mouse over it, it starts sliding out to right, revealing the string.Jason wrote: ↑May 17th, 2020, 6:27 pmCode: Select all
[Rainmeter] Update=1000 BackgroundMode=2 SolidColor=0,0,0,1 [Metadata] Name=unFold Author=DevilRev [Variables] X1=-150 U=[!UpdateMeasureGroup Sliders][!UpdateMeterGroup Items][!Redraw] [MeterContainer] Meter=Image SolidColor=255,240,0 X=0 Y=0 W=150 H=50 MouseOverAction=[!CommandMeasure MeasureSlide "Stop 1"][!CommandMeasure MeasureSlide "Execute 2"] MouseLeaveAction=[!CommandMeasure MeasureSlide "Stop 2"][!CommandMeasure MeasureSlide "Execute 1"] [Chrome] Meter=Image Group=Items ImageName=#@#Buttons\Transparent\Chrome.png H=50 X=(Abs(#X1#)) DynamicVariables=1 LeftMouseDownAction=[!SetOption "#CURRENTSECTION#" "ImageAlpha" "150"][!UpdateMeter "#CURRENTSECTION#"][!Redraw] LeftMouseUpAction=[!SetOption "#CURRENTSECTION#" "ImageAlpha" "255"]["Chrome.exe"][!UpdateMeter "#CURRENTSECTION#"][!Redraw] RightMouseDownAction=[!Update] Container=MeterContainer [MeasureSlide] Measure=Plugin Plugin=ActionTimer Group=Sliders ActionList1=Repeat Left,5,30 Left=[!SetVariable X1 "(Clamp(#X1#-5,-150,0))"]#U# ActionList2=Repeat Right,5,30 Right=[!SetVariable X1 "(Clamp(#X1#+5,-150,0))"]#U# DynamicVariables=1
But if you want to slide the meter from right to left, you either have to edit the image manually, to move the icon on left of the string, or have to duplicate the Image meter(in this case it is called [Chrome]), cropping the Chrome.png image to get just the icon on the first Image meter and just the string (which in this case is part of the image), on the right placed meter. This is what I did, duplicating the [Chrome] meter. I let the [Chrome] name for the first meter (which has only the icon, done through the ImageCrop=600,0,200,200) and added a second Image meter, named [ChromeName], cropped through the ImageCrop=0,0,600,200 option. The second meter [ChromeName] has been placed to X=0R, which means there is no space between the two meters, so when you're moving the mouse from any of them to the other, there is nothing done, the meters are not moving back.
Alternatively another way would be what jsmorley proposed, to create a String meter for the name. I'm not entering into this solution, it definitely works, but since he have proposed it, I'm not intervene, letting him to help you, if this is what you prefer.
In your last posted code there is one single Image meter ([Chrome]), which moves to left. No second meter, but there is a container added to the [Chrome] Image meter, so when the image slides out, the icon is too much on right and is not reveled, not being under the container meter.
So, let's restart. I posted a code which I can assure you does work. Please try it, for first without modifying it. Does it work?