Quick Sign In:  

Forum: VirtualDJ Skins

Topic: Script code for Circle slider

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

djdadPRO InfinityDevelopment ManagerMember since 2005
This is the first time i use a circle slider (not a round) and i have troubles to make it work... i get error to 1st line of this part...

<slider panel="decks" action="deck 1 eq_high" orientation="circle" >
<circle x="411" y="493" anglemin="40" anglemax="320" sectsize="10" direction="cw"/>
<pos x="411" y="493"/>
<size width="79" height="79"/>
<up x="+0" y="+0"/>
<selected x="+0" y="+1024"/>
<mousecircle x="100" y="1200" r="40"/>
</slider>

Any ideas ?
 

geposted Sun 07 Nov 10 @ 8:50 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
i tried to find a similar use of circle slider in other older skins, but the only thing i found was the use of the circle orientation to songpos. So has anyone tried this with other sliders such as eq, or fx prmtrs ?

The reason i want to make circle sliders instead of round is that they behave in a different way which is suitable for touchscreen skins..

Example, you have that large slider. If you touch the slider inside (where the red arrow points) nothing will happen if this slider is round. But if its circle it will move to that value.

 

geposted Mon 08 Nov 10 @ 11:36 am
djdadPRO InfinityDevelopment ManagerMember since 2005
 

geposted Mon 08 Nov 10 @ 11:45 am
obviously you got it working... how?
 

geposted Tue 14 Dec 10 @ 3:11 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
Unfortunately, not yet !
 

geposted Tue 14 Dec 10 @ 3:43 pm
I got it! lol

added the clipmask field into your code and it works.

I want the code/graphics you used on the touchscreen from the youtube video... SUPER SLICK

I'm using this code and it works... just not as slick as the one on your skin.


<slider action="master_volume" orientation="circle" relative="no">
<circle x="1044" y="151" sectsize="0" direction="cw" anglemin="10" anglemax="350"/>
<pos x="1033" y="142"/>
<size width="22" height="22"/>
<up x="1030" y="3142"/>
<selected x="915" y="3142"/>
<mousecircle x="1044" y="151" r="11"/>
<clipmask x="984" y="3142"/>
</slider>
 

geposted Tue 14 Dec 10 @ 4:13 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
Good news !
I will try it thanks !

What is your clipmask ? A black circle?

I will upload the touchscreen skin next week. Send me your email. I will send you a beta. You can find mine in my VDJ blog.
 

geposted Tue 14 Dec 10 @ 4:51 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
Ok. i gave a try but didnt work 100%.

Lets try this.
If someone wants to participate on this NEW SKINNER TEST, do this.
Use the VirtualDJ (2Decks) 1440X900 Default skin. (Backup the skin first or use a different zip name when done).
Open the xml file and find these lines ..

<songpos deck="1" orientation="circle" waveform="no" >
<circle/>
<size width="154" height="154"/>
<pos x="349" y="253"/>
<volume x="+0" y="+1575"/>
<selected x="+0" y="+1013"/>
<clipmask x="639" y="2454"/>
<mousemask x="639" y="2454"/>
</songpos>

Then replace with these lines

<slider action="master_volume" orientation="circle" relative="no">
<circle x="349+77" y="253+77" direction="cw" anglemin="-160" anglemax="160" />
<size width="154" height="154"/>
<pos x="349" y="253"/>
<selected x="+0" y="+1013"/>
<clipmask x="639" y="2454"/>
<mousemask x="639" y="2454"/>
</slider>

You will notice that it actually works. If you click inside the small circle (which used to be the songpos) the master volume moves to the given value (check the master volume knob), BUT the selected area is not working for the left side (angle -160 to 0)

Angle seems to work ONLY between 0-360 (positive values), so if you give anglemin="20" and anglemax="340" instead of -160 +160 it works as selected (graphics) but not properly since the middle (master volume 50%) is now off center.
 

geposted Wed 15 Dec 10 @ 5:23 pm


(Alte Themen und Foren werden automatisch geschlossen)