Slider Help

About usage, announcement and development of skins for VLC
homelessbrian
New Cone
New Cone
Posts: 6
Joined: 10 Sep 2008 03:37

Slider Help

Postby homelessbrian » 10 Sep 2008 03:41

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?

3breadt
Big Cone-huna
Big Cone-huna
Posts: 827
Joined: 19 Mar 2006 11:37
Operating System: Win7 Pro / OS X 10.7
Location: Paderborn, Germany
Contact:

Re: Slider Help

Postby 3breadt » 10 Sep 2008 15:54

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.
-- 3breadt (aka altglass)

homelessbrian
New Cone
New Cone
Posts: 6
Joined: 10 Sep 2008 03:37

Re: Slider Help

Postby homelessbrian » 11 Sep 2008 05:09

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.


Return to “Skins”

Who is online

Users browsing this forum: No registered users and 46 guests