Quick Sign In:  

Forum: VirtualDJ Skins

Topic: browser without info, sideview, folders split panels - Page: 2

This part of topic is old and might contain outdated or incorrect information

<fileview>
<size width="1899" height="806-12"/>
<pos x="+1" y="-2"/>
<colors>
<lists stripes="#004F9E" over="#0097FF" overstripes="#0097FF" selected="#004F9E" focus="#FFFF00" text="#FFFFFF" overtext="#000000" selectedtext="#FFFFFF" focustext="#000000" automix="#999999" livefeedback="#999999" download="#00FF00" scan="#FFFF00" button="#004488" buttonover="#FFFFFF" buttonselected="#FFFFFF" buttonactive="#FFFFFF" insert="#2E2E2E" />
<columns background="#004F9E" text="WHITE" />
<toolbars background="#004F9E" text="#FFFFFF" iconbackground="#0097C9" border="#999999" />
</colors>
</fileview>

@Dan as pictured, colours are working OK here (screen grab taken tonight from VDJ 8.1 build 2770)

<edit> is not used - I just checked
 

Posted Wed 13 Jan 16 @ 10:37 pm
In my skin it used a custom browser toolbar.
So the search bar does not feature in my code above.
I will have used <edit> elsewhere.
 

Posted Wed 13 Jan 16 @ 10:39 pm
Many thanks to the both of you!!!

@Dan: What did you do to leave the search bar out (when you put in your custom one)? I have not mentioned the search bar in my code, but it automatically appears... What's the trick to have it not appear? Do you need to create a custom search bar? Or can I have a file list without the search bar (which is another thing I'm after, namely for my sidelist)?
 

Posted Wed 13 Jan 16 @ 10:48 pm
Please see my answer in your other post.

But lets continue the conversation here.
 

Posted Wed 13 Jan 16 @ 10:51 pm
Following your suggestion, I found that this indeed gives a file list WITHOUT THE SEARCH BAR, completely in the colors and style of my skin:

<filelist>
<pos x="252" y="600"/>
<size width="1414" height="466"/>
<colors background="#000000">
<lists background="#000000" stripes="#000000" over="transparent" overstripes="transparent" selected="#000000" focus="#000000" text="#006B00" overtext="#006B00" selectedtext="#00A600" focustext="#00A600" automix="#00A600" button="#000000" buttonover="#000000" buttonselected="#000000" buttonactive="#000000" />
<grids background="#000000" over="transparent" selected="#000000" focus="#000000" text="#000000" overtext="#000000" selectedtext="#000000" focustext="#000000" stripes="#000000" overstripes="#000000" selectedstripes="#000000" focusstripes="#000000" label="#000000" />
<columns background="#000000" text="#00A600" />
<search background="#000000" border="#000000" selected="#000000" text="#00A600" cursor="#000000" />
</colors>
<font size="24" name="Arial Unicode MS" />
<fontheader size="24" />
<fontgridtitle size="24" />
</filelist>

I stumbled on two problems:

1. When adding "sidelist" as a source, the column names bar dissappears. This seems to be a bug. And even if a playlist is selected first in the normal browser and then switched to the sidelist, the sidelist filelist will not show the playlist... ???

2. When selecting a folder first in the normal browser, the "filelist" without a specified source will show that folder, but when I try to include the folder specification in the button that calls up the panel with the filelist, the filelist won't pick up that folder specification... :(

This is the code I have for the filelist panel (MAIN PANEL 0) activation button:

<button action="set 'MAINPANEL' 0 & var_equal 'SHOW' 2 ? var_equal 'LANGUAGE' 2 ? browser_gotofolder 'Y:\MUSIC\HOUSE\SPA' : var_equal 'LANGUAGE' 3 ? browser_gotofolder 'Y:\MUSIC\HOUSE\ENG' : var_equal 'LANGUAGE' 4 ? browser_gotofolder 'Y:\MUSIC\HOUSE\DUAL' : browser_gotofolder 'Y:\MUSIC\HOUSE : var_equal 'SHOW' 3 ? var_equal 'LANGUAGE' 2 ? browser_gotofolder 'Y:\MUSIC\DISCO\SPA' : var_equal 'LANGUAGE' 3 ? browser_gotofolder 'Y:\MUSIC\DISCO\ENG' : var_equal 'LANGUAGE' 4 ? browser_gotofolder 'Y:\MUSIC\DISCO\DUAL' : browser_gotofolder 'Y:\MUSIC\DISCO : var_equal 'SHOW' 4 ? var_equal 'LANGUAGE' 2 ? browser_gotofolder 'Y:\MUSIC\ROCK\SPA' : var_equal 'LANGUAGE' 3 ? browser_gotofolder 'Y:\MUSIC\ROCK\ENG' : var_equal 'LANGUAGE' 4 ? browser_gotofolder 'Y:\MUSIC\ROCK\DUAL' : browser_gotofolder 'Y:\MUSIC\ROCK : var_equal 'SHOW' 5 ? var_equal 'LANGUAGE' 2 ? browser_gotofolder 'Y:\MUSIC\JAZZ\SPA' : var_equal 'LANGUAGE' 3 ? browser_gotofolder 'Y:\MUSIC\JAZZ\ENG' : var_equal 'LANGUAGE' 4 ? browser_gotofolder 'Y:\MUSIC\JAZZ\DUAL' : browser_gotofolder 'Y:\MUSIC\JAZZ : browser_gotofolder 'Y:\MUSIC\VARIOUS'">

Depending on the settings of my "language" and "show" selector buttons elsewhere in the skin, a certain folder should be visible. But it isn't. Just a blank list...

What am I missing here?

 

Posted Thu 14 Jan 16 @ 9:49 am
And if I try to put the conditions (the folder that has to be shown) in the filelist definition itself, VDJ throws a scripting error...

<filelist var_equal 'SHOW' 2 ? var_equal 'LANGUAGE' 2 ? source='Y:\MUSIC\HOUSE\SPA' : var_equal 'LANGUAGE' 3 ? source='Y:\MUSIC\HOUSE\ENG' : var_equal 'LANGUAGE' 4 ? source='Y:\MUSIC\HOUSE\DUAL' : source='Y:\MUSIC\HOUSE : var_equal 'SHOW' 3 ? var_equal 'LANGUAGE' 2 ? source='Y:\MUSIC\DISCO\SPA' : var_equal 'LANGUAGE' 3 ? source='Y:\MUSIC\DISCO\ENG' : var_equal 'LANGUAGE' 4 ? source='Y:\MUSIC\DISCO\DUAL' : source='Y:\MUSIC\DISCO : var_equal 'SHOW' 4 ? var_equal 'LANGUAGE' 2 ? source='Y:\MUSIC\ROCK\SPA' : var_equal 'LANGUAGE' 3 ? source='Y:\MUSIC\ROCK\ENG' : var_equal 'LANGUAGE' 4 ? source='Y:\MUSIC\ROCK\DUAL' : source='Y:\MUSIC\ROCK : var_equal 'SHOW' 5 ? var_equal 'LANGUAGE' 2 ? source='Y:\MUSIC\JAZZ\SPA' : var_equal 'LANGUAGE' 3 ? source='Y:\MUSIC\JAZZ\ENG' : var_equal 'LANGUAGE' 4 ? source='Y:\MUSIC\JAZZ\DUAL' : source='Y:\MUSIC\JAZZ' : source='Y:\MUSIC\VARIOUS'>
 

Posted Thu 14 Jan 16 @ 11:25 am
Deejay Corny wrote :


This is the code I have for the filelist panel (MAIN PANEL 0) activation button:

<button action="set 'MAINPANEL' 0 & var_equal 'SHOW' 2 ? var_equal 'LANGUAGE' 2 ? browser_gotofolder 'Y:\MUSIC\HOUSE\SPA' : var_equal 'LANGUAGE' 3 ? browser_gotofolder 'Y:\MUSIC\HOUSE\ENG' : var_equal 'LANGUAGE' 4 ? browser_gotofolder 'Y:\MUSIC\HOUSE\DUAL' : browser_gotofolder 'Y:\MUSIC\HOUSE : var_equal 'SHOW' 3 ? var_equal 'LANGUAGE' 2 ? browser_gotofolder 'Y:\MUSIC\DISCO\SPA' : var_equal 'LANGUAGE' 3 ? browser_gotofolder 'Y:\MUSIC\DISCO\ENG' : var_equal 'LANGUAGE' 4 ? browser_gotofolder 'Y:\MUSIC\DISCO\DUAL' : browser_gotofolder 'Y:\MUSIC\DISCO : var_equal 'SHOW' 4 ? var_equal 'LANGUAGE' 2 ? browser_gotofolder 'Y:\MUSIC\ROCK\SPA' : var_equal 'LANGUAGE' 3 ? browser_gotofolder 'Y:\MUSIC\ROCK\ENG' : var_equal 'LANGUAGE' 4 ? browser_gotofolder 'Y:\MUSIC\ROCK\DUAL' : browser_gotofolder 'Y:\MUSIC\ROCK : var_equal 'SHOW' 5 ? var_equal 'LANGUAGE' 2 ? browser_gotofolder 'Y:\MUSIC\JAZZ\SPA' : var_equal 'LANGUAGE' 3 ? browser_gotofolder 'Y:\MUSIC\JAZZ\ENG' : var_equal 'LANGUAGE' 4 ? browser_gotofolder 'Y:\MUSIC\JAZZ\DUAL' : browser_gotofolder 'Y:\MUSIC\JAZZ : browser_gotofolder 'Y:\MUSIC\VARIOUS'">

Depending on the settings of my "language" and "show" selector buttons elsewhere in the skin, a certain folder should be visible. But it isn't. Just a blank list...

What am I missing here?


First of all your variables right now are local (per deck) I'm not sure you want that for browser. It would make sense to have them global (Starting with $)
Second, this script is missing some single quotes (') here & there. If it's a direct copy please fix it as it can render the entire script unusable.
Third. test if your button work on the default skin (normal browser) before you try your custom one.

And last the <filelist var_equal 'SHOW' 2 ? var_equal 'LANGUAGE' 2 ? source='Y:\MUSIC\HOUSE\SPA'.... is just wrong because Vdjscript does not support a query there.
 

Posted Thu 14 Jan 16 @ 11:41 am
Okay, as for the sidelist:
If I first select the playlist in my normal browser (which I still have in my skin for testing purposes), and then switch the playlist with the sidelist (for which I have a special button in my skin), I am able to view the sidelist in my sidelist-dedicated panel, beautifully without the search bar, but sadly also without the column names bar (artist, title, etc.).

Is there maybe something I need to add to this code...

<filelist source="Sidelist">
<pos x="252" y="600"/>
<size width="1414" height="466"/>
<colors background="#000000">
<lists background="#000000" stripes="#000000" over="transparent" overstripes="transparent" selected="#000000" focus="#000000" text="#006B00" overtext="#006B00" selectedtext="#00A600" focustext="#00A600" automix="#00A600" button="#000000" buttonover="#000000" buttonselected="#000000" buttonactive="#000000" />
<grids background="#000000" over="transparent" selected="#000000" focus="#000000" text="#000000" overtext="#000000" selectedtext="#000000" focustext="#000000" stripes="#000000" overstripes="#000000" selectedstripes="#000000" focusstripes="#000000" label="#000000" />
<columns background="#000000" text="#00A600" />
<search background="#000000" border="#000000" selected="#000000" text="#00A600" cursor="#000000" />
</colors>
<font size="24" name="Arial Unicode MS" />
<fontheader size="24" />
<fontgridtitle size="24" />
</filelist>

...to get the colum title bar?

As for the filelist:
I am unable to put any conditionals to specify which folder should be shown and when... Can anyone help me out with this?
 

Posted Thu 14 Jan 16 @ 11:48 am
djdadPRO InfinityDevelopment ManagerMember since 2005
I am afraid you will have to use separate codes for each view of the Sideview, same as i have done in this skin.. http://www.virtualdj.com/plugins/index.html?addonid=15772
using <filelist source="" >
e.g. <filelist source="automix">
and have your own custom buttons to show whatever view you want.

Edit <filelist source="sideview"> could work , not sure, give it a try.

Ahh you want all the buttons of the toolbar.. Well, when it comes to create your own custom browser, you would probably have to customize it from scratch. There are actions for almost everything, so its just some extra steps there.

The only fallback with the current tools for custom browsers is that you cant have the Clones/Shortcuts of the sideview.

 

Posted Thu 14 Jan 16 @ 11:53 am
Thank you Phantom! Yep, rather sloppy of me. That code I wrote yesterday evening, after almost 12 straight hours of working on this... Maybe I was too tired to work accurately... :( But after a good night's rest, I'm fresh and back on it again, today. :)

I've cleaned up the code...

<panel name="CUSTOM BROWSER + SEARCH" visible="var '$MAINPANEL' 0 & var_equal '$SHOW' 2 ? var_equal '$LANGUAGE' 2 ? browser_gotofolder 'Y:\MUSIC\HOUSE\SPA' : var_equal '$LANGUAGE' 3 ? browser_gotofolder 'Y:\MUSIC\HOUSE\ENG' : var_equal '$LANGUAGE' 4 ? browser_gotofolder 'Y:\MUSIC\HOUSE\DUAL' : browser_gotofolder 'Y:\MUSIC\HOUSE' : var_equal '$SHOW' 3 ? var_equal '$LANGUAGE' 2 ? browser_gotofolder 'Y:\MUSIC\DISCO\SPA' : var_equal '$LANGUAGE' 3 ? browser_gotofolder 'Y:\MUSIC\DISCO\ENG' : var_equal '$LANGUAGE' 4 ? browser_gotofolder 'Y:\MUSIC\DISCO\DUAL' : browser_gotofolder 'Y:\MUSIC\DISCO' : var_equal '$SHOW' 4 ? var_equal '$LANGUAGE' 2 ? browser_gotofolder 'Y:\MUSIC\ROCK\SPA' : var_equal '$LANGUAGE' 3 ? browser_gotofolder 'Y:\MUSIC\ROCK\ENG' : var_equal '$LANGUAGE' 4 ? browser_gotofolder 'Y:\MUSIC\ROCK\DUAL' : browser_gotofolder 'Y:\MUSIC\ROCK' : var_equal '$SHOW' 5 ? var_equal '$LANGUAGE' 2 ? browser_gotofolder 'Y:\MUSIC\JAZZ\SPA' : var_equal '$LANGUAGE' 3 ? browser_gotofolder 'Y:\MUSIC\JAZZ\ENG' : var_equal '$LANGUAGE' 4 ? browser_gotofolder 'Y:\MUSIC\JAZZ\DUAL' : browser_gotofolder 'Y:\MUSIC\JAZZ' : browser_gotofolder 'Y:\MUSIC\VARIOUS'">

...but still no luck, I'm afraid. Thank you for taking the time to look into this, anyway!
Is this syntax in itself correct?
 

Posted Thu 14 Jan 16 @ 12:05 pm
@DJDAD:

Babis, you've just given me a great idea!!! I'm gonna try to put the different filelists (with different sources) on separate panels and have the pannels shown depending on the "language" and "show" conditionals! If it works, I'll post the code here! Yippeee! I'm off now, to get to work on this right away! :)

