Page 1 of 1

Slider Help

Posted: 10 Sep 2008 03:41
by homelessbrian
Im currently working on a skin and for the life of me i cannot figure out how to make a slider seek bar. ive opened other skins in the skin editor but looking at them and how they are setup isnt helping at all. I get it to show on the screen but it does not seek at all, it just restarts the video. Can anyone give me a quick tutorial on how they are made?

Re: Slider Help

Posted: 10 Sep 2008 15:54
by 3breadt
The important thing is the points attribute. It is a list of coordinates, relative to the x and y coordinates of the slider. This list of coordinates is put together to a bezier curve.

The list has to be set in the following format: (x1,y1),(x2,y2),...,(xn,yn) for a slider with n points.

If you want to create a simple left-to-right slider that is 100px wide use the following value for points: (0,0),(100,0)
You'll see a preview of the slider shape in the editor (the red line).

I think you can figure out the rest by yourself.

Re: Slider Help

Posted: 11 Sep 2008 05:09
by homelessbrian
thanks a bunch. I finally figured it out after using the points you gave me. I cannot wait to share this skin i am making with everyone. I want to get it fully working first though. Now to figure out why when i make a playtree, vlc crashes.