Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- Options:
- title: General Options
- bgtheme:
- title: Background Lightness
- description: Specify your background lightness
- module: dropdown
- value: light
- dark: Dark
- light: Light
- boxcont:
- title: Box Contents
- description: Select the data viewed
- module: dropdown
- value: watching
- watching: Currently Watching
- watched: Finished Watching
- mylist: MyList Stats
- charperline:
- title: Characters per Line
- description: Choose how many characters per line for Contents Box
- module: slider
- regex: /\D+/
- value: 31
- start: 31
- end: 75
- boxside:
- title: Box side position(HC mod)
- description: Select the side to display the box contents
- module: dropdown
- value: left
- left: Left side (default)
- right: Right side
- boxoffset:
- title: Content box left/right offset
- description: Left/Right offset of Contents Box in left/right side alignment
- module: slider
- regex: /\D+/
- value: 20
- start: 0
- end: 200
- boxtopoffset:
- title: Content box top offset
- description: Top offset between Contents Box and Top Bar
- module: slider
- regex: /\D+/
- value: 15
- start: 0
- end: 200
- boxalpha:
- title: Contents box alpha
- description: Alpha of Contents box
- module: slider
- regex: /\D+/
- value: 50
- start: 0
- end: 100
- -->
- <signature>
- <!-- This One with Titles Shading -->
- <!-- Settings -->
- {{ @bkg_theme=if($Options_bgtheme=="light","1","0")}}
- {{ @line_chars = if($Options_charperline,$Options_charperline,31) }}
- <!-- Variables -->
- {{ @bar_height = 15 }}
- {{ @bottombar_height = 20 }}
- {{ @box_alpha = $Options_boxalpha }}
- <!-- Variables End -->
- <!-- Padding for output -->
- {{ @watch_pad= @line_chars - 8}}
- {{ @mylist_pad= @line_chars - 18}}
- <!-- Width for Time Wasted bar unit -->
- {{ @time_unit = div($Sig_width,6) }}
- <!-- Box Width according to Chars/Line -->
- {{ @box_width= 10 + floor(@line_chars * 6)}}
- <!-- Set Variables for Background Lightness -->
- {{ @border_clr=if(@bkg_theme==1,"#000000","#ffffff") }}
- {{ @boxbg_clr=if(@bkg_theme==1,"#ffffff","#000000") }}
- {{ @txt_clr=if(@bkg_theme==1,"#000000","#ffffff") }}
- {{ @shadow_clr=if(@bkg_theme==1,"#ffffff","#000000") }}
- <!-- Prepare Box Contents -->
- <!-- Currently Watching Selected -->
- {{ @box_title=if($Options_boxcont=="watching","Currently Watching:","") }}
- {{ @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),"") }}
- {{ @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),"") }}
- {{ @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),"") }}
- {{ @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),"") }}
- {{ @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),"") }}
- <!-- Finished Watching Selected -->
- {{ @box_title=if($Options_boxcont=="watched","Finished Watching:",@box_title) }}
- {{ @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) }}
- {{ @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) }}
- {{ @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) }}
- {{ @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) }}
- {{ @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) }}
- <!-- MyList stats Selected -->
- {{ @box_title=if($Options_boxcont=="mylist","MyList Statistics:",@box_title) }}
- {{ @ln1=if($Options_boxcont=="mylist",padding(truncate("Anime", @mylist_pad, ".."), @mylist_pad, "left") + padding($stat_mylist_acount, 18) ,@ln1) }}
- {{ @ln2=if($Options_boxcont=="mylist",padding(truncate("Episodes", @mylist_pad, ".."), @mylist_pad, "left") + padding($stat_mylist_epcount, 18) ,@ln2) }}
- {{ @ln3=if($Options_boxcont=="mylist",padding(truncate("Files", @mylist_pad, ".."), @mylist_pad, "left") + padding($stat_mylist_fcount, 18) ,@ln3) }}
- {{ @ln4=if($Options_boxcont=="mylist",padding(truncate("Size of files", @mylist_pad, ".."), @mylist_pad, "left") + padding(round($stat_mylist_fsize / 1024) + " GiB", 18) ,@ln4) }}
- {{ @ln5=if($Options_boxcont=="mylist",padding(truncate("Watched", @mylist_pad, ".."), @mylist_pad, "left") + padding($stat_anidb_ownviewedp + " %", 18) ,@ln5) }}
- <!-- Box Height=sum of hight of present lines -->
- {{ @box_height=if(@ln1,13,0) + if(@ln2,13,0) + if(@ln3,13,0) + if(@ln4,13,0) + if(@ln5,13,0) }}
- <!-- Calculate Time Wasted -->
- {{ @wtc_mins = $stat_anidb_viewedlength }}
- {{ @wtc_hrs = div(@wtc_mins,60) }}
- {{ @temp = @wtc_hrs * 60 }}
- {{ @wtc_mins = @wtc_mins - @temp }}
- {{ @wtc_days = div(@wtc_hrs,24) }}
- {{ @temp = @wtc_days * 24 }}
- {{ @wtc_hrs = @wtc_hrs - @temp }}
- {{ @wtc_mons = div(@wtc_days,30) }}
- {{ @temp = @wtc_mons * 30 }}
- {{ @wtc_days = @wtc_days - @temp }}
- {{ @wtc_wks = div(@wtc_days,7) }}
- {{ @temp = @wtc_wks * 7 }}
- {{ @wtc_days = @wtc_days - @temp }}
- {{ @wtc_yrs = div(@wtc_mons,12) }}
- {{ @temp = @wtc_yrs * 12 }}
- {{ @wtc_mons = @wtc_mons - @temp }}
- <!-- Calculate Time Wasted Bar Width -->
- {{ @time_wasted_wd = 0 }}
- {{ @time_wasted_wd = if(@wtc_yrs>0,@time_unit*5+(@wtc_yrs/10)*@time_unit,0) }}
- {{ @time_wasted_wd = if(@time_wasted_wd==0,if(@wtc_mons>0,@time_unit*4+(@wtc_mons/12)*@time_unit,0),@time_wasted_wd) }}
- {{ @time_wasted_wd = if(@time_wasted_wd==0,if(@wtc_wks>0,@time_unit*3+(@wtc_wks/4)*@time_unit,0),@time_wasted_wd) }}
- {{ @time_wasted_wd = if(@time_wasted_wd==0,if(@wtc_days>0,@time_unit*2+(@wtc_days/7)*@time_unit,0),@time_wasted_wd) }}
- {{ @time_wasted_wd = if(@time_wasted_wd==0,if(@wtc_hrs>0,@time_unit*1+(@wtc_hrs/24)*@time_unit,0),@time_wasted_wd) }}
- {{ @time_wasted_wd = if(@time_wasted_wd==0,if(@wtc_mins>0,@time_unit*0+(@wtc_mins/60)*@time_unit,0),@time_wasted_wd) }}
- <!-- hc mod -->
- {{ @box_top_offset = $Options_boxtopoffset }}
- {{ @box_left_offset = if($Options_boxside=="left",$Options_boxoffset,($Sig_width-@box_width-$Options_boxoffset)) }}
- <defaults>
- <text
- face="proggytiny"
- size="12"
- color="#ffffff"
- line-space="1.0"
- alpha="55"
- />
- <shape
- type="rectangle"
- size="{{ $Sig_width }}x{{ @bar_height }}"
- alpha="75"
- />
- <shape
- type="line"
- color="#777777"
- alpha="75"
- />
- </defaults>
- <layout>
- <!-- Contents Box -->
- <!-- Fake Shading for Box Title -->
- <text
- face="verdana"
- position="{{ @box_left_offset + 4 }}x{{ @bar_height + @box_top_offset }}"
- color="{{ @shadow_clr }}"
- alpha="100"
- size="8"
- >
- <line>{{ @box_title }}</line>
- </text>
- <text
- face="verdana"
- position="{{ @box_left_offset + 6 }}x{{ @bar_height + @box_top_offset }}"
- color="{{ @shadow_clr }}"
- alpha="100"
- size="8"
- >
- <line>{{ @box_title }}</line>
- </text>
- <text
- face="verdana"
- position="{{ @box_left_offset + 5 }}x{{ @bar_height + @box_top_offset -1 }}"
- color="{{ @shadow_clr }}"
- alpha="100"
- size="8"
- >
- <line>{{ @box_title }}</line>
- </text>
- <text
- face="verdana"
- position="{{ @box_left_offset + 4 }}x{{ @bar_height + @box_top_offset + 1 }}"
- color="{{ @shadow_clr }}"
- alpha="100"
- size="8"
- >
- <line>{{ @box_title }}</line>
- </text>
- <!-- Box Title -->
- <text
- face="verdana"
- position="{{ @box_left_offset + 5 }}x{{ @bar_height + @box_top_offset }}"
- color="{{ @txt_clr }}"
- alpha="100"
- size="8"
- >
- <line>{{ @box_title }}</line>
- </text>
- <!-- Box Rectangle -->
- <shape
- type="rectangle"
- position="{{ @box_left_offset }}x{{ @bar_height + @box_top_offset + 5 }}"
- size="{{ @box_width }}x{{ @box_height }}"
- alpha="{{ @box_alpha }}"
- display="true"
- color="{{ @boxbg_clr }}"
- />
- <!-- Box Contents -->
- <text
- position="{{ @box_left_offset + 5 }}x{{ @bar_height + @box_top_offset + 15 }}"
- color="{{ @txt_clr }}"
- alpha="100"
- >
- <line display="if(@ln1)">{{ @ln1 }}</line>
- <line display="if(@ln2)">{{ @ln2 }}</line>
- <line display="if(@ln3)">{{ @ln3 }}</line>
- <line display="if(@ln4)">{{ @ln4 }}</line>
- <line display="if(@ln5)">{{ @ln5 }}</line>
- </text>
- <!-- Box End -->
- <!-- Top Bar -->
- <shape
- type="rectangle"
- position="0x0"
- color="#000000"
- />
- <text
- position="6x11"
- face="verdana"
- size="7"
- alpha="100"
- >
- <line>{{ $Sig_username }}</line>
- </text>
- <text
- position="{{ $Sig_width - 5 }}x11"
- face="verdana"
- size="7"
- align="bottom-right"
- color="#ffffff"
- >
- <line>anidb.net/u{{ $Sig_uid }}</line>
- </text>
- <!-- Top Bar End -->
- <!-- Bottom Bar -->
- <shape
- type="rectangle"
- position="0x{{ $Sig_height - @bottombar_height }}"
- size="{{ $Sig_width }}x{{ $Sig_height - @bottombar_height }}"
- color="#000000"
- alpha="80"
- />
- <shape
- type="line"
- position="0x{{ $Sig_height - @bottombar_height + 5 }}"
- size="{{ $Sig_width }}x{{ $Sig_height - @bar_height }}"
- alpha="100"
- />
- <!-- Bottom Bar End -->
- <!-- Wasted time title -->
- <!-- Fake Shading For Time Wasted -->
- <text
- face="verdana"
- position="4x{{ $Sig_height - @bottombar_height - 3}}"
- color="{{ @shadow_clr }}"
- alpha="100"
- size="8"
- >
- <line>Time Wasted:</line>
- </text>
- <text
- face="verdana"
- position="6x{{ $Sig_height - @bottombar_height - 3}}"
- color="{{ @shadow_clr }}"
- alpha="100"
- size="8"
- >
- <line>Time Wasted:</line>
- </text>
- <text
- face="verdana"
- position="5x{{ $Sig_height - @bottombar_height - 2}}"
- color="{{ @shadow_clr }}"
- alpha="100"
- size="8"
- >
- <line>Time Wasted:</line>
- </text>
- <text
- face="verdana"
- position="5x{{ $Sig_height - @bottombar_height - 4}}"
- color="{{ @shadow_clr }}"
- alpha="100"
- size="8"
- >
- <line>Time Wasted:</line>
- </text>
- <!-- Time Wasted title text -->
- <text
- face="verdana"
- position="5x{{ $Sig_height - @bottombar_height - 3}}"
- color="{{ @txt_clr }}"
- alpha="100"
- size="8"
- >
- <line>Time Wasted:</line>
- </text>
- <!-- Wasted time title End -->
- <!-- Time Line Bar -->
- <shape
- type="line"
- position="0x{{ $Sig_height - @bottombar_height }}"
- size="0x{{ $Sig_height }}"
- color="#ffffff"
- display="false"
- />
- <text
- position="2x{{ $Sig_height - 4 }}"
- face="verdana"
- size="7"
- color="#ffffff"
- alpha="100"
- >
- <line>{{ @wtc_mins }} minutes</line>
- </text>
- <shape
- type="line"
- position="{{ @time_unit * 1 }}x{{ $Sig_height - @bottombar_height }}"
- size="{{ @time_unit * 1 }}x{{ $Sig_height }}"
- color="#ffffff"
- />
- <text
- position="{{ (@time_unit * 1) + 4 }}x{{ $Sig_height - 4 }}"
- face="verdana"
- size="7"
- color="#ffffff"
- alpha="100"
- >
- <line>{{ @wtc_hrs }} hours</line>
- </text>
- <shape
- type="line"
- position="{{ @time_unit * 2 }}x{{ $Sig_height - @bottombar_height }}"
- size="{{ @time_unit * 2 }}x{{ $Sig_height }}"
- color="#ffffff"
- />
- <text
- position="{{ (@time_unit * 2) + 4 }}x{{ $Sig_height - 4 }}"
- face="verdana"
- size="7"
- color="#ffffff"
- alpha="100"
- >
- <line>{{ @wtc_days }} days</line>
- </text>
- <shape
- type="line"
- position="{{ @time_unit * 3 }}x{{ $Sig_height - @bottombar_height }}"
- size="{{ @time_unit * 3 }}x{{ $Sig_height }}"
- color="#ffffff"
- />
- <text
- position="{{ (@time_unit * 3) + 4 }}x{{ $Sig_height - 4 }}"
- face="verdana"
- size="7"
- color="#ffffff"
- alpha="100"
- >
- <line>{{ @wtc_wks }} weeks</line>
- </text>
- <shape
- type="line"
- position="{{ @time_unit * 4 }}x{{ $Sig_height - @bottombar_height }}"
- size="{{ @time_unit * 4 }}x{{ $Sig_height }}"
- color="#ffffff"
- />
- <text
- position="{{ (@time_unit * 4) + 4 }}x{{ $Sig_height - 4 }}"
- face="verdana"
- size="7"
- color="#ffffff"
- alpha="100"
- >
- <line>{{ @wtc_mons }} months</line>
- </text>
- <shape
- type="line"
- position="{{ @time_unit * 5 }}x{{ $Sig_height - @bottombar_height }}"
- size="{{ @time_unit * 5 }}x{{ $Sig_height }}"
- color="#ffffff"
- />
- <text
- position="{{ (@time_unit * 5) + 4 }}x{{ $Sig_height - 4 }}"
- face="verdana"
- size="7"
- color="#ffffff"
- alpha="100"
- >
- <line>{{ @wtc_yrs }} years</line>
- </text>
- <!-- Time Line Bar End -->
- <!-- Wasted Time Bar -->
- <shape
- type="rectangle"
- position="0x{{ $Sig_height - @bottombar_height }}"
- size="{{ $Sig_width }}x5"
- color="#ffffff"
- />
- <shape
- type="rectangle"
- position="0x{{ $Sig_height - @bottombar_height }}"
- size="{{ floor(@time_wasted_wd) }}x5"
- color="#ff0000"
- alpha="60"
- />
- <shape
- type="line"
- position="0x{{ $Sig_height - @bottombar_height }}"
- size="{{ $Sig_width }}x{{ $Sig_height - @bottombar_height }}"
- color="{{ @border_clr }}"
- alpha="90"
- />
- <!-- Wasted Time Bar End -->
- </layout>
- </signature>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement