Hello,
I have 5 pannels on the same position :
<pannel id="Effects1" group="groupe1" visible="no">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="5" y="1367"/>
</pannel>
<pannel id="Infos1" group="groupe1" visible="no">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="5" y="1125"/>
</pannel>
<pannel id="Scratch1" group="groupe1" visible="no">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="275" y="1125"/>
</pannel>
<pannel id="Options1" group="groupe1" visible="no">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="140" y="1367"/>
</pannel>
<pannel id="Tonalite1" group="groupe1" visible="yes">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="275" y="1367"/>
</pannel>
I would like that on startup VDJ, the "Tonalite1" pannel are visible.
I test this :
<init action="skin_pannel 'Tonalite1' on"/>
<oninit action="skin_pannel 'Tonalite1' on"/>
but it don't work. it's always the pannel of the previous closure ther is redisplayed...
Help !
I have 5 pannels on the same position :
<pannel id="Effects1" group="groupe1" visible="no">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="5" y="1367"/>
</pannel>
<pannel id="Infos1" group="groupe1" visible="no">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="5" y="1125"/>
</pannel>
<pannel id="Scratch1" group="groupe1" visible="no">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="275" y="1125"/>
</pannel>
<pannel id="Options1" group="groupe1" visible="no">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="140" y="1367"/>
</pannel>
<pannel id="Tonalite1" group="groupe1" visible="yes">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="275" y="1367"/>
</pannel>
I would like that on startup VDJ, the "Tonalite1" pannel are visible.
I test this :
<init action="skin_pannel 'Tonalite1' on"/>
<oninit action="skin_pannel 'Tonalite1' on"/>
but it don't work. it's always the pannel of the previous closure ther is redisplayed...
Help !
Posté Tue 15 Jan 13 @ 1:29 pm
In other skins I've modified the second command is "onit" instead of "oninit"
Try that!
Keith
Try that!
Keith
Posté Tue 15 Jan 13 @ 1:45 pm
You can also create panels visible depending on the value of a variable. Every time VirtualDJ starts the variables have 0 value, so the one you wish to display will be ..
<pannel id="Tonalite1" group="groupe1" visible="var '$myvar' 0">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="275" y="1367"/>
</pannel>
The others will look like ..
<pannel id="Scratch1" group="groupe1" visible="var '$myvar' 1">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="275" y="1125"/>
</pannel>
<pannel id="Options1" group="groupe1" visible="var '$myvar' 2">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="140" y="1367"/>
</pannel>
etc
And instead of having buttons like "skin_panel 'Tonalite1' on"
have ..
action="set '$myvar' 1" or 2 or 3 ..etc to trigger every panel you wish
or
action="cycle '$myvar' 4" which will cycle the variable from 0 to 3
<pannel id="Tonalite1" group="groupe1" visible="var '$myvar' 0">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="275" y="1367"/>
</pannel>
The others will look like ..
<pannel id="Scratch1" group="groupe1" visible="var '$myvar' 1">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="275" y="1125"/>
</pannel>
<pannel id="Options1" group="groupe1" visible="var '$myvar' 2">
<size width="135" height="242"/>
<pos x="135" y="146"/>
<down x="140" y="1367"/>
</pannel>
etc
And instead of having buttons like "skin_panel 'Tonalite1' on"
have ..
action="set '$myvar' 1" or 2 or 3 ..etc to trigger every panel you wish
or
action="cycle '$myvar' 4" which will cycle the variable from 0 to 3
Posté Tue 15 Jan 13 @ 1:55 pm
Wonderfull, it's wok !! very ingenious !!
Thank you !
Thank you !
Posté Tue 15 Jan 13 @ 2:25 pm
I have the same problem:
panels on the same position :
<panel id="audiomixer" group="mixer" visible="var '@$videomode' 0 ? var '$browser' 0">
... etc
<panel id="scratchmixer" group="mixer" visible="var '@$videomode' 0 ? var '$browser' 0">
....etc
Just tested, but it don't work:
<init action="skin_pannel 'scratchmixer' on"/>
<oninit action="skin_pannel 'scratchmixer' on"/>
<onit action="skin_pannel 'scratchmixer' on"/>
Switching between the panels with action="skin_panelgroup mixer +1" is working, but every time when I switch the skin, the panels are visible both together:
How I can select only one as default?
----------------
edit: OK, after some next tests, now it is working: <oninit action="skin_pannel 'scratchmixer' on"/>
but this code must be at the end of the skin code, just before </Skin>
Interesting.. :-)
panels on the same position :
<panel id="audiomixer" group="mixer" visible="var '@$videomode' 0 ? var '$browser' 0">
... etc
<panel id="scratchmixer" group="mixer" visible="var '@$videomode' 0 ? var '$browser' 0">
....etc
Just tested, but it don't work:
<init action="skin_pannel 'scratchmixer' on"/>
<oninit action="skin_pannel 'scratchmixer' on"/>
<onit action="skin_pannel 'scratchmixer' on"/>
Switching between the panels with action="skin_panelgroup mixer +1" is working, but every time when I switch the skin, the panels are visible both together:
How I can select only one as default?
----------------
edit: OK, after some next tests, now it is working: <oninit action="skin_pannel 'scratchmixer' on"/>
but this code must be at the end of the skin code, just before </Skin>
Interesting.. :-)
Posté Sun 15 Feb 15 @ 1:04 am
<panel id="audiomixer" group="mixer" visible="var '@$videomode' 0 ? var '$browser' 0">
<panel id="scratchmixer" group="mixer" visible="var '@$videomode' 0 ? var '$browser' 0">
You have to change one or both "var" in the same line, now they are exactly the same. So they react the same.
What's set "0" is on by start
<panel id="scratchmixer" group="mixer" visible="var '@$videomode' 0 ? var '$browser' 0">
You have to change one or both "var" in the same line, now they are exactly the same. So they react the same.
What's set "0" is on by start
Posté Sun 15 Feb 15 @ 2:08 am
Yes, i know, but on the same position as these panels from group "mixer" are sometimes other panels from other groups. When I have panels with big browser or with video panel on this position, variables $videomode 1 or $browser 1 hide the panels from group mixer. Now with ONINIT code it is working as I want. :-)
Posté Sun 15 Feb 15 @ 2:15 am
The idea is to not use the oninit function that can generate bugs.
Rereads this:
You only have to do this for exemple :
<panel id="audiomixer" group="mixer" visible="var '@$videomode' 0 ? var '$browser' 0">
<panel id="scratchmixer" group="mixer" visible="var '@$videomode' 0 ? var '$browser' 1">
at the launch of VDJ, the AudioMixer panel will be visible and scratchmixer hidden. And no oninit action
Rereads this:
djdad wrote :
You can also create panels visible depending on the value of a variable. Every time VirtualDJ starts the variables have 0 value, so the one you wish to display will be ..
You only have to do this for exemple :
<panel id="audiomixer" group="mixer" visible="var '@$videomode' 0 ? var '$browser' 0">
<panel id="scratchmixer" group="mixer" visible="var '@$videomode' 0 ? var '$browser' 1">
at the launch of VDJ, the AudioMixer panel will be visible and scratchmixer hidden. And no oninit action
Posté Sun 15 Feb 15 @ 7:39 pm