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 741293 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

foo_uie_single_column_playlist

Reply #300

@ 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



Yeah it works with, except Arctic Monkeys

foo_uie_single_column_playlist

Reply #301
Im really confused and wish I was more able to figure this out but I'm stuck and Id love some help.
For every single item I want the filetype icon to appear to the left of the song title. I'm using mazy's config.
The icons are in images/icons/png. and I wish to use the full potential of the row height which is 24.



I want the icons to appear in the positions indicated by the red arrows (classy I know...) and for the fields in that place now to be moved to the right to accomodate the icons

Could you please take a look att the iten display code and make the appropriate changes Id need to do this

Code: [Select]
$if($strcmp($mod(%_playlist_number%,2),1),
$drawrect(,,,,brushcolor-36-37-45 pencolor-null))

$padding(2,0)
$font(calibri bold,9,$if(%isplaying%, underline,),250-250-250)
$replace(%title%,'(',$font(,,bold italic,204-204-204)'(')
$if(%_selected%,$imageabs(0,-10,images\glass.png,))

$alignabs(6,13,%_width%,%_height%,,)
$font(CubicFive10,6,nocleartype,190-190-190)
[%length% | ]
[%bitrate% kbps]

$alignabs(0,-1,$sub(%_width%,2),%_height%,right,)
$font(CubicFive10,6,nocleartype,190-190-190)
[%play_counter%x]
$if(%cwb_queueindex%, '['%cwb_queueindexes%/%cwb_queuelength%']')

$alignabs(0,10,$sub(%_width%,2),%_height%,right,)
$font(Wingdings,9,glow-190-190-190 glowexpand-1,250-250-250)
$repeat(«,%rating%)
My Name is Sean and I'm here to leech off your genius.

foo_uie_single_column_playlist

Reply #302
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


Thanks. that gave me some ideas....

 

foo_uie_single_column_playlist

Reply #303
Hi, i am a noob and am new to foobar.

I have tried installing ui_single_column but it doesnt seen to be working. I have copied the dll to the components director of foobar. I have the lastest columns UI and it is working. When i go to preferences> columns ui> playlist view, i see no groups or items. The dll is active since i see it under components.

Am i missing something?

Thanks

kai-

foo_uie_single_column_playlist

Reply #304
Hi, i am a noob and am new to foobar.

I have tried installing ui_single_column but it doesnt seen to be working. I have copied the dll to the components director of foobar. I have the lastest columns UI and it is working. When i go to preferences> columns ui> playlist view, i see no groups or items. The dll is active since i see it under components.

Am i missing something?

Thanks

kai-



You need to add this component in the layout section (under general preference Columns UI).  Cnce the single column playlst appears after adding it the layout section, you then right click and select preference to configure it.

foo_uie_single_column_playlist

Reply #305
You're looking at the wrong place. Go to the Layout tab, And add the Single Column Playlist view. Now go back to the actual UI and right click the new panel for its settings.

EDIT: I'm losing my edge.

foo_uie_single_column_playlist

Reply #306
You're looking at the wrong place. Go to the Layout tab, And add the Single Column Playlist view. Now go back to the actual UI and right click the new panel for its settings.

EDIT: I'm losing my edge.


layout as in view > layout, and i should be able to select it? mine isnt showing.

i only see tabbed and sidebar

foo_uie_single_column_playlist

Reply #307
The layout tab in the Columns UI Options page, Under File -> Preferences -> Columns UI

foo_uie_single_column_playlist

Reply #308
You need to add the playlist to the layout, right click on any splitter:


foo_uie_single_column_playlist

Reply #309
ok i found it!
u change the setup in the whitespace correct? I've just done that

configured button is grayed out is that correct?

but when i go back to playlist view i dont see any of those options like groups, etc. o_O

foo_uie_single_column_playlist

Reply #310
Again, after adding it, You should see it in the main UI. Then right click anywhere in the panel, and chose 'Settings' in the popup menu.

foo_uie_single_column_playlist

Reply #311
found it!

