Advertisement
Guest User

Untitled

a guest
Feb 25th, 2016
702
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.80 KB | None | 0 0
  1. // Global
  2.  
  3. $puts(path,%path%)
  4. $puts(filename_ext,%filename_ext%)
  5.  
  6. // Background
  7.  
  8. $puts(half_height,$div(%_height%,2))
  9.  
  10.  
  11. $imageabs2(
  12. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  13. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  14. 0,0,
  15. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  16. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  17. $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),
  18. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),8,$sub($get(half_height),$muldiv($sub(%_width%,16),63,70))),
  19. .\images\simple_1\case_1.png,)
  20.  
  21. $imageabs2(
  22. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  23. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  24. 0,0,
  25. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  26. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  27. $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),
  28. $get(half_height),
  29. .\images\simple_1\case_1.png,rotateflip-6)
  30.  
  31.  
  32. // PerSecond
  33.  
  34. $puts(progress_bar_layer_size,60)
  35.  
  36. $puts(half_height,$div(%_height%,2))
  37.  
  38. // Covers (front, back & artist) path
  39. $puts(albumartpath,
  40. $if(
  41. $fileexists($replace(%foobar_path%\Albumart\Album\$if2(%album%,).jpg,?,)),
  42. $replace(%foobar_path%\Albumart\Album\$if2(%album%,).jpg,?,),
  43. $if(
  44. $fileexists($replace($get(path),$get(filename_ext),front*.jpg)),
  45. $replace($get(path),$get(filename_ext),front*.jpg),
  46. $if(
  47. $fileexists($replace($get(path),$get(filename_ext),folder*.jpg)),
  48. $replace($get(path),$get(filename_ext),folder*.jpg),
  49. $if(
  50. $fileexists($replace($get(path),$get(filename_ext),Cover*.jpg)),
  51. $replace($get(path),$get(filename_ext),Cover*.jpg),
  52. $if(
  53. $fileexists($replace($get(path),$get(filename_ext),front*.png)),
  54. $replace($get(path),$get(filename_ext),front*.png),
  55. $if(
  56. $fileexists($replace($get(path),$get(filename_ext),folder*.png)),
  57. $replace($get(path),$get(filename_ext),folder*.png),
  58. $if(
  59. $fileexists($replace($get(path),$get(filename_ext),Cover*.png)),
  60. $replace($get(path),$get(filename_ext),Cover*.png),
  61. $if(
  62. $fileexists($replace($get(path),$get(filename_ext),%album%*.png)),
  63. $replace($get(path),$get(filename_ext),%album%*.png),
  64. $if(
  65. $fileexists($replace($get(path),$get(filename_ext),%album%*.jpg)),
  66. $replace($get(path),$get(filename_ext),%album%*.jpg),
  67. $if(
  68. $fileexists($replace($get(path),$get(filename_ext),*front*.jpg)),
  69. $replace($get(path),$get(filename_ext),*front*.jpg),
  70. $if(
  71. $fileexists($replace($get(path),$get(filename_ext),*folder*.jpg)),
  72. $replace($get(path),$get(filename_ext),*folder*.jpg),
  73. $if(
  74. $fileexists($replace($get(path),$get(filename_ext),*Cover*.jpg)),
  75. $replace($get(path),$get(filename_ext),*Cover*.jpg),
  76. $if(
  77. $fileexists($replace($get(path),$get(filename_ext),*front*.png)),
  78. $replace($get(path),$get(filename_ext),*front*.png),
  79. $if(
  80. $fileexists($replace($get(path),$get(filename_ext),*folder*.png)),
  81. $replace($get(path),$get(filename_ext),*folder*.png),
  82. $if(
  83. $fileexists($replace($get(path),$get(filename_ext),*Cover*.png)),
  84. $replace($get(path),$get(filename_ext),*Cover*.png),
  85. $if(
  86. $fileexists($replace($get(path),$get(filename_ext),*%album%*.png)),
  87. $replace($get(path),$get(filename_ext),*%album%*.png),
  88. $if(
  89. $fileexists($replace($get(path),$get(filename_ext),*%album%*.jpg)),
  90. $replace($get(path),$get(filename_ext),*%album%*.jpg),
  91. $if(
  92. $fileexists($replace($get(path),$get(filename_ext),*.JPG)),
  93. $replace($get(path),$get(filename_ext),*.jpg),
  94. $if(
  95. $fileexists($replace($get(path),$get(filename_ext),*.PNG)),
  96. $replace($get(path),$get(filename_ext),*.png),
  97. $if(
  98. $fileexists($replace($get(path),$get(filename_ext),Booklet\front*.jpg)),
  99. $replace($get(path),$get(filename_ext),Booklet\front*.jpg),
  100. $if(
  101. $fileexists($replace($get(path),$get(filename_ext),Booklet\folder*.jpg)),
  102. $replace($get(path),$get(filename_ext),Booklet\folder*.jpg),
  103. $if(
  104. $fileexists($replace($get(path),$get(filename_ext),Booklet\Cover*.jpg)),
  105. $replace($get(path),$get(filename_ext),Booklet\Cover*.jpg),
  106. $if(
  107. $fileexists($replace($get(path),$get(filename_ext),Booklet\front*.png)),
  108. $replace($get(path),$get(filename_ext),Booklet\front*.png),
  109. $if(
  110. $fileexists($replace($get(path),$get(filename_ext),Booklet\folder*.png)),
  111. $replace($get(path),$get(filename_ext),Booklet\folder*.png),
  112. $if(
  113. $fileexists($replace($get(path),$get(filename_ext),Booklet\Cover*.png)),
  114. $replace($get(path),$get(filename_ext),Booklet\Cover*.png),
  115. $if(
  116. $fileexists($replace($get(path),$get(filename_ext),Booklet\%album%*.png)),
  117. $replace($get(path),$get(filename_ext),Booklet\%album%*.png),
  118. $if(
  119. $fileexists($replace($get(path),$get(filename_ext),Booklet\%album%*.jpg)),
  120. $replace($get(path),$get(filename_ext),Booklet\%album%*.jpg),
  121. $if(
  122. $fileexists($replace($get(path),$get(filename_ext),Booklet\*front*.jpg)),
  123. $replace($get(path),$get(filename_ext),Booklet\*front*.jpg),
  124. $if(
  125. $fileexists($replace($get(path),$get(filename_ext),Booklet\*folder*.jpg)),
  126. $replace($get(path),$get(filename_ext),Booklet\*folder*.jpg),
  127. $if(
  128. $fileexists($replace($get(path),$get(filename_ext),Booklet\*Cover*.jpg)),
  129. $replace($get(path),$get(filename_ext),Booklet\*Cover*.jpg),
  130. $if(
  131. $fileexists($replace($get(path),$get(filename_ext),Booklet\*front*.png)),
  132. $replace($get(path),$get(filename_ext),Booklet\*front*.png),
  133. $if(
  134. $fileexists($replace($get(path),$get(filename_ext),Booklet\*folder*.png)),
  135. $replace($get(path),$get(filename_ext),Booklet\*folder*.png),
  136. $if(
  137. $fileexists($replace($get(path),$get(filename_ext),Booklet\*Cover*.png)),
  138. $replace($get(path),$get(filename_ext),Booklet\*Cover*.png),
  139. $if(
  140. $fileexists($replace($get(path),$get(filename_ext),Booklet\*%album%*.png)),
  141. $replace($get(path),$get(filename_ext),Booklet\*%album%*.png),
  142. $if(
  143. $fileexists($replace($get(path),$get(filename_ext),Booklet\*%album%*.jpg)),
  144. $replace($get(path),$get(filename_ext),Booklet\*%album%*.jpg),
  145. $if(
  146. $fileexists($replace($get(path),$get(filename_ext),Booklet\*.JPG)),
  147. $replace($get(path),$get(filename_ext),Booklet\*.jpg),
  148. $if(
  149. $fileexists($replace($get(path),$get(filename_ext),Booklet\*.PNG)),
  150. $replace($get(path),$get(filename_ext),Booklet\*.png),
  151. $if(
  152. $fileexists($replace($get(path),$get(filename_ext),BK\front*.jpg)),
  153. $replace($get(path),$get(filename_ext),BK\front*.jpg),
  154. $if(
  155. $fileexists($replace($get(path),$get(filename_ext),BK\folder*.jpg)),
  156. $replace($get(path),$get(filename_ext),BK\folder*.jpg),
  157. $if(
  158. $fileexists($replace($get(path),$get(filename_ext),BK\Cover*.jpg)),
  159. $replace($get(path),$get(filename_ext),BK\Cover*.jpg),
  160. $if(
  161. $fileexists($replace($get(path),$get(filename_ext),BK\front*.png)),
  162. $replace($get(path),$get(filename_ext),BK\front*.png),
  163. $if(
  164. $fileexists($replace($get(path),$get(filename_ext),BK\folder*.png)),
  165. $replace($get(path),$get(filename_ext),BK\folder*.png),
  166. $if(
  167. $fileexists($replace($get(path),$get(filename_ext),BK\Cover*.png)),
  168. $replace($get(path),$get(filename_ext),BK\Cover*.png),
  169. $if(
  170. $fileexists($replace($get(path),$get(filename_ext),BK\%album%*.png)),
  171. $replace($get(path),$get(filename_ext),BK\%album%*.png),
  172. $if(
  173. $fileexists($replace($get(path),$get(filename_ext),BK\%album%*.jpg)),
  174. $replace($get(path),$get(filename_ext),BK\%album%*.jpg),
  175. $if(
  176. $fileexists($replace($get(path),$get(filename_ext),BK\*front*.jpg)),
  177. $replace($get(path),$get(filename_ext),BK\*front*.jpg),
  178. $if(
  179. $fileexists($replace($get(path),$get(filename_ext),BK\*folder*.jpg)),
  180. $replace($get(path),$get(filename_ext),BK\*folder*.jpg),
  181. $if(
  182. $fileexists($replace($get(path),$get(filename_ext),BK\*Cover*.jpg)),
  183. $replace($get(path),$get(filename_ext),BK\*Cover*.jpg),
  184. $if(
  185. $fileexists($replace($get(path),$get(filename_ext),BK\*front*.png)),
  186. $replace($get(path),$get(filename_ext),BK\*front*.png),
  187. $if(
  188. $fileexists($replace($get(path),$get(filename_ext),BK\*folder*.png)),
  189. $replace($get(path),$get(filename_ext),BK\*folder*.png),
  190. $if(
  191. $fileexists($replace($get(path),$get(filename_ext),BK\*Cover*.png)),
  192. $replace($get(path),$get(filename_ext),BK\*Cover*.png),
  193. $if(
  194. $fileexists($replace($get(path),$get(filename_ext),BK\*%album%*.png)),
  195. $replace($get(path),$get(filename_ext),BK\*%album%*.png),
  196. $if(
  197. $fileexists($replace($get(path),$get(filename_ext),BK\*%album%*.jpg)),
  198. $replace($get(path),$get(filename_ext),BK\*%album%*.jpg),
  199. $if(
  200. $fileexists($replace($get(path),$get(filename_ext),BK\*.JPG)),
  201. $replace($get(path),$get(filename_ext),BK\*.jpg),
  202. $if(
  203. $fileexists($replace($get(path),$get(filename_ext),BK\*.PNG)),
  204. $replace($get(path),$get(filename_ext),BK\*.png),
  205. $if(
  206. $fileexists($replace($get(path),$get(filename_ext),Scan\front*.jpg)),
  207. $replace($get(path),$get(filename_ext),Scan\front*.jpg),
  208. $if(
  209. $fileexists($replace($get(path),$get(filename_ext),Scan\folder*.jpg)),
  210. $replace($get(path),$get(filename_ext),Scan\folder*.jpg),
  211. $if(
  212. $fileexists($replace($get(path),$get(filename_ext),Scan\Cover*.jpg)),
  213. $replace($get(path),$get(filename_ext),Scan\Cover*.jpg),
  214. $if(
  215. $fileexists($replace($get(path),$get(filename_ext),Scan\front*.png)),
  216. $replace($get(path),$get(filename_ext),Scan\front*.png),
  217. $if(
  218. $fileexists($replace($get(path),$get(filename_ext),Scan\folder*.png)),
  219. $replace($get(path),$get(filename_ext),Scan\folder*.png),
  220. $if(
  221. $fileexists($replace($get(path),$get(filename_ext),Scan\Cover*.png)),
  222. $replace($get(path),$get(filename_ext),Scan\Cover*.png),
  223. $if(
  224. $fileexists($replace($get(path),$get(filename_ext),Scan\%album%*.png)),
  225. $replace($get(path),$get(filename_ext),Scan\%album%*.png),
  226. $if(
  227. $fileexists($replace($get(path),$get(filename_ext),Scan\%album%*.jpg)),
  228. $replace($get(path),$get(filename_ext),Scan\%album%*.jpg),
  229. $if(
  230. $fileexists($replace($get(path),$get(filename_ext),Scan\*front*.jpg)),
  231. $replace($get(path),$get(filename_ext),Scan\*front*.jpg),
  232. $if(
  233. $fileexists($replace($get(path),$get(filename_ext),Scan\*folder*.jpg)),
  234. $replace($get(path),$get(filename_ext),Scan\*folder*.jpg),
  235. $if(
  236. $fileexists($replace($get(path),$get(filename_ext),Scan\*Cover*.jpg)),
  237. $replace($get(path),$get(filename_ext),Scan\*Cover*.jpg),
  238. $if(
  239. $fileexists($replace($get(path),$get(filename_ext),Scan\*front*.png)),
  240. $replace($get(path),$get(filename_ext),Scan\*front*.png),
  241. $if(
  242. $fileexists($replace($get(path),$get(filename_ext),Scan\*folder*.png)),
  243. $replace($get(path),$get(filename_ext),Scan\*folder*.png),
  244. $if(
  245. $fileexists($replace($get(path),$get(filename_ext),Scan\*Cover*.png)),
  246. $replace($get(path),$get(filename_ext),Scan\*Cover*.png),
  247. $if(
  248. $fileexists($replace($get(path),$get(filename_ext),Scan\*%album%*.png)),
  249. $replace($get(path),$get(filename_ext),Scan\*%album%*.png),
  250. $if(
  251. $fileexists($replace($get(path),$get(filename_ext),Scan\*%album%*.jpg)),
  252. $replace($get(path),$get(filename_ext),Scan\*%album%*.jpg),
  253. $if(
  254. $fileexists($replace($get(path),$get(filename_ext),Scan\*.JPG)),
  255. $replace($get(path),$get(filename_ext),Scan\*.jpg),
  256. $if(
  257. $fileexists($replace($get(path),$get(filename_ext),Scan\*.PNG)),
  258. $replace($get(path),$get(filename_ext),Scan\*.png),
  259. $if(
  260. $fileexists($replace($get(path),$get(filename_ext),Scans\front*.jpg)),
  261. $replace($get(path),$get(filename_ext),Scans\front*.jpg),
  262. $if(
  263. $fileexists($replace($get(path),$get(filename_ext),Scans\folder*.jpg)),
  264. $replace($get(path),$get(filename_ext),Scans\folder*.jpg),
  265. $if(
  266. $fileexists($replace($get(path),$get(filename_ext),Scans\Cover*.jpg)),
  267. $replace($get(path),$get(filename_ext),Scans\Cover*.jpg),
  268. $if(
  269. $fileexists($replace($get(path),$get(filename_ext),Scans\front*.png)),
  270. $replace($get(path),$get(filename_ext),Scans\front*.png),
  271. $if(
  272. $fileexists($replace($get(path),$get(filename_ext),Scans\folder*.png)),
  273. $replace($get(path),$get(filename_ext),Scans\folder*.png),
  274. $if(
  275. $fileexists($replace($get(path),$get(filename_ext),Scans\Cover*.png)),
  276. $replace($get(path),$get(filename_ext),Scans\Cover*.png),
  277. $if(
  278. $fileexists($replace($get(path),$get(filename_ext),Scans\%album%*.png)),
  279. $replace($get(path),$get(filename_ext),Scans\%album%*.png),
  280. $if(
  281. $fileexists($replace($get(path),$get(filename_ext),Scans\%album%*.jpg)),
  282. $replace($get(path),$get(filename_ext),Scans\%album%*.jpg),
  283. $if(
  284. $fileexists($replace($get(path),$get(filename_ext),Scans\*front*.jpg)),
  285. $replace($get(path),$get(filename_ext),Scans\*front*.jpg),
  286. $if(
  287. $fileexists($replace($get(path),$get(filename_ext),Scans\*folder*.jpg)),
  288. $replace($get(path),$get(filename_ext),Scans\*folder*.jpg),
  289. $if(
  290. $fileexists($replace($get(path),$get(filename_ext),Scans\*Cover*.jpg)),
  291. $replace($get(path),$get(filename_ext),Scans\*Cover*.jpg),
  292. $if(
  293. $fileexists($replace($get(path),$get(filename_ext),Scans\*front*.png)),
  294. $replace($get(path),$get(filename_ext),Scans\*front*.png),
  295. $if(
  296. $fileexists($replace($get(path),$get(filename_ext),Scans\*folder*.png)),
  297. $replace($get(path),$get(filename_ext),Scans\*folder*.png),
  298. $if(
  299. $fileexists($replace($get(path),$get(filename_ext),Scans\*Cover*.png)),
  300. $replace($get(path),$get(filename_ext),Scans\*Cover*.png),
  301. $if(
  302. $fileexists($replace($get(path),$get(filename_ext),Scans\*%album%*.png)),
  303. $replace($get(path),$get(filename_ext),Scans\*%album%*.png),
  304. $if(
  305. $fileexists($replace($get(path),$get(filename_ext),Scans\*%album%*.jpg)),
  306. $replace($get(path),$get(filename_ext),Scans\*%album%*.jpg),
  307. $if(
  308. $fileexists($replace($get(path),$get(filename_ext),Scans\*.JPG)),
  309. $replace($get(path),$get(filename_ext),Scans\*.jpg),
  310. $if(
  311. $fileexists($replace($get(path),$get(filename_ext),Scans\*.PNG)),
  312. $replace($get(path),$get(filename_ext),Scans\*.png),
  313. $if(
  314. $fileexists($replace($get(path),$get(filename_ext),Images\front*.jpg)),
  315. $replace($get(path),$get(filename_ext),Images\front*.jpg),
  316. $if(
  317. $fileexists($replace($get(path),$get(filename_ext),Images\folder*.jpg)),
  318. $replace($get(path),$get(filename_ext),Images\folder*.jpg),
  319. $if(
  320. $fileexists($replace($get(path),$get(filename_ext),Images\Cover*.jpg)),
  321. $replace($get(path),$get(filename_ext),Images\Cover*.jpg),
  322. $if(
  323. $fileexists($replace($get(path),$get(filename_ext),Images\front*.png)),
  324. $replace($get(path),$get(filename_ext),Images\front*.png),
  325. $if(
  326. $fileexists($replace($get(path),$get(filename_ext),Images\folder*.png)),
  327. $replace($get(path),$get(filename_ext),Images\folder*.png),
  328. $if(
  329. $fileexists($replace($get(path),$get(filename_ext),Images\Cover*.png)),
  330. $replace($get(path),$get(filename_ext),Images\Cover*.png),
  331. $if(
  332. $fileexists($replace($get(path),$get(filename_ext),Images\%album%*.png)),
  333. $replace($get(path),$get(filename_ext),Images\%album%*.png),
  334. $if(
  335. $fileexists($replace($get(path),$get(filename_ext),Images\%album%*.jpg)),
  336. $replace($get(path),$get(filename_ext),Images\%album%*.jpg),
  337. $if(
  338. $fileexists($replace($get(path),$get(filename_ext),Images\*front*.jpg)),
  339. $replace($get(path),$get(filename_ext),Images\*front*.jpg),
  340. $if(
  341. $fileexists($replace($get(path),$get(filename_ext),Images\*folder*.jpg)),
  342. $replace($get(path),$get(filename_ext),Images\*folder*.jpg),
  343. $if(
  344. $fileexists($replace($get(path),$get(filename_ext),Images\*Cover*.jpg)),
  345. $replace($get(path),$get(filename_ext),Images\*Cover*.jpg),
  346. $if(
  347. $fileexists($replace($get(path),$get(filename_ext),Images\*front*.png)),
  348. $replace($get(path),$get(filename_ext),Images\*front*.png),
  349. $if(
  350. $fileexists($replace($get(path),$get(filename_ext),Images\*folder*.png)),
  351. $replace($get(path),$get(filename_ext),Images\*folder*.png),
  352. $if(
  353. $fileexists($replace($get(path),$get(filename_ext),Images\*Cover*.png)),
  354. $replace($get(path),$get(filename_ext),Images\*Cover*.png),
  355. $if(
  356. $fileexists($replace($get(path),$get(filename_ext),Images\*%album%*.png)),
  357. $replace($get(path),$get(filename_ext),Images\*%album%*.png),
  358. $if(
  359. $fileexists($replace($get(path),$get(filename_ext),Images\*%album%*.jpg)),
  360. $replace($get(path),$get(filename_ext),Images\*%album%*.jpg),
  361. $if(
  362. $fileexists($replace($get(path),$get(filename_ext),Images\*.JPG)),
  363. $replace($get(path),$get(filename_ext),Images\*.jpg),
  364. $if(
  365. $fileexists($replace($get(path),$get(filename_ext),Images\*.PNG)),
  366. $replace($get(path),$get(filename_ext),Images\*.png),
  367. $if(
  368. $fileexists($replace($get(path),%directoryname%'\'$get(filename_ext),)\*.JPG),
  369. $replace($get(path),%directoryname%'\'$get(filename_ext),)\*.jpg,
  370. $if(
  371. $fileexists($replace($get(path),%directoryname%'\'$get(filename_ext),)\*.PNG),
  372. $replace($get(path),%directoryname%'\'$get(filename_ext),)\*.png,
  373. $if(
  374. $fileexists($replace(C:\Foobar2000\AlbumArt\Artist\$if2(%artist%,).jpg,?,)),
  375. $replace(C:\Foobar2000\AlbumArt\Artist\$if2(%artist%,).jpg,?,),
  376. )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
  377.  
  378.  
  379. $puts(number_of_images,
  380. $if($fileexists($replace($get(albumartpath),.,_20.)),20,
  381. $if($fileexists($replace($get(albumartpath),.,_19.)),19,
  382. $if($fileexists($replace($get(albumartpath),.,_18.)),18,
  383. $if($fileexists($replace($get(albumartpath),.,_17.)),17,
  384. $if($fileexists($replace($get(albumartpath),.,_16.)),16,
  385. $if($fileexists($replace($get(albumartpath),.,_15.)),15,
  386. $if($fileexists($replace($get(albumartpath),.,_14.)),14,
  387. $if($fileexists($replace($get(albumartpath),.,_13.)),13,
  388. $if($fileexists($replace($get(albumartpath),.,_12.)),12,
  389. $if($fileexists($replace($get(albumartpath),.,_11.)),11,
  390. $if($fileexists($replace($get(albumartpath),.,_10.)),10,
  391. $if($fileexists($replace($get(albumartpath),.,_9.)),9,
  392. $if($fileexists($replace($get(albumartpath),.,_8.)),8,
  393. $if($fileexists($replace($get(albumartpath),.,_7.)),7,
  394. $if($fileexists($replace($get(albumartpath),.,_6.)),6,
  395. $if($fileexists($replace($get(albumartpath),.,_5.)),5,
  396. $if($fileexists($replace($get(albumartpath),.,_4.)),4,
  397. $if($fileexists($replace($get(albumartpath),.,_3.)),3,
  398. $if($fileexists($replace($get(albumartpath),.,_2.)),2,
  399. $if($fileexists($get(albumartpath)),1,0
  400. ))))))))))))))))))))
  401. )
  402.  
  403.  
  404. $puts(display_time,$muldiv(%length_seconds%,10,$get(number_of_images)))
  405.  
  406.  
  407. $puts(albumartpath2,
  408. $ifgreater($div($get(display_time),10),%playback_time_seconds%,$get(albumartpath),
  409. $ifgreater($muldiv($get(display_time),2,10),%playback_time_seconds%,$replace($get(albumartpath),.,_2.),
  410. $ifgreater($muldiv($get(display_time),3,10),%playback_time_seconds%,$replace($get(albumartpath),.,_3.),
  411. $ifgreater($muldiv($get(display_time),4,10),%playback_time_seconds%,$replace($get(albumartpath),.,_4.),
  412. $ifgreater($muldiv($get(display_time),5,10),%playback_time_seconds%,$replace($get(albumartpath),.,_5.),
  413. $ifgreater($muldiv($get(display_time),6,10),%playback_time_seconds%,$replace($get(albumartpath),.,_6.),
  414. $ifgreater($muldiv($get(display_time),7,10),%playback_time_seconds%,$replace($get(albumartpath),.,_7.),
  415. $ifgreater($muldiv($get(display_time),8,10),%playback_time_seconds%,$replace($get(albumartpath),.,_8.),
  416. $ifgreater($muldiv($get(display_time),9,10),%playback_time_seconds%,$replace($get(albumartpath),.,_9.),
  417. $ifgreater($muldiv($get(display_time),10,10),%playback_time_seconds%,$replace($get(albumartpath),.,_10.),
  418. $ifgreater($muldiv($get(display_time),11,10),%playback_time_seconds%,$replace($get(albumartpath),.,_11.),
  419. $ifgreater($muldiv($get(display_time),12,10),%playback_time_seconds%,$replace($get(albumartpath),.,_12.),
  420. $ifgreater($muldiv($get(display_time),13,10),%playback_time_seconds%,$replace($get(albumartpath),.,_13.),
  421. $ifgreater($muldiv($get(display_time),14,10),%playback_time_seconds%,$replace($get(albumartpath),.,_14.),
  422. $ifgreater($muldiv($get(display_time),15,10),%playback_time_seconds%,$replace($get(albumartpath),.,_15.),
  423. $ifgreater($muldiv($get(display_time),16,10),%playback_time_seconds%,$replace($get(albumartpath),.,_16.),
  424. $ifgreater($muldiv($get(display_time),17,10),%playback_time_seconds%,$replace($get(albumartpath),.,_17.),
  425. $ifgreater($muldiv($get(display_time),18,10),%playback_time_seconds%,$replace($get(albumartpath),.,_18.),
  426. $ifgreater($muldiv($get(display_time),19,10),%playback_time_seconds%,$replace($get(albumartpath),.,_19.),
  427. $replace($get(albumartpath),.,_20.)
  428. )))))))))))))))))))
  429. )
  430.  
  431.  
  432. $imageabs2(
  433. $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),
  434. $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),
  435. 0,0,
  436. $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),
  437. $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),
  438. $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)),
  439. $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)),
  440. $get(albumartpath2),)
  441.  
  442. $imageabs2(
  443. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  444. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  445. 0,0,
  446. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  447. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  448. $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),
  449. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),8,$sub($get(half_height),$muldiv($sub(%_width%,16),63,70))),
  450. .\images\simple_1\overlay_2.png,alpha-50)
  451.  
  452. $imageabs2(
  453. $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),
  454. $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),
  455. 0,0,
  456. $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),
  457. $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),
  458. $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)),
  459. $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)),
  460. $get(albumartpath2),rotateflip-6)
  461.  
  462. $imageabs2(
  463. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  464. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  465. 0,0,
  466. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  467. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  468. $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),
  469. $get(half_height),
  470. .\images\simple_1\overlay_1.png,)
  471.  
  472.  
  473. $puts(title_font,$font(Meiryo,8,bold italic glow-97-140-218 glowalpha-100,255-255-255))
  474. $puts(name_font,$font(Meiryo,10,bold glow-97-140-218 glowalpha-180,255-255-255))
  475.  
  476. $alignabs(0,$get(half_height),%_width%,$sub($get(half_height),$get(progress_bar_layer_size)),center,middle)
  477. $crlf()$get(title_font)- T i t l e -
  478. $crlf()$if(%title%,$ifgreater($calcwidth($get(name_font)%title%),%_width%,$get(name_font)$insert(%title%,$crlf(),$div($len(%title%),2)),$get(name_font)%title%),-)
  479. $crlf()$get(title_font)- A r t i s t -
  480. $crlf()$if(%artist%,$ifgreater($calcwidth($get(name_font)%artist%),%_width%,$get(name_font)$insert(%artist%,$crlf(),$div($len(%artist%),2)),$get(name_font)%artist%),-)
  481. $crlf()$get(title_font)- A l b u m -
  482. $crlf()$if(%album%,$ifgreater($calcwidth($get(name_font)%album%),%_width%,$get(name_font)$insert(%album%,$crlf(),$div($len(%album%),2)),$get(name_font)%album%),-)
  483. $if(%songwriter%,$crlf()$get(title_font)- C o m p o s e r -$crlf()$ifgreater($calcwidth($get(name_font)%songwriter%),%_width%,$get(name_font)$insert(%songwriter%,$crlf(),$div($len(%songwriter%),2)),$get(name_font)%songwriter%),)
  484. //$crlf()$get(title_font)- Play Count -
  485. //$crlf()$if(%play_count%,%play_count%,-)
  486.  
  487.  
  488.  
  489. $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))
  490. $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))
  491.  
  492. $if($or(%isplaying%,%ispaused%),
  493. $ifequal($right(%playback_time_seconds%,1),0,
  494. $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,),
  495. $ifequal($right(%playback_time_seconds%,1),1,
  496. $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,),
  497. $ifequal($right(%playback_time_seconds%,1),2,
  498. $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,),
  499. $ifequal($right(%playback_time_seconds%,1),3,
  500. $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,),
  501. $ifequal($right(%playback_time_seconds%,1),4,
  502. $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,),
  503. $ifequal($right(%playback_time_seconds%,1),5,
  504. $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,),
  505. $ifequal($right(%playback_time_seconds%,1),6,
  506. $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,),
  507. $ifequal($right(%playback_time_seconds%,1),7,
  508. $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,),
  509. $ifequal($right(%playback_time_seconds%,1),8,
  510. $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,),
  511. $ifequal($right(%playback_time_seconds%,1),9,
  512. $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,),
  513. )))))))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement