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
jimbo11883
Here's a big problem I'm having. Due to the caching used for images used in drawing the playlist, there are ugly drawing problems involved. With an image that is stretched using the imageabs2 function for the group and item rows, resizing the playlist section will result in breaking these images. There should be some sort of way to refresh the image cache on playlist window resize, or when the scrollbar is shown or hidden. I'm sure it only applies to resized images.

This also happens with album art as well when changing a sort option. The image will shrink, but not expand back to the right size.
c0utta
Hi Guys,

I think I've found something peculiar with Playlist tabs together with Single Column Playlist View.

Using this setup (NOTE: I've removed other components to highlight the issue)

CODE
Vertical splitter
- Horizontal splitter
  - Playlist tabs
    - Single Column Playlist View


If I turn off the "Playlist tabs" caption, I find that I can't resize the Playlist tabs at all. If I change the SCP to a Columns Playlist, I can resize just fine.

Has anyone else experienced this issue?

Cheers,

c0utta
Lyx
QUOTE(Lyx @ Dec 20 2006, 18:57) *

IMHO the way to move tracks in a playlist is extremely unintuitive.

First, i had no clue at all how to do it. I searched the config pages if there is an option. After about 5mins, the idea crossed my mind, that it may work in combination with shift, crtl or alt. Only that way (trial and error) i found out how it works. If i would be less experienced with computers, i probably wouldn t have found it at all.

Next issue - the playlist does not scroll automatically when selecting or moving tracks. For example, when i want to move tracks further than the visible part of the playlist, i have to do FOUR things simultaneusly: hold lbutton, hold alt, move mouse, use scrollwheel.

Proposed ways to fix it:

Generally: Make the playlist autoscroll
Model1: Do it the same way columns UI does selection and moving(left mousebutton only)
Model2: add/remove tracks from selection via singleclick, or shift to define ranges. Moving via simple leftbutton-dragging.
Lyx
Next usability-issue:

Rightclicking does not just access the contextmenu - it also modifies the selection of tracks.

How to reproduce:
1. click on first track
2. hold shift, then click on last track - all tracks are now selected
3. rightclick on a track in the middle - the selection will be modified AND the contextmenu will be opened
Yotsuya
Lyx: This behavior does not happen all the time.

I just tried to re-create the problem but did not experience it. When I right clicked on the selection, the selection did not change.

However I have seen this happen before and discovered that shift+rightclick will prevent the selection from changing.
Yotsuya
Can anyone list specifically what the dependencies for this component are?

This may sound like an odd request but I am trying to hack away at getting foobar to run on a mac, and this component is presenting a bit of a challenge. I am currently exploring Crossover Mac with a WinXP bottle for compatibility.

I have been able to install the VC++ Redistributable package linked from the first post but this does not appear to be enough. In fact I have had similar problems with a default install of xp before (problem resolved after completing windows update with .net packages). I have attempted to run the .NETFX installer but it gives me all sorts of crap because I do not have IE installed. Before I go down the road of installing a full .net environment with IE and all the other crappiness that goes with it I was wondering if I could get away with simply copying some .dlls off a working windows system.
Mangix
why not just get the VC++ runtimes instead of downloading .NET(which is almost useless in your case)? it should solve your problems. here's a link for them if you're wondering where to find them.

http://www.microsoft.com/downloads/details...99-220B62A191EE
Yotsuya
As stated before I have already installed the VC++ runtimes. I have also installed the GDI+ package even though I am not running Win2000. Whenever I attempt to load foobar with this component I encounter the standard error:

QUOTE
Failed to load DLL: foo_uie_single_column_playlist.dll
Reason: This component is missing a required dependency, or was made for different version of foobar2000.


I have encountered this exact same situation on a default install of WinXP SP2 before visiting windows update. So there is clearly something more than just the runtimes that are required. Something most of us take for granted while running windows and is likely included in windows update.
loft
I have this config in item display:
CODE
$ifequal($mod(%_itemindex%,2),0,
$imageabs(0,0,images/playlist/background2.png,),$imageabs(0,0,images/playlist/background3.png,))
$if(%isplaying%,
$font(,,boldglow-105-105-100 glowblur-5,221-221-255),)
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-64-32-32 pencolor-null))
$if(%_focused%,$drawrect(0,0,0,0,brushcolor-null pencolor-32-32-32))

$alignabs(0,0,30,17,center,middle)$textcolor(80-80-80)%list_index%
$alignabs(1150,0,30,17,center,middle)%length%
$alignabs(1190,0,30,17,center,middle)
$if($stricmp($codec(),musepack),
$if($stricmp(%codec_profile%,''Thumb''),'q3',
$if($stricmp(%codec_profile%,''Radio''),'q4',
$if($stricmp(%codec_profile%,''Standard''),'q5',
$if($stricmp(%codec_profile%,''Xtreme''),'q6',
$if($stricmp(%codec_profile%,''Insane''),'q7',
$if($stricmp(%codec_profile%,''BrainDead''),'q8',
$if($stricmp(%codec_profile%,''quality 9''),'q9',
$if($stricmp(%codec_profile%,''quality 10''),'q10',
$if($stricmp(%codec_profile%,''Unstable/Experimental''),
'qX',))))))))),
$if($stricmp($codec(),mp3),
$if($stricmp(%__extrainfo%,VBR),~,)
$if($stricmp($left(%codec_profile%,3),vbr),$right(%codec_profile%,2),%bitrate%),%bitrate%))
$alignabs(1230,0,30,17,center,middle)
$if(%__replaygain_track_gain%,'T'
$if(%__replaygain_album_gain%,'A'))
$alignabs(400,0,600,17,left,middle)%title%
$if(%isplaying%,
$font(,,boldglow-105-105-100 glowblur-5,221-221-255)
$alignabs(400,0,600,17,left,middle)%title%
$alignabs(1150,0,30,17,center,middle)'['%length%']'
$alignabs(1020,0,100,17,center,middle)
'... '%playback_time%' / '%playback_time_remaining%' ...',)
$if($or($stricmp(%album artist%,'Various Artists'),$not(%type%)),
$alignabs(100,0,300,17,right,middle)
%artist%' ... ',)

and I don't know why only the blur is active when one track is played. The color of the text doesn't change. I'm talking about the first $if(%isplaying%.. because with the second it works.
Strange!
Yotsuya
CODE
// If the track is currently playing
// Apply these blur effects to the text
// Otherwise do nothing.

$if(%isplaying%,
$font(,,boldglow-105-105-100 glowblur-5,221-221-255)
,)

Your code is only telling it to apply the glow for the nowplaying track. What is it that you are trying to do?
chis
I cannot get this plugin to work. I'm looking high and low under Columns UI options in preferences, and I can't find SCPL at all.

Can someone PLEASE give me a step-by-step to open just the bloody SCPL preferences window? I can't find http://wiki.hydrogenaudio.org/index.php?ti...SCP_config1.PNG anywhere!!

Yes, I have VC 2005 SDK installed, yes I have .NET installed. I am running Windows 2000.
bvm
QUOTE(chis @ Dec 27 2006, 07:15) *

I cannot get this plugin to work. I'm looking high and low under Columns UI options in preferences, and I can't find SCPL at all.

Can someone PLEASE give me a step-by-step to open just the bloody SCPL preferences window? I can't find http://wiki.hydrogenaudio.org/index.php?ti...SCP_config1.PNG anywhere!!

Yes, I have VC 2005 SDK installed, yes I have .NET installed. I am running Windows 2000.


Right Click on the panel and press "settings"
chis
What panel? Which settings button?

I don't see any, other than what's in the the standard Foobar window.
Nickoladze
QUOTE(chis @ Dec 27 2006, 08:32) *

What panel? Which settings button?

I don't see any, other than what's in the the standard Foobar window.


hit Ctrl+P

then go to:
Display -> Columns UI -> Layout tab
chis
QUOTE(Nickoladze @ Dec 27 2006, 07:45) *

QUOTE(chis @ Dec 27 2006, 08:32) *

What panel? Which settings button?

I don't see any, other than what's in the the standard Foobar window.


hit Ctrl+P

then go to:
Display -> Columns UI -> Layout tab


Did that, what am I looking for? I can't find any mention of SCPL there. It IS listed under components.

