Help - Search - Members - Calendar
Full Version: foo_uie_single_column_playlist
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
lhaymehr
Nice component, pretty slow though :\
kockroach
If you use cwb_hooks, turn off the "Notify other components of variable changes" option in the preferences. That speeds it up for me.
fraganator
QUOTE(vonmeth @ Oct 4 2006, 01:10) *

QUOTE(fraganator @ Oct 3 2006, 05:17) *


Thanks for the reply, but i'm afraid that didn't fix my issue. Here's another example of what I'm trying to fix (same code as before with a DVD cover image):
IPB Image

I'm thinking this may be a bug in $imageabs2, or I'm not using it correctly. Anyone have any more ideas?


Could you give us your whole Group Display coding? Something else might be interrupting it.


CODE

$imageabs2(110,110,,,,,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

$alignabs(120,8,%_width%,%_height%,,)
$font(tahoma,9,bold,)$abbr($if2(%album artist%,%artist%),80)$char(10)
$font(tahoma,9,bold,62-128-223)$abbr(%album%,80)$char(10)
$font(tahoma,6,bold,62-128-223)__________________________________$char(10)$char(10)
$font(tahoma,8,bold,0-0-0)Year: $font(tahoma,8,,)%date%$char(10)
$font(tahoma,8,bold,)Genre: $font(tahoma,8,,)%genre%$char(10)
$font(tahoma,8,bold,)Format: $font(tahoma,8,,)$if($stricmp(%codec%,'ATSC A/52'),dolby digital,$lower(%codec%))', '%bitrate% kbps', '$if($stricmp(%samplerate%,'44100'),'44.1 kHz',$if($stricmp(%samplerate%,'48000'),'48 kHz',%samplerate% Hz))', '$if($stricmp(%channels%,'6ch'),'5.1 surround',%channels%)$char(10)
$font(tahoma,8,bold,)Album Gain: $font(tahoma,8,,)$if2(%__replaygain_album_gain%,none)$char(10)


Edit:
I tried the group display with just the $imageabs2 line by itself and still get the same problem
vonmeth
QUOTE(fraganator @ Oct 3 2006, 17:40) *

QUOTE(vonmeth @ Oct 4 2006, 01:10) *

QUOTE(fraganator @ Oct 3 2006, 05:17) *


Thanks for the reply, but i'm afraid that didn't fix my issue. Here's another example of what I'm trying to fix (same code as before with a DVD cover image):
IPB Image

I'm thinking this may be a bug in $imageabs2, or I'm not using it correctly. Anyone have any more ideas?


Could you give us your whole Group Display coding? Something else might be interrupting it.


Edit:
I tried the group display with just the $imageabs2 line by itself and still get the same problem


$imageabs2(85,85,,,100,100,10,5,$replace(%path%,%filename_ext%,)test.png,)

Where the 100's are, put a large number. It should then work.

Edit:

QUOTE

I'm used to highlighting x amount of tracks within a playlist (but not all) and being able to modify the tags.

So am I doing something wrong or is it not possible to (like in columns ui) modify the tracks for 1 album inside of a playlist containing many?


It works just as before. You will not visually see the selecting of the items unless you define %_selected% with an $if statement.

Edit: Fixed grammar errors
blaxima
QUOTE(vonmeth @ Oct 3 2006, 20:19) *

QUOTE

I'm used to highlighting x amount of tracks within a playlist (but not all) and being able to modify the tags.

So am I doing something wrong or is it not possible to (like in columns ui) modify the tracks for 1 album inside of a playlist containing many?


You still works. If visually will not see yourself selecting them all unless you define %_selected% with an $if statement.


Its not the seeing it that i'm having problems with. When i just do it then select the properties or file info just as i did with colums ui it only shows the properties of the last song.

I've added this
CODE
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-128-128-255 pencolor-128-128-128))

at the end to test what your saying and it only highlights one song. I want to be able to edit multiple tracks within a playlist but not all. How do I do that?
vonmeth
I'm having a problem myself.

For some odd reason, it keeps going to the next line prematurely,
even when it has enough room to display the whole of text.

CODE

$drawrect(,,,,brushcolor-255-255-255 pencolor-255-255-255)

$padding(10,5)
$imageabs2(85,85,,,,,10,5,$replace(%path%,%filename_ext%,)folder.jpg,)

$padding(90,-5)
$font(calibri,11,bold,)
$puts(ar_w,$calcwidth(%artist%))
$drawrect(,19,$get(ar_w),1,brushcolor-100-100-100 pencolor-null)

$font(calibri,10,bold,0-0-0)[%artist%]$char(10)
$font(calibri,8,bold,0-0-0)[%album%]
$font(calibri,7,,100-100-100)  %_itemcount% tracks

$font(calibri,7,,0-0-0)$char(10)[%date%]

$font(calibri,7,,0-0-0)$char(10)[%genre%]



IPB Image

The number of tracks should easily fit on the same line of "The Head and the Heart"

If I changed the width even slightly to smaller, The Head and the Heart, would not display fully on one line.

blink.gif

QUOTE(blaxima @ Oct 3 2006, 19:06) *

I've added this
CODE
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-128-128-255 pencolor-128-128-128))

at the end to test what your saying and it only highlights one song. I want to be able to edit multiple tracks within a playlist but not all. How do I do that?


Ah don't mind my English above ... havn't had a cig in three days and it is making head go crazy.

I meant, you can still select multiple tracks, but if you do not define it, you will not be able to visually see what you are selecting.

It should let you select mutliple ones, the same way you select multiple items in Windows or with Columns UI (or was there a different way?); i.e. by holding shift and/or ctrl. After selecting, right click on any of the tracks and go to properties.

If it not allowing you do this, I have no idea what the problem is. Here is a picture of me selecting different items, with the properties window open.

IPB Image
blaxima
QUOTE(vonmeth @ Oct 3 2006, 21:43) *

Ah don't mind my English above ... havn't had a cig in three days and it is making head go crazy.

I meant, you can still select multiple tracks, but if you do not define it, you will not be able to visually see what you are selecting.

It should let you select mutliple ones, the same way you select multiple items in Windows or with Columns UI (or was there a different way?); i.e. by holding shift and/or ctrl. After selecting, right click on any of the tracks and go to properties.

If it not allowing you do this, I have no idea what the problem is. Here is a picture of me selecting different items, with the properties window open.


ahhhhhhhhh. crtl+shft makes it work but with columns ui i never had to do that.

Thank You
fraganator
QUOTE(vonmeth @ Oct 4 2006, 08:19) *

$imageabs2(85,85,,,100,100,10,5,$replace(%path%,%filename_ext%,)test.png,)

Where the 100's are, put a large number. It should then work.

Thanks, that seems to have done the trick.

This plugin really is shaping up very nicely. Well done terrestrial, keep up the great work!
Draikin
I have this weird bug when I start foobar, it display whatever is behind Foobar at this moment (here, my IRC client): http://omoikane.minstrum.net/foobug.jpg
If I edit Item Display without changing anything it comes back to normal blink.gif
lhaymehr
And annother thing. If the playlist is longer than the foobar window, and a vertical scrollbar appears in the playlist, annother item is added to the playlist which usually contains data from a random item in the playlist. Double clicking that item will crash foobar.

Screenshot attached. See the very bottom of the picture. You'll notice a duplicate item. Double clicking it crashes foobar with an access violation.

