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

foo_uie_single_column_playlist

Reply #825
Great plugin!

I would love to have an option to control "Item rows" in the same way that "Group rows" are controlled...if it's possible.

Rob


just make the row height taller

foo_uie_single_column_playlist

Reply #826

Great plugin!

I would love to have an option to control "Item rows" in the same way that "Group rows" are controlled...if it's possible.

Rob


just make the row height taller


What I meant was I would like to specify a row height and then set "Item rows" in the same way that "Group rows" can currently be set. I want to set row height to 13 and set "Group rows" = 1 and "Item rows" = 2.

Rob

foo_uie_single_column_playlist

Reply #827
You can't specify how many `lines' there are per track, but you can make the row twice as high and align some content below the first `row', so it would appear to be two rows.  This is what Nick was referring to, I believe.

foo_uie_single_column_playlist

Reply #828
Can some1 tell me the code to display a picture if there is no album art.

in other words i need the code to check if there is album art present.

Can some1 tell me the code to display a picture if there is no album art.

in other words i need the code to check if there is album art present.

foo_uie_single_column_playlist

Reply #829
Can some1 tell me the code to display a picture if there is no album art.

in other words i need the code to check if there is album art present.
This is not possible to test if an image exist. But you can display a "no-cover" image : make a code to display an "no-cover" image and make another code to display the cover after the previous code. So, if there is a cover, the cover will hide the no-cover image.

foo_uie_single_column_playlist

Reply #830
My track numbers are getting cut off. All my other columns are fine eg artist & title. I've tried to adjust the row height but that doesn't seem to help. Any ideas?


foo_uie_single_column_playlist

Reply #831
What is the code you are using for your track number? Are you confining the text by an $alignabs() or $padding()?

foo_uie_single_column_playlist

Reply #832
You can't specify how many `lines' there are per track, but you can make the row twice as high and align some content below the first `row', so it would appear to be two rows.  This is what Nick was referring to, I believe.


I know that I can't specify how many "lines per track". That's why I was saying that I would like that as an option...as in a feature request. I have already increased the row height. I would just like the group header rows to be half the height of the item rows.

Rob

foo_uie_single_column_playlist

Reply #833
My track numbers are getting cut off. All my other columns are fine eg artist & title. I've tried to adjust the row height but that doesn't seem to help. Any ideas?


Try aligning your text to the "top" of the row.  Some of the new microsoft fonts, which it appears you are using, have numbers that have different vertical offsets, such as 9 and 6.

foo_uie_single_column_playlist

Reply #834
I have a job. I am very busy. I don't have time to setup my foobar to my exact specifications, but I do have time to use someone else's code. I cannot find the code you guys are using in Single Column... where can I find that junk?

Thanks

foo_uie_single_column_playlist

Reply #835
You can just ask/PM the person has the Single Column config to your taste and ask for his/her code.

foo_uie_single_column_playlist

Reply #836
My track numbers are getting cut off. All my other columns are fine eg artist & title. I've tried to adjust the row height but that doesn't seem to help. Any ideas?



How did you make this layout? Could you please post your code?


 

foo_uie_single_column_playlist

Reply #838
item:

$imageabs(2,$if($strcmp(%tracknumber%,01),0,$add(17,$mul(-17,%tracknumber%))),images\album_overlay.png,)
$imageabs(3,$if($strcmp(%tracknumber%,01),1,$add(18,$mul(-17,%tracknumber%))),$replace($replace(images\albums\
$directory(%path%,2)\$directory(%path%,1)\mini.png,',',),?,),)

$font(calibri,10,bold,)
$if($strcmp(%tracknumber%,01),$alignabs(113,1,170,55,,)
$if(%artist%,%artist%,$font(Calibri,10,italic bold,)Artist unknown))
$if($strcmp(%tracknumber%,02),$alignabs(113,1,170,55,,)
$if(%album%,%album%,$font(Calibri,10,italic bold,)Album unknown))
$if($strcmp(%tracknumber%,03),$alignabs(113,1,170,55,,)
$if(%genre%,%genre%,$font(Calibri,10,italic bold,)Genre unknown))
$if($strcmp(%tracknumber%,04),$alignabs(113,1,170,55,,)
$if(%date%,%date%,$font(Calibri,10,italic bold,)Date unknown))

