Old 3rd October 2006, 17:37   #1
56K-Surfer
Junior Member
 
56K-Surfer's Avatar
 
Join Date: Apr 2003
Location: Germany
Posts: 30
Send a message via ICQ to 56K-Surfer
Can skins load a file/image from the normal filesystem?

Hey guys

I want to include a coverdisplay into my skin. I should work like this:
-When a new song starts playing, look into the directory where the song is located and if there is an imagefile for example folder.jpg load it into a <layer> and show in on the skin.

So far I did not find a function to load a file. A good reason for it could be "security". Am I right?
Or is there a possibility to load a external file in runtime?

Thanks in advance

Sebastian
56K-Surfer is offline   Reply With Quote
Old 3rd October 2006, 18:13   #2
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,242
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
hey, you can load a image file in a map
example: mymap.loadBitmap("C:/music/.../cover.jpg");
then check if there is an image via
if ( mymap.getHeigth() == 0 && mymap.getHeigth() == 64 )
there is no image

64 will be returned by winamp 5.23+ and 0 by winamp 5-5.23

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Old 3rd October 2006, 19:20   #3
56K-Surfer
Junior Member
 
56K-Surfer's Avatar
 
Join Date: Apr 2003
Location: Germany
Posts: 30
Send a message via ICQ to 56K-Surfer
Wow, thank you!!! And this "64" is just a return value for "no hieght"?!? OK, but the if clause should look like this...

if ( mymap.getHeigth() == 0 || mymap.getHeigth() == 64 )
{
...
there is no image
...
}

"Or-Connection" instead of "And", or am I wrong?

But never the less, thank you very much, I will try it tomorrow...
56K-Surfer is offline   Reply With Quote
Old 3rd October 2006, 19:22   #4
SLoB
Major Dude
 
SLoB's Avatar
 
Join Date: Jul 2003
Location: UK
Posts: 1,316
thers a fileselect script floating about on the forum, cant remember if its in the maki cheats thread, also checkout the opensource notifier and the msdp cover art
SLoB is offline   Reply With Quote
Old 3rd October 2006, 19:26   #5
56K-Surfer
Junior Member
 
56K-Surfer's Avatar
 
Join Date: Apr 2003
Location: Germany
Posts: 30
Send a message via ICQ to 56K-Surfer
Thanks for the tips, I will take a look at it.
I already found a maki/html/winampbrowser-powered fileselect script, but thats not really what I´m looking for.
56K-Surfer is offline   Reply With Quote
Old 3rd October 2006, 23:54   #6
leechbite
Major Dude
 
leechbite's Avatar
 
Join Date: Sep 2003
Location: Canada
Posts: 635
Send a message via Yahoo to leechbite
loading an image to a layer can simply be done by:

layer.setXMLParam("image",imagePath);

check out Drone and other skins with local CD cover on notifier, similar scripts should be there.
leechbite is offline   Reply With Quote
Old 4th October 2006, 06:26   #7
56K-Surfer
Junior Member
 
56K-Surfer's Avatar
 
Join Date: Apr 2003
Location: Germany
Posts: 30
Send a message via ICQ to 56K-Surfer
Wow, that´s very simple, indeed. Where do you/ or the other skinners know this from? Is there anywhere out there a complete specification of the maki functions? I just know the std.mi in the winamp/lib folder. But it seems that there are missing some functions (or I´m to stupid to find the right ones )... Thanks guys
56K-Surfer is offline   Reply With Quote
Old 4th October 2006, 09:46   #8
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,242
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
i fear you are stupid... (macht nix hab auch mal so angefangen)
yep you're right i used the wrong operator, my fault!

height 64, because there is the green error pic when no image is found! and this is loaded in the map when nothing is found!

Martin

PS: woher aus deutschland kommst denn du?

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Old 4th October 2006, 14:23   #9
56K-Surfer
Junior Member
 
56K-Surfer's Avatar
 
Join Date: Apr 2003
Location: Germany
Posts: 30
Send a message via ICQ to 56K-Surfer
Diagonal am anderen Ende... Bocholt, NRW, Grenze zu den Niederlanden.
Aber weiter auf Englisch sonst ist das unhöflich den nicht der deutschen Sprache mächtigen gegenüber ;-)

Ok, I will take a closer look at the std.mi . And what I find there, thats everything to know about maki (concerning functions)? No further file(s) to take a look at?
56K-Surfer is offline   Reply With Quote
Old 4th October 2006, 15:50   #10
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,242
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
there is config.mi, you can find all libraries in our forum:
http://forums.skinconsortium.com/viewforum.php?f=12
goto Sticky: Maki Compiler & Libraries

there is also other interesting stuff there...

Martin
Team Skin Consortium

PS: if you want time you can look at our skin proposals in OUR modern skin forum! Perhaps you like some design and want to code it? we are always happy to get new coders!

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump