I have seen a few people with quite a nice feature on their playlists - When a track is selected, there is a seekbar in the background of that selection. I'm assuming that this 'seekbar' isn't actually clickable, but actually just a rectangle drawn with a width depending on the progress of the track. I have tried to do this on mine too, but unfortunately I haven't got it to work, so can somebody help me to debug this code please?...
Here is the code for the item display: (just the default SCPL item display modified for this)
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-SYSCOL-13 pencolor-null))
$if(%_selected%,$textcolor(SYSCOL-9),$textcolor(SYSCOL-0))
[color=#FF0000]// PerSecond
$if(%_focused%,
$drawrect(0,0,0,0,brushcolor-SYSCOL-13 pencolor-null)
$drawrect(1,1,$eval(( %playback_time_seconds%/ %length_seconds%)*%_width%),$eval(%_height%-2),brushcolor-0-0-0 pencolor-null)
)[/color]
$drawrect(0,0,%_width%,1,brushcolor-null pencolor-null)
$padding(4,0)
$align(right,top)%title%
$align(left,top)$textcolor(80-80-80)%list_index%
Seems to me that ([time passed]/[total track time] ) * [width] should be reasonable to acheive this, so I'm not sure whats wrong. So how is this actually done then?
Thanks for any help
-mac