Edit: I've since tried one of the UIs at here and it seems to work. Never mind then!
Nickoladze
read a tutorial or something
Spirit_of_the_ocean
@Chis: Have a look at here:
Video Tutorial fpr SCPL
This must help you smile.gif
chis
Thankyou Spirit, that's a LOT more helpful.
loft
Yotsuya I thought that it would change the color too (221-221-255). The second $if(%isplaying% seems to actually do that. That was the thing that puzzled me.
terrestrial
QUOTE(rouge @ Dec 19 2006, 04:32) *

Will the introduction of per-second strings in the trackinfo mod panel carry over into single column? That might reduce the resources a bit when using images in the playlist. For example, I can't image that the typical way to display album art in the playlist is particularily optimized if it has to render an image x times per spanned row. This plug-in could use some speed tweaks, though I still can't give it up because of it's rich features.


as long as you set the clipping region correctly, spanning images across rows shouldn't have a negative performance impact vs drawing one image.

QUOTE(Mangix @ Dec 20 2006, 21:16) *

sooo, is there any way to sort the stuff on the plugin without re-adding/manually moving the items?


you can use the sort command in trackinfo_mod.

QUOTE(Yotsuya @ Dec 26 2006, 00:31) *

Can anyone list specifically what the dependencies for this component are?


you can use this to find out: http://www.dependencywalker.com/ wink.gif Everything should be pretty standard (on a windows machine, at least) except for the c++ runtimes.
sgoct
I use a custom tag called "grouping" and I'd like to be able to make groups in this format:

ARTIST
-titles of tracks that do not have a GROUPING or ALBUM tag

GROUPING if there is one, ALBUM if not
-titles of tracks that have this GROUPING or ALBUM tag

GROUPING if there is one, ALBUM if not
-titles of tracks that have this GROUPING or ALBUM tag

NEXT ARTIST
etc etc

etc. Other things I'd like to do if possible: only show the ARTIST once, at the top of a stack of groups (like in the example), and order GROUPING by tracknumbers and discnumbers. For example, on a given album, tracks 1-4 might be in GROUPING1, 5-7 are not in a grouping, 8-10 are in GROUPING2, and on disc 2 of the album tracks 1-3 are in GROUPING3, and 4-6 are not in a grouping. In this case, I'd like the groups to be GROUPING1, then an ALBUM group with 5-7, then GROUPING2, then GROUPING3, then another ALBUM group.

I have no idea how to do any of this, or if it's even possible.

Also, is there a way to get the total number of list items in a group? I'm using the first method in the wiki for splitting up an album image between list items (using %list_index% instead of tracknumber, though, since that works better on albums with multiple discs), but I'd also like to be able to shrink the album image proportionately so that, for example, if there are only 4 tracks in a group that has an associated album image, it will shrink the album image so that the full image is displayed (although much smaller, of course) across those four images.

Thank you!
Yotsuya
sgoct: You need to develop a sort string using your GROUPING tag
File> Preferences> General> "Sort incoming files by:"
-or-
Edit> Sort> "Sort by ..."

You'll probably want to use something like
%album artist%|$if2(%grouping%,%album%)|%discnumber%|%tracknumber%

You can control the display of the group header from the "Group Display" portion of the SCPL configuration.

%_itemcount% = total number of items in the current group
%_itemindex% = the position of the current item in the current group
%list_total% = total number of items in the playlist
%list_index% = the position of the current item in the playlist
Apesbrain
Using the stock Item Display configuration:

$padding(4,0)
$align(right,top)%title%
$align(left,top)$textcolor(80-80-80)%list_index%


How do I make any titles longer than 30 characters display an elipsis after the first 30 characters?

Thanks if you respond.
Yotsuya
Change the second line to:
$align(right,top)$left(%title%,30)$ifgreater($len(%title%),30,...,)

NOTE: You asked for characters, not pixels. Unless you use a monospace font you will get different actual string lengths depending on what characters they consist of.
VeaaC
It would be great if you could access tags like %isplaying% in the group display,e.g. to color the now plying album differently.
Furthermore statistic tags would be nice, like average playcount, rating, length or the sum of those. Maybe similar to the realization in foo_playlisttree
drake
will have to DL this....
PredUK
Okay, I've caved. I've decided to start using SCPL. I've got my layout done, but I'm stumped on the code. What I want to do is drawn out in a screenshot done in Paint (of all programs!). I will install another program soon.

I apologise for saving the image as a .gif in paint, I didn't know it was going to do that. Eurgh.
IPB Image

I will do as much as I can on my own, but I may need help with the track displaying, mainly the various artists stuff.

EDIT1:
I've got the header formatting sorted, that's fine. It's just the separating albums and non-albums and their respective codes. Anyone want to take a stab at it for me as a New Year present? biggrin.gif

EDIT2:
I'm completely done...unless tomorrow I find something wrong.
asator
is there a tag to show the lenght in time of each group?
jeriko
Hello.

I have a simple question fo this great plugin.
I've this command to show an image for my music within the playlist

$imageabs2(46,46,0,0,46,46,291,1,$replace(%path%,%filename_ext%,\covers & tracklist\front.jpg),)

but if the image does not exist, it (who wonders) displays nothing

so how can i point the plugin to a different location that it shows another image, if the first one does not exist?
kalmark
QUOTE(jeriko @ Jan 6 2007, 04:37) *

Hello.

I have a simple question fo this great plugin.
I've this command to show an image for my music within the playlist

$imageabs2(46,46,0,0,46,46,291,1,$replace(%path%,%filename_ext%,\covers & tracklist\front.jpg),)

but if the image does not exist, it (who wonders) displays nothing

so how can i point the plugin to a different location that it shows another image, if the first one does not exist?

$if($fileexists($replace(%path%,%filename_ext%,\covers & tracklist\front.jpg)),
$imageabs2(46,46,0,0,46,46,291,1,$replace(%path%,%filename_ext%,\covers & tracklist\front.jpg),),
$imageabs2(46,46,0,0,46,46,291,1,'images/noalbum.png',))

I hope I got all the brackets and $s right - missing something like that always makes debugging fun smile.gif

(note: $fileexists is specific to this component (and trackinfo_mod), AFAIK)
Yotsuya
jerika: There are two approaches you can use to create a "no cover" image.

1) Layering: You can have SCPL display the no-cover image, then overlay your cover art on top of that image so that it will only appear for albums with no cover. Using your example your code would go something like this:
CODE
$imageabs2(46,46,0,0,46,46,291,1,images\nocover.png,)
$imageabs2(46,46,0,0,46,46,291,1,$replace(%path%,%filename_ext%,\covers & tracklist\front.jpg),)

