It is currently April 25th, 2024, 8:32 am

Sliders...

Get help with creating, editing & fixing problems with skins
User avatar
brax64
Posts: 172
Joined: July 8th, 2018, 8:05 pm

Sliders...

Post by brax64 »

Hi all,

here we go again... need some help... :oops:
I'm coding a small launcher skin using this as guide line https://forum.rainmeter.net/viewtopic.php?f=118&t=23269
I've a button that is the trigger to slide on and off 3 "tabs", that should open different apps (at the end, will be 8 if I'll get it to work...)
My issue is that the first two tabs won't react to the LeftMouseUpAction, only the 3rd one does.
Did enabled SolidColor=50,50,50,100 on the 3rd tab and I can see that its size go over the first 2 tabs so I'm guessing that the reason why the first 2 tabs are not reacting to the "click".
Any way to fix that?


here the rmskin
Slider_1.0.rmskin
Thanks in advance!
You do not have the required permissions to view the files attached to this post.
Last edited by brax64 on August 10th, 2020, 12:27 pm, edited 5 times in total.
User avatar
brax64
Posts: 172
Joined: July 8th, 2018, 8:05 pm

Re: Sliders...

Post by brax64 »

dvo wrote: August 10th, 2020, 5:30 am don't forget DynamicVariables=1 in the meters... (with the offset) then they will slide :P
all you need in the things you want to slide, is the X=(#OffSet1#+12) and DynamicVariables=1
Hi dvo,
The slide part is working,

Code: Select all

[TextStyle]
Group=Slider
FontFace=#ff#
FontSize=11
FontColor=#C#,#mAlpha#
StringAlign=Left
AntiAlias=1
DynamicVariables=1

[Text1]
Meter=String
MeterStyle=TextStyle
Text=#text1#
X=(#OffSet1#+12)
Y=6
as you cans see above, my code is already written in that way.
My issue is that the first 2 tabs do not react to the mouse... if you want, download the zip file in my first post, there's the compete skin and also a small video so you can clearly understand what's happening
Last edited by brax64 on August 10th, 2020, 6:49 am, edited 1 time in total.
User avatar
brax64
Posts: 172
Joined: July 8th, 2018, 8:05 pm

Re: Sliders...

Post by brax64 »

dvo wrote: August 10th, 2020, 6:39 am ... some #icon1#,#icon2#,#icon3# and does nothing? and a lost blue dot...

looked at my old slide it needs it...
The #icon#.. need the ElegantIcons font to show correctly...I've included in the zip archive all fonts I'm using...
you should see 3 vertical dot (Yellow, Green and Red, like a traffic light :rofl:) those are webdings font and should be already installed in your system... it's native in windows
User avatar
brax64
Posts: 172
Joined: July 8th, 2018, 8:05 pm

Re: Sliders...

Post by brax64 »

dvo wrote: August 10th, 2020, 7:01 am loaded fonts in to windows ... no diffrence....
Did you copy the @resources folder in order to pass to the skin the @Include files?
@include=#@#Bangs.inc
@include2=#@#Menu.inc
User avatar
brax64
Posts: 172
Joined: July 8th, 2018, 8:05 pm

Re: Sliders...

Post by brax64 »

dvo wrote: August 10th, 2020, 7:09 am folders are Launcher >> Launcher >> menu + @Resources
I might have forgot to put all the colors in the menu.inc files... make sure you have all of these:

Code: Select all

C=140,140,140
GruvyYellow=255,198,33
GruvyGreen=46,233,164
GruvyRed=255,62,154
GruvyBlue=28,108,255
GruvyPink=193,37,255
sorry about that..
User avatar
brax64
Posts: 172
Joined: July 8th, 2018, 8:05 pm

Re: Sliders...

Post by brax64 »

dvo wrote: August 10th, 2020, 7:09 am got the 3 dots now ... copied @Resources to the root of the folder instead of the second sub folder ...
oke got it switched some folders to the root of the folder btw you have to move the text above the bar ....not under it ....
and you are missing the slide back .... this would be a onclick and a onleave action ....
so it had to be not a on/off ..... but a on click / on over and leave action on the buttons
Can't be on leave you need to have the 3 bars available to launch the app, click on 3 dots to show the bars, click again to hide them..And the slide back is there

Code: Select all

[MeasureSlider]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideRight1, 30, 6 | wait 16 | Repeat SlideRight2, 30, 6 | wait 16 | Repeat SlideRight3, 30, 6
SlideRight1=[#SV# OffSet1 "(Clamp(#OffSet1#+30,-155,35))"][#SV# mAlpha "(Clamp(#mAlpha#+27,20,180))"]#U6#
SlideRight2=[#SV# OffSet2 "(Clamp(#OffSet2#+30,-155,35))"]#U6#
SlideRight3=[#SV# OffSet3 "(Clamp(#OffSet3#+30,-155,35))"][#SV# OnOff "2"]#U6#
ActionList2=Repeat SlideLeft1, 30, 9 | wait 16 | Repeat SlideLeft2, 30, 9 | wait 16 | Repeat SlideLeft3, 30, 9
SlideLeft1=[#SV# OffSet1 "(Clamp(#OffSet1#-20,-155,35))"]#U6#
SlideLeft2=[#SV# OffSet2 "(Clamp(#OffSet2#-20,-155,35))"]#U6#
SlideLeft3=[#SV# OffSet3 "(Clamp(#OffSet3#-20,-155,35))"][#SV# mAlpha "(Clamp(#mAlpha#-20,20,180))"][#SV# OnOff "1"]#U6#
DynamicVariables=1
UpdateDivider=-1

...

[Button]
Meter=String
MeasureName=MeasureButton
FontFace=Webdings
FontSize=8
SolidColor=0,0,0,1
StringAlign=Left
AntiAlias=1
Angle=(rad(90))
DynamicVariables=1
X=12
Y=4
H=46
W=16
InlineSetting=Color|#GruvyYellow#,#bAlpha#
InlinePattern=(^n)
InlineSetting2=Color|#GruvyGreen#,#bAlpha#
InlinePattern2=(\sn\s)
InlineSetting3=Color|#GruvyRed#,#bAlpha#
InlinePattern3=(n$)
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #OnOff#"]
User avatar
brax64
Posts: 172
Joined: July 8th, 2018, 8:05 pm

Re: Sliders...

Post by brax64 »

dvo wrote: August 10th, 2020, 7:37 am on leave it had to trigger the slide back and on the onclick to .. you don't need it any more because you picked your option
now you only can open or close on pressing the same bar
morning balala you can take over ... your mutch better in this...
No worries bud! Thanks anyway for your efforts, really appreciated!
User avatar
brax64
Posts: 172
Joined: July 8th, 2018, 8:05 pm

Re: Sliders...

Post by brax64 »

dvo wrote: August 10th, 2020, 7:45 am i'm to slow and balala is very fast with this :P ( not this time .. )


this fixes the menu & text and the slider is working to.... so have fun :)
tested it with the calculator... others i don't have...

Code: Select all

;=======================================
;             Menu Items
;=======================================

[Menu1]
Meter=Shape
Shape=Rectangle #OffSet1#,1,150,24,12 | Fill LinearGradient Fading | strokewidth 0
MeterStyle=MenuStyle
LeftMouseUpAction=[#menu1#]
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #OnOff#"]
LeftMouseDownAction=[#menu1#]
[Text1]
Meter=String
MeterStyle=TextStyle
Text=#text1#
X=(#OffSet1#+12)
Y=6
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #OnOff#"]
LeftMouseDownAction=[#menu1#]
[Icon1]
Meter=String
MeterStyle=IconStyle
Text=#icon1#
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #OnOff#"]
LeftMouseDownAction=[#menu1#]

[Menu2]
Meter=Shape
Shape=Rectangle #OffSet2#,28,150,24,12 | Fill LinearGradient Fading | strokewidth 0
MeterStyle=MenuStyle
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #OnOff#"]
LeftMouseDownAction=[#menu2#]
DynamicVariables=1

[Text2]
Meter=String
MeterStyle=TextStyle
Text=#text2#
X=(#OffSet2#+12)
Y=33
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #OnOff#"]
LeftMouseDownAction=[#menu2#]
[Icon2]
Meter=String
MeterStyle=IconStyle
Text=#icon2#
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #OnOff#"]
LeftMouseDownAction=[#menu2#]

[Menu3]
Meter=Shape
Shape=Rectangle #OffSet3#,55,150,24,12 | Fill LinearGradient Fading | strokewidth 0
MeterStyle=MenuStyle
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #OnOff#"]
LeftMouseDownAction=[#menu3#]
DynamicVariables=1

[Text3]
Meter=String
MeterStyle=TextStyle
Text=#text3#
X=(#OffSet3#+12)
Y=60
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #OnOff#"]
LeftMouseDownAction=[#menu3#]

[Icon3]
Meter=String
MeterStyle=IconStyle
Text=#icon3#
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #OnOff#"]
LeftMouseDownAction=[#menu3#]




I'm sorry but is not working on my side...
User avatar
brax64
Posts: 172
Joined: July 8th, 2018, 8:05 pm

Re: Sliders...

Post by brax64 »

I've updated the zip file in the 1st post to the very last version I'm currently working on, still the issue with the first 2 bars not reacting to the mouse is still there (the associated app is not opening...), no issues regarding the sliding part...
User avatar
brax64
Posts: 172
Joined: July 8th, 2018, 8:05 pm

Re: Sliders...

Post by brax64 »

dvo wrote: August 10th, 2020, 9:23 am oke then the link to the program has a problem ... your on win 10?
yes

just made a new link, try it...

https://1drv.ms/u/s!AqHC35yPJbKOgYJ2pZ2GZcmxWJT2zA?e=w8WTwQ