thanks! boo i r n00b! haha =(

foo_uie_single_column_playlist

Reply #312
Is it possible, or will it be possible, to display info from different grouped items in the header ?
What I mean is if an album contains tracks of different genres, can the multiple genres be displayed in the header ?

And will it be possible to sort depending on multiple tags ? For example if I have two different albums by two different artists, but these two albums have the same name, I'd like to group them under different headers 

Apart from that, I'm lovin the plugin and i doubt i'll ever go back to the regular Columns UI

foo_uie_single_column_playlist

Reply #313
And will it be possible to sort depending on multiple tags ? For example if I have two different albums by two different artists, but these two albums have the same name, I'd like to group them under different headers 


Surely changing the Group By settings to something like %album%%artist% would make that happen..?

I haven't tried so I can't confirm, but I think that's how it works..?


foo_uie_single_column_playlist

Reply #315
Would it be possible to add the ability to have individual line heights for item display and group headers?

foo_uie_single_column_playlist

Reply #316
It's odd. If i enter no grouping variable, I get no headers. If i try to condition it so singles wont get headers, It ignores me. I tried something like:

$ifgreater(%totaltracks%,1,%album%,)

foo_uie_single_column_playlist

Reply #317
Some bugs that I'm seeing with the latest version...

- Album art using multiple lines requires an image with an aspect ratio of 1:1 (500 pixels by 500 pixels, for example) to prevent breaks in the image.

- Images loaded with GDI+ do not get released after they are drawn. If I try to save/overwrite/delete an image, I get an access denied or similar error message.

- Sometimes the first header in the listview is above the listview's viewport, and resizing the Foobar2000 window fixes this, but will now have blank space at the bottom of the viewport.

Here's my current layout...


Moderation: Please do not inline images larger than roughly 800x600 and 80KB. Please use thumbnails and/or links for large pictures instead.

foo_uie_single_column_playlist

Reply #318
It's odd. If i enter no grouping variable, I get no headers. If i try to condition it so singles wont get headers, It ignores me. I tried something like:

$ifgreater(%totaltracks%,1,%album%,)


i have a quick dirty fix for showing singles without a header for every one. i've stripped the %tracknumber% tags from the files and use this code in my group display....

Code: [Select]
$if(%tracknumber%,$if2(%album artist%,%artist%),'(no album info found)')[ - $upper(%album%)]



foo_uie_single_column_playlist

Reply #319
Since one of the main attractions of this component appears to be displaying album art, and because loading and resizing the images as the playlist is scrolled is slow and a strain on the disc drive, I think it might be a good idea to implement caching of resized images, in the same way as explorer does with Thumbs.db. 'cached' could be an option for the $image* functions, and when this parameter is specified, the first time the function is run for that file, the image will be loaded, resized and saved in an 'image database' file. Subsequent accesses would read the cached data from the database. The modification date of the image could be stored to detect when the image needs to be re-loaded (if it has been changed/deleted).
Of course if someone decides to change from 150x150 display of images to 160x160 the database would no longer be of any use, for this situation there could be a 'Clear database' button on the settings page.

Keep up the good work, thanks for this wonderful component.

foo_uie_single_column_playlist

Reply #320
Excellent idea, david_dl.

As a fellow programmer, here are some of my thoughts...

Correct me if I'm wrong, but I think the playlist is an owner-drawn ListView common control? Whether it is or not, wouldn't a custom control be more efficient? So that you can draw the whole album art image in one step, and everything could be more customizable, such as different row heights and other things. The whole playlist viewport could respond to events, and only repaint when and where needed. The display language could be improved upon to be easier to read and write as well. Something resembling XML would be cool, and could be stored in files to be imported/exported.

Obviously that would be a lot of work, but it would make FB2k the best audio player ever if the whole UI could be done like this.

Regardless, this is incredible work, Terrestrial!

foo_uie_single_column_playlist

Reply #321
I strongly agree with david!

foo_uie_single_column_playlist

Reply #322
I thought about wether or not to suggest this for awhile as it's obviously intended for use with the albumart in the playlist, something which clearly qualifies as eye candy. However, since now I'm hooked on this way of managing the playlist I'm going to mention it.. please dont flame me too much:

I would like to request the ability to specify a minimum group size. If a group contains less than x entries (x being an integer defined in preferences) then albumlist will append extra (blank?) entries to the end of the group untill it contains x entries.  This would allow us to display albumart for albums containing too few tracks to normally accomodate the space for the art.. if we can hook onto something like %list_index% or even better.. a %group_index%.

It would be nice to go even further and allow x to be defined by titleformating so we could do something like $if(%tracknumber%,4,0). Even further continuation of the idea, maybe allowing 0 value to hide the header of the group.

foo_uie_single_column_playlist

Reply #323
I thought about wether or not to suggest this for awhile as it's obviously intended for use with the albumart in the playlist, something which clearly qualifies as eye candy. However, since now I'm hooked on this way of managing the playlist I'm going to mention it.. please dont flame me too much:

I would like to request the ability to specify a minimum group size. If a group contains less than x entries (x being an integer defined in preferences) then albumlist will append extra (blank?) entries to the end of the group untill it contains x entries.  This would allow us to display albumart for albums containing too few tracks to normally accomodate the space for the art.. if we can hook onto something like %list_index% or even better.. a %group_index%.

It would be nice to go even further and allow x to be defined by titleformating so we could do something like $if(%tracknumber%,4,0). Even further continuation of the idea, maybe allowing 0 value to hide the header of the group.


This would allow me to get rid of my extremely complicated album art resizing code...

foo_uie_single_column_playlist

Reply #324
Probably a dumb question (given the name of the component) but...

I tried to use $tab and it doesn't seem to work: can it be added or is there another way to simulate columns in Item Display?

Alessandro

[Edit]Also (minor glitch): double clicking on the status bar brings the currently playing song at the top (or bottom) of the list, while ColumnsUI places it at the center, which I prefer.