Connexion rapide:  

Forum: VirtualDJ Skins

Sujet Help with easy VDJScript skin code

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

LudekPRO InfinityMember since 2005
Hi, can you help me with this easy VDJscript skin code, please?

I want switch the colorplayed value in the songpos definition by $songpost variable. Simple action:

If $songpost = 0 .... <songpos class="songpos" colorPlayed="#222222">
If $songpost = 1 .... <songpos class="songpos" colorPlayed="#00a5e4'">


Just tested:
<songpos class="songpos" var '$songpost' 0 ? colorPlayed="#222222" : colorPlayed="#00a5e4">

<songpos class="songpos" action="var '$songpost' 0 ? colorPlayed='#222222' : colorPlayed='#00a5e4'">

<songpos class="songpos" colorPlayed="var '$songpost' 0 ? constant '#222222' : constant '#00a5e4'">

and other similiar variations, but It's not working. :-)


btw. is there any way, how I can disable progress bar in the colored songpos waveforms? I want show only this waveforms without any colored shadows for played parts.
 

Posté Wed 18 Feb 15 @ 10:59 am
I think maybe you need to state visibility instead.

One colour with visibility=$songpost 0 and the other colour with visibility=$songpost 1
 

Posté Wed 18 Feb 15 @ 11:34 am
<songpos class="songpos" colorPlayed="#222222" visibility="var '$songpost' 0">

<songpos class="songpos" colorPlayed="#00a5e4" visibility="var '$songpost' 1">
 

Posté Wed 18 Feb 15 @ 11:36 am
LudekPRO InfinityMember since 2005
Yes, now It's working, thanks.. :-)

And my next question, how I must change this definition,

<define class="songpos" classdeck="1" colorPlayed="#222222" colorBass="#00567a" colorMed="#00a5e4" colorHigh="#7fc8e9" >

if I want the same colors without shadows for played and unplayed parts of the song? I have green progress bar under the songpos window:

 

Posté Wed 18 Feb 15 @ 12:07 pm
You can use colorplayed="transparent" or colorplayed="#000000" but you will still get a "darker" shade on the played part of the waveform
 

Posté Wed 18 Feb 15 @ 3:17 pm


(Les anciens sujets et forums sont automatiquement fermés)