Custom Sliders

Post Reply
User avatar
rbytes
Posts: 1329
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone X
iPad 4
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Custom Sliders

Post by rbytes » Sun Aug 26, 2018 6:04 pm

I have used these in several programs, sometimes with just a size change, and other times with different images for the handle and track.
;)
Attachments
329741EC-4F1D-4962-866A-334D2E42FE85.png
329741EC-4F1D-4962-866A-334D2E42FE85.png (95.26 KiB) Viewed 724 times
slidertrack.png
slidertrack.png (1.49 KiB) Viewed 727 times
sliderhandle.png
sliderhandle.png (1.88 KiB) Viewed 727 times
Last edited by rbytes on Tue Jun 18, 2019 6:17 am, edited 6 times in total.
Zzzzz

User avatar
rbytes
Posts: 1329
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone X
iPad 4
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Custom Sliders

Post by rbytes » Mon Aug 27, 2018 3:25 pm

I made an improvement to the slider action. A slider handle that is touched will follow the movement of the finger. if a finger moves too fast or drifts away from the track, it loses contact with the handle which then stops following the finger.

So I added move flags. Here's how they work. Once a finger "hits" a handle sprite, a flag is set to 1 for that slider. Now for as long as the finger keeps touching the screen, that handle will move along its track to follow the finger.
Zzzzz

Post Reply