Connexion rapide:  

Forum: VirtualDJ Skins

Sujet button to show different colours, variable dependant.

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

locoDogPRO InfinityModeratorMember since 2013
Probably simple but this simpleton can't figure it.

I want the pad_menu button to show different colours depending on a variable
I first defined a new button
<define class="routinemenubutton">
<size width="12" height="12"/>
<off shape="circle" color="green" border_size="3" border="bordercolor2"/>
<over shape="circle" color="textoff2" border_size="3" border="bordercolor2"/>
<selected shape="circle" color="green" border_size="3" border="bordercolor2"/>
</define>

and I pointed the pads panels at that name, but I can't figure out how to make the off color change depending on a variable.
have I got it wrong, should I be using a visual?
 

Posté Thu 30 Jan 20 @ 3:18 pm
Yes, the only way to get a "dynamic" color element is to use a visual.
So, you define the visual to handle the colors and then you draw it above (or behind) of the elements you want.
 

Posté Thu 30 Jan 20 @ 4:31 pm
locoDogPRO InfinityModeratorMember since 2013
nice one, thanks for the reply.
 

Posté Thu 30 Jan 20 @ 4:52 pm


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