Thanks
VS is
Opus OSXno fcs, it's single column playlist. No group and this code for item display:
CODE
$if($strstr(%cwb_activelist%,'Albums'),,
$if($strstr(%cwb_activelist%,'Compilations'),,$puts(singlelist,%cwb_activelist%)))
// Couleur de fond
$drawrect(0,0,0,0,brushcolor-246-249-254 pencolor-null)
// Zone Album
$if($strcmp($num(%tracknumber%,2),01),
$drawrect(30,0,0,0,brushcolor-255-255-255 pencolor-null)
$drawrect(30,0,229,1,brushcolor-220-220-220 pencolor-null),)
$if($strcmp($num(%tracknumber%,2),02),
$drawrect(30,0,0,0,brushcolor-255-255-255 pencolor-null),)
$if($strcmp($num(%tracknumber%,2),03),
$drawrect(30,0,0,0,brushcolor-255-255-255 pencolor-null),)
$if($strcmp($num(%tracknumber%,2),04),
$drawrect(30,0,0,0,brushcolor-255-255-255 pencolor-null),)
$if($strcmp($num(%tracknumber%,2),05),
$drawrect(30,0,229,1,brushcolor-220-220-220 pencolor-null),)
//Autres Zones
$padding(0,0)
$if(%_isplaying%,
$if($strstr(%cwb_activelist%,$get(singlelist)),
$drawrect(0,0,0,0,brushcolor-211-227-254 pencolor-null),
$drawrect(258,0,0,0,brushcolor-211-227-254 pencolor-null))
$drawrect(0,0,30,0,brushcolor-211-227-254 pencolor-null)
,
$if(%_selected%,
$if($strstr(%cwb_activelist%,$get(singlelist)),
$drawrect(0,0,0,0,brushcolor-211-227-254 pencolor-null),
$drawrect(258,0,0,0,brushcolor-211-227-254 pencolor-null))
$drawrect(0,0,30,0,brushcolor-211-227-254 pencolor-null),
$ifequal($mod(%_playlist_number%,2),0,
$if($strstr(%cwb_activelist%,$get(singlelist)),
$drawrect(0,0,0,0,brushcolor-246-249-254 pencolor-null),
$drawrect(260,0,0,0,brushcolor-246-249-254 pencolor-null)
$drawrect(0,0,30,0,brushcolor-246-249-254 pencolor-null))
,
$if($strstr(%cwb_activelist%,$get(singlelist)),
$drawrect(0,0,0,0,brushcolor-255-255-255 pencolor-null),
$drawrect(260,0,0,0,brushcolor-255-255-255 pencolor-null)
$drawrect(0,0,30,0,brushcolor-255-255-255 pencolor-null))
))
)
// Bordures
$drawrect(0,0,1,0,brushcolor-220-220-220 pencolor-null)
$drawrect(30,0,1,0,brushcolor-220-220-220 pencolor-null)
$drawrect(258,0,1,0,brushcolor-220-220-220 pencolor-null)
$if($strstr(%cwb_activelist%,$get(singlelist)),,$drawrect(280,0,1,0,brushcolor-220-220-220 pencolor-null))
$if($strstr(%cwb_activelist%,$get(singlelist)),$drawrect(607,0,1,0,brushcolor-220-220-220 pencolor-null),$drawrect(639,0,1,0,brushcolor-220-220-220 pencolor-null))
$if($strstr(%cwb_activelist%,$get(singlelist)),$drawrect(643,0,1,0,brushcolor-220-220-220 pencolor-null),$drawrect(675,0,1,0,brushcolor-220-220-220 pencolor-null))
$if($strstr(%cwb_activelist%,$get(singlelist)),$drawrect(923,0,1,0,brushcolor-220-220-220 pencolor-null),)
$if($strstr(%cwb_activelist%,$get(singlelist)),$drawrect(798,0,1,0,brushcolor-220-220-220 pencolor-null),)
//Playlist number
$padding(4,0)
$align(left,middle)
$font(corbel,9,bold,150-150-150)
$if(%_isplaying%,
$repeat(›,$mod(%_time_elapsed_seconds%,7)),
$num(%_playlist_number%,4))
//Zone Album
$padding(0,0)
$if($strstr(%cwb_activelist%,$get(singlelist)),
$padding(26,0)$align(left,middle)
$font(corbel,9,bold,120-120-120)
$if(%artist%,
$iflonger(%artist%,39,$cut(%artist%,38)'...',%artist%)),
$alignabs($add(-%_width%,254),0,%_width%,18,right,middle)
$if($strcmp($num(%tracknumber%,2),01),$font(corbel,9,bold,50-50-50)$if2(%album artist%,%artist%),)
$if($strcmp($num(%tracknumber%,2),02),$font(corbel,9,bold,70-120-206)$iflonger(%album%,37,$cut(%album%,36)'...',%album%),)
$if($strcmp($num(%tracknumber%,2),03),$font(corbel,9,bold,150-150-150)[%date%]$if(%date%,$if(%genre%, '~' ,),)[%genre%],)
$if($strcmp($num(%tracknumber%,2),04),$font(corbel,9,bold,150-150-150)$upper($replace($right(%_filename_ext%,4),.,)) %__bitrate%
$if($strcmp(%__extrainfo%,VBR),VBR,CBR),))
//Tracknumber
$if($strstr(%cwb_activelist%,$get(singlelist)),$alignabs(648,0,%_width%,18,left,middle),$alignabs(264,0,%_width%,18,left,middle))
$font(corbel,9,bold,70-120-206)
[%tracknumber%]
//Title
$if($strstr(%cwb_activelist%,$get(singlelist)),$alignabs(264,0,%_width%,18,left,middle),$alignabs(285,0,%_width%,18,left,middle))
$if(%_isplaying%,$font(corbel,9,bold,50-50-50),$if($strstr(%cwb_activelist%,$get(singlelist)),$font(corbel,9,bold,70-120-206),$font(corbel,9,bold,120-120-120)))
$if(%title%,$iflonger(%title%,59,$cut(%title%,58)'...',%title%),%_filename%)
$if($strstr(%cwb_activelist%,$get(singlelist)),$alignabs($add(-%_width%,603),0,%_width%,18,right,middle),$alignabs($add(-%_width%,635),0,%_width%,18,right,middle))
$font(corbel,8,bold,120-120-120)
$ifgreater($meta_num(album artist),0,'[ '%artist%' ]',)
//Time
$if($strstr(%cwb_activelist%,$get(singlelist)),$alignabs($add(-%_width%,639),0,%_width%,18,right,middle),$alignabs($add(-%_width%,672),0,%_width%,18,right,middle))
$font(corbel,9,bold,120-120-120)
$if(%_isplaying%,%_time_elapsed%,%length%)
//Playcount
$if($strstr(%cwb_activelist%,$get(singlelist)),$alignabs($add(-%_width%,945),0,%_width%,18,right,middle),$alignabs($add(-%_width%,698),0,%_width%,18,right,middle))
$font(corbel,9,bold,70-120-206)
$if2(%play_counter%,$font(corbel,8,bold,180-180-180)0)
//Rating
$padding(-22,0)
$if($strstr(%cwb_activelist%,$get(singlelist)),$align(right,middle),$alignabs($add(-%_width%,731),0,%_width%,18,right,middle))
$font(corbel,9,bold,70-120-206)
$repeat(•,%rating%)
$font(corbel,9,bold,170-170-170)
$repeat(•,$add(5,-%rating%))
//AlbumArt
$if($strstr(%cwb_activelist%,$get(singlelist)),
$alignabs(667,0,%_width%,18,left,middle)
$font(corbel,8,bold,120-120-120)
$if(%album%,
$iflonger(%album%,25,$cut(%album%,24)'...',%album%))
,
$if(%tracknumber%,
$imageabs(795,$add(25,$mul(-18,$add(%tracknumber%,-1))),'nocover.png',)
$imageabs2(152,152,0,$add(-25,$mul($add(%tracknumber%,-1),18)),157,18,794,,$replace(%path%,%filename_ext%,)folder.jpg,))
$imageabs(765,$add(25,$mul(-18,$add(%tracknumber%,0))),'case.png',))
//Year-Genre
$if($strstr(%cwb_activelist%,$get(singlelist)),
$alignabs(803,0,%_width%,18,left,middle)
$font(corbel,9,bold,70-120-206)
[%date%]
$alignabs(832,0,%_width%,18,left,middle)
$font(corbel,8,bold,150-150-150)
$if(%genre%,$iflonger(%genre%,18,$cut(%genre%,17)'...',%genre%)))
)
Icons:
http://omoikane.minstrum.net/tree/Moderation: Please use [ codebox ] for long sections of code. Thanks.