foobar2000 – ELPlaylist
布局抄自MonoLite_Plus_0_4_3_by_Junior_Spirit,皮肤也是用的他的
Track List:
//背景颜色 播放、播放+焦点、焦点、奇偶
$if(%el_isplaying%,
$if(%el_focused%,$puts(backgroung_color,%B_color_PF%),$puts(backgroung_color,%B_color_P%))
,$if(%el_focused%,$puts(backgroung_color,%B_color_F%),
$ifequal($mod(%playlist_number%,2),1,
$puts(backgroung_color,%B_color_even%),$puts(backgroung_color,%B_color_odd%))
)
)
$drawrect(0,0,%el_width%,%el_height%,$get(backgroung_color),,)
// Track info
$drawtextex(%title%,%TITLE.MARGIN.LEFT%,0,%TITLE.WIDTH%,%el_row_height%,%T_color%,vcenter end_ellipsis)
$drawtextex(%artist%,$add(%TITLE.MARGIN.LEFT%,%TITLE.WIDTH%),0,%ARTIST.WIDTH%,%el_row_height%,%T_color%,vcenter end_ellipsis)
$drawtextex(%album%,$add(%TITLE.MARGIN.LEFT%,%TITLE.WIDTH%,%ARTIST.WIDTH%),0,%ALBUM.WIDTH%,%el_row_height%,%T_color%,vcenter end_ellipsis)
$puts(len.right,$add($gettextwidth(%length%),4))
$if($not(%el_isplaying%),
$drawtext(%length%,0,0,$sub(%el_width%,4),%el_height%,%T_color%,vcenter right),)
Group Header:
$puts(group.text,[%artist% - ]%el_group_format%)
$if(%el_is_collapsed%,
$font(,10,)
$puts(group.align,hcenter)
,$font(,18,)
$puts(group.align,)
)
$drawrect(0,0,%el_width%,%el_height%,%HB_color%,,)
$drawstring($get(group.text),10,0,$sub(%el_width%,10),%el_height%,%T_color%,vcenter $get(group.align) aa)
per second:
$drawtext(%playback_time% / %length%,0,0,$sub(%el_width%,4),%el_height%,%T_color%,vcenter right)
track list (渐变颜色):
////////////////////////////////////// 常量 //////////////////////
$puts(B_color_S1,122-164-221)
$puts(B_color_S2,61-125-202)
$puts(B_color_P1,92-193-81)
$puts(B_color_P2,46-177-53)
$puts(B_color_PS1,0-173-105)
$puts(B_color_PS2,0-183-79)
$puts(B_color_even,210-210-210)
$puts(B_color_odd,230-230-230)
$puts(T_color,0-0-0)
$puts(T_color_active,255-255-255)
$puts(TITLE.MARGIN.LEFT,20)
$puts(TITLE.WIDTH,300)
$puts(ARTIST.WIDTH,180)
$puts(ALBUM.WIDTH,200)
/////////////////////////////////////// 背影颜色 ////////////////////////////////
$if(%el_isplaying%,
//播放时
$if(%el_selected%,$puts(background_color1,$get(B_color_PS1)) $puts(background_color2,$get(B_color_PS2))
,$puts(background_color1,$get(B_color_P1)) $puts(background_color2,$get(B_color_P2)))
//没播放时
,$if(%el_selected%,$puts(background_color1,$get(B_color_S1)) $puts(background_color2,$get(B_color_S2)),
$ifequal($mod(%playlist_number%,2),1,
$put(background_color,$get(B_color_even)),$puts(background_color,$get(B_color_odd)))
)
)
$if($or(%el_isplaying%,%el_selected%),
$gradientrect(0,0,%el_width%,%el_height%,$get(background_color1),$get(background_color2),vertical,)
$puts(text_color,$get(T_color_active))
,$drawrect(0,0,%el_width%,%el_height%,$get(background_color),,)
$puts(text_color,$get(T_color)))
//////////////////////////////// Track info ///////////////////////////////////////////
$drawtextex(%title%,%TITLE.MARGIN.LEFT%,0,%TITLE.WIDTH%,%el_row_height%,$get(text_color),vcenter end_ellipsis)
$drawtextex(%artist%,$add(%TITLE.MARGIN.LEFT%,%TITLE.WIDTH%),0,%ARTIST.WIDTH%,%el_row_height%,$get(text_color),vcenter end_ellipsis)
$drawtextex(%album%,$add(%TITLE.MARGIN.LEFT%,%TITLE.WIDTH%,%ARTIST.WIDTH%),0,%ALBUM.WIDTH%,%el_row_height%,$get(text_color),vcenter end_ellipsis)
$puts(len.right,$add($gettextwidth(%length%),4))
$if($not(%el_isplaying%),
$drawtext(%length%,0,0,$sub(%el_width%,4),%el_height%,$get(text_color),vcenter right),)
对Volume,Seekbar、Playback Order这三个工具要用至WSH,WSH需要Jscript(由MicroSof开发,是种解释型的,基于对象的的脚本语言,可用于制作ASP动态网页,它不是Javacript(js) ),
创建自动播放列表: