Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_uie_single_column_playlist (Read 736629 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_uie_single_column_playlist

Reply #275
I can't seem to get tool++ his code to work, I copied everything he provided. Followed all the tips from the 'show your foorbar'-topic. But I still don't get any images, so my questions are

1. What is the minimal to make tool++ his code work?
    a. plugins (columns_ui, etc.)
    b. additional plugins (lib2png.dll, etc.)
    c. additional installs (runtime libraries, etc.)
2. Can someone, who has a full working tool++ code, post an archive from his foorbar2000 folder?
3. Who helps me?

foo_uie_single_column_playlist

Reply #276
Can this plugin access global variables?

foo_uie_single_column_playlist

Reply #277
Can this plugin access global variables?


this is an interesting question. i would really like to add my natural timestamp info (global variable).
right now it doesn't seam to be supported, or its a special syntax i don't know about..

foo_uie_single_column_playlist

Reply #278
I have a few albums with tracks of different genre in them.
Is it possible to display in the Group header all the different genres of the album ?

foo_uie_single_column_playlist

Reply #279
I can't seem to get tool++ his code to work, I copied everything he provided. Followed all the tips from the 'show your foorbar'-topic. But I still don't get any images, so my questions are

1. What is the minimal to make tool++ his code work?
    a. plugins (columns_ui, etc.)
    b. additional plugins (lib2png.dll, etc.)
    c. additional installs (runtime libraries, etc.)
2. Can someone, who has a full working tool++ code, post an archive from his foorbar2000 folder?
3. Who helps me?


Here is a list from my plugs dir:

Folder PATH listing for volume appears
Volume serial number is 24EF-726C
D:\FB2K\COMPONENTS
|  components.lnk
|  default.png
|  default.pngxx
|  default.xml
|  dotnet_title.dll
|  foo_albumlist.dll
|  foo_audioscrobbler.dll
|  foo_autoplaylist.dll
|  foo_browser.dll
|  foo_burninate.dll
|  foo_cdda.dll
|  foo_channel_mixer.dll
|  foo_common.dll
|  foo_converter.dll
|  foo_cwb_hacks.dll
|  foo_dbsearch.dll
|  foo_dsp_atsurround.dll
|  foo_dsp_std.dll
|  foo_dsp_tube.dll
|  foo_dsp_winamp.dll
|  foo_dumb.dll
|  foo_freedb2.dll
|  foo_gep.dll
|  foo_input_shorten.dll
|  foo_input_std.dll
|  foo_masstag.dll
|  foo_midi.dll
|  foo_msnalt.dll
|  foo_out_asio.dll
|  foo_out_ks.dll
|  foo_playcount.dll
|  foo_rgscan.dll
|  foo_run.dll
|  foo_uie_albumart.dll
|  foo_uie_albumlist.dll
|  foo_uie_playlists_dropdown.dll
|  foo_uie_quicksearch.dll
|  foo_uie_single_column_playlist.dll
|  foo_uie_single_column_playlist.txt
|  foo_uie_tabs.dll
|  foo_uie_trackinfo.dll
|  foo_uie_trackinfo_mod.dll
|  foo_uie_trackinfo_mod.txt
|  foo_ui_columns.dll
|  foo_ui_std.dll
|  foo_utils.dll


NOT ALL OF THESE ARE NEEDED

Libpng is needed

These three images need to be in /images:


http://img.photobucket.com/albums/v142/Too...ep_Meep/bg1.png


http://img.photobucket.com/albums/v142/Too...eep/noalbum.png


http://img.photobucket.com/albums/v142/Too...rtoverlay-1.png

I'm sorry that I havent been very helpful lately. Lots of people are asking for advice and I've been tired and doing things and stuff.



On other notes, it would be great if this could access globals, then I could make it reflect my colourschemey thingy on my FCS :]
hi

foo_uie_single_column_playlist

Reply #280
@ venometh, I use this code
Code: [Select]
$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'images\albums\'%album artist%'.'%album%'.png',)

 

foo_uie_single_column_playlist

Reply #281
@ vonmeth, I use this code
Code: [Select]
$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'images\albums\'%album artist%'.'%album%'.png',)


I had to change it a bit to fit where my files are, but it seems to work fine on my end.
I did take out the apostrophes, see if that helps any.

Edit: To further clarrify, I used Tool - 10,000 Days, and had the image named Tool.10,000 Days.jpg

foo_uie_single_column_playlist

Reply #282
I've posted a new version which fixes the playback status not changing.

The arguments for $imageabs2 are

- resize width
- resize height

- srcX - the x position on the resized image where you want to start
- srcY - the y position on the resized image where you want to start
- srcW - the width on the resized image you want
- srcH - the height on the resized image you want

- dstX - the x position on the screen where you want the image drawn
- dstY - the y position on the screen where you want the image drawn

and yes, there will be problems with the '#' character in commands.

Both images commands use GDI+.


Can you make it so one doesn't? GDI+ lags my games :'(
hi

foo_uie_single_column_playlist

Reply #283
First, many thanks for the update Terrestrial 

some bugs:
-in imageabs2, there is a problem (with some pictures)


I use :
$if($strcmp($num(%tracknumber%,2),01),,
$imageabs2(120,120,0,$mul(21,$sub(%tracknumber%,2)),120,21,15,0,$replace(%path%,%filename_ext%,folder.jpg),)
)

-'Enter' do nothing (not playing the selected track).

-going down in the playlist with the down key skip the "group display", and not while going up.

For the futur, I think can be good to have "presets" easily basculable. An example: a view with groups and thumbnails, and a simple list for Radios, Search, and others badly classified lists.

With this system, there is no problem for adding, moving, or deleting independants tracks. The program can store the last used view by playlist, and use predefinied view for some like playlist named 'Search*'.

foo_uie_single_column_playlist

Reply #284
That picture illustrates the same problem I have whenever I use imageabs2() whenever the original image has a different aspect ratio from the resized image.

foo_uie_single_column_playlist

Reply #285
The flickering is gone, but it doesn't update often enough to make this work:

$if(%isplaying%,%playback_time% / )%length%

Not really a big deal. I removed the $if(%isplaying%,%playback_time% / ), and I have the above code in my Status Bar.

I wanted to add that the functionality and appearance of this component is great.  It's exactly what I wanted in a playlist component.  I'm not doing anything as fancy as Tool++, but you can take a look here if you want to see my setup.

foo_uie_single_column_playlist

Reply #286
Is there any way I can wrap or ellipsize text in a rectangle? I am having overwriting problems with long title songs...

foo_uie_single_column_playlist

Reply #287
Thanks for the update terrestrial, I can actually use it now!
we was young an' full of beans

foo_uie_single_column_playlist

Reply #288

foo_uie_single_column_playlist

Reply #289
Is there any way I can wrap or ellipsize text in a rectangle? I am having overwriting problems with long title songs...


I have not been able to figure out a simple way to do this.  I have been able to figure out several complicated ways to do this.  This is my current Item Display string:

Code: [Select]
$ifequal($mod(%list_index%,2),0,
$drawrect(,,,,brushcolor-237-237-229 pencolor-null),
)
$drawrect(,,4,,brushcolor-204-204-191 pencolor-null)
$drawrect($sub(%_width%,4),,4,,brushcolor-204-204-191 pencolor-null)
$if(%_selected%,$drawrect(,,,,brushcolor-204-204-191 pencolor-null))
$if(%isplaying%,$drawrect(,,,,brushcolor-155-208-201 pencolor-null)
$font(AvantGarde LT Medium,7,,50-50-45)
,$font(AvantGarde LT Medium,7,,160-160-144)
)

$padding(6,0)
$alignabs(4,,14,%_height%,right,middle)$num(%tracknumber%,1)
$font(AvantGarde LT Medium,7,,0-0-0)

$alignabs(28,,%_width%,%_height%,left,middle)

$if($greater($calcwidth($if($meta(Album Artist),%artist% - )%title%),$sub(%_width%,60))
,
$cut($if($meta(Album Artist),%artist% - )%title%,90)…
,
$if($meta(Album Artist),%artist% - )%title%
)
$if(%isplaying%,
$font(AvantGarde LT Medium,7,,50-50-45),
$font(AvantGarde LT Medium,7,,160-160-144)
)
$padding(4,0)$align(right,middle)%length%


60 is the left and right marigins added together.
90 is the approximate maximum number of characters of the non-fixed-width font Avant-Garde at my usual window size of around 526 width.  Phew.
Those numbers will change depending on your config and font.  Experiment.

Also of note, the $if($meta(Album Artist),%artist% - ) is particular to my tagging convention.  I use Vorbis Comment standards, but they're not exactly pretty when it comes to classical music albums with multiple composers.  Setting the Album Artist comment for albums with multiple composers is my little work around.  You probably should just have %title%.  So you'll want something like this, but with those two numbers changed for your particular font, window size, and marigins.

Code: [Select]
$if($greater($calcwidth(%title%),$sub(%_width%,60))
,
$cut(%title%,90)…
,
%title%
)

See the results:

foo_uie_single_column_playlist

Reply #290
I have not been able to figure out a simple way to do this.  I have been able to figure out several complicated ways to do this.

if you do not insist on doing the traditional ellipsize thing, you could simply check whether text did not fit in the visible space given (you can always output into bigger - wider than visible space - $alignabs container) and put transparent png over the right edge if so - to make it visually "fade out". imho simple and nice, but not to everyone's personal preference.

foo_uie_single_column_playlist

Reply #291
Can this plugin access global variables?

This is exactly what I wanted to know.  Specifically for the "Group By" section.  I have an idea that should work, which will allow one to have full albums grouped together and in the same list singles (or individual songs from full albums) grouped together under a "Singles" section.

I think it will work if Globals or just straight variables using the "$puts" and "$get" function are allowed.

foo_uie_single_column_playlist

Reply #292
I really like the look of this component when compared to the traditonal Columns UI playlist.  However, I am strugling with some its functionality.  Realizing the limitations of a single column, is there a way to select a sort based on different metadata fields, such as play_count or last_played.  In other words, I typically sort my palylis by artist|title.  But sometimes, I like to sort based on play_count or last_played to see what I have played recently or the most.  Any suggestions on the best way to accomplish this without having to use the main menu.

foo_uie_single_column_playlist

Reply #293
Is there any way I can wrap or ellipsize text in a rectangle? I am having overwriting problems with long title songs...

here's my method

Code: [Select]
$puts(title,[%tracknumber%.  ][$if($meta(album artist),%artist%'  •  ',)]
$if2(%title%,%filename%))

$iflonger($get(title),60,$trim($cut($get(title),60))...,$get(title))


60 is the length of the string/text

foo_uie_single_column_playlist

Reply #294
terrestrial, could you add support for columns ui's globals ($get_global). it is present in your track info panel mod, but not in this component. thank you

foo_uie_single_column_playlist

Reply #295
terrestrial, could you add support for columns ui's globals ($get_global). it is present in your track info panel mod, but not in this component. thank you

This would be good to have.  Also, is support for foo_cwb_hooks present?  Or do they not work because they are not supported by Columns_UI?


foo_uie_single_column_playlist

Reply #297
I want to have the filetype icons used for foobar in my playlist depending on the file extension.

Can anyone come up with a code for me.....I am a complete retard.
Thank you please
My Name is Sean and I'm here to leech off your genius.

foo_uie_single_column_playlist

Reply #298
This is the code I use in my trackinfomod panel and it works well, it should work in singlecolumnplaylist and be rather easy to modify for your needs:
Code: [Select]
$imageabs(,,icons\png\$replace(%filename_ext%,%filename%.,).png,)

foo_uie_single_column_playlist

Reply #299
Why is it that songs with 1 playcount don't have the "x" after them and don't align with the rest?

Code: [Select]
$padding(35,0)$align(right,bottom)[%play_counter%$if($greater(%play_counter%,1),x )]




Also as you can see album art has lines going through it, and it does this on some albums but not all of them. Is there a fix for this yet?

And one final thing, as you can see album art is showing up, but images (noalbum.png, artoverlay.png) in the foobar images directory are not. How can that be fixed? Thanks.

Code: [Select]
$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'images\noalbum.png',)
$imageabs2(107,107,0,$add(-23,$mul(%tracknumber%,23)),,,,,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'images\artoverlay.png',)