Help - Search - Members - Calendar
Full Version: Modification of Track Display
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
heavymetalwiseone
Actually all I want to do is enter an empty line. Wanting the following text to go underneath.

CODE

$drawrect(0,0,0,0,pencolor-null brushcolor-SYSCOL-15)
$padding(2,4)$align(center,middle)$font(,13,,SYSCOL-8)
$if(%_trackinfo_notrack%,
    No track
,
    [b]%title%$char(10)
        $font(,9,bold,SYSCOL-8)%artist%$char(10)[/b]
)


I have the two bold lines. If I duplicate the "artist" line and make it go underneath, I can change %artist% to %album% and then have a more detailed Track Info. That's what I wanna do. How to make it go underneath...
Yotsuya
QUOTE(heavymetalwiseone @ Jun 4 2007, 16:02) *
CODE
%title%$char(10)
$font(,9,bold,SYSCOL-8)%artist%$char(10)

I have the two bold lines. If I duplicate the "artist" line and make it go underneath, I can change %artist% to %album% and then have a more detailed Track Info. That's what I wanna do. How to make it go underneath...
You can either use another $char(10) to add a blank line:
CODE
%title%$char(10)
$char(10)
$font(,9,bold,SYSCOL-8)%album%$char(10)
$font(,9,bold,SYSCOL-8)%artist%$char(10)

Or rewrite the entire function using $alignabs() to give you better control over the flow of text:
CODE
$font(,9,bold,SYSCOL-8)
$alignabs(0,-10,%_width%,%_height%,center,middle)%title%
$alignabs(0,10,%_width%,%_height%,center,middle)%album%
$alignabs(0,20,%_width%,%_height%,center,middle)%artist%
heavymetalwiseone
Many thanks mate! It works like a charm!

Another question. What do I add in order to change the font size of each element?
Yotsuya
To change the font settings for each line simply use a $font() command on each line:
CODE
$alignabs(0,-10,%_width%,%_height%,center,middle)$font(Tahoma,12,bold,0-0-0)%title%
$alignabs(0,10,%_width%,%_height%,center,middle)$font(Verdana,8,bold,0-255-0)%album%
$alignabs(0,20,%_width%,%_height%,center,middle)$font(Tahoma,7,italic,0-0-255)%artist%
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.