Help - Search - Members - Calendar
Full Version: foo_uie_graphical_browser
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3, 4, 5
pIv
I have one sugestion.

It is possible display GB in separate window, as it is released in foo_bubble_coverflow.dl?

I use DUI and I must display GB in dockable panel, but when I collapse Foobar to tray GB panel also collapsed.

I want see GB window not collapsed, when I use collapsed Foobar to tray, as it made in bubble_coverflow window mode.
bulhakov
Hello, I've got quick question. If it's possible to hide srollbar without using other panel?
Melomane
QUOTE(pIv @ Feb 27 2008, 06:43) *

I have one sugestion.

It is possible display GB in separate window, as it is released in foo_bubble_coverflow.dl?

I use DUI and I must display GB in dockable panel, but when I collapse Foobar to tray GB panel also collapsed.

I want see GB window not collapsed, when I use collapsed Foobar to tray, as it made in bubble_coverflow window mode.


see in the option of dockable panel
Keikonium
New version is out!

Check the first post for a link smile.gif.

Changes in this build (used babelfish to translate, and worded it with better meaning, so might be slightly off):

* Added - loading images with wildcards
* Added - $gp_draw_string_path function added
* Fixed - Increased scroll size (used to cap off at 200, now it's 1000)
* Fixed - Most functions now accept negative values
* Fixed - $gp_set_pen function fixed
* Fixed - $gp_set_brush function fixed
joaotavela
QUOTE(m-z @ Feb 26 2008, 17:25) *

^
Wow, that looks really cool! Could you share your code and image/s?

The Code is the same posted by "melomane"... I only add overlays.
bulhakov
It's great but I need one more thing - transparent background...
Keikonium
QUOTE(bulhakov @ Feb 27 2008, 18:08) *

It's great but I need one more thing - transparent background...


agreed. I wish this were possible too >.<. Maybe in a future release smile.gif
thuan
@joaotavela: Well, I haven't figured out that overlay part. Can you share that part?

@Keikonium: Please put up the version for the readme file. In case, there's a time lag between his release and my translation so it won't cause any confusion.
Keikonium
QUOTE(thuan @ Feb 27 2008, 20:08) *

@joaotavela: Well, I haven't figured out that overlay part. Can you share that part?

@Keikonium: Please put up the version for the readme file. In case, there's a time lag between his release and my translation so it won't cause any confusion.


will do smile.gif.
joaotavela
QUOTE(thuan @ Feb 27 2008, 19:08) *

@joaotavela: Well, I haven't figured out that overlay part. Can you share that part?

@Keikonium: Please put up the version for the readme file. In case, there's a time lag between his release and my translation so it won't cause any confusion.


code and image links

CODE

$if(%gb_focused%,
$set_pen(808080,1)
$set_brush(147-160-112)
$round_rect(4,4,$eval(%gb_width%-14),$eval(%gb_width%-36),5,5)

$gp_set_font(Tahoma,9)
$gp_set_string_format(center,near)
$gp_set_brush(ffffffff)
$gp_draw_string(%gb_group%,2,%gb_width%,$eval(%gb_width%-6),$eval(%gb_height%-6))
,
$gp_set_font(Tahoma,9)
$gp_set_string_format(center,near)
$gp_set_brush(ff000000)
$gp_draw_string(%gb_group%,2,%gb_width%,$eval(%gb_width%-6),$eval(%gb_height%-6))
)


$if(%gb_mouse_over%,
$gp_set_pen(669800ff,4)
$gp_draw_rectangle(0,0,$eval(%gb_width%-2),$eval(%gb_width%-26))
,)

$draw_image(18,3,$eval(%gb_width%-25),$eval(%gb_width%-32),$if($cwb_fileexists($replace(%path%,%filename_ext%,)cover.jpg),$replace(%path%,%filename_ext%,)cover.jpg,$if($cwb_fileexists($replace(%path%,%filename_ext%,)folder.jpg),$replace(%path%,%filename_ext%,)folder.jpg,C:\Program Files\foobar2000\default.jpg)),255,nokeepaspect)
$draw_image(0,0,$eval(%gb_width%-2),$eval(%gb_width%-26),C:\Your Foobar Images Directory/cdcaseck3.png,255,NOKEEPASPECT )
$draw_image(18,3,$eval(%gb_width%-2),$eval(%gb_width%-26),C:\Your Foobar Images Directory/glareyo0.png,50,NOKEEPASPECT)



CD Case Image
Glare image
thuan
Thank you, with your pictures, now I can make it work.
Here's how my config currently looks like
IPB Image
and when mouse over is on an album (in this case, TAM no Fukubukuro)
IPB Image
Group:
CODE
$if2(%album%,@skip)
Sort:
CODE
$num(%gb_playlist_number%,10)

Type: Vertical Scroll
Size: 120x114
CODE
$puts(imagePath,
$if($cwb_fileexists($replace(%path%,%filename_ext%,)cover.jpg),
$replace(%path%,%filename_ext%,)cover.jpg,
$if($cwb_fileexists($replace(%path%,%directory%\%filename_ext%,)cover.jpg),
$replace(%path%,%directory%\%filename_ext%,)cover.jpg,
'.\components\default.png'
)
)
)

$draw_image(3,4,$eval(%gb_width%-2),$eval(%gb_height%-8),
'.\components\cdcaseck3.png',
255,
nokeepaspect
)

$draw_image(16,6,$eval(%gb_width%-18),$eval(%gb_height%-12),
$get(imagePath),
$if(%gb_mouse_over%,150,255),
nokeepaspect
)


$draw_image(16,6,$eval(%gb_width%-18),$eval(%gb_height%-12),
'.\components\glareyo0.png',
50,
nokeepaspect
)

$if(%gb_focused%,
,
$gp_set_font(Tahoma,9,b)
$gp_set_text_rendering_hint(ct)
$gp_set_smoothing_mode(1)
$gp_set_string_format(center,center)
$if(%gb_mouse_over%,
$gp_set_pen(255-255-255-255,3,,bevel)
$gp_set_brush(255-0-0-0),
$gp_set_pen(255-0-0-0,3,,bevel)
$gp_set_brush(255-255-255-255)
)
$gp_draw_string_path(%gb_group%,12,,4,4,$eval(%gb_width%-6),$eval(%gb_height%-6))
)


EDIT: Forget to mention that you need the CD case image and glare image in joaotavela's post above.
Varluche
Hi all.
I installed graphical browser in a dockable panel since I am using DefaultUI.
I tried all codes posted here but I get plain colour squares instead of art everytime I scroll the mouse. I thought of my video card drivers but this cannot be the issue since the cover flow component works fine in a dockable panel on my computer.
Any help would be much appreciated. Thanks.
m-z
You probably need to change the filenames of the art files in those codes.

For example, modify this:
CODE
$replace(%path%,%filename_ext%,)cover.jpg)

To this:
CODE
$replace(%path%,%filename_ext%,)folder.jpg)


Or, you may need the foo_cwb_hooks component...
nightfishing
anyone figure out the new features in rev 007?

It appears to have added the option of specifying the playlist the items get sent to, but I can't get it to do anything.

Would like to know the translation for the new check box, also ;-)

Kiteroa
QUOTE(nightfishing @ Mar 2 2008, 11:30) *

anyone figure out the new features in rev 007?

It appears to have added the option of specifying the playlist the items get sent to, but I can't get it to do anything.

Would like to know the translation for the new check box, also ;-)


Got it working:

choose the "(send to playlist)" action from the top of the list.

The new checkbox label means:

"The feed function to the play list which it appoints"

It seems to control whether the graphical brower refreshes itself with the contents of the new playlist or remains as it was before the selection action.


To the developer: many thanks for a fantastic plug-in!
nightfishing
QUOTE(Kiteroa @ Mar 1 2008, 18:20) *


Got it working:

choose the "(send to playlist)" action from the top of the list.



DOH!

I feel dumb, now :-(

Thank you!

And Thanks to the developers!!

"(Send to Playlist AND PLAY)" would be great!
BuM
Can "item size" be changed with image size?

Im trying to enlarge the image using mouse over with out having a huge gap in between
the image's
right now my item size is 300x300 and im useing

$draw_image(0,0,176,176,
$get(imagePath),
$if(%gb_focused%,255,128)
)

$if(%gb_mouse_over%,
$draw_image(0,0,300,300,
$get(imagePath)))

from thuan's code
Keikonium
Another new version, check first post again smile.gif.

Changes:
- Fixed a bug that didn't allow draw image to use wildcards.
Kiteroa
Just in case, the developer(s) are watching:

It would be more useful (to me) if the view wouldn't follow the active playlist but stayed fixed based a particular, specified, playlist.

I'm finding that the current behavior is making it very difficult for me to use as a browser.
nightfishing
Kiteroa,

If you use the new "send to playlist" function, it will stay on the originsl view you chose after sending the selected items to the playlist.

I agree that being able to "lock" it to a specific playlist would be great (like Album Art browser works), but this new behavior does make it much more usable.

The devs ARE listening (and are working quite quickly :-)

thuan
@Bum: AFAIK, no as of now.

@Keikonium: I've sent you the new readme.

EDIT: OT: new version of uie_lyrics_art was released with certain implementation that will make my translation cleaner. I will officially release it when it's done as I have his permission now.
ZeeJay
It's a great plugin!
I intended to display some "playing" icon on the cover for the current playing album.
But, it did not work:

CODE
$if(%isplaying%,
$draw_image($eval({%gb_width%/2}-25),$eval({%gb_height%/2}-25),50,50,
D:\Imagens\Capas de Discos\play.png,
200,)
)

Does %isplaying% really work here or I'm doing something wrong?
buktore
Wow! the new version with the popup thingy is great! w00t.gif

Check it out ASAP!
nightfishing
007 started causing playback issues for me, so I had to remove it.

After using it for an hour or two, I would start getting some serious hiccups in playback at the start of tracks. Closing/reopening foobar would "fix" the issue.

Not sure what the connection would be, but I do not have the issue with the component removed.

Yotsuya
I can confirm this component works well in wine:
IPB Image

Also I noticed that the $draw_image() function appears to return true/false based on if it is successful so you can get away with doing something like this instead of using cwb_fileexists (which doesnt appear to support wildcards):

CODE
$puts(cover,$replace(%path%,%filename_ext%,%album artist% - %title%.*))
$puts(nocover,images\nocover.png)

$if2(
  $draw_image(0,0,%gb_width%,%gb_height%,$get(cover))
,
  $draw_image(0,0,%gb_width%,%gb_height%,$get(nocover))
)
thuan
@Yotsuya: That's a nice find.

I update my code found in my previous post to this
CODE
$puts(cpath1,$replace(%path%,%filename_ext%,*))
$puts(cpath2,$replace(%path%,%directory%\%filename_ext%,*))

$puts(nocover,components\default.png)

$puts(ox,$eval(%gb_width%-4))
$puts(oy,$eval(%gb_height%-10))
$puts(ix,$eval(%gb_width%-20))
$puts(iy,$eval(%gb_height%-14))

$draw_image(3,4,$get(ox),$get(oy),'.\components\cdcaseck3.png',255,nokeepaspect)

$if3(
$draw_image(16,6,$get(ix),$get(iy),$get(cpath1),$if(%gb_mouse_over%,150,255),nokeepaspect),
$draw_image(16,6,$get(ix),$get(iy),$get(cpath2),$if(%gb_mouse_over%,150,255),nokeepaspect),
$draw_image(16,6,$get(ix),$get(iy),$get(nocover),$if(%gb_mouse_over%,150,255),nokeepaspect)
)

$draw_image(16,6,$get(ix),$get(iy),'.\components\glareyo0.png',50,nokeepaspect)

$if(%gb_focused%,
,
$gp_set_font(Tahoma,9,b)
$gp_set_text_rendering_hint(ct)
$gp_set_smoothing_mode(1)
$gp_set_string_format(center,center)
$if(%gb_mouse_over%,
$gp_set_pen(255-255-255-255,3,,bevel)
$gp_set_brush(255-0-0-0),
$gp_set_pen(255-0-0-0,3,,bevel)
$gp_set_brush(255-255-255-255)
)
$gp_draw_string_path(%gb_group%,12,,3,4,$get(ox),$get(oy))
)

Remember to change image source vars to suit your configuration. Other settings and requirements are the same as my previous post.
BTW, somehow I feel that the popup function is a little inelegant so I don't use it.
Kiteroa
This just keeps gettting better - well done!

QUOTE(thuan @ Mar 3 2008, 21:31) *

@Yotsuya: That's a nice find.

I update my code found in my previous post to this
CODE
$puts(cpath1,$replace(%path%,%filename_ext%,*))
$puts(cpath2,$replace(%path%,%directory%\%filename_ext%,*))

$puts(nocover,components\default.png)

$puts(ox,$eval(%gb_width%-4))
$puts(oy,$eval(%gb_height%-10))
$puts(ix,$eval(%gb_width%-20))
$puts(iy,$eval(%gb_height%-14))

$draw_image(3,4,$get(ox),$get(oy),'.\components\cdcaseck3.png',255,nokeepaspect)

$if3(
$draw_image(16,6,$get(ix),$get(iy),$get(cpath1),$if(%gb_mouse_over%,150,255),nokeepaspect),
$draw_image(16,6,$get(ix),$get(iy),$get(cpath2),$if(%gb_mouse_over%,150,255),nokeepaspect),
$draw_image(16,6,$get(ix),$get(iy),$get(nocover),$if(%gb_mouse_over%,150,255),nokeepaspect)
)

$draw_image(16,6,$get(ix),$get(iy),'.\components\glareyo0.png',50,nokeepaspect)

$if(%gb_focused%,
,
$gp_set_font(Tahoma,9,b)
$gp_set_text_rendering_hint(ct)
$gp_set_smoothing_mode(1)
$gp_set_string_format(center,center)
$if(%gb_mouse_over%,
$gp_set_pen(255-255-255-255,3,,bevel)
$gp_set_brush(255-0-0-0),
$gp_set_pen(255-0-0-0,3,,bevel)
$gp_set_brush(255-255-255-255)
)
$gp_draw_string_path(%gb_group%,12,,3,4,$get(ox),$get(oy))
)

Remember to change image source vars to suit your configuration. Other settings and requirements are the same as my previous post.
BTW, somehow I feel that the popup function is a little inelegant so I don't use it.


If you put them in this order you don't even need the $if3

$draw_image(16,6,$get(ix),$get(iy),$get(nocover),$if(%gb_mouse_over%,150,255),nokeepaspect)
$draw_image(16,6,$get(ix),$get(iy),$get(cpath2),$if(%gb_mouse_over%,150,255),nokeepaspect)
$draw_image(16,6,$get(ix),$get(iy),$get(cpath1),$if(%gb_mouse_over%,150,255),nokeepaspect)

as the later images are drawn over any earlier one(s).


I love the new popup function. And I'd love to be able to show the tracks from an album in the popup!

Using %track% %title% etc. in the popup or in the main window gives info from the 1st track - any chance of looping through the tracks in the popup window at least?
thuan
Ah yeah, but when using mouse over, it will look funny. Thanks for the suggestion, though.
buktore
QUOTE
If you put them in this order you don't even need the $if3

That's mean.. instead of draw just 1 image if cover was found, you have to draw 2 or more. (1 for nocover, 1 or more for cover) And it's slow thing down unnecessary.

Bad idea sleep.gif Oh well, people's computer are so fast these days. (Sadly, not for me)
thuan
QUOTE(Kiteroa @ Mar 4 2008, 06:41) *
This just keeps gettting better - well done!
I love the new popup function. And I'd love to be able to show the tracks from an album in the popup!

Using %track% %title% etc. in the popup or in the main window gives info from the 1st track - any chance of looping through the tracks in the popup window at least?

For me, it will be nice if the pop up can show whether mouse over album is playing and the playing track.

QUOTE(buktore @ Mar 4 2008, 08:17) *
QUOTE
If you put them in this order you don't even need the $if3

That's mean.. instead of draw just 1 image if cover was found, you have to draw 2 or more. (1 for nocover, 1 or more for cover) And it's slow thing down unnecessary.

Bad idea sleep.gif Oh well, people's computer are so fast these days. (Sadly, not for me)

Sorry, we didn't notice biggrin.gif.
Kiteroa
I've been using

$num(%gb_playlist_number%,10)

to try to keep the graphical_browser display in the same order as the active playlist.

This works well except where I have the same album in the active playlist in 2 different places. In those cases graphical-browser just displays the album once in the first location! (Using file info on the graphical-browser display shows that each track appears twice under that display!)

Strange....
YounhaLOV
IPB Image

Applied the latest rev009!!

I was surprised really ! Like really so much

thank you! keikonium
thuan
QUOTE(ZeeJay @ Mar 2 2008, 14:00) *
It's a great plugin!
I intended to display some "playing" icon on the cover for the current playing album.
But, it did not work:

CODE
$if(%isplaying%,
$draw_image($eval({%gb_width%/2}-25),$eval({%gb_height%/2}-25),50,50,
D:\Imagens\Capas de Discos\play.png,
200,)
)

Does %isplaying% really work here or I'm doing something wrong?


It does not work, as it only works per track and in certain views of foobar.
To check whether an item is playing use this
CODE
$if($and($greater($add(%gb_playlist_number%,%gb_subitem_count%,1),%cwb_playing_index%),
$greater(%cwb_playing_index%,%gb_playlist_number%)),playing,not playing)

Unfortunately, it's not perfect, the updating that is. I hope the developer of graphical browser implement this http://www.bazquux.com/wiki/Foobar2000:Hoo...per_Information. If so it will be perfect.

Also here's a sneak peek at what I'm working on:
IPB Image
I want the popup to set its size automatically depends on the string size, too.

EDIT: that was my way to check %isplaying% for items, it's still not perfect so anyone knows a better way?
radecke
is it possible to get the foobar path somehow or a relative path to the foobar directory?

very nice plugin btw. i've always been looking for something like that.
thuan
Here's my new one:
IPB Image

Images:
Play icon
Glare image
Put them to into your foobar2000\components folder or any folder you like but remember to change the correspondent paths.

Group:
CODE
$if2(%album%,@skip)

Sort:
CODE
$num(%gb_playlist_number%,10)

Type: Vertical Scroll

Popup size: for artist display, size is your choice. Opacity: your choice.

Item size: your choice, but horizontal size should be bigger than vertical size. (preferred about double, I use 210x110)

Item code:
CODE
//cover sources, if you add more sources please add more $draw_image functions below
$puts(cpath1,$replace(%path%,%filename_ext%,*))
$puts(cpath2,$replace(%path%,%directory%\%filename_ext%,*))

//no cover source, remember to change this if needed
$puts(nocover,components\default.png)

//other image sources
$puts(glareImage,components\glareyo0.png)
$puts(playIcon,components\Play-icon256-by-nagaya.png)

//dimensions and positions of objects
$puts(itemW,$eval(%gb_width%-1))
$puts(itemH,$eval(%gb_height%-1))
$puts(frameD,$eval(%gb_height%-8))
$puts(frameCu,$eval(%gb_height%/30))
$puts(coverD,$eval($get(frameD)-4))
$puts(textX,$eval($get(frameD)+7))
$puts(textW,$eval(%gb_width%-$get(textX)-4))
$puts(textH,$eval(%gb_height%-20))
$puts(subitem_countY,$eval($get(textH)+6))

//check whether item is playing
$puts(isplaying,$if($and($strcmp(%cwb_activelist%,%cwb_playinglist%),
$greater($add(%gb_playlist_number%,%gb_subitem_count%,1),%cwb_playing_index%),
$greater(%cwb_playing_index%,%gb_playlist_number%)),
1,))
///////////////////////////////////

$set_brush(240-240-240,cross)
$fill_rect(0,0,%gb_width%,%gb_height%)

$select($add($mod(%gb_item_index%,2),1),
$gp_set_brush(100-200-200-200),
$gp_set_brush(100-240-240-240)
)
$gp_fill_rectangle(0,0,%gb_width%,%gb_height%)

$if(%gb_focused%,
$set_pen(0-0-0)
$draw_rect(0,0,$get(itemW),$get(itemH))
)

$set_pen(0-0-0)
$set_brush(0-0-0)
$round_rect(5,4,$get(frameD),$get(frameD),$get(frameCu),$get(frameCu))

//add more cover sources here
$if3(
$draw_image(7,6,$get(coverD),$get(coverD),$get(cpath1),255,nokeepaspect),
$draw_image(7,6,$get(coverD),$get(coverD),$get(cpath2),255,nokeepaspect),
$draw_image(7,6,$get(coverD),$get(coverD),$get(nocover),255,nokeepaspect)
)

$draw_image(7,6,$get(coverD),$get(coverD),$get(glareImage),50,nokeepaspect)

$if($get(isplaying),
$draw_image(7,6,$get(coverD),$get(coverD),$get(playIcon),128)
)

$set_font(Tahoma,9)
$draw_text(%gb_group%,$get(textX),6,$get(textW),$get(textH),right,wordbreak,word_ellipsis)
$set_font(Segoe UI,9,i)
$draw_text(%gb_subitem_count%
$ifgreater(%gb_subitem_count%,1, tracks, track),
$get(textX),$get(subitem_countY),$get(textW),12,right,singleline,bottom)

$if(%gb_mouse_over%,
$gp_set_brush(128-255-255-255,0,0,0-255-255-255,%gb_width%,%gb_height%)
$gp_fill_rectangle(0,0,%gb_width%,%gb_height%)
)


Popup code:
CODE
$gp_set_brush(255-128-128-128)
$gp_fill_rectangle(0,0,%gb_width%,%gb_height%)
$gp_set_pen(255-0-0-0,1)
$gp_draw_rectangle(0,0,$eval(%gb_width%-1),$eval(%gb_height%-1))

$gp_set_font(Segoe Print,9)
$gp_set_brush(255-218-218-218)
$gp_set_text_rendering_hint(ct)
$gp_set_string_format(center,center)
$if(%album artist%,
$gp_draw_string(by %album artist%,0,0,%gb_width%,%gb_height%),
Unknown Artist
)

Tip: you may set scroll size to your item vertical size, check "Scroll by a multiple of scroll size" and resize your foobar so items fit in nicely like mine. That way items won't get cut off when scrolling.

EDIT: @radecke: I use relative paths a bunch of times in my code, please take a look.

EDIT2: work around (dirty lol) for a rare case where wordbreak does not work right.

EDIT3: fixed another bug in detecting playing item logic.
Garfield4
I'm trying to copy the dark blue layout in default UI - with grey text below the album cover which then turns white on focus:

CODE
$if(%gb_focused%,
$set_pen(808080,1)
  $set_brush(49-68-81)
  $round_rect(0,0,%gb_width%,%gb_height%,5,5)
$set_font(Tahoma,7)
$set_font_color(255-255-255)
$draw_text(%gb_group%,6,%gb_width%,$eval(%gb_width%-10),$eval(%gb_height%-%gb_width%-2),center,wordbreak)
$puts(tra,255)
,
$puts(tra,255)
)

$set_font(Tahoma,7)
$set_font_color(176-175-157)
$draw_text(%gb_group%,6,%gb_width%,$eval(%gb_width%-10),$eval(%gb_height%-%gb_width%-2),center,wordbreak)
,)




