快速登录:  

Forum: VirtualDJ Technical Support

话题: auto switching in skins

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

scenario: some buttons on my skin have two functions(for example...the filter button is mapped to color fx and when i right click it acts as a slider control for a vst)
where shift Filter activates the 2nd function.
is there a way for the skin to automatically switch to display which of the two actions are being performed?(without manually right clicking on the filter on the skin).
so basically when i hit shift filter..the skin auto changes from the color fx slider to the vst slider and reverts when i just use filter without the shift.
custom buttons on skins could also work this way..but this maybe more complex
 

发表时间 Wed 12 Feb 20 @ 1:12 am
locoDogPRO InfinityModeratorMember since 2013
Yeah it probably could be done, visibility tied to shift or perhaps is_using
 

发表时间 Wed 12 Feb 20 @ 1:44 am
Ok..im not as verse in editing the skin xml..but will do some investigations
 

发表时间 Wed 12 Feb 20 @ 3:16 am
locoDogPRO InfinityModeratorMember since 2013
Take a look at the 3fx panel that does the same kind of thing.
 

发表时间 Wed 12 Feb 20 @ 4:28 am
Quick way:

1) Locate the elements you want to change.
e.g.
<button class="bla" .....>
</button>
<slider class="bla2"....>
</slider>


2) Make a panel for normal behavior and move those elements inside it
<panel name="NotShift" visible="not shift">
<button class="bla" .....>
</button>
<slider class="bla2"....>
</slider>

</panel>

3) Make a copy of that panel, and change visible query and the actions of the elements
<panel name="WithShift" visible="shift">
<button class="bla" .....>
</button>
<slider class="bla2"....>
</slider>

</panel>


In other words you should end up with this:
<panel name="NotShift" visible="not shift">
<button class="bla" .....>
</button>
<slider class="bla2"....>
</slider>

</panel>
<panel name="WithShift" visible="shift">
<button class="bla" .....>
</button>
<slider class="bla2"....>
</slider>

</panel>
 

发表时间 Wed 12 Feb 20 @ 9:19 am
Will give it a go..thanks again
 

发表时间 Wed 12 Feb 20 @ 12:46 pm


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