Accesso rapido:  

Forum: VirtualDJ Skins

Topic: button to show different colours, variable dependant.

Questo argomento è obsoleto e potrebbe contenere informazioni obsolete o errate.

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?
 

Inviato 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.
 

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

Inviato Thu 30 Jan 20 @ 4:52 pm


(Vecchi argomenti e forum sono automaticamente chiusi)