IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Need help with SingleColumns Playlist code
mizxecio
post Apr 19 2007, 23:19
Post #1





Group: Members
Posts: 2
Joined: 19-April 07
Member No.: 42694



Appologies if this is the wrong forum for questions like this. I've been having some trouble getting my playlist looking how I want it.

This is my current code for Item Display:
CODE
$font(Frutiger Linotype,8,,170-170-170)
$if(%tracknumber%,$alignabs(3,0,20,14,,)%tracknumber%.)
$alignabs(25,0,$sub(%_width%,100),14,,)%title%
$if($meta_test(album artist),' by '%artist%)
$alignabs($sub(%_width%,157),-1,150,17,right,middle)%length%
Now obviously that will display all playlist items the same, regardless if they are selected or playing etc.

What I'm trying to to is have a black font for selected items, 92-140-152 for the playing items, and also to display %_time_elapsed% / %length% when an item is playing. Previously the config I was using had coloured rectangles drawn when selected/playing (using $if(%_playing%. $if(%_selected$, etc.), but now the rects & images etc. have been taken out, I'm having trouble getting it working. I've had it displaying nothing, displaying the selected/playing colours over the standard colour etc. etc. etc.

I've also got a small problem with my TrackInfoMod code. It's still displaying the codec/last played info when nothing is playing. I can't see what's causing it, unless there's a syntax error in there somewhere .
CODE
$drawrect(0,0,0,0,brushcolor-50-50-50 pencolor-null)
$imageabs($sub(%_width%,1280),,images\albumoverlay.png,)
$if(%_isplaying%,
$alignabs(5,$sub(%_height%,750),$sub(%_width%,160),25,,)
$alignabs(7,$sub(%_height%,46),$sub(%_width%,150),50,,)
$font(Frutiger Linotype,14,glow-0-0-0 glowalpha-10,92-140-152)[%artist%]
$alignabs(7,$sub(%_height%,26),$sub(%_width%,150),50,,)
$font(Frutiger Linotype,14,glow-0-0-0 glowalpha-10,170-170-170)[%title%]
)

$font(Frutiger Linotype,9,glow-0-0-0 glowalpha-10,170-170-170)
//codec
$alignabs($add(%_width%,-175),$sub(%_height%,49),170,20,right,top)$if(%last_played%,$puts(diff,$cwb_datediff(%last_played%,%cwb_systemdate%)) last played$ifgreater(1,$get(diff), today, $ifgreater(2,$get(diff), yesterday,$get(diff) days ago)),never played)
//samplerate
$alignabs($add(%_width%,-175),$sub(%_height%,35),170,20,right,top)$div(%samplerate%,1000)'.'$substr($mod(%samplerate%,1000),1,1)KHz %channels%
//codec-profile
$alignabs($add(%_width%,-175),$sub(%_height%,20),170,20,right,top)[%codec%] [%bitrate%kbps][  '(' $div($muldiv(100,%_filesize%,1048576),100)'.'$mod($muldiv(100,%_filesize%,1048576),100)MB' )']
'
$alignabs(5,$sub(%_height%,32),$sub(%_width%,150),40,,)
$font(Frutiger Linotype,20,glow-0-0-0 glowalpha-10,92-140-152)foobar2000
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 2nd September 2014 - 17:44