Se Connecter:     


Forum: VirtualDJ Skins

Sujet: Panels not working correctly

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

I have an area that switches between three panels, using buttons to the left of the area (not in the panels).

The first panel contains cover art and three text zones (BPM, key and star rating).
The second and third panels are not complete yet, but I have the graphics backgrounds for them.

When there's no track loaded (so no cover art shown) the panels switch fine, and everything gets replaced by the other panel(s) content.

However, when there's a track loaded (so cover is being displayed) the cover stays on screen no matter which panel is 'on'.

 

Posté Thu 24 Aug 17 @ 3:42 pm
Post your xml code here.
Cover element respects the panel's visibility that it's nested within.
So it must be another issue/error
 

I won't bother including the code for the buttons, because that's working OK.

Here's the panel code for deck A. Panels 2 and 3 have nothing in at the moment. Just a background.

<panel name="trackinfo1" group="1" visible="yes">
<size width="214" height="130"></size>
<pos x="77" y="71"></pos>
<down x="77" y="71"></down>

<cover deck="1" x="+0" y="+0">
<size width="129" height="129"/>
</cover>

<textzone deck="1">
<pos x="209" y="72"/>
<size width="81" height="41"/>
<text size="14" color="#FFFFFF" align="center" weight="bold" action="get bpm"/>
</textzone>

<textzone deck="1">
<pos x="209" y="116"/>
<size width="81" height="41"/>
<text size="14" color="#FFFFFF" align="center" weight="bold" action="get_harmonic"/>
</textzone>

<textzone deck="1">
<pos x="209" y="160"/>
<size width="81" height="41"/>
<text size="14" color="#FFFFFF" align="center" weight="bold" format="`get loaded_song 'stars'`"/>
</textzone>
</panel>

<panel name="effects1" group="1" visible="no">
<size width="214" height="130"></size>
<pos x="77" y="71"></pos>
<down x="880" y="800"></down>
new stuff here
</panel>

<panel name="panel3deck1" group="1" visible="no">
<size width="214" height="130"></size>
<pos x="77" y="71"></pos>
<down x="1100" y="800"></down>
more new stuff here
</panel>
 

Try changing cover element to this:

<cover deck="1">
<pos x="+0" y="+0"/>
<size width="123" height="123"/>
</cover>
 

PS: To avoid repeating, and in order to tide up code I would do it like this:

<define class="txt_DeckInfo" >
<size width="81" height="41"/>
<text size="14" color="white" align="center" weight="bold" />
<tooltip />
</define>

<deck deck="1">

<panel name="trackinfo1" group="1" visible="yes">
<size width="214" height="130"/>
<pos x="77" y="71"/>
<down x="77" y="71"/>

<cover>
<pos x="+0" y="+0"/>
<size width="123" height="123"/>
</cover>

<textzone class="txt_DeckInfo">
<pos x="209" y="72"/>
<text action="get bpm"/>
</textzone>

<textzone class="txt_DeckInfo">
<pos x="209" y="116"/>
<text action="get_harmonic"/>
</textzone>

<textzone class="txt_DeckInfo">
<pos x="209" y="160"/>
<text size="14" action="get loaded_song 'stars'"/>
</textzone>

</panel>

<panel name="effects1" group="1" visible="no">
blah blah
</panel>

<panel name="panel3deck1" group="1" visible="no">
more blah blah blah
</panel>

</deck>
 

PhantomDeejay wrote :
Try changing cover element to this:

<cover deck="1">
<pos x="+0" y="+0"/>
<size width="123" height="123"/>
</cover>


No - just tried this, and it didn't make any difference.
 

Shouldn't it be "id" rather than "name" ?
 

Well the VDJ 8 skin wiki says name, and doesn't mention id.

I can certainly try with id instead...
 

VDJ 8 indeed accepts name (but id will do the same)

Do you have experimentalSkinEngine enabled, and do you still have the issue when you disable it?
 

I tried with both, no difference. I find (for any skin) there are fewer graphical erros when e.s.e. is off anyway.

BTW I was just looking in the default skin, and notice that every time <cover> is used, there's a <visual> before it. Do I need to add that?
 

UPDATE

I got to the bottom of it. My fault entirely, LOL!

I had originally written things in without using panels, then when I started work on the panels, I copied the original code and pasted it into the panel - but didn't delete the original. This meant there was a duplicate cover (not in a a panel) being placed over the 'in panel' cover.

Doh! [facepalm]
 

:)

I was sure that this was a "user error" because my skins make extensive use of panels and I never had such issues...

Anyway, good luck with the rest of your skin...
 

If it happens again, I'll know what to look for! Every day we are all learning.
 



(Les anciens sujets et forums sont automatiquement fermés)