瀏覽單個文章
serect
Major Member
 

加入日期: Aug 2001
您的住址: 台中市
文章: 257
Track info code


// Globals
$puts(background,images\glass1.png)

//專輯圖片
$puts(artcover,
$if($fileexists($replace(%path%,%filename_ext%,folder.*)),$replace(%path%,%filename_ext%,folder.*),
$if($fileexists($replace(%path%,%filename_ext%,cover.*)),$replace(%path%,%filename_ext%,cover.*),
$if($fileexists($replace(%path%,%filename_ext%,front.*)),$replace(%path%,%filename_ext%,front.*),
$if($fileexists($replace($replace(%path%,\%filename_ext%,),$directory(%path%,1),)folder.*),$replace($replace(%path%,\%filename_ext%,),$directory(%path%,1),)folder.*,
$if($fileexists($replace($replace(%path%,\%filename_ext%,),$directory(%path%,1),)front.*),$replace($replace(%path%,\%filename_ext%,),$directory(%path%,1),)front.*,
$if($fileexists($replace($replace(%path%,\%filename_ext%,),$directory(%path%,1),)cover.*),$replace($replace(%path%,\%filename_ext%,),$directory(%path%,1),)cover.*,nocover)))))))

// Background
$imageabs2(%_width%,%_height%,,,,,0,0,$get(background),NOKEEPASPECT )
//$drawrect(0,0,,,brushcolor-53-53-53 pencolor-null)
$drawrect(0,425,,,brushcolor-169-182-188 pencolor-112-130-137)
$drawrect(0,475,,,brushcolor-118-135-143 pencolor-112-130-137)
$imageabs(0,424,/images\newing\separator3.gif,)

// PerTrack
$if(%isplaying%,
$imageabs2(302,302,,,,,$sub($div(%_width%,2),151),$sub($div(%_height%,2),191),/images\newing1\albumborder.png,NOKEEPASPECT)
$imageabs2(300,300,,,,,$sub($div(%_width%,2),150),$sub($div(%_height%,2),190),/images\newing1\nocover.png,NOKEEPASPECT )
$imageabs2(300,300,,,,,$sub($div(%_width%,2),150),$sub($div(%_height%,2),190),$get(artcover),NOKEEPASPECT )
$imageabs2(300,300,,,,,$sub($div(%_width%,2),150),$sub($div(%_height%,2),190),/images\newing1\overlay.png,NOKEEPASPECT )
$imageabs2(300,300,,,,,$sub($div(%_width%,2),150),$sub($div(%_height%,2),-110),$get(artcover),NOKEEPASPECT ROTATEFLIP-6 alpha-90),)


$drawrect(0,425,,,brushcolor-169-182-188 pencolor-112-130-137)
$drawrect(0,475,,,brushcolor-118-135-143 pencolor-112-130-137)
$button(10,11,0,0,0,0,/images\newing1\icon4.png,/images\newing1\icon3.png,newing,)
$button($sub(%_width%,400),445,0,0,0,0,/images\newing1\prev.png,/images\newing1\prev1.png,上一首,)
$button($sub(%_width%,343),445,0,0,0,0,/images\newing1\pause.png,/images\newing1\pause1.png,暫停,)
$button($sub(%_width%,280),445,0,0,0,0,/images\newing1\play.png,/images\newing1\play1.png,播放,)
$button($sub(%_width%,217),445,0,0,0,0,/images\newing1\stop.png,/images\newing1\stop1.png,停止,)
$button($sub(%_width%,160),445,0,0,0,0,/images\newing1\next.png,/images\newing1\next1.png,下一首,)
$button($sub(%_width%,70),460,0,0,0,0,/images\newing1\up1.png,/images\newing1\up2.png,顯示工具列,)

$if(%isplaying%,$imageabs(155,400,'images\newing\rating_'[%rating%]'.png',),)
$button(141,400,0,0,12,12,,,TAG:SET:Rating:0,)
$button(156,400,0,0,12,12,,,TAG:SET:Rating:1,)
$button(171,400,0,0,12,12,,,TAG:SET:Rating:2,)
$button(186,400,0,0,12,12,,,TAG:SET:Rating:3,)
$button(201,400,0,0,12,12,,,TAG:SET:Rating:4,)
$button(216,400,0,0,12,12,,,TAG:SET:Rating:5,)

//曲目訊息

$if(%isplaying%,
$alignabs(40,35,600,20,,)$font(calibri,12,shadow,255-255-255)%artist%
$alignabs(-105,370,600,30,center,)$font(微軟正黑體,14,bold shadow,255-255-255)" $iflonger(%title%,31,$trim($cut(%title%,31))..,%title%) "
$alignabs(40,10,600,23,,)$font(calibri,14,bold shadow,250-250-250)%album%,)


// PerSecond

$if(%_isplaying%,
$alignabs($sub(%_width%,185),$sub(%_height%,87),180,20,right,)
$font(微軟正黑體,10,shadow,255-255-255)
$get(spacer)%_time_elapsed%$if(%_time_total%,' / '%_time_total%,)
$if(%_time_remaining%,$get(spacer),),)

$if(%isplaying%,
$puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,142),%length_seconds%))
$drawrect(49,$sub(%_height%,84),$sub(%_width%,140),9,brushcolor-250-250-250 pencolor-150-150-150),)
$ifgreater($get(progress),0,$padding(48,$sub(%_height%,84))$drawrect(2,1,$get(progress),7,brushcolor-68-160-255 pencolor-nulll),)
舊 2007-01-04, 08:34 PM #945
回應時引用此文章
serect離線中