(and please dont mind the look of the foobar, i've just started playing with this plugin and looking how it appears on different themes smile.gif

http://free-zg.t-com.hr/lhaymehr/STORAGE/MISC/fb001err.png
Draikin
while we're on the "bugs" topic:

- I set my "group rows" to 0 but every time I open the settings it comes back to 1

- using quicksearch toolbar with focus on search results, my rows are replaced by "NEIN", i have to look at another playlist and come back to the search results to see them: http://omoikane.minstrum.net/foobug2.png
kockroach
QUOTE(lhaymehr @ Oct 4 2006, 07:22) *

And annother thing. If the playlist is longer than the foobar window, and a vertical scrollbar appears in the playlist, annother item is added to the playlist which usually contains data from a random item in the playlist. Double clicking that item will crash foobar.

Screenshot attached. See the very bottom of the picture. You'll notice a duplicate item. Double clicking it crashes foobar with an access violation.

(and please dont mind the look of the foobar, i've just started playing with this plugin and looking how it appears on different themes smile.gif

http://free-zg.t-com.hr/lhaymehr/STORAGE/MISC/fb001err.png

That problem was brought up a few posts back. I found that the height of the entire palylist panel needs to be a multiple of the row height to not have this occur.
Crayon
yup, i get the same bugs as draiken, my list is replaced with NEIN when i use with quick search toolbar
FofR
The wiki needs updating, sadly I don't have the time to do it at the moment sad.gif
hyd
I apologize for the rookie question, but I've just installed the plugin and my playlist looks quite unappealing regardless of what .fcs config I'm trying to load:

IPB Image

The relevant (?) config settings are as shown here.

Running latest versions of both columns_ui and fb2k.

Appreciate all feedback, thanks!
vonmeth
QUOTE(Draikin @ Oct 4 2006, 06:46) *

while we're on the "bugs" topic:

- I set my "group rows" to 0 but every time I open the settings it comes back to 1

- using quicksearch toolbar with focus on search results, my rows are replaced by "NEIN", i have to look at another playlist and come back to the search results to see them: http://omoikane.minstrum.net/foobug2.png


Er, why do you want group rows to be 0? If you simply do not want a header, use !noheader! (I believe that is the syntax)


QUOTE(hyd @ Oct 4 2006, 12:27) *

I apologize for the rookie question, but I've just installed the plugin and my playlist looks quite unappealing regardless of what .fcs config I'm trying to load:

IPB Image

The relevant (?) config settings are as shown here.

Running latest versions of both columns_ui and fb2k.

Appreciate all feedback, thanks!


Right click on the playlist, and click on settings.

Single Column does not use a fcs file. Read the topic or look at the appearence thread (the last several pages) for coding to put in.
cartman(2vd)
feature request summary from me to terrestial... hope he will see smile.gif

1) pls make it so that if i rclick group header the whole group is selected

2) pls implement some boolean function like "$ispresent" or "$exist" or i dont know to make codes like this possible
if($exist(folder.jpg),imageabs(folder.jpg),imageabs(nocover.jpg))

3) pls look on "there is part of playlist at the bottom which is wierd and when i click it the whole foobar crashes" bug

4)would it be possible to implement some sort of refresh image option?... images are loaded almost perfectly when foobar is restarted but if you experiment with code its a bit slow to restart everytime you change something to see if it works

5) i sometime use code like this
CODE
$imageabs2(84,84,0,0,84,84,5,3,'images\artoverlay.png',)

is imageabs2 suppose to work with relative path? i guess it isnt but it works and thats great. could you look at this and if its unintended feature just look at code if everything works fine? smile.gif

And once more Thanks for component which makes undreamed things possible.
Draikin
QUOTE(vonmeth @ Oct 4 2006, 20:41) *

Er, why do you want group rows to be 0? If you simply do not want a header, use !noheader! (I believe that is the syntax)

I use %_itemcount% to display (or not) my album covers.
carmenm
I still have a problem withe the last version of this plugin. I cant manage to figure a way to delete a song from a playlist. I tried middle mouse button, del or backspace, nothing works.

help please

Thanks for that plugin by the way, it is awesome
marc2003
QUOTE(carmenm @ Oct 4 2006, 22:54) *

I still have a problem withe the last version of this plugin. I cant manage to figure a way to delete a song from a playlist. I tried middle mouse button, del or backspace, nothing works.

help please

Thanks for that plugin by the way, it is awesome


delete key works for me..... dry.gif
unabatedshagie
Thats strange, no keyboard shortcuts work for me using this plugin.

I have to use the context menu for everything.

It's one of the few things thats stopping me using this plugin just now.
musosticky
a recent version added keyboard shortcuts. Make sure you have the latest one
Nickoladze
I just made a button to do edit->selection->remove, works great
Deathshroud
So, I've downloaded 0.9.4 and I can't seem to get this mod working. I've downloaded and extracted it into the components folder, and when I go to Preferences and try to change the interface, only default user interface is there to be chosen. Am I missing something?
Valaire
QUOTE(Deathshroud @ Oct 4 2006, 18:30) *