Thanks for your help
thuan
Use this code:
CODE
$puts(tra,255)
$set_font(Tahoma,7)
$if(%gb_focused%,
$set_pen(808080,1)
$set_brush(49-68-81)
$round_rect(0,0,%gb_width%,%gb_height%,5,5)
$set_font_color(255-255-255)
,
$set_font_color(176-175-157)
)
$draw_text(%gb_group%,6,%gb_width%,$eval(%gb_width%-10),$eval(%gb_height%-%gb_width%-2),center,wordbreak)


A tip: Put general part outside of $if function.
Garfield4
QUOTE(thuan @ Mar 6 2008, 09:47) *

Use this code:


A tip: Put general part outside of $if function.


Thanks - Thats Great
radecke
QUOTE(thuan @ Mar 6 2008, 14:42) *

EDIT: @radecke: I use relative paths a bunch of times in my code, please take a look.

thanks. now i know why it didn't work for me. i thought the foobar directory was the source path but actually it's the components directory. that explains a lot wink.gif

now i love this component even more smile.gif
thuan
No, the foobar is the source path. That's why I have to use "components\image.png" to access image.png in foobar components folder. If components is the source path as you said, then you only need image.png. IOW, that relative path can also be written as ".\components\image.png" which "." is the current directory which is foobar2000 path. The only component AFAIK that uses components as the source path is foo_uie_albumart. Hope that clears it up.
DiGiCharat
Hello thuan, thank you for the great config biggrin.gif

a question, may i know which font you're using for the playlist in your SS?

thanks wink.gif
radecke
QUOTE(thuan @ Mar 7 2008, 01:52) *

No, the foobar is the source path. That's why I have to use "components\image.png" to access image.png in foobar components folder. If components is the source path as you said, then you only need image.png. IOW, that relative path can also be written as ".\components\image.png" which "." is the current directory which is foobar2000 path. The only component AFAIK that uses components as the source path is foo_uie_albumart. Hope that clears it up.


"..\PanelsUI\smooth\images\artoverlay3.png" is the only thing that works for me. i get no image if i write the path like ".\PanelsUI\smooth\images\artoverlay3.png" or "PanelsUI\smooth\images\artoverlay3.png"

however the important thing is that it works smile.gif
buktore
For PanelUI, relative paths start from where the PUI is.

So, In your case just use "images\artoverlay3.png" and it should work.
thuan
@DiGiCharat: I use Segoe UI. This font comes with Vista or Office 2007 and maybe .NET 3.0 and 3.5 too AFAIK.

Well here's the updated version of my Graphical Browser config:
IPB Image

Prominent changes:
Focused item coloring stolen from Vista theme biggrin.gif.
Popup now has album art in it.

Item code:
CODE
//cover sources, if you add more sources please add more $draw_image functions below
$puts(cpath1,$replace(%path%,%filename_ext%,*))
$puts(cpath2,$replace(%path%,%directory%\%filename_ext%,*))

//no cover source, remember to change this if needed
$puts(nocover,components\default.png)

//other image sources
$puts(glareImage,components\glareyo0.png)
$puts(playIcon,components\Play-icon256-by-nagaya.png)

//font settings
$puts(fontName,Segoe UI)
$puts(fontSize,9)

//dimensions and positions of objects
$puts(itemW,$eval(%gb_width%-1))
$puts(itemH,$eval(%gb_height%-1))
$puts(frameD,$eval(%gb_height%-8))
$puts(frameCu,$eval(%gb_height%/30))
$puts(coverD,$eval($get(frameD)-4))
$puts(textX,$eval($get(frameD)+7))
$puts(textW,$eval(%gb_width%-$get(textX)-4))
$puts(textH,$eval(%gb_height%-20))
$puts(subitem_countY,$eval($get(textH)+6))

//check whether item is playing
$puts(isplaying,$if($and($strcmp(%cwb_activelist%,%cwb_playinglist%),
$greater($add(%gb_playlist_number%,%gb_subitem_count%,1),%cwb_playing_index%),
$greater(%cwb_playing_index%,%gb_playlist_number%)),
1,))
///////////////////////////////////

$if(%gb_focused%,
$set_pen(44-98-139)
$draw_rect(0,0,$get(itemW),$get(itemH))
$gp_set_brush(255-109-182-221,0,%gb_height%,0-255-255-255,0,0)
$gp_fill_rectangle(1,1,$eval(%gb_width%-2),$eval(%gb_height%-2)),
$set_brush(240-240-240,cross)
$fill_rect(0,0,%gb_width%,%gb_height%)

$select($add($mod(%gb_item_index%,2),1),
$gp_set_brush(100-200-200-200),
$gp_set_brush(100-240-240-240)
)
$gp_fill_rectangle(0,0,%gb_width%,%gb_height%)
)

$set_pen(0-0-0)
$set_brush(0-0-0)
$round_rect(5,4,$get(frameD),$get(frameD),$get(frameCu),$get(frameCu))

//add more cover sources here
$if3(
$draw_image(7,6,$get(coverD),$get(coverD),$get(cpath1),255,nokeepaspect),
$draw_image(7,6,$get(coverD),$get(coverD),$get(cpath2),255,nokeepaspect),
$draw_image(7,6,$get(coverD),$get(coverD),$get(nocover),255,nokeepaspect)
)

$draw_image(7,6,$get(coverD),$get(coverD),$get(glareImage),50,nokeepaspect)

$if($get(isplaying),
$draw_image(7,6,$get(coverD),$get(coverD),$get(playIcon),128)
)

$set_font($get(fontName),$get(fontSize))
$draw_text($get(font) %gb_group% $get(font),$get(textX),6,$get(textW),$get(textH),right,wordbreak,word_ellipsis)
$set_font($get(fontName),$get(fontSize),i)
$draw_text(%gb_item_index%/%gb_item_count% %gb_subitem_count%
$ifgreater(%gb_subitem_count%,1, tracks, track),
$get(textX),$get(subitem_countY),$get(textW),12,right,singleline,bottom)

$if(%gb_mouse_over%,
$gp_set_brush(128-255-255-255,0,0,0-255-255-255,%gb_width%,%gb_height%)
$gp_fill_rectangle(0,0,%gb_width%,%gb_height%)
)


Popup code:
CODE
//cover sources, if you add more sources please add more $draw_image functions below
$puts(cpath1,$replace(%path%,%filename_ext%,*))
$puts(cpath2,$replace(%path%,%directory%\%filename_ext%,*))

//no cover source, remember to change this if needed
$puts(nocover,components\default.png)

//Dimensions
$puts(coverD,$eval(%gb_width%-8))
$puts(textY,$eval($get(coverD)+6))
$puts(textH,$eval(%gb_height%-$get(textY)-2))

//Font setting for artist display
$gp_set_font(Segoe Print,9)
//////////////////////////////////////

$gp_set_brush(255-128-128-128)
$gp_fill_rectangle(0,0,%gb_width%,%gb_height%)
$gp_set_pen(255-0-0-0,1)
$gp_draw_rectangle(0,0,$eval(%gb_width%-1),$eval(%gb_height%-1))

//add more cover sources here
$if3(
$draw_image(4,4,$get(coverD),$get(coverD),$get(cpath1),255),
$draw_image(4,4,$get(coverD),$get(coverD),$get(cpath2),255),
$draw_image(4,4,$get(coverD),$get(coverD),$get(nocover),255)
)

$gp_set_brush(255-218-218-218)
$gp_set_text_rendering_hint(ct)
$gp_set_string_format(center,center)
$if(%album artist%,
$gp_draw_string(by %album artist%,0,$get(textY),%gb_width%,$get(textH)),
Unknown Artist
)

