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 740947 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_uie_single_column_playlist

Reply #625
Request: a function like $setheaderrows(rows) for the group header, so I can do:

Code: [Select]
$if(%discnumber%,
$if($strcmp(1,$num(%discnumber%,1)),,
$setheaderrows(1)
Disc %discnumber%
),
$setheaderrows(5)
album info here
)
err... i'm not using windows any more ;)

foo_uie_single_column_playlist

Reply #626



Will not work with useing alignabs, must use $cut if you wish to take of characters and not whole words.
Alright. I can't think of any good way to have the playlist not completely cut off long words in the playlist using cut, though. The only way I could think to do it would be to use a font that has a consistent character width and base the amount cut off on the width of the panel.


Yeah, that seems to be the best way at the moment.


Another idea (dirty but maybe working okay?) is:

1. Use calcwidth to find out the width of the string
2. If the width is bigger than desired maximum width, then:
3. Calculate how many percent the width was bigger than desired max width.
4. Count number of characters in string.
5. Reduce the number of characters proportinally to how bigger the width was compared to the maximum width (plus reduce a little extra for safety)
6. Add three dots.

If anyone gets me..


Eh, gotta get going to work, but this one seems ok at the moment. It just calculates the width of O, which seems to be the widest character.

Code: [Select]
$puts(c,$div($calcwidth(%artist% - %title%),$calcwidth(O)))

$ifgreater($calcwidth(%artist% - %title%),%_width%,
$cut(%artist% - %title%,$get(c))'...'
,
%artist% - %title%
)



That works great.. almost! For some reason the dots don't display. Otherwise, perfect.

foo_uie_single_column_playlist

Reply #627




Will not work with useing alignabs, must use $cut if you wish to take of characters and not whole words.
Alright. I can't think of any good way to have the playlist not completely cut off long words in the playlist using cut, though. The only way I could think to do it would be to use a font that has a consistent character width and base the amount cut off on the width of the panel.


Yeah, that seems to be the best way at the moment.


Another idea (dirty but maybe working okay?) is:

1. Use calcwidth to find out the width of the string
2. If the width is bigger than desired maximum width, then:
3. Calculate how many percent the width was bigger than desired max width.
4. Count number of characters in string.
5. Reduce the number of characters proportinally to how bigger the width was compared to the maximum width (plus reduce a little extra for safety)
6. Add three dots.

If anyone gets me..


Eh, gotta get going to work, but this one seems ok at the moment. It just calculates the width of O, which seems to be the widest character.

Code: [Select]
$puts(c,$div($calcwidth(%artist% - %title%),$calcwidth(O)))

$ifgreater($calcwidth(%artist% - %title%),%_width%,
$cut(%artist% - %title%,$get(c))'...'
,
%artist% - %title%
)



That works great.. almost! For some reason the dots don't display. Otherwise, perfect.


Code: [Select]
$sub($get(c),8))


er or add, and maybe increase 8. Bleh.

foo_uie_single_column_playlist

Reply #628
<newb> so ive been reading over different configurations and am starting to get a grasp on being able to make this look the way I want.  My issue is that I am not understanding the concept of how this works with playlists.

I have 3 playlists currently (Singles/Incomplete , Full Albums , and New Playlist)

I can switch between the 3 by right-clicking and choosing, and the display actually changes so i can see whats in the playlist, however i cannot actually play anything except what is in New Playlist.

help me pull my head out of my ass, please.</newb>

foo_uie_single_column_playlist

Reply #629
BUG. Marking a track and pressing <Enter>: Nothing happens.
BUG. Arrow up does not jump over the group description. If the groups height is 2, I have to press the key three times in order to reach the last track of the previous group.
BUG. A visual glitch: On top of the panel, it doesn't refresh 1 or 2 pixel height. E.g. if I minimize fb2k and bring it up again, this horizontal line shows exactly what was in the window(s) under fb2k.

W2K here and fb2k0.94

foo_uie_single_column_playlist

Reply #630
can somsone please tell me how to make use of having 2 rows of the group row.. I want to put more stuff on the second line but i dont know how to move it to the next bow down..

foo_uie_single_column_playlist

Reply #631
can somsone please tell me how to make use of having 2 rows of the group row.. I want to put more stuff on the second line but i dont know how to move it to the next bow down..

either enclose a linebreak in 's or use $char(10). I use the latter.
err... i'm not using windows any more ;)

foo_uie_single_column_playlist

Reply #632
thats great worked like a charm

now for the next trick - its currently displaying the album art if there is a folder.jpg image in the directory - which works fine but I also need it to detect for folder.png and then if neither of those are detected it needs to display my no cover art in a specific location data\misc images\nocover.png

would really appreciate some help - my config is almost perfectly the way i want it...

Code: [Select]
$drawrect(,,,,brushcolor-70-115-170 pencolor-null)
$imageabs(0,0,data\misc images\test8.png,)
$padding(85,5)
$imageabs2(75,75,,,,,3,3,$replace(%path%,%filename_ext%,folder.jpg),)
$padding(4,1)
$font(calibri bold,24,bold,255-255-255)
$font(,,bold glow-12-38-58 glowexpand-1,)%album artist%
$char(10)
$font(calibri bold,12,,255-255-255)
$font(,,bold glow-12-38-58 glowexpand-1,)
%album% [- CD %discnumber%][ / %totaldiscs%]
$char(10)
$font(CubicFive12,6,nocleartype,245-245-245)
[%date% | ][%genre%]
//image layovers
$imageabs($sub(%_width%,140),0,data\misc images\refl.png,)

foo_uie_single_column_playlist

Reply #633
Do:
Code: [Select]
$imageabs2(75,75,,,,,3,3,COVER TO NO COVER IMAGE,)
$imageabs2(75,75,,,,,3,3,$replace(%path%,%filename_ext%,folder.jpg),)


But it messes up with some aspect ratios.
err... i'm not using windows any more ;)

foo_uie_single_column_playlist

Reply #634
yeah i tried that and it works for most
as i think i read before this component doesnt do wildcards does it?
otherwise I could have it display folder.*
that would help

thanks for the info though... i already had thought of it right after i posted -

foo_uie_single_column_playlist

Reply #635
I don't know if it has been brought up before (probably?) but I think clickable elements would be a great idea. I think it should be able to separate between single or doubleclick, and it would be sufficient to refer commands to menus.

Ideas of usage:
1. Single click on rating stars in the playlist to rate song.
2. Clickable "no cover art" images to download cover art (ie. via foo_run and coverdownloader)
3. Double click on album header to open directory

---

Another idea of a function would be inline editing (middle click) to edit displayed tags directly in the playlist.

foo_uie_single_column_playlist

Reply #636
I'm still convinced that somehow columns could be integrated into this. It would basically be like columnsui, but each column has trackinfo_mod code editing. The columns wouldn't apply to the groups though, which would just span over all of the columns and have a single codebox. Group sorting (and whether or not the headers are shown) would then be defined by which column is currently selected for sorting. This would give us back the flexibility of sorting with the power of the single_column features. It would also simplify integrating inline tag editing. I know this would be a major undertaking, though.

foo_uie_single_column_playlist

Reply #637
BUG. Marking a track and pressing <Enter>: Nothing happens.


I guess you could temporalily fix that by coding a AutoHotkeyScript, that simulates a double-click on the marked entry. I'm not quite sure what amount of work that would be, since I only started using AHK myself a week ago - but it is truly a very capable little tool!

 

foo_uie_single_column_playlist

Reply #638
I've went thru this thread for like a hour but still haven't managed to get my cover art into the playlist. But after reading more carefully, I am just wondering, for the newest/current version of this component. Is album art still limited to C:\ ? or of subdirectories of the foobar directory ?

As in, it doesn't have the ability to take paths from where the albums are actually are (this is where my art is)

foo_uie_single_column_playlist

Reply #639
I've went thru this thread for like a hour but still haven't managed to get my cover art into the playlist. But after reading more carefully, I am just wondering, for the newest/current version of this component. Is album art still limited to C:\ ? or of subdirectories of the foobar directory ?

As in, it doesn't have the ability to take paths from where the albums are actually are (this is where my art is)


on its not limited now. search for imageabs2 in this thread. youll find bunch of codes and posts i presume

foo_uie_single_column_playlist

Reply #640
Any ideas why
Code: [Select]
$if($strcmp(%cwb_activelist%,Queue),!noheader!)
doesn't work?
err... i'm not using windows any more ;)

foo_uie_single_column_playlist

Reply #641
What code do I need to display the album art if all the art is stored in H:\_Artists And Artwork in this format %artist%_%album%.jpg


foo_uie_single_column_playlist

Reply #643
one question:

I have an autoplaylist with various single mp3s (my rated ones), is it possible to have 2 different column-configs like it is in columns_ui? (there i use one for album view, and another one for my autoplaylists).

foo_uie_single_column_playlist

Reply #644
Well after like long hours  I semi got it to work (albumart, only some times it fails to even draw/missing parts of the playlist), after changing the code around to drawing with the listindex it seemed to work better but both ways still kinda glitchy/laggy (a64 2800+, 1gb ram /w 2500 songs) but overall very nice plugin!

Edit: Only if you put in albumart related code into it, otherwise its great.

I hope a better implementation of album art will work later on but great work ! hope ya keep improving it

foo_uie_single_column_playlist

Reply #645
Bug (minor): Search for something which give results, using foo_uie_quicksearch. Playlist is generated, with correct results, but isn't automatically switched to (set in quicksearch preferences), like as with normal columns.

Bug (minor): Using keyboard to navigate the lists which foo_browser shows (i.e. pressing 'e' to jump to the first item starting with 'e', etc..), causes a keyboard shortcut to be performed aswell. I.E., I bind 'X' to play, and if I press 'X' whilst using the foo_browser panels, then it searches the foo_browser panel, generates the playlist, and because of 'X' being binded to play, plays the song. (may not be your problem)

Bug (major): Use foo_browser to generate a playlist, works as expxected. Search for something which give results, using foo_uie_quicksearch, which generates the new playlist with correct results. Switch to playlist, using the playlist context menu, which works as expected. Play track by double-clicking, which works as expected. Switch back to browser playlist (which was generated by foo_browser before), which works as it should. But then, when you try to play any track from the playlist (the one foo_browser generated before), it plays a track from the foo_quicksearch playlist (specifically, the first one from the group after where the cursor was in the quicksearch playlist). Regenerating the browser panels fixes this, and the browser playlist then works as normal again.

Bit confusing to explain, but I tryed to detail all steps..

foo_uie_single_column_playlist

Reply #646
What code do I need to display the album art if all the art is stored in H:\_Artists And Artwork in this format %artist%_%album%.jpg



like this:

$imageabs2(65,65,0,0,65,65,2,2,H:\_Artists And Artwork\%artist%_%album%.jpg,)

foo_uie_single_column_playlist

Reply #647
[No reaction on pressing enter]

I guess you could temporalily fix that by coding a AutoHotkeyScript, that simulates a double-click on the marked entry. I'm not quite sure what amount of work that would be, since I only started using AHK myself a week ago - but it is truly a very capable little tool!


As this computer is controlled by a remote control and girder, I solved the problem by sending the event to a (hidden) columns ui playlist. (I couldn't use "foobar2000.exe /play", because I have assigned this also to winamp).


foo_uie_single_column_playlist

Reply #649
Is somewhere comprehensive manual for scripting functions and macros for this pluging on the internet with explainig what parametrs and what for are used??

PS. Plugin is great but I dunno what to do with it without any help