Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Background
- $puts(half_height,$div(%_height%,2))
- $imageabs2(
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
- 0,0,
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$div($sub(%_width%,$muldiv($sub($get(half_height),8),70,63)),2),8),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),8,$sub($get(half_height),$muldiv($sub(%_width%,16),63,70))),
- .\images\simple-1\case-1.png,)
- $imageabs2(
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
- 0,0,
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$div($sub(%_width%,$muldiv($sub($get(half_height),8),70,63)),2),8),
- $get(half_height),
- .\images\simple-1\case-1.png,rotateflip-6)
- // PerSecond
- $puts(progress_bar_layer_size,60)
- $puts(half_height,$div(%_height%,2))
- // Covers (front, back & artist) path
- $puts(albumartpath,
- $if(
- $fileexists($replace(%foobar_path%\Albumart\Album\$if2(%album%,).jpg,?,)),
- $replace(%foobar_path%\Albumart\Album\$if2(%album%,).jpg,?,),
- $if(
- $fileexists($replace(%path%,%filename_ext%,front*.jpg)),
- $replace(%path%,%filename_ext%,front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,folder*.jpg)),
- $replace(%path%,%filename_ext%,folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Cover*.jpg)),
- $replace(%path%,%filename_ext%,Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,front*.png)),
- $replace(%path%,%filename_ext%,front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,folder*.png)),
- $replace(%path%,%filename_ext%,folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Cover*.png)),
- $replace(%path%,%filename_ext%,Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,%album%*.png)),
- $replace(%path%,%filename_ext%,%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,%album%*.jpg)),
- $replace(%path%,%filename_ext%,%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,*front*.jpg)),
- $replace(%path%,%filename_ext%,*front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,*folder*.jpg)),
- $replace(%path%,%filename_ext%,*folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,*Cover*.jpg)),
- $replace(%path%,%filename_ext%,*Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,*front*.png)),
- $replace(%path%,%filename_ext%,*front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,*folder*.png)),
- $replace(%path%,%filename_ext%,*folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,*Cover*.png)),
- $replace(%path%,%filename_ext%,*Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,*%album%*.png)),
- $replace(%path%,%filename_ext%,*%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,*%album%*.jpg)),
- $replace(%path%,%filename_ext%,*%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,*.JPG)),
- $replace(%path%,%filename_ext%,*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\front*.jpg)),
- $replace(%path%,%filename_ext%,Booklet\front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\folder*.jpg)),
- $replace(%path%,%filename_ext%,Booklet\folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\Cover*.jpg)),
- $replace(%path%,%filename_ext%,Booklet\Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\front*.png)),
- $replace(%path%,%filename_ext%,Booklet\front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\folder*.png)),
- $replace(%path%,%filename_ext%,Booklet\folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\Cover*.png)),
- $replace(%path%,%filename_ext%,Booklet\Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\%album%*.png)),
- $replace(%path%,%filename_ext%,Booklet\%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\%album%*.jpg)),
- $replace(%path%,%filename_ext%,Booklet\%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\*front*.jpg)),
- $replace(%path%,%filename_ext%,Booklet\*front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\*folder*.jpg)),
- $replace(%path%,%filename_ext%,Booklet\*folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\*Cover*.jpg)),
- $replace(%path%,%filename_ext%,Booklet\*Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\*front*.png)),
- $replace(%path%,%filename_ext%,Booklet\*front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\*folder*.png)),
- $replace(%path%,%filename_ext%,Booklet\*folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\*Cover*.png)),
- $replace(%path%,%filename_ext%,Booklet\*Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\*%album%*.png)),
- $replace(%path%,%filename_ext%,Booklet\*%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Booklet\*%album%*.jpg)),
- $replace(%path%,%filename_ext%,Booklet\*%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\front*.jpg)),
- $replace(%path%,%filename_ext%,BK\front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\folder*.jpg)),
- $replace(%path%,%filename_ext%,BK\folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\Cover*.jpg)),
- $replace(%path%,%filename_ext%,BK\Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\front*.png)),
- $replace(%path%,%filename_ext%,BK\front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\folder*.png)),
- $replace(%path%,%filename_ext%,BK\folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\Cover*.png)),
- $replace(%path%,%filename_ext%,BK\Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\%album%*.png)),
- $replace(%path%,%filename_ext%,BK\%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\%album%*.jpg)),
- $replace(%path%,%filename_ext%,BK\%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\*front*.jpg)),
- $replace(%path%,%filename_ext%,BK\*front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\*folder*.jpg)),
- $replace(%path%,%filename_ext%,BK\*folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\*Cover*.jpg)),
- $replace(%path%,%filename_ext%,BK\*Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\*front*.png)),
- $replace(%path%,%filename_ext%,BK\*front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\*folder*.png)),
- $replace(%path%,%filename_ext%,BK\*folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\*Cover*.png)),
- $replace(%path%,%filename_ext%,BK\*Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\*%album%*.png)),
- $replace(%path%,%filename_ext%,BK\*%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,BK\*%album%*.jpg)),
- $replace(%path%,%filename_ext%,BK\*%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\front*.jpg)),
- $replace(%path%,%filename_ext%,Scan\front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\folder*.jpg)),
- $replace(%path%,%filename_ext%,Scan\folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\Cover*.jpg)),
- $replace(%path%,%filename_ext%,Scan\Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\front*.png)),
- $replace(%path%,%filename_ext%,Scan\front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\folder*.png)),
- $replace(%path%,%filename_ext%,Scan\folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\Cover*.png)),
- $replace(%path%,%filename_ext%,Scan\Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\%album%*.png)),
- $replace(%path%,%filename_ext%,Scan\%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\%album%*.jpg)),
- $replace(%path%,%filename_ext%,Scan\%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\*front*.jpg)),
- $replace(%path%,%filename_ext%,Scan\*front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\*folder*.jpg)),
- $replace(%path%,%filename_ext%,Scan\*folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\*Cover*.jpg)),
- $replace(%path%,%filename_ext%,Scan\*Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\*front*.png)),
- $replace(%path%,%filename_ext%,Scan\*front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\*folder*.png)),
- $replace(%path%,%filename_ext%,Scan\*folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\*Cover*.png)),
- $replace(%path%,%filename_ext%,Scan\*Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\*%album%*.png)),
- $replace(%path%,%filename_ext%,Scan\*%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scan\*%album%*.jpg)),
- $replace(%path%,%filename_ext%,Scan\*%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\front*.jpg)),
- $replace(%path%,%filename_ext%,Scans\front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\folder*.jpg)),
- $replace(%path%,%filename_ext%,Scans\folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\Cover*.jpg)),
- $replace(%path%,%filename_ext%,Scans\Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\front*.png)),
- $replace(%path%,%filename_ext%,Scans\front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\folder*.png)),
- $replace(%path%,%filename_ext%,Scans\folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\Cover*.png)),
- $replace(%path%,%filename_ext%,Scans\Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\%album%*.png)),
- $replace(%path%,%filename_ext%,Scans\%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\%album%*.jpg)),
- $replace(%path%,%filename_ext%,Scans\%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\*front*.jpg)),
- $replace(%path%,%filename_ext%,Scans\*front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\*folder*.jpg)),
- $replace(%path%,%filename_ext%,Scans\*folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\*Cover*.jpg)),
- $replace(%path%,%filename_ext%,Scans\*Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\*front*.png)),
- $replace(%path%,%filename_ext%,Scans\*front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\*folder*.png)),
- $replace(%path%,%filename_ext%,Scans\*folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\*Cover*.png)),
- $replace(%path%,%filename_ext%,Scans\*Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\*%album%*.png)),
- $replace(%path%,%filename_ext%,Scans\*%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Scans\*%album%*.jpg)),
- $replace(%path%,%filename_ext%,Scans\*%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\front*.jpg)),
- $replace(%path%,%filename_ext%,Images\front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\folder*.jpg)),
- $replace(%path%,%filename_ext%,Images\folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\Cover*.jpg)),
- $replace(%path%,%filename_ext%,Images\Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\front*.png)),
- $replace(%path%,%filename_ext%,Images\front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\folder*.png)),
- $replace(%path%,%filename_ext%,Images\folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\Cover*.png)),
- $replace(%path%,%filename_ext%,Images\Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\%album%*.png)),
- $replace(%path%,%filename_ext%,Images\%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\%album%*.jpg)),
- $replace(%path%,%filename_ext%,Images\%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\*front*.jpg)),
- $replace(%path%,%filename_ext%,Images\*front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\*folder*.jpg)),
- $replace(%path%,%filename_ext%,Images\*folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\*Cover*.jpg)),
- $replace(%path%,%filename_ext%,Images\*Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\*front*.png)),
- $replace(%path%,%filename_ext%,Images\*front*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\*folder*.png)),
- $replace(%path%,%filename_ext%,Images\*folder*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\*Cover*.png)),
- $replace(%path%,%filename_ext%,Images\*Cover*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\*%album%*.png)),
- $replace(%path%,%filename_ext%,Images\*%album%*),
- $if(
- $fileexists($replace(%path%,%filename_ext%,Images\*%album%*.jpg)),
- $replace(%path%,%filename_ext%,Images\*%album%*),
- $if(
- $fileexists($replace(C:\Foobar2000\AlbumArt\Artist\$if2(%artist%,).jpg,?,)),
- $replace(C:\Foobar2000\AlbumArt\Artist\$if2(%artist%,).jpg,?,),
- ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
- $puts(number_of_images,
- $if($fileexists($get(albumartpath)-20.*),20,
- $if($fileexists($get(albumartpath)-19.*),19,
- $if($fileexists($get(albumartpath)-18.*),18,
- $if($fileexists($get(albumartpath)-17.*),17,
- $if($fileexists($get(albumartpath)-16.*),16,
- $if($fileexists($get(albumartpath)-15.*),15,
- $if($fileexists($get(albumartpath)-14.*),14,
- $if($fileexists($get(albumartpath)-13.*),13,
- $if($fileexists($get(albumartpath)-12.*),12,
- $if($fileexists($get(albumartpath)-11.*),11,
- $if($fileexists($get(albumartpath)-10.*),10,
- $if($fileexists($get(albumartpath)-9.*),9,
- $if($fileexists($get(albumartpath)-8.*),8,
- $if($fileexists($get(albumartpath)-7.*),7,
- $if($fileexists($get(albumartpath)-6.*),6,
- $if($fileexists($get(albumartpath)-5.*),5,
- $if($fileexists($get(albumartpath)-4.*),4,
- $if($fileexists($get(albumartpath)-3.*),3,
- $if($fileexists($get(albumartpath)-2.*),2,
- $if($fileexists($get(albumartpath).*),1,0
- ))))))))))))))))))))
- )
- $puts(display_time,$muldiv(%length_seconds%,10,$get(number_of_images)))
- $puts(albumartpath2,
- $ifgreater($div($get(display_time),10),%playback_time_seconds%,$get(albumartpath).*,
- $ifgreater($muldiv($get(display_time),2,10),%playback_time_seconds%,$get(albumartpath)-2.*,
- $ifgreater($muldiv($get(display_time),3,10),%playback_time_seconds%,$get(albumartpath)-3.*,
- $ifgreater($muldiv($get(display_time),4,10),%playback_time_seconds%,$get(albumartpath)-4.*,
- $ifgreater($muldiv($get(display_time),5,10),%playback_time_seconds%,$get(albumartpath)-5.*,
- $ifgreater($muldiv($get(display_time),6,10),%playback_time_seconds%,$get(albumartpath)-6.*,
- $ifgreater($muldiv($get(display_time),7,10),%playback_time_seconds%,$get(albumartpath)-7.*,
- $ifgreater($muldiv($get(display_time),8,10),%playback_time_seconds%,$get(albumartpath)-8.*,
- $ifgreater($muldiv($get(display_time),9,10),%playback_time_seconds%,$get(albumartpath)-9.*,
- $ifgreater($muldiv($get(display_time),10,10),%playback_time_seconds%,$get(albumartpath)-10.*,
- $ifgreater($muldiv($get(display_time),11,10),%playback_time_seconds%,$get(albumartpath)-11.*,
- $ifgreater($muldiv($get(display_time),12,10),%playback_time_seconds%,$get(albumartpath)-12.*,
- $ifgreater($muldiv($get(display_time),13,10),%playback_time_seconds%,$get(albumartpath)-13.*,
- $ifgreater($muldiv($get(display_time),14,10),%playback_time_seconds%,$get(albumartpath)-14.*,
- $ifgreater($muldiv($get(display_time),15,10),%playback_time_seconds%,$get(albumartpath)-15.*,
- $ifgreater($muldiv($get(display_time),16,10),%playback_time_seconds%,$get(albumartpath)-16.*,
- $ifgreater($muldiv($get(display_time),17,10),%playback_time_seconds%,$get(albumartpath)-17.*,
- $ifgreater($muldiv($get(display_time),18,10),%playback_time_seconds%,$get(albumartpath)-18.*,
- $ifgreater($muldiv($get(display_time),19,10),%playback_time_seconds%,$get(albumartpath)-19.*,
- $get(albumartpath)-20.*
- )))))))))))))))))))
- )
- $imageabs2(
- $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),6,7),
- $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),20,21),
- 0,0,
- $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),6,7),
- $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),20,21),
- $add($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$div($sub(%_width%,$muldiv($sub($get(half_height),8),70,63)),2),8),$muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),3,28)),
- $add($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),8,$sub($get(half_height),$muldiv($sub(%_width%,16),63,70))),$muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),1,36)),
- $get(albumartpath2),)
- $imageabs2(
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
- 0,0,
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$div($sub(%_width%,$muldiv($sub($get(half_height),8),70,63)),2),8),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),8,$sub($get(half_height),$muldiv($sub(%_width%,16),63,70))),
- .\images\simple-1\overlay-2.png,alpha-50)
- $imageabs2(
- $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),6,7),
- $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),20,21),
- 0,0,
- $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),6,7),
- $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),20,21),
- $add($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$div($sub(%_width%,$muldiv($sub($get(half_height),8),70,63)),2),8),$muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),3,28)),
- $add($get(half_height),$muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),1,42)),
- $get(albumartpath2),rotateflip-6)
- $imageabs2(
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
- 0,0,
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
- $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$div($sub(%_width%,$muldiv($sub($get(half_height),8),70,63)),2),8),
- $get(half_height),
- .\images\simple-1\overlay-1.png,)
- $puts(title_font,$font(Meiryo,8,bold italic glow-97-140-218 glowalpha-100,255-255-255))
- $puts(name_font,$font(Meiryo,10,bold glow-97-140-218 glowalpha-180,255-255-255))
- $alignabs(0,$get(half_height),%_width%,$sub($get(half_height),$get(progress_bar_layer_size)),center,middle)
- $crlf()$get(title_font)- T i t l e -
- $crlf()$if(%title%,$ifgreater($calcwidth($get(name_font)%title%),%_width%,$get(name_font)$insert(%title%,$crlf(),$div($len(%title%),2)),$get(name_font)%title%),-)
- $crlf()$get(title_font)- A r t i s t -
- $crlf()$if(%artist%,$ifgreater($calcwidth($get(name_font)%artist%),%_width%,$get(name_font)$insert(%artist%,$crlf(),$div($len(%artist%),2)),$get(name_font)%artist%),-)
- $crlf()$get(title_font)- A l b u m -
- $crlf()$if(%album%,$ifgreater($calcwidth($get(name_font)%album%),%_width%,$get(name_font)$insert(%album%,$crlf(),$div($len(%album%),2)),$get(name_font)%album%),-)
- //$crlf()$get(title_font)- C o m p o s e r -
- //$crlf()$if(%songwriter%,$ifgreater($calcwidth($get(name_font)%songwriter%),%_width%,$get(name_font)$insert(%songwriter%,$crlf(),$div($len(%songwriter%),2)),$get(name_font)%songwriter%),-)
- $if($or(%isplaying%,%ispaused%),$imageabs2($sub(%_width%,16),8,0,0,$sub(%_width%,16),8,8,$add($sub(%_height%,$get(progress_bar_layer_size)),20),.\images\simple-1\bar-back-1.png,nokeepaspect))
- $if($or(%isplaying%,%ispaused%),$imageabs2($muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),8,0,0,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),8,8,$add($sub(%_height%,$get(progress_bar_layer_size)),20),.\images\simple-1\bar-1.png,nokeepaspect))
- $if($or(%isplaying%,%ispaused%),
- $ifequal($right(%playback_time_seconds%,1),0,
- $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple-1\star-1.png,),
- $ifequal($right(%playback_time_seconds%,1),1,
- $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple-1\star-2.png,),
- $ifequal($right(%playback_time_seconds%,1),2,
- $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple-1\star-3.png,),
- $ifequal($right(%playback_time_seconds%,1),3,
- $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple-1\star-4.png,),
- $ifequal($right(%playback_time_seconds%,1),4,
- $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple-1\star-5.png,),
- $ifequal($right(%playback_time_seconds%,1),5,
- $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple-1\star-1.png,),
- $ifequal($right(%playback_time_seconds%,1),6,
- $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple-1\star-2.png,),
- $ifequal($right(%playback_time_seconds%,1),7,
- $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple-1\star-3.png,),
- $ifequal($right(%playback_time_seconds%,1),8,
- $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple-1\star-4.png,),
- $ifequal($right(%playback_time_seconds%,1),9,
- $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple-1\star-5.png,),
- )))))))))))
Advertisement
Add Comment
Please, Sign In to add comment