2) $fileexists(): You can test to see if the coverart file exists. Then, if it exists display it otherwise display a the no cover image. Again using your example your code would go something like this:
CODE
$if($fleexists($replace(%path%,%filename_ext%,\covers & tracklist\front.jpg),
$imageabs2(46,46,0,0,46,46,291,1,$replace(%path%,%filename_ext%,\covers & tracklist\front.jpg),),
$imageabs2(46,46,0,0,46,46,291,1,images\nocover.png,)
)


Both of these examples assume your "no cover" images is a file called nocover.png in your foobar images directory. The $fileexists() approach appears to use less memory because it reduces the number of images loaded however if you want to start checking for many different kinds of images then the code gets rather complicated. The layering approach offers more flexibility when using many different types of images however it consumes more memory because it renders all the images even the "hidden" layers.

I personally use a combination of the two to construct covers inside pictures of cd cases, filling in empty gaps, and with a picture of a cd instead of the cover when the cover doesnt exist:
CODE
// Album Art
$if($get(album_mode),$ifgreater($mul(%_height%,%_itemcount%),95,
$imageabs2(107,95,,$mul(%_height%,$sub(%_itemindex%,1)),,%_height%,2,,images\case.png,)
$if($fileexists($replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).*)),
$drawrect(17,$sub(5,$mul(%_height%,$sub(%_itemindex%,1))),85,85,brushcolor-255-255-255 pencolor-null)
$imageabs2(85,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,17,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).*),)
,
$imageabs2(107,95,,$mul(%_height%,$sub(%_itemindex%,1)),,%_height%,2,,images\cd.png,)
)
,),)


