Forum: VirtualDJ Skins

About skins, skin development and communicate with other skin developers.
Topic: button to show different colours, variable dependant.
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?

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

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

geposted Thu 30 Jan 20 @ 4:52 pm