Sign In:     


Forum: VirtualDJ Skins

Topic: button to show different colours, variable dependant.

This topic is old and might contain outdated or incorrect information.

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?
 

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

nice one, thanks for the reply.
 



(Old topics and forums are automatically closed)