kreton

Pasta

Jul 10th, 2013
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.03 KB | None | 0 0
  1. <!--
  2. Options:
  3. title: General Options
  4.  
  5. bgtheme:
  6. title: Background Lightness
  7. description: Specify your background lightness
  8. module: dropdown
  9. value: light
  10. dark: Dark
  11. light: Light
  12.  
  13. boxcont:
  14. title: Box Contents
  15. description: Select the data viewed
  16. module: dropdown
  17. value: watching
  18. watching: Currently Watching
  19. watched: Finished Watching
  20. mylist: MyList Stats
  21.  
  22. charperline:
  23. title: Characters per Line
  24. description: Choose how many characters per line for Contents Box
  25. module: slider
  26. regex: /\D+/
  27. value: 31
  28. start: 31
  29. end: 75
  30.  
  31. boxside:
  32. title: Box side position(HC mod)
  33. description: Select the side to display the box contents
  34. module: dropdown
  35. value: left
  36. left: Left side (default)
  37. right: Right side
  38.  
  39. boxoffset:
  40. title: Content box left/right offset
  41. description: Left/Right offset of Contents Box in left/right side alignment
  42. module: slider
  43. regex: /\D+/
  44. value: 20
  45. start: 0
  46. end: 200
  47.  
  48. boxtopoffset:
  49. title: Content box top offset
  50. description: Top offset between Contents Box and Top Bar
  51. module: slider
  52. regex: /\D+/
  53. value: 30
  54. start: 0
  55. end: 200
  56.  
  57. boxalpha:
  58. title: Contents box alpha
  59. description: Alpha of Contents box
  60. module: slider
  61. regex: /\D+/
  62. value: 50
  63. start: 0
  64. end: 100
  65.  
  66. -->
  67. <signature>
  68. <!-- This One with Titles Shading -->
  69. <!-- Settings -->
  70. {{ @bkg_theme=if($Options_bgtheme=="light","0","0")}}
  71. {{ @line_chars = if($Options_charperline,$Options_charperline,31) }}
  72.  
  73. <!-- Variables -->
  74. {{ @bar_height = 15 }}
  75. {{ @bottombar_height = 20 }}
  76. {{ @box_alpha = $Options_boxalpha }}
  77.  
  78. <!-- Variables End -->
  79.  
  80. <!-- Padding for output -->
  81. {{ @watch_pad= @line_chars - 8}}
  82. {{ @mylist_pad= @line_chars - 18}}
  83. <!-- Width for Time Wasted bar unit -->
  84. {{ @time_unit = div($Sig_width,6) }}
  85. <!-- Box Width according to Chars/Line -->
  86. {{ @box_width= 10 + floor(@line_chars * 6)}}
  87.  
  88.  
  89. <!-- Set Variables for Background Lightness -->
  90. {{ @border_clr=if(@bkg_theme==0,"#ffffff","#ffffff") }}
  91. {{ @boxbg_clr=if(@bkg_theme==0,"#ffffff","#fce8e0") }}
  92. {{ @txt_clr=if(@bkg_theme==1,"#000000","#ffffff") }}
  93. {{ @shadow_clr=if(@bkg_theme==0,"#000000","#FFFFFF") }}
  94.  
  95. <!-- Prepare Box Contents -->
  96. <!-- Currently Watching Selected -->
  97. {{ @box_title=if($Options_boxcont=="watching","Currently Watching:","") }}
  98. {{ @ln1=if(($Options_boxcont=="watching") && if($watching_id1_aid),"1 " + padding(truncate($watching_id1_aname, @watch_pad, ".."), @watch_pad, "left") + padding($watching_id1_state_seenepcount + "/" + $watching_id1_eps, 6),"") }}
  99. {{ @ln2=if(($Options_boxcont=="watching") && if($watching_id2_aid),"2 " + padding(truncate($watching_id2_aname, @watch_pad, ".."), @watch_pad, "left") + padding($watching_id2_state_seenepcount + "/" + $watching_id2_eps, 6),"") }}
  100. {{ @ln3=if(($Options_boxcont=="watching") && if($watching_id3_aid),"3 " + padding(truncate($watching_id3_aname, @watch_pad, ".."), @watch_pad, "left") + padding($watching_id3_state_seenepcount + "/" + $watching_id3_eps, 6),"") }}
  101. {{ @ln4=if(($Options_boxcont=="watching") && if($watching_id4_aid),"4 " + padding(truncate($watching_id4_aname, @watch_pad, ".."), @watch_pad, "left") + padding($watching_id4_state_seenepcount + "/" + $watching_id4_eps, 6),"") }}
  102. {{ @ln5=if(($Options_boxcont=="watching") && if($watching_id5_aid),"5 " + padding(truncate($watching_id5_aname, @watch_pad, ".."), @watch_pad, "left") + padding($watching_id5_state_seenepcount + "/" + $watching_id5_eps, 6),"") }}
  103.  
  104. <!-- Finished Watching Selected -->
  105. {{ @box_title=if($Options_boxcont=="watched","Finished Watching:",@box_title) }}
  106. {{ @ln1=if(($Options_boxcont=="watched") && if($finishedwatching_id1_aid),"1 " + padding(truncate($finishedwatching_id1_aname, @watch_pad, ".."), @watch_pad, "left") + padding($finishedwatching_id1_state_seenepcount + "/" + $finishedwatching_id1_eps, 6),@ln1) }}
  107. {{ @ln2=if(($Options_boxcont=="watched") && if($finishedwatching_id2_aid),"2 " + padding(truncate($finishedwatching_id2_aname, @watch_pad, ".."), @watch_pad, "left") + padding($finishedwatching_id2_state_seenepcount + "/" + $finishedwatching_id2_eps, 6),@ln2) }}
  108. {{ @ln3=if(($Options_boxcont=="watched") && if($finishedwatching_id3_aid),"3 " + padding(truncate($finishedwatching_id3_aname, @watch_pad, ".."), @watch_pad, "left") + padding($finishedwatching_id3_state_seenepcount + "/" + $finishedwatching_id3_eps, 6),@ln3) }}
  109. {{ @ln4=if(($Options_boxcont=="watched") && if($finishedwatching_id4_aid),"4 " + padding(truncate($finishedwatching_id4_aname, @watch_pad, ".."), @watch_pad, "left") + padding($finishedwatching_id4_state_seenepcount + "/" + $finishedwatching_id4_eps, 6),@ln4) }}
  110. {{ @ln5=if(($Options_boxcont=="watched") && if($finishedwatching_id5_aid),"5 " + padding(truncate($finishedwatching_id5_aname, @watch_pad, ".."), @watch_pad, "left") + padding($finishedwatching_id5_state_seenepcount + "/" + $finishedwatching_id5_eps, 6),@ln5) }}
  111.  
  112. <!-- MyList stats Selected -->
  113. {{ @box_title=if($Options_boxcont=="mylist","MyList Statistics:",@box_title) }}
  114. {{ @ln1=if($Options_boxcont=="mylist",padding(truncate("Anime", @mylist_pad, ".."), @mylist_pad, "left") + padding($stat_mylist_acount, 18) ,@ln1) }}
  115. {{ @ln2=if($Options_boxcont=="mylist",padding(truncate("Episodes", @mylist_pad, ".."), @mylist_pad, "left") + padding($stat_mylist_epcount, 18) ,@ln2) }}
  116. {{ @ln3=if($Options_boxcont=="mylist",padding(truncate("Files", @mylist_pad, ".."), @mylist_pad, "left") + padding($stat_mylist_fcount, 18) ,@ln3) }}
  117. {{ @ln4=if($Options_boxcont=="mylist",padding(truncate("Size of files", @mylist_pad, ".."), @mylist_pad, "left") + padding(round($stat_mylist_fsize / 1024) + " GiB", 18) ,@ln4) }}
  118. {{ @ln5=if($Options_boxcont=="mylist",padding(truncate("Watched", @mylist_pad, ".."), @mylist_pad, "left") + padding($stat_anidb_ownviewedp + " %", 18) ,@ln5) }}
  119.  
  120. <!-- Box Height=sum of hight of present lines -->
  121. {{ @box_height=if(@ln1,13,0) + if(@ln2,13,0) + if(@ln3,13,0) + if(@ln4,13,0) + if(@ln5,13,0) }}
  122.  
  123. <!-- Calculate Time Wasted -->
  124. {{ @wtc_mins = $stat_anidb_viewedlength }}
  125. {{ @wtc_hrs = div(@wtc_mins,60) }}
  126. {{ @temp = @wtc_hrs * 60 }}
  127. {{ @wtc_mins = @wtc_mins - @temp }}
  128. {{ @wtc_days = div(@wtc_hrs,24) }}
  129. {{ @temp = @wtc_days * 24 }}
  130. {{ @wtc_hrs = @wtc_hrs - @temp }}
  131. {{ @wtc_mons = div(@wtc_days,30) }}
  132. {{ @temp = @wtc_mons * 30 }}
  133. {{ @wtc_days = @wtc_days - @temp }}
  134. {{ @wtc_wks = div(@wtc_days,7) }}
  135. {{ @temp = @wtc_wks * 7 }}
  136. {{ @wtc_days = @wtc_days - @temp }}
  137. {{ @wtc_yrs = div(@wtc_mons,12) }}
  138. {{ @temp = @wtc_yrs * 12 }}
  139. {{ @wtc_mons = @wtc_mons - @temp }}
  140.  
  141.  
  142.  
  143. <!-- Calculate Time Wasted Bar Width -->
  144. {{ @time_wasted_wd = 0 }}
  145. {{ @time_wasted_wd = if(@wtc_yrs>0,@time_unit*5+(@wtc_yrs/10)*@time_unit,0) }}
  146. {{ @time_wasted_wd = if(@time_wasted_wd==0,if(@wtc_mons>0,@time_unit*4+(@wtc_mons/12)*@time_unit,0),@time_wasted_wd) }}
  147. {{ @time_wasted_wd = if(@time_wasted_wd==0,if(@wtc_wks>0,@time_unit*3+(@wtc_wks/4)*@time_unit,0),@time_wasted_wd) }}
  148. {{ @time_wasted_wd = if(@time_wasted_wd==0,if(@wtc_days>0,@time_unit*2+(@wtc_days/7)*@time_unit,0),@time_wasted_wd) }}
  149. {{ @time_wasted_wd = if(@time_wasted_wd==0,if(@wtc_hrs>0,@time_unit*1+(@wtc_hrs/24)*@time_unit,0),@time_wasted_wd) }}
  150. {{ @time_wasted_wd = if(@time_wasted_wd==0,if(@wtc_mins>0,@time_unit*0+(@wtc_mins/60)*@time_unit,0),@time_wasted_wd) }}
  151.  
  152. <!-- hc mod -->
  153. {{ @box_top_offset = $Options_boxtopoffset }}
  154. {{ @box_left_offset = if($Options_boxside=="left",$Options_boxoffset,($Sig_width-@box_width-$Options_boxoffset)) }}
  155.  
  156. <defaults>
  157. <text
  158. face="proggytiny"
  159. size="12"
  160. color="#ffffff"
  161. line-space="1.0"
  162. alpha="55"
  163. />
  164. <shape
  165. type="rectangle"
  166. size="{{ $Sig_width }}x{{ @bar_height }}"
  167. alpha="75"
  168. />
  169. <shape
  170. type="line"
  171. color="#777777"
  172. alpha="0"
  173. />
  174. </defaults>
  175. <layout>
  176. <!-- Contents Box -->
  177.  
  178. <!-- Fake Shading for Box Title -->
  179. <text
  180. face="verdana"
  181. position="{{ @box_left_offset + 4 }}x{{ @bar_height + @box_top_offset }}"
  182. color="{{ @shadow_clr }}"
  183. alpha="100"
  184. size="8"
  185. >
  186. <line>{{ @box_title }}</line>
  187. </text>
  188. <text
  189. face="verdana"
  190. position="{{ @box_left_offset + 6 }}x{{ @bar_height + @box_top_offset }}"
  191. color="{{ @shadow_clr }}"
  192. alpha="100"
  193. size="8"
  194.  
  195. >
  196. <line>{{ @box_title }}</line>
  197. </text>
  198. <text
  199. face="verdana"
  200. position="{{ @box_left_offset + 5 }}x{{ @bar_height + @box_top_offset -1 }}"
  201. color="{{ @shadow_clr }}"
  202. alpha="100"
  203. size="8"
  204. >
  205. <line>{{ @box_title }}</line>
  206. </text>
  207. <text
  208. face="verdana"
  209. position="{{ @box_left_offset + 4 }}x{{ @bar_height + @box_top_offset + 1 }}"
  210. color="{{ @shadow_clr }}"
  211. alpha="100"
  212. size="8"
  213. >
  214. <line>{{ @box_title }}</line>
  215. </text>
  216.  
  217. <!-- Box Title -->
  218. <text
  219. face="verdana"
  220. position="{{ @box_left_offset + 5 }}x{{ @bar_height + @box_top_offset }}"
  221. color="{{ @txt_clr }}"
  222. alpha="100"
  223. size="8"
  224. >
  225. <line>{{ @box_title }}</line>
  226. </text>
  227. <!-- Box Rectangle -->
  228. <shape
  229. type="rectangle"
  230. position="{{ @box_left_offset }}x{{ @bar_height + @box_top_offset + 5 }}"
  231. size="{{ @box_width }}x{{ @box_height }}"
  232. alpha="{{ @box_alpha }}"
  233. display="true"
  234. color="{{ @boxbg_clr }}"
  235. />
  236. <!-- Box Contents -->
  237. <text
  238. position="{{ @box_left_offset + 5 }}x{{ @bar_height + @box_top_offset + 15 }}"
  239. color="{{ @txt_clr }}"
  240. alpha="100"
  241. >
  242. <line display="if(@ln1)">{{ @ln1 }}</line>
  243. <line display="if(@ln2)">{{ @ln2 }}</line>
  244. <line display="if(@ln3)">{{ @ln3 }}</line>
  245. <line display="if(@ln4)">{{ @ln4 }}</line>
  246. <line display="if(@ln5)">{{ @ln5 }}</line>
  247. </text>
  248.  
  249. <!-- Box End -->
  250.  
  251. <!-- Top Bar -->
  252. <shape
  253. type="rectangle"
  254. position="0x0"
  255. color="#000000"
  256. />
  257.  
  258. <text
  259. position="6x11"
  260. face="verdana"
  261. size="7"
  262. alpha="100"
  263. >
  264. <line>{{ $Sig_username }}</line>
  265. </text>
  266. <text
  267. position="{{ $Sig_width - 5 }}x11"
  268. face="verdana"
  269. size="7"
  270. align="bottom-right"
  271. color="#ffffff"
  272. >
  273. <line>anidb.net/u{{ $Sig_uid }}</line>
  274. </text>
  275. <!-- Top Bar End -->
  276.  
  277. <!-- Bottom Bar -->
  278. <shape
  279. type="rectangle"
  280. position="0x{{ $Sig_height - @bottombar_height }}"
  281. size="{{ $Sig_width }}x{{ $Sig_height - @bottombar_height }}"
  282. color="#000000"
  283. alpha="80"
  284. />
  285. <shape
  286. type="line"
  287. position="0x{{ $Sig_height - @bottombar_height + 5 }}"
  288. size="{{ $Sig_width }}x{{ $Sig_height - @bar_height }}"
  289. alpha="100"
  290. />
  291. <!-- Bottom Bar End -->
  292.  
  293. <!-- Wasted time title -->
  294.  
  295. <!-- Fake Shading For Time Wasted -->
  296. <text
  297. face="verdana"
  298. position="4x{{ $Sig_height - @bottombar_height - 3}}"
  299. color="{{ @shadow_clr }}"
  300. alpha="100"
  301. size="8"
  302. >
  303. <line>Time Wasted:</line>
  304. </text>
  305. <text
  306. face="verdana"
  307. position="6x{{ $Sig_height - @bottombar_height - 3}}"
  308. color="{{ @shadow_clr }}"
  309. alpha="100"
  310. size="8"
  311. >
  312. <line>Time Wasted:</line>
  313. </text>
  314. <text
  315. face="verdana"
  316. position="5x{{ $Sig_height - @bottombar_height - 2}}"
  317. color="{{ @shadow_clr }}"
  318. alpha="100"
  319. size="8"
  320. >
  321. <line>Time Wasted:</line>
  322. </text>
  323. <text
  324. face="verdana"
  325. position="5x{{ $Sig_height - @bottombar_height - 4}}"
  326. color="{{ @shadow_clr }}"
  327. alpha="100"
  328. size="8"
  329. >
  330. <line>Time Wasted:</line>
  331. </text>
  332. <!-- Time Wasted title text -->
  333. <text
  334. face="verdana"
  335. position="5x{{ $Sig_height - @bottombar_height - 3}}"
  336. color="{{ @txt_clr }}"
  337. alpha="100"
  338. size="8"
  339. >
  340. <line>Time Wasted:</line>
  341. </text>
  342. <!-- Wasted time title End -->
  343.  
  344. <!-- Time Line Bar -->
  345. <shape
  346. type="line"
  347. position="0x{{ $Sig_height - @bottombar_height }}"
  348. size="0x{{ $Sig_height }}"
  349. color="#ffffff"
  350. display="false"
  351. />
  352. <text
  353. position="2x{{ $Sig_height - 4 }}"
  354. face="verdana"
  355. size="7"
  356. color="#ffffff"
  357. alpha="100"
  358. >
  359. <line>{{ @wtc_mins }} minutes</line>
  360. </text>
  361. <shape
  362. type="line"
  363. position="{{ @time_unit * 1 }}x{{ $Sig_height - @bottombar_height }}"
  364. size="{{ @time_unit * 1 }}x{{ $Sig_height }}"
  365. color="#ffffff"
  366. />
  367. <text
  368. position="{{ (@time_unit * 1) + 4 }}x{{ $Sig_height - 4 }}"
  369. face="verdana"
  370. size="7"
  371. color="#ffffff"
  372. alpha="100"
  373. >
  374. <line>{{ @wtc_hrs }} hours</line>
  375. </text>
  376. <shape
  377. type="line"
  378. position="{{ @time_unit * 2 }}x{{ $Sig_height - @bottombar_height }}"
  379. size="{{ @time_unit * 2 }}x{{ $Sig_height }}"
  380. color="#ffffff"
  381. />
  382. <text
  383. position="{{ (@time_unit * 2) + 4 }}x{{ $Sig_height - 4 }}"
  384. face="verdana"
  385. size="7"
  386. color="#ffffff"
  387. alpha="100"
  388. >
  389. <line>{{ @wtc_days }} days</line>
  390. </text>
  391. <shape
  392. type="line"
  393. position="{{ @time_unit * 3 }}x{{ $Sig_height - @bottombar_height }}"
  394. size="{{ @time_unit * 3 }}x{{ $Sig_height }}"
  395. color="#ffffff"
  396. />
  397. <text
  398. position="{{ (@time_unit * 3) + 4 }}x{{ $Sig_height - 4 }}"
  399. face="verdana"
  400. size="7"
  401. color="#ffffff"
  402. alpha="100"
  403. >
  404. <line>{{ @wtc_wks }} weeks</line>
  405. </text>
  406. <shape
  407. type="line"
  408. position="{{ @time_unit * 4 }}x{{ $Sig_height - @bottombar_height }}"
  409. size="{{ @time_unit * 4 }}x{{ $Sig_height }}"
  410. color="#ffffff"
  411. />
  412. <text
  413. position="{{ (@time_unit * 4) + 4 }}x{{ $Sig_height - 4 }}"
  414. face="verdana"
  415. size="7"
  416. color="#ffffff"
  417. alpha="100"
  418. >
  419. <line>{{ @wtc_mons }} months</line>
  420. </text>
  421. <shape
  422. type="line"
  423. position="{{ @time_unit * 5 }}x{{ $Sig_height - @bottombar_height }}"
  424. size="{{ @time_unit * 5 }}x{{ $Sig_height }}"
  425. color="#ffffff"
  426. />
  427. <text
  428. position="{{ (@time_unit * 5) + 4 }}x{{ $Sig_height - 4 }}"
  429. face="verdana"
  430. size="7"
  431. color="#ffffff"
  432. alpha="100"
  433. >
  434. <line>{{ @wtc_yrs }} years</line>
  435. </text>
  436. <!-- Time Line Bar End -->
  437.  
  438. <!-- Wasted Time Bar -->
  439. <shape
  440. type="rectangle"
  441. position="0x{{ $Sig_height - @bottombar_height }}"
  442. size="{{ $Sig_width }}x5"
  443. color="#ffffff"
  444. />
  445. <shape
  446. type="rectangle"
  447. position="0x{{ $Sig_height - @bottombar_height }}"
  448. size="{{ floor(@time_wasted_wd) }}x5"
  449. color="#0000ff"
  450. alpha="60"
  451. />
  452. <shape
  453. type="line"
  454. position="0x{{ $Sig_height - @bottombar_height }}"
  455. size="{{ $Sig_width }}x{{ $Sig_height - @bottombar_height }}"
  456. color="{{ @border_clr }}"
  457. alpha="90"
  458. />
  459.  
  460. <!-- Wasted Time Bar End -->
  461. </layout>
  462. </signature>
Advertisement
Add Comment
Please, Sign In to add comment