Help - Search - Members - Calendar
Full Version: Want to show a background image which can change
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Sturmsaeufer
Hey,
i search a panel which can show a background image at the playlist. And when i change the playlist, the background image have to change to.
So, for example, (i have foo_ui_columns) I'm in the playlist "test", then the background of the playlist is "img1.jpg" and when i choose another playlist in the left, the background image change to.

I hope you have understand what i mean. Is there a plugin availably? Or have you a idea how can i do this?

Thans for everybody.


P.S: I know that my English is not very good..
wraithdu
I'll assume you're using Single Column Playlist, since that's the only playlist view that supports images. To do this you'll need foo_cwb_hooks as well. Do you know how to use the $imageabs2() function to display images in SCPL? Once you have that code, you can use the %cwb_activelist% (this returns the name of the currently active playlist) string to define an image for each playlist. Example code for how to choose an image -
CODE
$imageabs2(,,,,,,,,$if($strstr(%cwb_activelist%,'Albums'),'/images\img1.jpg',$if($strstr(%cwb_activelist%,'Singles'),'/images\img2.jpg')),)
Sturmsaeufer
QUOTE(wraithdu @ Jan 29 2007, 15:27) *

I'll assume you're using Single Column Playlist, since that's the only playlist view that supports images. To do this you'll need foo_cwb_hooks as well. Do you know how to use the $imageabs2() function to display images in SCPL? Once you have that code, you can use the %cwb_activelist% (this returns the name of the currently active playlist) string to define an image for each playlist. Example code for how to choose an image -
CODE
$imageabs2(,,,,,,,,$if($strstr(%cwb_activelist%,'Albums'),'/images\img1.jpg',$if($strstr(%cwb_activelist%,'Singles'),'/images\img2.jpg')),)



Thank you for your help! So, i have installed Single Column Playlist and foo_cwb_hooks. But where must i put the code? And how do i use the $imageabs2() function?
wraithdu
It sounds like you are new to foobar. In that case it's worth it to do some reading and understand how everything works.

Here is the foobar2000 wiki -
http://wiki.hydrogenaudio.org/index.php?ti...2000:Foobar2000

You probably want to start with the scripting tutorials section to understand how things work within foobar (Brother John's is a good one to start with). Then you can check into the foobar2000 0.9.x Components section. There you can find component specific wiki's both for trackinfo_mod and single_column_playlist. Those will show you how to work with the component specific functions. If after that you have some more questions post back and we can help you some more. Right now you don't understand the scripting behind foobar and that will make it very hard to help you.

Since I was curious already, here's some sample code to tile an image as the background in your playlist. You'll understand what it all means after you finish some research. This code assume the image has a 1.25:1 aspect ratio.

CODE
$puts(NumRows,$div($muldiv(4,%_width%,5),%_height%))
$puts(RowNum,$mod(%list_index%,$get(NumRows)))
$puts(Ypos,$mul($get(RowNum),%_height%))

$imageabs2(%_width%,$muldiv(4,%_width%,5),0,$get(Ypos),%_width%,%_height%,0,0,'/components\default.jpg',nokeepaspect alpha-100)
Sturmsaeufer
okay....i will read some tutorials and i hope it will help me.
Thank you!
Spirit_of_the_ocean
I am not a complete noob in titleforammting but I have problems to get it work.
I tried the code but results were strange.
Maybe someone could explain a bit more?

I am not using any longer winamp but I have a link to show what I want SCPL to look(example for background).
Playlist with backgound

Is this possible with SCPL? One Picture as a background?
wraithdu
If that plugin does what I think it does, then no, you can't set one picture as a background. I will guess that the playlist scrolls in front of the bg picture for winamp? SCPL cannot do this to my knowledge. The best you can get is a tiled bg image that repeats as you scroll the playlist.

The only way to get something different is if SCPL could return what the current row (list_index) is at the top of the window. Then you could recalculate the starting row for drawing the bg image, but it would have to be redrawn everytime the playlist is scrolled. This would be EXCRUCIATINGLY slow.

Perhaps request an addon component to do this? But I would think it would have to be implemented by SCPL itself.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.