快速登录:  

Forum: VirtualDJ Skins

话题: Conditional syntax

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

GianVJPRO InfinityMember since 2012
Hello, I have a problem with this syntax:

<button Class="minicues" action="toggle '$Deck1_SV'" rightclick="Var '@$Deck1_SV' 0 ? set '$Deck1_SV' 1 & set '$Deck2_SV' 1 & set '$Deck3_SV' 1 & set '$Deck4_SV' 1 : set '$Deck1_SV' 0 & set '$Deck2_SV' 0 & set '$Deck3_SV' 0 & set '$Deck4_SV' 0">
<pos x="+712" y="+64"/>
<text dx="1" size="15" color="#70EE70" format="TEST"/>
</button>

The "action" work as expected, but "rightclick" work only in one direction: what's wrong ?

Thank You in advance for attention.
 

发表时间 Wed 09 Sep 15 @ 8:20 am
Try to use var_equal

rightclick="var_equal '@$Deck1_SV' 0 ? set '$Deck1_SV' 1 & set '$Deck2_SV' 1 & set '$Deck3_SV' 1 & set '$Deck4_SV' 1 : set '$Deck1_SV' 0 & set '$Deck2_SV' 0 & set '$Deck3_SV' 0 & set '$Deck4_SV' 0"


Edit:

Actually your issue is that you use two different variables
@$Deck1_SV is different than $Deck1_SV
 

发表时间 Wed 09 Sep 15 @ 9:01 am
GianVJPRO InfinityMember since 2012
Argh ... my distraction.

Excuse me and Thank You very much.


 

发表时间 Wed 09 Sep 15 @ 9:44 am


(陈旧帖子或论坛版块会自动关闭)