Hi
Thanks to the new functions of foo_cwb_hooks i wanted to try to do a new kind of progress bar
A sort of scrolling timeline.
$puts(x,$muldiv(%playback_time_seconds%,%_width%,%length_seconds%))
// NOW PLAYING ////////////////////////////////////////////
$drawrect($sub(0,$get(x)),,%_width%,%_height%,pencolor-112-112-128 brushcolor-5-0-5 width-5)
$puts(b25,$muldiv(%_width%,25,100))
$drawrect($sub($get(b25),$get(x)),0,2,$muldiv(%_height%,20,100),pencolor-112-112-128)
$puts(b50,$muldiv(%_width%,50,100))
$drawrect($sub($get(b50),$get(x)),0,2,$muldiv(%_height%,30,100),pencolor-112-112-128)
$puts(b75,$muldiv(%_width%,75,100))
$drawrect($sub($get(b75),$get(x)),0,2,$muldiv(%_height%,40,100),pencolor-112-112-128)
$alignabs($sub(0,$get(x),10),5,%_width%,%_height%,right,top)
$font(Arial,16,bold,192-144-255)
[%playback_time_remaining%]
$alignabs($sub(0,$get(x),10),0,%_width%,%_height%,right,middle)
$font(Arial,12,bold,64-0-128)
['['%date%'] '][%album%][' [cd'%disc%'] ']
$alignabs($sub(0,$get(x),10),-5,%_width%,%_height%,right,bottom)
$font(Arial,16,bold,192-144-255)
[%artist%]
$alignabs(10,0,%_width%,%_height%,left,middle)
$font(Arial,18,bold glow-128-0-255 glowblur-5,16-0-32)
[%title%]
// NEXT SONG ///////////////////////////////////////////////
$drawrect($sub(%_width%,$get(x)),,%_width%,%_height%,pencolor-112-112-128 brushcolor-64-64-64 width-5)
$font(Arial,46,bold shadow,64-64-64)
$alignabs($add($sub(%_width%,$get(x)),10),0,%_width%,%_height%,left,middle)
'COMING NeXT'
$font(Arial,16,bold shadow,112-112-112)
$puts(th,$calcheight(%cwb_next_artist%))
$alignabs($add($sub(%_width%,$get(x)),10),$sub(%_height%,$get(th),5),$sub($max($get(x),20),20),$get(th),right,bottom)
[%cwb_next_artist%]
$font(Arial,18,bold shadow,128-128-128)
$alignabs($add($sub(%_width%,$get(x)),10),0,%_width%,%_height%,left,middle)
[%cwb_next_title%]
Requirements:
- Vertical & Horizontal padding : 0
- Minimum height: 75
- Update every second: checked
- foo_cwb_hooks.dll
Works only for default playback order