QUOTE(Yotsuya @ Sep 18 2006, 18:07)

shard13:
The only thing odd that I see about the code you posted is that both fonts specified are identical, however this shouldnt give you invalid syntax. In fact, when I paste it into a panel here I do not get any error. Do you have a calibri font installed?
Break it down piece by piece. Does $if(%_selected%,SELECTED,NOT SELECTED) work? does simply $font(calibri,10,bold,0-0-0)TEST work? How about using just $font(calibri,10,,), or how about something different like $font(verdana,10,bold,0-0-0)?
Additional: I myself use this bit of code when coloring my text:
$font(tahoma,7,,$if(%isplaying%,233-233-233,0-0-0))
OK, I fixed the syntax error, I was adding the *)* at the end of it, thus cuasing problems. Right now my problem is that I want to have selected items be a different color then currently playing items, and I cant seem to get the font color to work. I have calibri and everything, but it just wont seem to work.
Here is my Item Info Code
CODE
$if(%_isplaying%,$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-0-0-0)
,
$padding(4,0)
$ifequal($mod(%_playlist_number%,2),0,
$drawrect(0,0,0,0,brushcolor-250-250-250 pencolor-240-240-240)
,
$drawrect(0,0,0,0,brushcolor-255-255-255 pencolor-240-240-240)
)
)
$padding(4,0)
$if(%_isplaying%,$font(calibri,10,bold,255-255-255),$font(calibri,10,bold,164-171-179))↘
$if(%_isplaying%,
$font(calibri,10,bold,255-255-255)
,
$font(calibri,9,bold,180-180-180)
)
$align(left,center)[Disc %discnumber% ][%tracknumber%. ]
$if(%_isplaying%,
$font(calibri,10,bold,255-255-255)
,
$font(calibri,10,bold,129-138-150)
)
$if($meta_test(album artist),%artist%' - ')
$if(%_isplaying%,
$font(calibri,10,bold,255-255-255)
,
$font(calibri,8.5,bold,120-120-120)
)%title%
$if(%_isplaying%,
$font(calibri,8.5,bold,255-255-255)
,
$font(calibri,8.5,bold,200-200-200)
)
$align(right,center)%length%
$if(%_selected%,$imageabs(0,0,images\overlay.png,))
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-200-200-200 pencolor-null),)
)
$if(%_selected%,
$font(calibri,10,bold,0-0-0)
,
$font(calibri,10,bold,0-0-0)
)
I just end up with a grey box that I cant see any words in, and I dont want that. If you could look over my code and tell me what is going on wrong, it would be greatly apreciated!
Thanks.