So, I've downloaded 0.9.4 and I can't seem to get this mod working. I've downloaded and extracted it into the components folder, and when I go to Preferences and try to change the interface, only default user interface is there to be chosen. Am I missing something?


You need to have Columns UI installed. That is the user interface. Single column playlist is a panel for columns UI, it does not replace it.
Deathshroud
QUOTE(Valaire @ Oct 4 2006, 19:39) *

QUOTE(Deathshroud @ Oct 4 2006, 18:30) *

So, I've downloaded 0.9.4 and I can't seem to get this mod working. I've downloaded and extracted it into the components folder, and when I go to Preferences and try to change the interface, only default user interface is there to be chosen. Am I missing something?


You need to have Columns UI installed. That is the user interface. Single column playlist is a panel for columns UI, it does not replace it.


Thats funny because I have Columns UI installed, but it won't let me select that as a UI either. Something isn't right...

EDIT: I got it figured out. thanks for the help
Yotsuya
Here's an idea I'd like to throw out there, I think it would consolidate several feature requests:

I would like to request a simple $image() function for displaying an image without absolute positioning. I would also like to see this function work with $calcwidth() and $calcheight() to return the width or height of the image. This could be very useful in developing code to compensate for images with different aspect ratios. It would be even more amazing if $calcwidth($image(image.jpg)) would return a 0 if image.jpg does not exist, allowing for better development of "no-cover" code.
Seven-eleven
is there any way I could make it display the first image it found on the designated location ? (without specifying file name e.g. folder.jpg/png)
I tried this $imageabs2(84,84,,,,,5,3,$replace(%path%,%filename_ext%,*),)
just doesn't work
Yotsuya
This component does not currently support wildcard matches for filenames.
unabatedshagie
QUOTE(musosticky @ Oct 4 2006, 23:24) *

a recent version added keyboard shortcuts. Make sure you have the latest one
Thats strange, I'm usually quite anal about updating my components. Updating it fixed the problem. Thanks.
carmenm
I dont really understand because i updated it yesterday and still no keyboard shortcuts for me. I ll try again tonight.
Yet i think it would be really cool if we could have a option to activate the middle mouse button delete feature.

Thanks
DarkWeaver
QUOTE(Draikin @ Oct 4 2006, 21:17) *

QUOTE(vonmeth @ Oct 4 2006, 20:41) *

Er, why do you want group rows to be 0? If you simply do not want a header, use !noheader! (I believe that is the syntax)

I use %_itemcount% to display (or not) my album covers.

Just out of interest, does item count work just like %totaltracks% (for correctly tagged albums of course), and give just the number of tracks per album, or is it per group? Sorry, I would test this in fb, but I'm at work atm.
Draikin
It gives the number of items per group.
toology
Is the artwork display wildcard(*.jpg) planned for future releases?
DarkWeaver
QUOTE(Draikin @ Oct 5 2006, 11:13) *

It gives the number of items per group.

OK, thanks.
callisto
QUOTE(toology @ Oct 5 2006, 12:19) *

Is the artwork display wildcard(*.jpg) planned for future releases?

