Accesso rapido:  

Forum: VirtualDJ Skins

Topic: Panels not working correctly

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

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'.

 

Inviato 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
 

Inviato Thu 24 Aug 17 @ 8:24 pm
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>
 

Inviato Thu 24 Aug 17 @ 8:33 pm
Try changing cover element to this:

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

Inviato Fri 25 Aug 17 @ 6:17 am
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>
 

Inviato Fri 25 Aug 17 @ 6:29 am
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.
 

Inviato Fri 25 Aug 17 @ 8:12 am
FruitPRO InfinityMember since 2003
Shouldn't it be "id" rather than "name" ?
 

Inviato Fri 25 Aug 17 @ 10:54 am
Well the VDJ 8 skin wiki says name, and doesn't mention id.

I can certainly try with id instead...
 

Inviato Fri 25 Aug 17 @ 10:58 am
AdionPRO InfinityCTOMember since 2006
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?
 

Inviato Fri 25 Aug 17 @ 11:01 am
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?
 

Inviato Fri 25 Aug 17 @ 11:13 am
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]
 

Inviato Fri 25 Aug 17 @ 4:58 pm
:)

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...
 

Inviato Fri 25 Aug 17 @ 6:54 pm
If it happens again, I'll know what to look for! Every day we are all learning.
 

Inviato Fri 25 Aug 17 @ 7:21 pm


(Vecchi argomenti e forum sono automaticamente chiusi)