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

foo_uie_single_column_playlist

Reply #1075
On question does !noheader! works in the new version?
And what for settings you have to use? Tipping just !noheader! in group display?
Suppress Header works also if you type manually 0 in group rows. But then it shows 1 in group row settings but there is no  on playlist.

foo_uie_single_column_playlist

Reply #1076
Is it possible to show the same image twice using $imageabs2()? Whenever I try it, only one shows up.


Just to clarify, I'm using two $imageabs2() statements separately, and only the first works.

 

foo_uie_single_column_playlist

Reply #1077
What do you mean 'the same image twice'? Something like this?

$imageabs2(15,13,,,,,15,3,C:\Program Files\foobar 0.9.4\images\hellosatan.png,)
$imageabs2(15,13,,,,,35,3,C:\Program Files\foobar 0.9.4\images\hellosatan.png,)


That works fine for me.


I have a question though. Did anybody ever figure out a good way to trim strings when they exceed a certain length? I saw some people discussing it way back on, like, page 28 or something, but it didn't do much for me.

The problem i'm running into is not necessarily getting it to trim, but rather getting it to trim more than once. I'm using this:

$ifgreater($calcwidth(%title%),$sub(%_width%,75),
$left(%title%,$sub($len(%title%),6))'...',
%title%)


And that works fine the first time. If i shrink the window to less than the title width, it chops off the last six characters. You run into a problem, of course, if you shrink the window any further than that, because the code is actually still checking to see if the length of the full title is less than the window width, not the length of the title minus whatever you chopped off it.

Is there any way to solve this currently?
~

foo_uie_single_column_playlist

Reply #1078
I use:
Code: [Select]
$ifgreater($calcwidth(%title%),$sub(%_width%,$get(position)),$cut(%title%,$sub($strchr(%title%,'['),2)),%title%)

where position is where the text is aligned to the left (depending on album art).
I store most version information in brackets in the filename such as [Live] or [Alternate Take]
you could just set up levels, or chop the filename in half and alternate which half is displayed with $mod().
elevatorladylevitateme

foo_uie_single_column_playlist

Reply #1079
^
The problem with your string is that it does not consider the average character width of a string (e.g. double width characters like W vs narrow ones like I.)

Here is what I am using. It cuts the string at the almost end of the area and replaces it with an ellipsis.

Code: [Select]
$puts(string,%title%)
$puts(charWidth,$div($calcwidth($get(string)),$len($get(string))))
$puts(areaWidth,$div(%_width%,5))

$alignabs(50,0,$get(areaWidth),30,left,top)

$ifgreater($calcwidth($get(string)),$get(areaWidth),
$left($get(string),$sub($sub($len($get(string)),$div($sub($calcwidth($get(string)),$get(areaWidth)),$get(charWidth))),2))'...'
,
$get(string)
)

foo_uie_single_column_playlist

Reply #1080
Ug. I guess that works, but it's real hacky. Especially if you have variables like whether or not the artist is prepended to the track (in the case of compilations for example), et cetera. I suppose that's as good as you can get without re-implementing the original trackinfo ellipsising code though. Or using a monospaced font. :shrug:


(Why did the original code have to be removed anyway?)
~

foo_uie_single_column_playlist

Reply #1081
What do you mean 'the same image twice'? Something like this?

$imageabs2(15,13,,,,,15,3,C:\Program Files\foobar 0.9.4\images\hellosatan.png,)
$imageabs2(15,13,,,,,35,3,C:\Program Files\foobar 0.9.4\images\hellosatan.png,)


That works fine for me.


$imageabs2(%_width%,%_width%,0,$sub($div(%_width%,2),22),%_width%,%_width%,0,0,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(78,78,0,0,78,78,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

doesnt work

foo_uie_single_column_playlist

Reply #1082
Until today I run with v0.8 of foobar but I discovered screenshots of this great plugin so I updated to v0.9.4.2

But I simply can't get this plugin to work. I installed v0.5.4 Beta of it and v0.1.3 Beta 7 of Columns UI but I can't find where I should be able to configure it. I read somewhere that this should be possible via Display -> Columns UI -> Playlist View but there is nothing.

[a href="http://img67.imageshack.us/my.php?image=screenshot003na8.jpg" target="_blank"]

foo_uie_single_column_playlist

Reply #1083
Right-Click in SCP area -> Settings

foo_uie_single_column_playlist

Reply #1084
Thanks, I got it

foo_uie_single_column_playlist

Reply #1085
Ug. I guess that works, but it's real hacky. Especially if you have variables like whether or not the artist is prepended to the track (in the case of compilations for example), et cetera. I suppose that's as good as you can get without re-implementing the original trackinfo ellipsising code though. Or using a monospaced font. :shrug:

Setting the first variable value to "%artist% - %title%" (or whatever you want) should do the trick, no? I agree with you, it's a pretty harsh process to trim a string, but I can't think of another more straightforward yet accurate way to do that.

Quote
(Why did the original code have to be removed anyway?)

Request: is it possible to add some kind of ellipsising support for too long stings?

foo_uie_single_column_playlist

Reply #1086
$imageabs2(%_width%,%_width%,0,$sub($div(%_width%,2),22),%_width%,%_width%,0,0,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(78,78,0,0,78,78,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

doesnt work

I dunno, it works for me. Shows two copies of folder.jpg.


Setting the first variable value to "%artist% - %title%" (or whatever you want) should do the trick, no?

No, it wasn't quite that easy for me. First of all the artist doesn't always show up (only if it's a compilation or a single track), so i had to go back and create a variable to determine whether it should. Secondly the artist is formatted differently from the title, so i couldn't just add it to the one string ('cause otherwise they'd be formatted the same). So i had to add the variable to your code, and then go strip the artist back out of the string it displays at the end so it wouldn't show up twice.

Quote
Request: is it possible to add some kind of ellipsising support for too long stings?

signed
~

foo_uie_single_column_playlist

Reply #1087
$imageabs2(%_width%,%_width%,0,$sub($div(%_width%,2),22),%_width%,%_width%,0,0,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(78,78,0,0,78,78,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

doesnt work

I dunno, it works for me. Shows two copies of folder.jpg.


It's supposed to make the first one stretch to as wide as the panel is and use a chunk of the image as a background to the group header basically. I'm just getting 2 of the same sized images.

foo_uie_single_column_playlist

Reply #1088
Terrestrial:
I' having problems with keyboard shortcuts in the latest version.
When I change between layouts, shortcuts doesn't work, until I restart or minimize-maximize foobar.

foo_uie_single_column_playlist

Reply #1089
How to hide scroll bar? It's really annoys me.. And in last beta it's always on my screen 

foo_uie_single_column_playlist

Reply #1090
I'm having the same problem as CepiPerez. For Example after switching to my lyrics display I'm not able to switch back to playlist display unless I restart foobar.

foo_uie_single_column_playlist

Reply #1091

$imageabs2(%_width%,%_width%,0,$sub($div(%_width%,2),22),%_width%,%_width%,0,0,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(78,78,0,0,78,78,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

doesnt work

I dunno, it works for me. Shows two copies of folder.jpg.


It's supposed to make the first one stretch to as wide as the panel is and use a chunk of the image as a background to the group header basically. I'm just getting 2 of the same sized images.

areaWidth & areaHeight: This only allows shrinking, it does not allow expanding the size of the image.
elevatorladylevitateme

foo_uie_single_column_playlist

Reply #1092
I'm having trouble using the ALT key to drag items. I'm using 0.3.2 beta. Is it because I have sorted elements in groups?

EDIT: I fixed it! I upgraded the component

foo_uie_single_column_playlist

Reply #1093


$imageabs2(%_width%,%_width%,0,$sub($div(%_width%,2),22),%_width%,%_width%,0,0,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(78,78,0,0,78,78,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

doesnt work

I dunno, it works for me. Shows two copies of folder.jpg.


It's supposed to make the first one stretch to as wide as the panel is and use a chunk of the image as a background to the group header basically. I'm just getting 2 of the same sized images.

areaWidth & areaHeight: This only allows shrinking, it does not allow expanding the size of the image.


That's not what I' doing. Basically, no matter what size, I cannot have the same image used twice in this panel if the two instances of the image are set to different sizes.

And with the release I have, it stretches the image.

foo_uie_single_column_playlist

Reply #1094
I think I've found a bug with adding to the playback queue.

If I enqueue a track in ColumnsUI or the defaultUI it will switch playback to the playlist where I enqueued the file.

However if I do the same thing in SCP it goes back to where it was before. Also while playing the enqueued item %_isplaying% returns 0 and %cwb_queue_end_playlist% returns an empty string.

It's kind of annoying as I use add to playback queue to gaplessly change playlists.

foo_uie_single_column_playlist

Reply #1095
I have discovered odd behavior with the alpha parameter of the $drawrect() function under SCPL. I wonder if anyone could tell me if i'm using it wrong or if I have encountered a bug.

Starting with this line of code I see a normal blue bar for the now playing item:
Code: [Select]
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-null),)


What I would like to do is make that blue bar semi-transparent so I try this, but I get a green semi-transparent bar instead of a blue one:
Code: [Select]
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-null alpha-64),)


I have tried using brushcolor-0-0-255, I have tried many other colors and many other alpha levels but every time I get a green bar instead of a blue one. I can't even get a red one. Any input would be appreciated.
Code: [Select]
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-0-0-255 pencolor-null alpha-255),)


EDIT: It appears that alpha uses pencolor not brushcolor. By using code like this I was able to achieve the desired effect:
Code: [Select]
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-10-36-106 alpha-128),)
[
I still don't know where the green came from.

foo_uie_single_column_playlist

Reply #1096
I'd also like to see ellipse support for alignabs. That shouldn't be too hard to implement I hope.

foo_uie_single_column_playlist

Reply #1097
I have discovered odd behavior with the alpha parameter of the $drawrect() function under SCPL. I wonder if anyone could tell me if i'm using it wrong or if I have encountered a bug.

Starting with this line of code I see a normal blue bar for the now playing item:
Code: [Select]
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-null),)
[a href="http://img373.imageshack.us/my.php?image=fooscplgreen1ft2.png" target="_blank"]

foo_uie_single_column_playlist

Reply #1098
i think i wrote something about this quite some time ago (look up my $drawrect post). when using alpha, different (and sometimes not very logical or obvious) rules apply.

imho it would be nice to make some things more consistent, mostly colors and alpha stuff. like enable specifying color in foobar's format (inside 'square' characters), make color gray scale when using just one value (pencolor-50) and add alpha as 4th optional parameter (pencolor-100-0-0-200) etc.

what do you guys think?

edit: imho positioning stuff could use some polishing too. like what omitting a value does, what zero or negative value does, special constants, percentage values etc.

these are some issues which basically holds me back from extensively using these (single column playlist and this) components

foo_uie_single_column_playlist

Reply #1099
I'm glad the simple selecting now works in this plugin. So i started using it.
I have two remarks about that selecting.
1. when you want to select more than you can see in your screen and move, while selecting, your cursor up and past the edge of the playlist window it doesn't scroll up. It doesn't behave like in other windows while selecting.
Could you implement that?
2. Moving with ALT isn't very intuitive. There are probably reasons why you didn't take over the normal selectin procedure like in the colums_ui playlist, but, maybe it's still possible to just move while keeping left mousebutton down.

I have a nice layout now  I'm happy, except for the selecting procedure.
Inter Deum et Diabolum semper Musica est", Tanzwut