Help - Search - Members - Calendar
Full Version: Need help with some formatting code..
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Nitrius
Here is the code:

CODE

Trackinfo:
$imageabs(400,-4,simple\headphone.png,right)

$if(%_isplaying%,
$puts(progress,$muldiv(%playback_time_seconds%,$sub(300,24),%length_seconds%))
$drawrect(10,100,$sub(430,20),8,brushcolor-null pencolor-120-120-120),)
$ifgreater($get(progress),0,$padding(9,100)$drawrect(3,2,$get(progress),4,brushcolor-90-90-90 pencolor-nulll),)

$if(%_isplaying%,
$font(tahoma,18,boldshadow glowalpha-120,)
$alignabs(8,3,400,30,,)%artist%
$alignabs(15,35,285,20,t,)
$font(calibri,8,boldshadow glowalpha-50,120-120-120)•  Playing:  
$font(calibri,8,boldshadow glowalpha-50,70-70-70)%title%
$alignabs(15,50,285,20,t,)
$font(calibri,8,boldshadow glowalpha-50,120-120-120)•  Tracknumber:  
$font(calibri,8,boldshadow glowalpha-50,70-70-70)[%tracknumber%]
$alignabs(15,65,285,20,,)
$font(calibri,8,boldshadow glowalpha-50,120-120-120)•  Album:  
$font(calibri,8,boldshadow glowalpha-50,70-70-70)%album%
$alignabs(15,80,285,20,,)
$font(calibri,8,boldshadow glowalpha-50,120-120-120)•  Released:
$font(calibri,8,boldshadow glowalpha-50,70-70-70)[%date%]

$alignabs(300,35,200,20,,)
$font(calibri,8,boldshadow glowalpha-50,120-120-120)•  Genre:  
$font(calibri,8,boldshadow glowalpha-50,70-70-70)[%genre%]
$alignabs(300,50,200,20,,)
$font(calibri,8,boldshadow glowalpha-50,120-120-120)•  Format:
$font(calibri,8,boldshadow glowalpha-50,70-70-70)%codec%
$alignabs(300,65,200,20,,)
)

Playlist Coloum list:
Row Height = 23

Group by:
[%date%]%album artist%[tracknumber]

Item Display:
$if(%_selected%,$drawrect(15,0,0,0,brushcolor-220-220-220 pencolor-null))
$if(%_focused%,$drawrect(15,0,0,0,brushcolor-null pencolor-null))
$if(%_isplaying%,$drawrect(15,0,0,0,brushcolor-40-40-40 pencolor-null))

$font(calibri,8,boldshadow glowalpha-50,70-70-70)
$alignabs(20,-1,$sub(%_width%,100),12,,)%title%
$alignabs($sub(%_width%,127),-1,120,20,right,)%length%
$alignabs(20,10,220,110,,)$font(calibri,8,bold,170-170-170)
T-nr: [%tracknumber%]
$alignabs($sub(%_width%,126),10,120,20,right,)
%bitrate% kbps / %codec%

$if(%isplaying%,
$drawrect(20,0,0,0,brushcolor-90-90-90 pencolor-null)
$alignabs(20,4,900,200,,)$font(Wingdings 3,10,boldshadow,250-250-250)$char(117)
$font(calibri,8,boldshadow glowalpha-150,)
$alignabs(38,-1,$sub(%_width%,100),12,,)%title%
$alignabs($sub(%_width%,127),-1,120,20,right,)%playback_time% / %length%
$alignabs(38,10,120,110,,)$font(calibri,8,boldshadow glowalpha-150,180-180-180)
T-nr: [%tracknumber%]
$alignabs($sub(%_width%,126),10,120,20,right,)
%bitrate% kbps / %codec%
,)

Group Display:
$font(calibri,10,boldshadow glowalpha-50,)
$alignabs(10,5,120,110,,)[%artist%]
$alignabs($sub(%_width%,127),5,120,20,right,)[%date% - ][%album%]
$imageabs(5,21,simple\line3.png,)

(This code is not made by me)


The problems i have:

1. The code for the track info plugin makes a seekbar, this seekbar dose not automatically update, why? and how can it be fixed?

2. The code for the single column plugin has some sort of bug i think? because whole album names dosen't show? lets take the band Aerosmith with the album named: O, Yeah! Ultimate Aerosmith Hits, i want the whole album name to show, but in the playlist it only shows O, Yeah!

3. Also i have some pictures, which this code use, which directory do i need to put these pictures in?


Hope someone can help, thanks in advance =)
Nitrius
I've managed to fix problem 1 and 3, but still whole album names won't show...
eejadx
QUOTE(Nitrius @ Dec 16 2006, 06:39) *
I've managed to fix problem 1 and 3, but still whole album names won't show...

It only displays "2006 - Oh Yeah!" because the area to display it is too small. In your case, "[%date% - ][%album%]" width size is greater than the $alignabs width size, which is 120. Change it for an higher value. It should fix your problem.

N.B. Don't forget to change the abscissa value too or your text will be out of margin.
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.