Popup size: height should be bigger than width. I use 200x240.
Other settings and requirements are the same as my previous post.

EDIT: Small change: make it easier to change font for item display.
radecke
QUOTE(buktore @ Mar 7 2008, 14:59) *

For PanelUI, relative paths start from where the PUI is.

So, In your case just use "images\artoverlay3.png" and it should work.


thank you. so it was just a coincidence that it worked wink.gif
Hakubo
Terrific component. smile.gif

I guess the only thing I'm missing is the ability to quickly navigate to a certain album by typing a few letters of its grouping string from keyboard.

And big thanks to thuan for his config.
saberrider
I recently found the time to check out that awesome component and did a screenshot of the covers of all my albums. They load amazingly fast with 2gb of ram.

Check this out:
IPB Image
It's a huge pic and fills out my screen at 1680x1050. biggrin.gif
Falstaff
QUOTE(buktore @ Mar 7 2008, 14:59) *

For PanelUI, relative paths start from where the PUI is.

So, In your case just use "images\artoverlay3.png" and it should work.


Yep, works fine, so no more need smile.gif
Warchief
hey wink.gif

i have many albums, that contains 2 ore more subfolders inside(like cd1, cd2). The covers are stored not in cd1, cd2, cdx subfolders but in the "main" folder. This string
CODE
$replace(%path%,%filename_ext%,)cover.jpg
show the cover that are stored in the same folder were the music files are stored. I want to show the covers that are stored one level higer in the directory structure. How i can di this? thx.
Kiteroa
Maybe this would work:

$replace(%path%,%filename_ext%,)../cover.jpg

or use $directory(x,n) somehow - extracts directory name from the file path x; goes up by n levels.

maybe

$directory(%path%,1)/cover.jpg
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.