Sign In:     


Forum: VirtualDJ Skins

Topic: Jogwheel and 4 beats new mode

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

Hi guys,

Just noticed the jogwheel can now be set to a new '4 beats' RPM mode. Great ! It looks very nice !

So I decided to add the setting in the RPM menu of my skin :

<submenu text="RPM" visibility="not skin_panel 'deck_type_video'">
<item text="1" action="setting 'RPM' 1" check="setting 'RPM' 1"/>
<item text="6" action="setting 'RPM' 6" check="setting 'RPM' 6"/>
<item text="33 *" action="setting 'RPM' 33" check="setting 'RPM' 33"/>
<item text="45" action="setting 'RPM' 45" check="setting 'RPM' 45"/>
<item text="4 beats" action="setting 'RPM' '4 beats'" check="setting 'RPM' '4 beats'"/>
</submenu>

It works fine and the correct mode is selected... BUT the check won't work... What should I write in order to get that item correctly checked ?
 

Posted Sun 20 Mar 16 @ 10:34 pm
Hi Fruit, try this:

...action="setting 'RPM' 4 beats" check="setting 'RPM' 4.0"

works fine for me ;o)

 

Thx ^^

Nice skin btw.
 

No Problem.
Fruit wrote :

Nice skin btw.

Thx for this ;o)

 

Btw, I've had the same issue about the tooltips...

<item text="Tooltips" action="setting 'tooltip'" check="setting 'tooltip' 'yes'"/>

Again, this check won't work, tried several other things, so same question...
 


Didn't know this action, but thanks again (Put this on the to do list for my next update) ;o))

Try this my friend:
<item text="Tooltips" action="setting 'tooltip'" hascheck="true"/>
 

Results:

so this should work ;o)
 

No, I tried this too, but it won't work because it would be the only element with a 'hascheck' in that menu... :(

Plus, afaik, when using this, your check might not reflect the real state of the option (if, for instance, the user would use the options panel instead of your menu to turn it on/off). In other words, you are not querying the state.
 

I'm on work, will try later. Sorry.
EDIT:
I gave Phantom a Little note; hope he can help us...
 

Fruit
Try this
<item text="Tooltips" action="var_equal '@Tooltip' 1 ? set '@Tooltip' 0 & setting 'tooltip' 1 : var_equal '@Tooltip' 0 ? set '@Tooltip' 1 & setting 'tooltip' 0" check="var_equal '@Tooltip' 0"/>


or this one
<submenu text="Tooltips (Enable/Disable)">
<item text="Yes" action="set '@Tooltip' 0 & setting 'tooltip' 1" check="var_equal '@Tooltip' 0"/>
<item text="No" action="set '@Tooltip' 1 & setting 'tooltip' 0" check="var_equal '@Tooltip' 1"/>
</submenu>


 

Thanks, I know I could do this but again it's still a workaround...

BUT, you made my day. By reading your script I tried several new things and I found the good spelling !!

So thanks a lot :)

The correct check is :

<item text="Tooltips" action="setting 'tooltip'" check="setting 'tooltip'"/>

Works like a charm now ! :)
 

Fruit wrote :


The correct check is :

<item text="Tooltips" action="setting 'tooltip'" check="setting 'tooltip'"/>

Works like a charm now ! :)


yeah! I think we need a wiki for the "inside" variables and how to check them in menues....

 

For settings that are boolean (yes/no) you need to just call the setting
check="setting 'tooltip'"
If you want to invert the check mark then you go like this:
check="setting 'tooltip' ? off : on"

For settings that are numerical values you query the value:
check="setting 'scratchZoom' 0.2"

Please notice that we didn't use single quote marks around 0.2 because it's a numerical value.

Single quotes are required ONLY when the setting accepts/returns text.

check="setting 'colorWaveforms' 'ultra-blue'"

So, your initial mistake was that you were using single quotes around 'yes' / 'no' converting it from a bool to a string :)
 

Thanks for the explanation :)
 

BUT........

It seemed to work for a while... But now none of those checks are working anymore, thus the items are changing the option behavior correctly... Can't understand why...

<submenu text="RPM" visibility="not skin_panel 'deck_type_video'">
<item text="1" action="setting 'RPM' 1" check="setting 'RPM' 1"/>
<item text="6" action="setting 'RPM' 6" check="setting 'RPM' 6"/>
<item text="33 *" action="setting 'RPM' 33" check="setting 'RPM' 33"/>
<item text="45" action="setting 'RPM' 45" check="setting 'RPM' 45"/>
<item text="4 beats" action="setting 'RPM' '4 beats'" check="setting 'RPM' 4.0"/>
</submenu>

If someone can explain me my mistake, thanks in advance...

(Only tried at work with the free version right now, will check at home tonight with the full version)
 

May I ask what RPM 1 and RPM 6 are supposed to be ?
RPM 1 means 1 round per minute, not 1 beat.
On the same principal RPM 6 means means 6 round per minute, not 6 beats.

Mind you that for most numbers you need to type them as floats. So,

<item text="1" action="setting 'RPM' 1" check="setting 'RPM' 1.0"/>
works fine here.
So does
<item text="33 *" action="setting 'RPM' 33" check="setting 'RPM' 33.0"/>

For RPM= 4 Beats, there's currently a bug preventing you to query the value properly but it should be:
<item text="4 beats" action="setting 'RPM' '4 beats'" check="setting 'RPM' '4 beats'"/>
 

PhantomDeejay wrote :


For RPM= 4 Beats, there's currently a bug preventing you to query the value properly but it should be:
<item text="4 beats" action="setting 'RPM' '4 beats'" check="setting 'RPM' '4 beats'"/>


So what to do ?

<item text="RPM 4 beats" action="setting 'RPM' '4 beats'" check="setting 'RPM' '4 beats'"/>

action works fine, but no response in the menu...
If I update a skin, better this action (with no visual feedback for the user) or the other action/query (...check="setting 'RPM' 4.0)?!?
I'm confused, sorry.
 

PhantomDeejay wrote :
May I ask what RPM 1 and RPM 6 are supposed to be ?
RPM 1 means 1 round per minute
That's it, I usually do not scratch and I don't like to see it spining too fast so I usually use myself the 6 setting (thus I believe I will use the '4 beats' one now it is available, looks really great and more logical). 1 must not be used much but... Hey... Many people use my skin, they might want to set this lol ^^ (and I read somewhere some users could use it as a clock...)

PhantomDeejay wrote :
Mind you that for most numbers you need to type them as floats. So,

<item text="1" action="setting 'RPM' 1" check="setting 'RPM' 1.0"/>
works fine here.
Works fine here too with float numbers... I believe it was working before with integers... Something must've changed, maybe when the '4 beats' option's been introduced.

PhantomDeejay wrote :
For RPM= 4 Beats, there's currently a bug preventing you to query the value properly
Oh... Didn't know that... Will wait then, thanks for the info !

PhantomDeejay wrote :
but it should be:
<item text="4 beats" action="setting 'RPM' '4 beats'" check="setting 'RPM' '4 beats'"/>
So will I prepare the skin so it will work properly when the bug is addressed.

Thank you !
 

As I said, currently there's a bug there. Once it will be fixed by the team I will post again the proper way to query the value
 

Check is still not working...
 



(Old topics and forums are automatically closed)