I hope so... I would like to see this feature very much, too!
joule
Can I specify the maximum width in pixels that a string can display, before it cuts and ends with "..."? (i guess there's a better terminology for this)
tomthomson
QUOTE(joule @ Oct 5 2006, 17:07) *

Can I specify the maximum width in pixels that a string can display, before it cuts and ends with "..."? (i guess there's a better terminology for this)

also searching for such a function since $cut only cuts of characters and is very general.
For example:
Ten characters of M are not as long as 10 characters of I
MMMMMMMMMM
IIIIIIIIII
vonmeth
QUOTE(tomthomson @ Oct 5 2006, 09:47) *

QUOTE(joule @ Oct 5 2006, 17:07) *

Can I specify the maximum width in pixels that a string can display, before it cuts and ends with "..."? (i guess there's a better terminology for this)

also searching for such a function since $cut only cuts of characters and is very general.
For example:
Ten characters of M are not as long as 10 characters of I
MMMMMMMMMM
IIIIIIIIII


tornthomson: At the moment, I would just use a font that has the same width for every character. I know Lucida Console is one such font.

joule: At the moment, it does not truncate the string, but carries it over to the next line.
joule
QUOTE(vonmeth @ Oct 5 2006, 18:00) *

joule: At the moment, it does not truncate the string, but carries it over to the next line.


Can I limit the width of the text in any way? I guess I could draw a right aligned rectangle over the text where i don't want the text to be displayed, but maybe there's a better way.
Moe-loves-ayumi
QUOTE(joule @ Oct 5 2006, 17:07) *
Can I specify the maximum width in pixels that a string can display, before it cuts and ends with "..."? (i guess there's a better terminology for this)
I use this in foo_uie_trackinfo_mod :
CODE
$ifgreater($calcwidth(%artist% - %title%),750,
$rgb(32,64,128)$cut(%artist%$rgb() - $rgb(255,128,0)%title%,55)'...'
,
$rgb(32,64,128)%artist%$rgb() - $rgb(255,128,0)%title%
)
or without colors :
CODE
$ifgreater($calcwidth(%artist% - %title%),750,
$cut(%artist% - %title%,55)'...'
,
%artist% - %title%
)
It should work in foo_uie_single_column_playlist. Change the values and see how it reacts.
FofR
QUOTE(joule @ Oct 5 2006, 17:19) *

Can I limit the width of the text in any way? I guess I could draw a right aligned rectangle over the text where i don't want the text to be displayed, but maybe there's a better way.

Use alignabs and make the text box the width you want and the height the height of text. This will show the last whole word that fits.
joule
QUOTE(FofR @ Oct 5 2006, 20:33) *

QUOTE(joule @ Oct 5 2006, 17:19) *

Can I limit the width of the text in any way? I guess I could draw a right aligned rectangle over the text where i don't want the text to be displayed, but maybe there's a better way.

Use alignabs and make the text box the width you want and the height the height of text. This will show the last whole word that fits.


Thanks! That was what alignabs was for.. I'll settle with that easy solution even though it doesn't provide the three dots after truncation.
alphaex32
Just wondering, is there a way to use alignabs but instead of having it cut off whole words, just have the text get cut off wherever it is. Maybe there could be an option to cut off the last letter instead of word. I need this so I can have a very thin playlist where long words in titles won't just disappear (instead just part of them would be shown).
vonmeth
QUOTE(alphaex32 @ Oct 5 2006, 16:24) *

Just wondering, is there a way to use alignabs but instead of having it cut off whole words, just have the text get cut off wherever it is. Maybe there could be an option to cut off the last letter instead of word. I need this so I can have a very thin playlist where long words in titles won't just disappear (instead just part of them would be shown).


Will not work with useing alignabs, must use $cut if you wish to take of characters and not whole words.
alphaex32
QUOTE(vonmeth @ Oct 5 2006, 19:43) *
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.
vonmeth
QUOTE(alphaex32 @ Oct 5 2006, 21:19) *

QUOTE(vonmeth @ Oct 5 2006, 19:43) *
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.
Squeller
I think I decided to replace my columns ui playlist by this one.

Two questions:

a) can I use columns_ui global variables? After a first test it doesn't seem so.
b) how can I easily convert a $hsl output to r-g-b syntax? (I admit I'm lazy)
c) How can I dynamically (via code) change the background color of unselected tracks?

Thanks in advance.
kockroach
QUOTE(Squeller @ Oct 6 2006, 05:51) *

a) can I use columns_ui global variables? After a first test it doesn't seem so.

I thought it was added to this plugin, but the $get_global() function isn't working for me either. It is working for me in the trackinfo_mod, however

QUOTE(Squeller @ Oct 6 2006, 05:51) *

c) How can I dynamically (via code) change the background color of unselected tracks?


I use something similar to this, but without the $not() surrounding the %_selected% function. I think that this should work.
CODE

$if($and($not(%_selected%),$not(%_isplaying%)),...)
speedemonV12
okay from now on ill post in the relative thread, but how do i set up the relative path for the imageabs2?

i have my music set up differently, all my music is in one folder, and i have all my album art in a separate folder. And my art is saved in the format %artist%.jpg

C:\Documents and Settings\xxxx\My Documents\My Music\Album Art\%artist%.jpg

that is where my album art lies, how do i put that in a relative format? where do i need to put my art so that i can use relative paths?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.