P.S. No, I don't want the toolbar. You misunderstood. I just wanted the column names above the sidelist, that's all. They "magically" disappear when using: source="sidelist" :(

And you were right:

<filelist source="sideview">

...does indeed show the sidelist WITH the column names! Thank you!!!
 

Posted Thu 14 Jan 16 @ 12:10 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
ah yes, you re right. Will report to Dev Team
 

Posted Thu 14 Jan 16 @ 12:13 pm
IT WORKS! IT WORKS!

You can join two (or more) variables to get a certain panel (with a certain filelist) to show up!!!

<panel name="DISCO SPANISH" visible="var '$SESSION' 2 & var '$LANGUAGE' 1">

THANK YOU for the inspiration BABIS! You da man!!!

And best of all: it's all so simple to write, I mean: very short code... (unlike the old VDJScript where my buttons sometimes took up several lines LOL)
 

Posted Thu 14 Jan 16 @ 1:37 pm
Question: is there a limit to the amount of panels that can alternately occupy one same location?

(After testing the switching between three different panels, I just finished coding the 17 panels I need, and now VDJ8 crashes when loading my skin... I've checked my syntax (and I'll be checking it until my skin works again) but it's just a copy and paste of the code for the first three test panels, which worked...)

Note: I have put 17 panels with different filelists (different sources) inside a main panel. The main panel is called upon by a button. I made it 2 pixels higher and wider than the sub-pannels, which I centered inside, just in case. So around the sub-panels, 1 pixel of the main panel is "visible". Of the 17 sub-panels only one is shown, depending on the set "language" and "session" variables. Language 0 and session 0 should be set by VDJ automatically, when starting the software... But just to be on the safe side, I've also tried to put: "set '$SESSION' 0 & set '$LANGUAGE' 0" in the <init action=""> line, at the bottom of the skin...
 

Posted Thu 14 Jan 16 @ 2:33 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
the number of panels is not an issue. No limit there for sure.
If you want to see where the crash comes from, you will have to add/subtract elements from your skin and reload all the times, until you spot the bad one.
 

Posted Thu 14 Jan 16 @ 4:32 pm
IMPORTANT FOR ANYONE READING THIS THREAD:

Multiple variables as a conditional for showing a panel or not gives BUGGY results (sometimes it works, sometimes it does not. it can even CRASH the program!).

If you want to have panels shown depending on more than one variable, you will need to do this with panels inside panels, each with only ONE VARIABLE. That's the way I solved it for me. I now have a solid working song list selection based on two variables: language and type of show.

I simply made a main panel (for the location of the song list to appear), and inside that panel I made several panels, one for each themed show. Inside of those show panels, I made language panels, each with a different source for the filelist. So, in the end, the show panel is shown according to the show (variable) that has been selected elsewhere, and the language of that show (i.e. the videos with the correct language texts) is shown following the language settings elsewhere.

In other words: I set my show type (e.g. 70's: DISCO, SOUL AND FUNK), I set the language of my public (e.g. SPANISH), and voilá: automatically the right music videos are shown in the song list!

Hope this helps someone :)
 

Posted Thu 14 Jan 16 @ 4:52 pm
@DJDAD: That's exactly what I did ;)
Cut everything out and paste it back in little by little...
In the end it turned out to be the two variables together.

I'll now dive into the last bit of my questions: making a browser without spilt panels but with a custom search bar that matches my skin...
 

Posted Thu 14 Jan 16 @ 5:00 pm
Quick question before I go on: am I correct in assuming that only a browser can have a custom search bar, and that I cannot give a filelist a custom search bar?

Because if this IS possible, I would stay away from the whole custom browser mountain I see before me, saving a lot of time and hassle... I've been looking a a few skins and reading up in the few threads that tuch the topic of custom browsers, but I can't make heads or tails of the fragmented information spread over the forum... As far as I can tell, I need to replace the <browser> declaration with the <split> declaration. I've tried that, with a blank panel as a result...

This does nothing:

<split name="folders" type="horizontal" position="100%" >
<pos x="252" y="600"/>
<size width="1413" height="465"/>
<colors background="#000000">
<lists background="#000000" stripes="#000000" over="transparent" overstripes="transparent" selected="#000000" focus="#000000" text="#006B00" overtext="#006B00" selectedtext="#00A600" focustext="#00A600" automix="#00A600" button="#000000" buttonover="#000000" buttonselected="#000000" buttonactive="#000000" />
<grids background="#000000" over="transparent" selected="#000000" focus="#000000" text="#000000" overtext="#000000" selectedtext="#000000" focustext="#000000" stripes="#000000" overstripes="#000000" selectedstripes="#000000" focusstripes="#000000" label="#000000" />
<columns background="#000000" text="#00A600" />
<search background="#000000" border="#000000" selected="#000000" text="#00A600" cursor="#000000" />
</colors>
<font size="24" name="Arial Unicode MS" />
<fontheader size="24" />
<fontgridtitle size="24" />
</split>

I know I'm just blindly trying things out to see the results.

Can anyone (Babis?) give me a simple example of a VDJScripting code for a custom browser with no side panels and a customizable (size, color, position) search bar?

That is, if the answer to my first question is no, of course :)
 

Posted Thu 14 Jan 16 @ 7:04 pm
The <split> is just the code for creating the divisions between sections (the movable tabbed bars/lines in the default browser).

You still have to specify what you want to show inside each section i.e. <fileview>, <sampler> etc.

Please Atomix, assign a member of staff to finish the skin SDK....
 

Posted Thu 14 Jan 16 @ 7:51 pm
GROOVIN! Glad you're here...

So what would the syntax be?
<split 'fileview'> ?

Listen, maybe I'm just getting tired (been at this for several days in a row), but it would be sufficient if I would know how to make the search bar background black and the rest dark green... I don't necessarily need a custom search bar. So i could stick with <browser toolbar=no etc.>... I know you made it blue in one of your skins, but I have not seen any code for this... Could you help a fellow DJ out?

P.S. Do YOU know if a filelist can have a search bar?
 

Posted Thu 14 Jan 16 @ 7:58 pm
57%