Feature Request: I would like to request that this component support the / in front of image paths the way trackinfomod does so that images load properly when foobar is loaded from an alternate location. I downloaded the latest version of SCPL and tried it but my images do not load with the / in front. i.e.:
$imageabs2(46,46,0,0,46,46,291,1,/images\nocover.png,)
vs.
$imageabs2(46,46,0,0,46,46,291,1,images\nocover.png,)
jeriko
@Yotsuya and Kalmark

Many thanks to your fast support, I'm impressed how friendly and courteously you give me assistance, instead of shouting read the fuckin manual wink.gif

and btw...it works smile.gif

best regards!
4nt1
please can single columns be updated so it has the same features as track info mod... please...
BelleAndZEK
Whenever I open a Mp3 from the command line and foobar2k is not already open, images in single column playlist wont show. fonts, alignments... everything else is fine. anyone knows what's causing this, or better, how to fix this?

It only happens when foobar is NOT running and i'm opening mp3s from the command line.

Yotsuya
BelleAndZEK: This has been discussed before. When you load an mp3 while foobar is not running, foobar is launched with the active directory being that of the mp3 file instead of the main foobar directory. You will find this behavior common to any windows program linked with file associations. When you launch foobar from it's shortcut, it will run with the main foobar as the active directory (or whatever directory you spcified in the shortcut properties). The result is that when SCPL evaluates code like:

$imageabs2(100,100,,,,,10,10,images\image.png,)

it attempts to load x:\path\to\your\mp3\file\images\image.png instead of x:\your\foobar\directory\images\image.png. The quick fix is to change your code to load images explicitly from the foobar image directory like this:

$imageabs2(100,100,,,,,10,10,x:\your\foobar\directory\images\image.png,)

However trackinfomod has already implemented a nice fix for this situation and we are waiting for the changes to carry over to singlecolumnplaylist so that we can do code like this:

$imageabs2(100,100,,,,,10,10,/images\image.png,)

Where the initial forward slash is automatically resolved to the foobar directory.
inatightspot
Hi:
I want the group display to stay visible when I use the scroll bar.

group by is:
%album%

item display is:

$ifequal($mod(%_itemindex%,2),0,
$drawrect(0,0,0,0,pencolor-0-0-0 alpha-30),)

$if(%_selected%,$drawrect(0,0,0,0,brushcolor-SYSCOL-13 pencolor-null))
$if(%_focused%,$drawrect(0,0,0,0,brushcolor-null pencolor-SYSCOL-6))
$if(%_selected%,$textcolor(SYSCOL-9),$textcolor(SYSCOL-8))

$padding(4,0)
$align(right,top)%title%
$align(left,top)%artist%

group display is:

$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-0-0-0 ALPHA-100)
$drawrect(0,0,0,%_height%,brushcolor-null pencolor-0-0-0)

$font(,,bold,255-255-255)
$alignabs(2,0,$sub(%_width%,2),$div(%_height%,4),left,top)%album%
$alignabs(0,0,$sub(%_width%,2),$div(%_height%,4),right,bottom)%genre%
$alignabs(2,17,$sub(%_width%2),$div(%_height%,5),left,top)%artist%
$alignabs(0,0,$sub(%_width%,2),$div(%_height%,4),right,top)%date%

//artwork

$if($not(%totaltracks%=1),$imageabs2(120,120,0,0,120,120,210,1,$replace(%path%,%filename_ext%,\cover.jpg),))

The group display and artwork attached should not scroll out of view in the playlist.

thanks
BelleAndZEK
QUOTE(Yotsuya @ Jan 8 2007, 17:36) *
BelleAndZEK: This has been discussed before. When you load an mp3 while foobar is not running, foobar is launched with the active directory being that of the mp3 file instead of the main foobar directory. You will find this behavior common to any windows program linked with file associations. When you launch foobar from it's shortcut, it will run with the main foobar as the active directory (or whatever directory you spcified in the shortcut properties). The result is that when SCPL evaluates code like:

$imageabs2(100,100,,,,,10,10,images\image.png,)

it attempts to load x:\path\to\your\mp3\file\images\image.png instead of x:\your\foobar\directory\images\image.png. The quick fix is to change your code to load images explicitly from the foobar image directory like this:

$imageabs2(100,100,,,,,10,10,x:\your\foobar\directory\images\image.png,)

However trackinfomod has already implemented a nice fix for this situation and we are waiting for the changes to carry over to singlecolumnplaylist so that we can do code like this:

