Accesso rapido:  

Forum: VirtualDJ Skins

Topic: need help with format= and variables

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

depending on a numeric value of the specified variable, i want to give out a individual buttontext:

format="var '@$cue' 0 ? %cue1 : var '@$cue' 1 ? %namecue1 : var '@$cue' 2 ? %Bfromcue1 : empty"

but this dont work......any ideas?
 

Inviato Mon 13 Jun 16 @ 12:20 pm
First of all you need to use action="blah blah blah" instead of format=
Format= is for "static" text
Second, you need to compare the variable by using var_equal action.

So, your script becomes like this:

action="var_equal '@$cue' 0 ? get_text '%cue1' : var_equal '@$cue' 1 ? get_text '%namecue1' : var_equal '@$cue' 2 ? get_text '%Bfromcue1' : get_text ''"
 

Inviato Mon 13 Jun 16 @ 12:44 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
Not sure what you are after, but version 8.2 also provides the action cue_display X (where X is the hotcue number)
and it will display a value depending on the cue_display action (used as button)
Take a look at the code of the Pad menu of the Hotcue page (inside the Pad Editor)

cue_display 'number'
cue_display 'name'
cue_display 'position'
cue_display 'distance'
cue_display 'beat'

so you dont have to use any variables ;)
Just use <text action="cue_display X" .. />
and probably a menu with the above actions.
 

Inviato Mon 13 Jun 16 @ 12:50 pm
djdad wrote :
Not sure what you are after, but version 8.2 also provides the action cue_display X (where X is the hotcue number)
and it will display a value depending on the cue_display action (used as button)
Take a look at the code of the Pad menu of the Hotcue page (inside the Pad Editor)

cue_display 'number'
cue_display 'name'
cue_display 'position'
cue_display 'distance'
cue_display 'beat'

so you dont have to use any variables ;)
Just use <text action="cue_display X" .. />
and probably a menu with the above actions.


Works great! Thanks!
but for cue_display are no hints/examples in Pad Editor....

 

Inviato Mon 13 Jun 16 @ 5:41 pm


(Vecchi argomenti e forum sono automaticamente chiusi)