Hello everyone.
I'm creating a panel-based skin. One of them will be a Launchpad-controlled sampler (64 buttons). I made all 64 buttons including "sampler_position". I would also like for each button to display an icon read from the sample, and this is where I have a problem.
Thank you in advance for your help.
<button action="sampler_pad 1">
<pos x="+405" y="+245" width="180" height="107"/>
<on color="samp2" border_size="1" radius="2" border="#545353"/>
<off color="samp1" border_size="1" radius="2" border="#545353"/>
<text dy="-6" fontsize="21" multiline="yes" font="Khand" color="`sampler_color 1 'auto'`" align="center" format="`get_sample_name 1`" localize="true"/>
</button>
<textzone>
<pos x="+405" y="+283"/>
<size width="180" height="60"/>
<text fontsize="180" font="Rajd" color="`sampler 1 loaded ? sampler_color 1 'auto' : color 'sampunl'`" align="center" weight="" text="Ć" localize="true"/>
</textzone>
<visual source="sampler_position 1" type="linear" orientation="horizontal">
<pos x="414" y="254"/>
<size width="162" height="5"/>
<off shape="square" color="#000000"/>
<on shape="square" color="samplyd"/>
</visual>
I'm creating a panel-based skin. One of them will be a Launchpad-controlled sampler (64 buttons). I made all 64 buttons including "sampler_position". I would also like for each button to display an icon read from the sample, and this is where I have a problem.
Thank you in advance for your help.
<button action="sampler_pad 1">
<pos x="+405" y="+245" width="180" height="107"/>
<on color="samp2" border_size="1" radius="2" border="#545353"/>
<off color="samp1" border_size="1" radius="2" border="#545353"/>
<text dy="-6" fontsize="21" multiline="yes" font="Khand" color="`sampler_color 1 'auto'`" align="center" format="`get_sample_name 1`" localize="true"/>
</button>
<textzone>
<pos x="+405" y="+283"/>
<size width="180" height="60"/>
<text fontsize="180" font="Rajd" color="`sampler 1 loaded ? sampler_color 1 'auto' : color 'sampunl'`" align="center" weight="" text="Ć" localize="true"/>
</textzone>
<visual source="sampler_position 1" type="linear" orientation="horizontal">
<pos x="414" y="254"/>
<size width="162" height="5"/>
<off shape="square" color="#000000"/>
<on shape="square" color="samplyd"/>
</visual>
发表时间 Mon 22 Apr 24 @ 10:41 pm
Can anyone help ?
发表时间 Tue 23 Apr 24 @ 5:02 pm
hi, Am I right that the <visual> must show the icon?
Just use icon in the button zone:
Read this page for more info: https://www.virtualdj.com/wiki/Skin%20Button.html
Just use icon in the button zone:
<button action="sampler_pad 1">
<pos x="+405" y="+245" width="180" height="107"/>
<on color="samp2" border_size="1" radius="2" border="#545353"/>
<off color="samp1" border_size="1" radius="2" border="#545353"/>
<text dy="-6" fontsize="21" multiline="yes" font="Khand" color="`sampler_color 1 'auto'`" align="center" format="`get_sample_name 1`" localize="true"/>
<icon sysicon="close" color="#babababa" colorover="#808080" width="20" height="20" />
</button>
Read this page for more info: https://www.virtualdj.com/wiki/Skin%20Button.html
发表时间 Wed 24 Apr 24 @ 6:02 am
Is it possible to change parameters, e.g. colors, size, distance of buttons, etc. inside the sampler code???
<sampler>
<size width="1000" height="1000"/>
<pos x="+100" y="+100"/>
.......................
</sampler>
<sampler>
<size width="1000" height="1000"/>
<pos x="+100" y="+100"/>
.......................
</sampler>
发表时间 Sun 28 Apr 24 @ 8:32 am