$imageabs2(100,100,,,,,10,10,/images\image.png,)

Where the initial forward slash is automatically resolved to the foobar directory.




ohh yeah, it totally makes sense. thanks!

VeaaC
I'm using using resized album arts in my playlist and with about 400 albums in the playlist scrolling is very slow... maybe 1-2 redraws every second.
Has anybody tested which function is how time comsuming? e.g. imageabs vs. imageabs2 etc...

Below my config, maybe someone can tell me why it isn't the fastest.

CODE

//ITEM DISPLAY
//Cover+Frame
$drawrect($sub(%_width%,170),-1,20,19,brushColor-200-200-200)
$drawrect($sub(%_width%,151),-1,201,19,brushColor-240-240-240)
$puts(sizec,$min(192,$add($mul(%_itemcount%,17),37)))
$if($or($greater(%_itemindex%,9),$greater(%disc%,1)),,
$ifequal(%_itemindex%,$min(9,%_itemcount%),$drawrect(0,-1,$add(14,$get(sizec)),14,brushColor-200-200-200),$drawrect(0,-1,$add(14,$get(sizec)),19,brushColor-200-200-200))
$imageabs2($get(sizec),$get(sizec),0,$add(30,$mul(%_itemindex%,17)),,,7,0,$replace(%path%,%filename_ext%,folder.jpg),NOKEEPASPECT)
)

// Selection frame + Now Playing Frame
$if(%_selected%,$drawrect(210,1,$sub(%_width%,385),16,brushcolor-233-243-247 pencolor-203-233-246),)
$if(%isplaying%,$drawrect(245,10,$sub(%_width%,460),7,)$drawrect(245,10,$add(1,$div($mul($sub(%_width%,460),%_time_elapsed_seconds%),%length_seconds%)),7,brushcolor-25-150-25))

// Tracknumber
$alignabs(215,1,300,120,,)
$ifequal($left(%tracknumber%,1),0,$font(calibri,10,,200-200-200)0$font(,,,0-0-0)$right(%tracknumber%,1),$font(calibri,10,,0-0-0)%tracknumber%)

//Tracktitel
$alignabs(245,1,$sub(%_width%,450),20,,)
$if(%cwb_queueindex%,$font(,,bold glow-200-100-100,)'['%cwb_queueindex%']' ,)
$if(%isplaying%,$font(,,glow-100-200-100,0-90-0),$font(,,,0-0-0))
$replace($caps2(%title%),'(',$font(,,,114-116-120)'(',')',')'$if(%isplaying%,$font(,,glow-100-200-100,0-90-0),$font(,,,0-0-0)))

// RPGain+Length
$alignabs($sub(%_width%,145),1,120,20,,)
$if(%__replaygain_track_gain%,$font(Wingdings,10,bold,50-150-50)ü,$font(Wingdings,10,bold,150-50-50)û)
$alignabs($sub(%_width%,230),1,55,20,right,)$font(calibri,10,,0-0-0)
%length%

//Play Counter
$if(%play_counter%,,$puts(play_counter,0))
$alignabs($sub(%_width%,130),1,116,20,left,)
$ifgreater(%play_counter%,14,$font(Wingdings,10,bold glow-80-80-255,255-100-100)«,
$ifgreater(%play_counter%,9,$font(Wingdings,10,bold glow-255-100-100,255-255-80)«,
$ifgreater(%play_counter%,4,$font(Wingdings,10,bold glow-240-240-60,114-116-120)«,
$font(Wingdings,10,bold glow-200-200-200,255-255-255)«)))
$font(,,,114-116-120)
$repeat(«,$mod(%play_counter%,5))
$font(,,,230-230-230)
$repeat(«,$sub(4,$mod(%play_counter%,5)))


//Bitrate
$alignabs($sub(%_width%,120),1,116,20,right,)$font(calibri,10,,0-0-0)
$if2(%__bitrate_dynamic%,%__bitrate%)' Kbps'


CODE

//GROUP DISPLAY
$ifgreater(%disc%,1,
$drawrect($sub(%_width%,170),,220,51,brushColor-200-200-200)
$drawrect($sub(%_width%,169),-1,18,53,brushColor-200-200-200 penColor-NULL)
,
$puts(sizec,$min(192,$add($mul(%_itemcount%,17),37)))
$drawrect(0,0,%_width%,51,brushColor-200-200-200 penColor-0-0-0)
$drawrect(1,50,$add(12,$get(sizec)),2,brushColor-200-200-200 penColor-NULL)
$imageabs2($get(sizec),$get(sizec),0,-4,,,7,0,$replace(%path%,%filename_ext%,Folder.*),NOKEEPASPECT)

$drawrect($sub(%_width%,169),0,18,51,brushColor-200-200-200 penColor-NULL)
$font(calibri,24,bold glow-230-230-230,200-200-200)$alignabs($sub(%_width%,80),5,100,35,,)
$if2(%date%,)
$font(calibri,18,bold glow-0-0-0,200-200-200)$alignabs(210,0,600,28,,)
$if2(%artist%,'['ARTIST']')
$font(calibri,18,bold glow-255-255-255,255-150-150)$alignabs(250,20,600,28,,)
$if2(%album%,SINGLES)
)

//Disc Image
$if(%disc%,$imageabs($sub(%_width%,140),5,images\minidisc.png,)
$font(calibri,24,bold glow-255-255-255,0-0-0)$alignabs($sub(%_width%,120),15,100,35,,)
%disc%,)


and a Screenshot:
IPB Image
terrestrial
updated. mostly just to bring over stuff from trackinfo_mod.

QUOTE(VeaaC @ Jan 9 2007, 09:41) *

I'm using using resized album arts in my playlist and with about 400 albums in the playlist scrolling is very slow... maybe 1-2 redraws every second.
Has anybody tested which function is how time comsuming? e.g. imageabs vs. imageabs2 etc...


1) Set the clipping rectangle for your images properly in imageabs2
2) Try to remove the glow, shadow, and alpha and see if it helps.
Yotsuya
yay! I can now use the forward slash for image paths. Thanks again terrestrial for your dedication to these components.
adrosenth
Question.

Row height is 32, and group rows is 1.

I'm showing the album art to the left of the track items, resized to 107x107 pixels.

If there are only 3 tracks per group, the album art will be clipped at the bottom, obviously. 4 tracks is fine.

Is there a way to put a certain amount of white space in between each group if there are less than 4 tracks?

This would be very helpful for those albums that have 2 or 3 very long tracks, but are still considered albums.
Yotsuya
adrosenth: This situation has been discussed several times already please read the earlier posts before posting. Many (including myself) have requested a minimum rows/minimum group height option. Until such a feature emerges you can have the cover art removed for groups not large enough to display full image like this:

CODE
$ifgreater($mul(%_height%,%_itemcount%),100,
// Your existing cover art code
,)

* Where the 100 on the top line is the minimum height in pixels needed to display your cover art
wraithdu
I've tried searching, and can't come up with a definitive answer (although I've muddled through) - what exactly do blank or 0 values mean in an $imageabs2() function? It's explained in the wiki for $imageabs(), but not abs2.
jimbo11883
Terrestrial, I'm having a problem that cropped up with the new version. Stretched images have a fade to the right or bottom, depending on which way its stretched. I know how to fix it, but I obviously don't have access to the code. Check your GDI+ graphics object and make sure that your quality and interpolation settings are correct. smile.gif
fenix
I read in the releasenotes that it was possible to use Columns UI Globals. How is this done? I've tried %globarvarname% and %_globarvarname% but I am only get a ? sign.
shakey_snake
QUOTE(fenix @ Jan 14 2007, 21:03) *

I read in the releasenotes that it was possible to use Columns UI Globals. How is this done?

just like it is everywhere else.
Please check the wiki's (or at least search this thread) before asking questions.
HiFiRE
Regarding globals...

I set a global in columns ui like so: $set_global("something",5)

but in scp I get unknown variable if doing this: $get_global("something")

What's wrong here?
shakey_snake
try using single quotes
drake
if i have more than one SCPL open, how do i move tracks from one playlist to another?
HiFiRE
QUOTE(shakey_snake @ Jan 14 2007, 22:13) *

try using single quotes


I still get unknown variable in this case. I've also tried no quotes but haven't had better luck. Does $get_global work for others? Could someone paste some working examples?
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.