Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
Need help with SingleColumns Playlist code
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:
$font(Frutiger Linotype,8,,170-170-170)
$if($meta_test(album artist),' by '%artist%)
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 .
$drawrect(0,0,0,0,brushcolor-50-50-50 pencolor-null)
$font(Frutiger Linotype,14,glow-0-0-0 glowalpha-10,92-140-152)[%artist%]
$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)
$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)
$alignabs($add(%_width%,-175),$sub(%_height%,35),170,20,right,top)$div(%samplerate%,1000)'.'$substr($mod(%samplerate%,1000),1,1)KHz %channels%
$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' )']
$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: 6th October 2015 - 12:23