$if(%_selected%,$drawrect(277,1,550,16,brushcolor-216-216-216 pencolor-210-210-210))

/// Now Playing
/////////////////////////////////
$if(%isplaying%,
$font(calibri,10,,0-160-0)
$alignabs(284,1,30,12,,)
$ifgreater(%tracknumber%,9,%tracknumber%,$right(%tracknumber%,1))
$alignabs(317,1,250,20,,)%title%
$alignabs(467,1,120,20,right,)%length%

$font(calibri,10,,114-116-120)
$alignabs(691,1,220,20,left,)%artist%

//// Rating
/////////////////////////
$puts(rating,%play_counter%)
$if($greater($get(rating),4),$puts(rating,5))
$if($equal($get(rating),0),$puts(rating,0))
$if($stricmp(%play_counter%,?),$puts(rating,0))
$imageabs(604,0,images\$get(rating)s1.png,)
,

/// Inactive tracks
/////////////////////////
$font(calibri,10,,0-0-0)
$alignabs(284,1,30,12,,)
$ifgreater(%tracknumber%,9,%tracknumber%,$right(%tracknumber%,1))
$alignabs(317,1,245,20,,)%title%
$alignabs(467,1,120,20,right,)%length%
$font(calibri,10,,114-116-120)
$alignabs(691,1,220,20,left,)%artist%

//// Rating
/////////////////////////
$puts(rating,%play_counter%)
$if($greater($get(rating),4),$puts(rating,5))
$if($equal($get(rating),0),$puts(rating,0))
$if($stricmp(%play_counter%,?),$puts(rating,0))
$imageabs(604,0,images\$get(rating)s1.png,)

)




Didnt write most of this so if some1 could tell me which bit is causing the track number to cut off

foo_uie_single_column_playlist

Reply #839
Didnt write most of this so if some1 could tell me which bit is causing the track number to cut off

I posted earlier that you might need to align your text to the top of the item row.  The new Vista fonts have some numbers that are aligned differently, such as the numbers 9 and 6.

In your code, where you see $alignabs, the last two positions in the code deal with horizontal and vertical alignment.  If you put "top" in the last position, I believe it will work.

For example:
Instead of
$alignabs(113,1,170,55,,)
Use
$alignabs(113,1,170,55,,top)

foo_uie_single_column_playlist

Reply #840

Didnt write most of this so if some1 could tell me which bit is causing the track number to cut off

I posted earlier that you might need to align your text to the top of the item row.  The new Vista fonts have some numbers that are aligned differently, such as the numbers 9 and 6.

In your code, where you see $alignabs, the last two positions in the code deal with horizontal and vertical alignment.  If you put "top" in the last position, I believe it will work.

For example:
Instead of
$alignabs(113,1,170,55,,)
Use
$alignabs(113,1,170,55,,top)


didnt fix it

foo_uie_single_column_playlist

Reply #841
didnt fix it

make your row heigth bigger, leaving the text aligned to the top of the row. you'll see how many pixels you need your row to be so that the text fits.

or, change the font size (10)
or, change the font (calibri)

  $if(%isplaying%,
  $font(calibri,10,,0-160-0)
  $alignabs(284,1,30,12,,)
  $ifgreater(%tracknumber%,9,%tracknumber%,$right(%tracknumber%,1))

sune

foo_uie_single_column_playlist

Reply #842
Great plugin ;]

Bugs:
  • when navigating up by keyword groups aren't skipped. e.g. if group size is 2 rows, then it takes 3 key strokes to move to the group above.
  • When group size is 0 rows...
    I know one can say why have groups if you can't see then.. but i still have %_itemsize% and %_itemcount%

    Spin box doesn't accept 0, it must entered manualy.
    when restarting foobar, all i can see is a series of 1 pixel thick horizontal lines spaced by 'row size'. To make things ok i must open config, switch to 2 or something, apply and then back (manualy) to 0 and apply again.



requests:
  • would it be possible to make this plugin not single instance, and add abilitiy for instances to have different configs and alsow be fixed to a specific playlist?

    my goal is to have one view displaying fixed playlist feed by playlist tree, displaying cover art, ane one with regular playlists.

  • Would it be possible to give a group minimum item count? So that if group is smaller it is explode into several smaller groups without header?


  • a bit more complex: ability to o add a parameter (scriptable) for groups and items descibing their height( in row count).

foo_uie_single_column_playlist

Reply #843
requests:

  • would it be possible to make this plugin not single instance, and add abilitiy for instances to have different configs and alsow be fixed to a specific playlist?

    my goal is to have one view displaying fixed playlist feed by playlist tree, displaying cover art, ane one with regular playlists.


it is multiple instance (and with selectable playlists...). the keyboard shortcuts, however, always refer to the active playlist.

foo_uie_single_column_playlist

Reply #844
I noticed that the SDK distinguishes between an active playlist and a playing playlist. It seems that with single_column_playlist, the playing playlist is always the active playlist even though you may be viewing a different playlist. Is there a reason for this? I'm asking because I have, perhaps an unconventional layout where I have a dedicated "Now Playing" playlist and a dedicated "Browser" playlist. With this layout it is not really possible to use the foo_uie_quicksearch plugin because it always searches the current active playlist, which in my case, when viewing the "Browser", is the "Now Playing" playlist not the "Browser" playlist.

Perhaps I'm not understanding the foobar2000 concept of "active" and "playing" playlists.

Thanks.

[EDIT]
Quote
it is multiple instance (and with selectable playlists...)

That explains the way it acts this way, for instance you could have more then one panel in your layout viewing different playlists, which one is "active" in this scenario? I only have one panel showing, and I use the single_columns_playlist context menu playlist selection to switch playlists, so this didn't occur to me.

Still, I wonder if there is some solution to using foo_uie_quicksearch, for my particular layout?

foo_uie_single_column_playlist

Reply #845
it is multiple instance (and with selectable playlists...). the keyboard shortcuts, however, always refer to the active playlist.


Thanks. All i needed was to place it in another tab container. And it's a bummer with these keyboard shortcuts... 

foo_uie_single_column_playlist

Reply #846
Would it be possible to give a group minimum item count? So that if group is smaller it is explode into several smaller groups without header?



$ifgreater(3, %_itemcount%,!noheader!,)

That should work, but the !noheader! command isn't working for me for some reason... Did it get removed?

foo_uie_single_column_playlist

Reply #847
I noticed that the SDK distinguishes between an active playlist and a playing playlist. It seems that with single_column_playlist, the playing playlist is always the active playlist even though you may be viewing a different playlist. Is there a reason for this? I'm asking because I have, perhaps an unconventional layout where I have a dedicated "Now Playing" playlist and a dedicated "Browser" playlist. With this layout it is not really possible to use the foo_uie_quicksearch plugin because it always searches the current active playlist, which in my case, when viewing the "Browser", is the "Now Playing" playlist not the "Browser" playlist.

Perhaps I'm not understanding the foobar2000 concept of "active" and "playing" playlists.

Thanks.


no, active and playing playlists are different. in any case I've switched things around for the new version to make things work better.


$ifgreater(3, %_itemcount%,!noheader!,)

That should work, but the !noheader! command isn't working for me for some reason... Did it get removed?


you can't use %_itemcount% in the group by box... there are no groups when the group by string is evaluated, hence no %_itemcount%. it's the chicken and the egg problem.

--------

I've uploaded a new version. hopefully I didn't break anything.. If anyone still has graphical glitches, let me know.