Help - Search - Members - Calendar
Full Version: Track Info Panel with ability to change font
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
spex04
QUOTE(metal_termite @ Sep 19 2006, 22:44) *

IPB Image

CODE

$font(,,nocleartype,)
default Tahoma 8pt as set in trackinfo configuration

$char(10)

$font(tahoma,8,nocleartype,)
Tahoma 8 as set by '$font' function



Funnily enough, it seems to be only font size 8 that has the problem. I tried it with sizes 7, 9, 10 and 12 and the fonts were the same, but when I tried it with size 8, the $font() defined line produced a smaller font.

Weird.. blink.gif
Nickoladze
im using this to display lyrics and is there a way i can add a scrollbar to the side of it so i can scroll through the lyrics? i tried some lyrics panels but they all autoscroll and I can't get any of them to let me manually scroll.
spex04
QUOTE(Nickoladze @ Sep 20 2006, 02:47) *

im using this to display lyrics and is there a way i can add a scrollbar to the side of it so i can scroll through the lyrics? i tried some lyrics panels but they all autoscroll and I can't get any of them to let me manually scroll.


You can scroll with the mouse wheel, but it would be nice to have a scrollbar option.
Nickoladze
QUOTE(spex04 @ Sep 19 2006, 20:41) *

QUOTE(Nickoladze @ Sep 20 2006, 02:47) *

im using this to display lyrics and is there a way i can add a scrollbar to the side of it so i can scroll through the lyrics? i tried some lyrics panels but they all autoscroll and I can't get any of them to let me manually scroll.


You can scroll with the mouse wheel, but it would be nice to have a scrollbar option.


im on a laptop, no mouse wheel wink.gif
mil3s
QUOTE(spex04 @ Sep 19 2006, 16:34) *

QUOTE(metal_termite @ Sep 19 2006, 22:44) *

IPB Image

CODE

$font(,,nocleartype,)
default Tahoma 8pt as set in trackinfo configuration

$char(10)

$font(tahoma,8,nocleartype,)
Tahoma 8 as set by '$font' function



Funnily enough, it seems to be only font size 8 that has the problem. I tried it with sizes 7, 9, 10 and 12 and the fonts were the same, but when I tried it with size 8, the $font() defined line produced a smaller font.

Weird.. blink.gif

The problem for me is 9. $font 9 = font setting 10. And the difference in size between $font 8 and 9 is too big. The $font sizes should be consistent with the sizes in font settings, shouldn't they? terrestrial, is it possible to fix this?
Yotsuya
terrestrial: any plans on adding the $imageabs2() function to this component like you did with singlecolumnsplaylist?
rouge
IPB Image

I made a circle-spinny progress thing. It advances during playback. I know this is overkill, but it looks cool.

CODE
$if($stricmp($mod(%_time_elapsed_seconds%,40),0),$imageabs($sub(%_width%,102),3,images\count1.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),1),$imageabs($sub(%_width%,102),3,images\count2.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),2),$imageabs($sub(%_width%,102),3,images\count3.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),3),$imageabs($sub(%_width%,102),3,images\count4.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),4),$imageabs($sub(%_width%,102),3,images\count5.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),5),$imageabs($sub(%_width%,102),3,images\count6.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),6),$imageabs($sub(%_width%,102),3,images\count7.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),7),$imageabs($sub(%_width%,102),3,images\count8.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),8),$imageabs($sub(%_width%,102),3,images\count9.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),9),$imageabs($sub(%_width%,102),3,images\count10.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),10),$imageabs($sub(%_width%,102),3,images\count11.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),11),$imageabs($sub(%_width%,102),3,images\count12.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),12),$imageabs($sub(%_width%,102),3,images\count13.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),13),$imageabs($sub(%_width%,102),3,images\count14.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),14),$imageabs($sub(%_width%,102),3,images\count15.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),15),$imageabs($sub(%_width%,102),3,images\count16.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),16),$imageabs($sub(%_width%,102),3,images\count17.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),17),$imageabs($sub(%_width%,102),3,images\count18.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),18),$imageabs($sub(%_width%,102),3,images\count19.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),19),$imageabs($sub(%_width%,102),3,images\count20.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),20),$imageabs($sub(%_width%,102),3,images\count21.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),21),$imageabs($sub(%_width%,102),3,images\count22.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),22),$imageabs($sub(%_width%,102),3,images\count23.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),23),$imageabs($sub(%_width%,102),3,images\count24.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),24),$imageabs($sub(%_width%,102),3,images\count25.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),25),$imageabs($sub(%_width%,102),3,images\count26.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),26),$imageabs($sub(%_width%,102),3,images\count27.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),27),$imageabs($sub(%_width%,102),3,images\count28.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),28),$imageabs($sub(%_width%,102),3,images\count29.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),29),$imageabs($sub(%_width%,102),3,images\count30.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),30),$imageabs($sub(%_width%,102),3,images\count31.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),31),$imageabs($sub(%_width%,102),3,images\count32.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),32),$imageabs($sub(%_width%,102),3,images\count33.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),33),$imageabs($sub(%_width%,102),3,images\count34.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),34),$imageabs($sub(%_width%,102),3,images\count35.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),35),$imageabs($sub(%_width%,102),3,images\count36.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),36),$imageabs($sub(%_width%,102),3,images\count37.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),37),$imageabs($sub(%_width%,102),3,images\count38.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),38),$imageabs($sub(%_width%,102),3,images\count39.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),39),$imageabs($sub(%_width%,102),3,images\count40.png,))


And the image files:
[url=http://www.parodius.com/~rouge/count.zip[/url]

If you have the patience, try coming up with new designs and post them here.

Here's a copy of the image I started with, made with SolidWorks.
IPB Image

edit: changed host
Blitzmeister
Hey Rouge, I keep getting a corrupt download file. Any chance of putting it on Rapidshare or Sendspace please?
Cheers smile.gif
rouge
Oops. Fixed. tongue.gif

FTP server seems to be brok.
Nickoladze
Is there any way to make images put in panels clickable? I want to add play, pause, and stop buttons.
Lampir
Hey,

ive read this entire post twice, and i still dont know how to add a picture into my trackinfo panel, can someone please explain it to me ?

thanks
tomthomson
@Lampir

Heres the link to the WIKI page of the trackinfo_mod
CLICK

Well, actually the link is in the first post of this topic, too wink.gif
mazy
nice thing, rouge. i had similar idea (just a circular sector or something like that), but i was lazy to make all the images wink.gif. i would like terrestrial to add functions to draw more types of primitives including ellipses and sectors.

tip: you could calculate the progress state (number from interval 0..maximage) and then just put it in the $imageabs function like: $imageabs($sub(%_width%,102),3,images\count$get(progress).png,))

QUOTE(Nickoladze @ Sep 21 2006, 03:28) *
Is there any way to make images put in panels clickable? I want to add play, pause, and stop buttons.

not yet, it's on todo though.
kockroach
QUOTE(rouge @ Sep 20 2006, 19:06) *

IPB Image

I made a circle-spinny progress thing. It advances during playback. I know this is overkill, but it looks cool.

And the image files:
count.zip

If you have the patience, try coming up with new designs and post them here.

Here's a copy of the image I started with, made with SolidWorks.
IPB Image

edit: changed host

That looks awesome!

Something like this would look awesome with Russell777's Home Stereo Panel as a volume indicator.
Lampir
QUOTE(tomthomson @ Sep 21 2006, 13:35) *

@Lampir

Heres the link to the WIKI page of the trackinfo_mod
CLICK

Well, actually the link is in the first post of this topic, too wink.gif


Thanks but it still doesnt explain where to put it, i put it up the top of the rest of my track info code and all i see is unknown function where the pic should be

eg > this is mine >

$align(left,top)
$imageabs(0,0,D:\Program Files\foobar2000\default.png)

i tried it in the application data folder too, still get [unknown function], what am i doin wrong
rouge
Try $imageabs(0,0,default.png,)
Lampir
QUOTE(rouge @ Sep 21 2006, 15:16) *

Try $imageabs(0,0,default.png,)


thanks $imageabs(0,0,images/default.png,) worked cool.gif
spex04
QUOTE(spex04 @ Sep 20 2006, 03:41) *

QUOTE(Nickoladze @ Sep 20 2006, 02:47) *

im using this to display lyrics and is there a way i can add a scrollbar to the side of it so i can scroll through the lyrics? i tried some lyrics panels but they all autoscroll and I can't get any of them to let me manually scroll.


You can scroll with the mouse wheel, but it would be nice to have a scrollbar option.


Actually, you can't scroll at all, I was thinking of the normal trackinfo.

Anyway, terrestrial, any chance of adding scrolling..?
metal_termite
On the Wiki I saw there is an alpha blending option for text; Is alpha blending available for images too?
mazy
QUOTE(metal_termite @ Sep 22 2006, 17:42) *
On the Wiki I saw there is an alpha blending option for text; Is alpha blending available for images too?

yes, it has been added recently, i saw it in some changelog.
metal_termite
EDIT: Nevermind.

I can't find it in the changelog. :/
mazy
stupid me, that's because it's in foo_uie_single_column_playlist's changelog. it will get into track info panel mod eventually.
LL-Hell
QUOTE(rouge @ Sep 21 2006, 02:06) *

IPB Image

I made a circle-spinny progress thing. It advances during playback. I know this is overkill, but it looks cool.

CODE
$if($stricmp($mod(%_time_elapsed_seconds%,40),0),$imageabs($sub(%_width%,102),3,images\count1.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),1),$imageabs($sub(%_width%,102),3,images\count2.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),2),$imageabs($sub(%_width%,102),3,images\count3.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),3),$imageabs($sub(%_width%,102),3,images\count4.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),4),$imageabs($sub(%_width%,102),3,images\count5.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),5),$imageabs($sub(%_width%,102),3,images\count6.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),6),$imageabs($sub(%_width%,102),3,images\count7.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),7),$imageabs($sub(%_width%,102),3,images\count8.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),8),$imageabs($sub(%_width%,102),3,images\count9.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),9),$imageabs($sub(%_width%,102),3,images\count10.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),10),$imageabs($sub(%_width%,102),3,images\count11.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),11),$imageabs($sub(%_width%,102),3,images\count12.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),12),$imageabs($sub(%_width%,102),3,images\count13.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),13),$imageabs($sub(%_width%,102),3,images\count14.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),14),$imageabs($sub(%_width%,102),3,images\count15.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),15),$imageabs($sub(%_width%,102),3,images\count16.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),16),$imageabs($sub(%_width%,102),3,images\count17.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),17),$imageabs($sub(%_width%,102),3,images\count18.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),18),$imageabs($sub(%_width%,102),3,images\count19.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),19),$imageabs($sub(%_width%,102),3,images\count20.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),20),$imageabs($sub(%_width%,102),3,images\count21.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),21),$imageabs($sub(%_width%,102),3,images\count22.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),22),$imageabs($sub(%_width%,102),3,images\count23.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),23),$imageabs($sub(%_width%,102),3,images\count24.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),24),$imageabs($sub(%_width%,102),3,images\count25.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),25),$imageabs($sub(%_width%,102),3,images\count26.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),26),$imageabs($sub(%_width%,102),3,images\count27.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),27),$imageabs($sub(%_width%,102),3,images\count28.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),28),$imageabs($sub(%_width%,102),3,images\count29.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),29),$imageabs($sub(%_width%,102),3,images\count30.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),30),$imageabs($sub(%_width%,102),3,images\count31.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),31),$imageabs($sub(%_width%,102),3,images\count32.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),32),$imageabs($sub(%_width%,102),3,images\count33.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),33),$imageabs($sub(%_width%,102),3,images\count34.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),34),$imageabs($sub(%_width%,102),3,images\count35.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),35),$imageabs($sub(%_width%,102),3,images\count36.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),36),$imageabs($sub(%_width%,102),3,images\count37.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),37),$imageabs($sub(%_width%,102),3,images\count38.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),38),$imageabs($sub(%_width%,102),3,images\count39.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),39),$imageabs($sub(%_width%,102),3,images\count40.png,))


And the image files:
count.zip

If you have the patience, try coming up with new designs and post them here.

Here's a copy of the image I started with, made with SolidWorks.
IPB Image

edit: changed host



I hope you don't mind, I rewrote your code to be slightly more compact and easier to play with:
CODE

$puts(count_idx,$add($mod(%_time_elapsed_seconds%,40),1))
$puts(count_path,images\circ_count\count$get(count_idx).png)
$imageabs($sub(%_width%,102),3,$get(count_path),)
toad
I have a feature request which is probably way hard to do. I wonder if it's possible for this plugin to support opentype features like automatic ligatures and small caps and so on. It would be absolutely wonderful if it could; it would marry my love of typography with my love of music!
rouge
QUOTE(LL-Hell @ Sep 24 2006, 00:56) *

QUOTE(rouge @ Sep 21 2006, 02:06) *

IPB Image

I made a circle-spinny progress thing. It advances during playback. I know this is overkill, but it looks cool.

CODE
$if($stricmp($mod(%_time_elapsed_seconds%,40),0),$imageabs($sub(%_width%,102),3,images\count1.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),1),$imageabs($sub(%_width%,102),3,images\count2.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),2),$imageabs($sub(%_width%,102),3,images\count3.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),3),$imageabs($sub(%_width%,102),3,images\count4.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),4),$imageabs($sub(%_width%,102),3,images\count5.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),5),$imageabs($sub(%_width%,102),3,images\count6.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),6),$imageabs($sub(%_width%,102),3,images\count7.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),7),$imageabs($sub(%_width%,102),3,images\count8.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),8),$imageabs($sub(%_width%,102),3,images\count9.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),9),$imageabs($sub(%_width%,102),3,images\count10.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),10),$imageabs($sub(%_width%,102),3,images\count11.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),11),$imageabs($sub(%_width%,102),3,images\count12.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),12),$imageabs($sub(%_width%,102),3,images\count13.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),13),$imageabs($sub(%_width%,102),3,images\count14.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),14),$imageabs($sub(%_width%,102),3,images\count15.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),15),$imageabs($sub(%_width%,102),3,images\count16.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),16),$imageabs($sub(%_width%,102),3,images\count17.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),17),$imageabs($sub(%_width%,102),3,images\count18.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),18),$imageabs($sub(%_width%,102),3,images\count19.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),19),$imageabs($sub(%_width%,102),3,images\count20.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),20),$imageabs($sub(%_width%,102),3,images\count21.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),21),$imageabs($sub(%_width%,102),3,images\count22.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),22),$imageabs($sub(%_width%,102),3,images\count23.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),23),$imageabs($sub(%_width%,102),3,images\count24.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),24),$imageabs($sub(%_width%,102),3,images\count25.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),25),$imageabs($sub(%_width%,102),3,images\count26.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),26),$imageabs($sub(%_width%,102),3,images\count27.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),27),$imageabs($sub(%_width%,102),3,images\count28.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),28),$imageabs($sub(%_width%,102),3,images\count29.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),29),$imageabs($sub(%_width%,102),3,images\count30.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),30),$imageabs($sub(%_width%,102),3,images\count31.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),31),$imageabs($sub(%_width%,102),3,images\count32.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),32),$imageabs($sub(%_width%,102),3,images\count33.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),33),$imageabs($sub(%_width%,102),3,images\count34.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),34),$imageabs($sub(%_width%,102),3,images\count35.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),35),$imageabs($sub(%_width%,102),3,images\count36.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),36),$imageabs($sub(%_width%,102),3,images\count37.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),37),$imageabs($sub(%_width%,102),3,images\count38.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),38),$imageabs($sub(%_width%,102),3,images\count39.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),39),$imageabs($sub(%_width%,102),3,images\count40.png,))


And the image files:
count.zip

If you have the patience, try coming up with new designs and post them here.

Here's a copy of the image I started with, made with SolidWorks.
IPB Image

edit: changed host



I hope you don't mind, I rewrote your code to be slightly more compact and easier to play with:
CODE

$puts(count_idx,$add($mod(%_time_elapsed_seconds%,40),1))
$puts(count_path,images\circ_count\count$get(count_idx).png)
$imageabs($sub(%_width%,102),3,$get(count_path),)




Ah, thank you. I knew there was more a more efficient way, but I usually get a severe headache when dealing with TAGZ. wink.gif
Hamallainen
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.

IPB Image

CODE

$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
Yotsuya
Very nice! If only the onscreen programming guide on my cable box did something like this :)
Sihkih
QUOTE(rouge @ Sep 24 2006, 16:14) *

QUOTE(LL-Hell @ Sep 24 2006, 00:56) *

QUOTE(rouge @ Sep 21 2006, 02:06) *

IPB Image

I made a circle-spinny progress thing. It advances during playback. I know this is overkill, but it looks cool.

CODE
$if($stricmp($mod(%_time_elapsed_seconds%,40),0),$imageabs($sub(%_width%,102),3,images\count1.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),1),$imageabs($sub(%_width%,102),3,images\count2.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),2),$imageabs($sub(%_width%,102),3,images\count3.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),3),$imageabs($sub(%_width%,102),3,images\count4.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),4),$imageabs($sub(%_width%,102),3,images\count5.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),5),$imageabs($sub(%_width%,102),3,images\count6.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),6),$imageabs($sub(%_width%,102),3,images\count7.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),7),$imageabs($sub(%_width%,102),3,images\count8.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),8),$imageabs($sub(%_width%,102),3,images\count9.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),9),$imageabs($sub(%_width%,102),3,images\count10.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),10),$imageabs($sub(%_width%,102),3,images\count11.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),11),$imageabs($sub(%_width%,102),3,images\count12.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),12),$imageabs($sub(%_width%,102),3,images\count13.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),13),$imageabs($sub(%_width%,102),3,images\count14.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),14),$imageabs($sub(%_width%,102),3,images\count15.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),15),$imageabs($sub(%_width%,102),3,images\count16.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),16),$imageabs($sub(%_width%,102),3,images\count17.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),17),$imageabs($sub(%_width%,102),3,images\count18.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),18),$imageabs($sub(%_width%,102),3,images\count19.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),19),$imageabs($sub(%_width%,102),3,images\count20.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),20),$imageabs($sub(%_width%,102),3,images\count21.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),21),$imageabs($sub(%_width%,102),3,images\count22.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),22),$imageabs($sub(%_width%,102),3,images\count23.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),23),$imageabs($sub(%_width%,102),3,images\count24.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),24),$imageabs($sub(%_width%,102),3,images\count25.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),25),$imageabs($sub(%_width%,102),3,images\count26.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),26),$imageabs($sub(%_width%,102),3,images\count27.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),27),$imageabs($sub(%_width%,102),3,images\count28.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),28),$imageabs($sub(%_width%,102),3,images\count29.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),29),$imageabs($sub(%_width%,102),3,images\count30.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),30),$imageabs($sub(%_width%,102),3,images\count31.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),31),$imageabs($sub(%_width%,102),3,images\count32.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),32),$imageabs($sub(%_width%,102),3,images\count33.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),33),$imageabs($sub(%_width%,102),3,images\count34.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),34),$imageabs($sub(%_width%,102),3,images\count35.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),35),$imageabs($sub(%_width%,102),3,images\count36.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),36),$imageabs($sub(%_width%,102),3,images\count37.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),37),$imageabs($sub(%_width%,102),3,images\count38.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),38),$imageabs($sub(%_width%,102),3,images\count39.png,))
$if($stricmp($mod(%_time_elapsed_seconds%,40),39),$imageabs($sub(%_width%,102),3,images\count40.png,))


And the image files:
count.zip

If you have the patience, try coming up with new designs and post them here.

Here's a copy of the image I started with, made with SolidWorks.
IPB Image

edit: changed host



I hope you don't mind, I rewrote your code to be slightly more compact and easier to play with:
CODE

$puts(count_idx,$add($mod(%_time_elapsed_seconds%,40),1))
$puts(count_path,images\circ_count\count$get(count_idx).png)
$imageabs($sub(%_width%,102),3,$get(count_path),)




Ah, thank you. I knew there was more a more efficient way, but I usually get a severe headache when dealing with TAGZ. wink.gif



and what code should i use if i want to use this images to be shown during progress? not every second?
Sihkih
ok i get it working as a progress bar but the code has 100 lines... any chance to get it shorter?
Strictly4me
Other Image for same stuff, you can find here

Looks like so:
IPB Image

((((( Strictly4me )))))
Yotsuya
Sihkih:
Is this the sort of thing you are looking for?
CODE
$imageabs($sub(%_width%,102),$sub(%_height%,102),images\progress.circle\count$muldiv($muldiv(100,%playback_time_seconds%,%length_seconds%),40,100).png,)


*note: copy count40.png to count0.png
ojdo
QUOTE(Yotsuya @ Sep 20 2006, 16:26) *

terrestrial: any plans on adding the $imageabs2() function to this component like you did with singlecolumnsplaylist?

I would like to know this, too. lalala.gif
Sihkih
QUOTE(Yotsuya @ Sep 26 2006, 11:33) *

Sihkih:
Is this the sort of thing you are looking for?
CODE
$imageabs($sub(%_width%,102),$sub(%_height%,102),images\progress.circle\count$muldiv($muldiv(100,%playback_time_seconds%,%length_seconds%),40,100).png,)


*note: copy count40.png to count0.png



yes thank you
xchaser
Yotsuya:Thanks

Edite: I found I can keep both but now I have installed all the components but can't see the
new foo_uie_trackinfo_mod in the Columns UI Panel with the old trackinfo I only see the old one not the new one.

I have .net and c++ installed and all the fonts and what not installed why Can't I see the foo_uie_trackinfo_mod?
Chase
It would be excellent if .jpg were supported, and I'm sure this was probably already suggested...

That would do a good job of eliminating my need for an album art panel.

Great job on this. I'm definitely looking forward to the switch in $imageabs to $imageabs2. Keep it up.
Nickoladze
QUOTE(Chase @ Sep 26 2006, 18:47) *

It would be excellent if .jpg were supported, and I'm sure this was probably already suggested...

That would do a good job of eliminating my need for an album art panel.

Great job on this. I'm definitely looking forward to the switch in $imageabs to $imageabs2. Keep it up.


$imageabs2 supports .jpg files, so it's being requested
Yotsuya
xchaser: as long as you are using a recent version of foo_uie_trackinfo_mod.dll, the two will coexist peacefully and maintain their own settings.

Chase: foo_uie_single_column_playlist.dll supports .jpg in $imageabs2(), hopefully terrestrial will bring the same functionality to this component.
terrestrial
updated.

here is some sample code for ratings:

CODE

$puts(rating,$if(%rating%,%rating%,0))
$button(0,0,0,0,25,25,images\$get(rating).png,images\1.png,Set Rating = 1,)
$button(0,0,25,0,25,25,images\$get(rating).png,images\2.png,Set Rating = 2,)
$button(0,0,50,0,25,25,images\$get(rating).png,images\3.png,Set Rating = 3,)
$button(0,0,75,0,25,25,images\$get(rating).png,images\4.png,Set Rating = 4,)
$button(0,0,100,0,25,25,images\$get(rating).png,images\5.png,Set Rating = 5,)
Yotsuya
QUOTE
9/26/06

+ added support for cwb_hooks callback notifications
+ buttons - $button(dstX,dstY,x,y,w,h,image,hover image,command,options)


Yay! Buttons! Thanks for your continued dedication to these wonderful components terrestrial!
acedriver
there's a slight display lag when changing track on the new build.
spex04
Nice update smile.gif

I see that $imageabs2 has also been added..

Maybe you should note in the changelog about the updates that have come from single_column, not really necessary, but could be helpful for some?
Yotsuya
I started playing around with $button() but all my images appear to be experiencing some cropping on the bottom and right edges. Is anyone else experiencing this?

parameters 3-6 don't appear to be having any effect at all.
spex04
QUOTE(Yotsuya @ Sep 27 2006, 05:52) *

I started playing around with $button() but all my images appear to be experiencing some cropping on the bottom and right edges. Is anyone else experiencing this?

parameters 3-6 don't appear to be having any effect at all.


Yea, I was just testing, and the images seem to be cropped to a limited size.
Parameters 3-6 are for the 'hotspot', i.e. the point where the button can be clicked, and the x and y values are relative to the top-left of the image used..

Edit: Thinking about it, I don't even know if the images need to be drawn by the button command, surely you could just draw an image with imageabs/imageabs2, and then draw the button over the top of it, setting the 'hotspot' to same x/y/w/h as the drawn image and it would give the desired effect..?
terrestrial
I don't seem to get any cropping here... can you post the code which you're using.
spex04
QUOTE(terrestrial @ Sep 27 2006, 06:03) *

I don't seem to get any cropping here... can you post the code which you're using.


Yea, this was the code:

CODE
$button(0,0,0,0,16,16,C:\Program Files\foobar2000\images\silk\zoom.bmp,C:\Program Files\foobar2000\images\silk\folder.bmp,Set Rating = 5,)


The images are regular 16x16 24bit bitmaps. Also, they seem to be a slight bit zoomed in aswell as cropped..
I'm guessing it was the bitamps, it seems to work with png files..
Yotsuya
I havnt tackled the command part yet, but I was trying to start with a basic button. I'm experiencing cropping on the bottom and right sides.. and I think I need to work on the hotspot bit.

CODE
$if(%isplaying%,
$button(10,10,10,35,25,15,images\button.pause.png,images\hover.pause.png,Pause,)
,
$button(10,10,10,35,25,15,images\button.play.png,images\hover.play.png,Play,)
)


images used:
IPB Image IPB Image IPB Image IPB Image

button.pause.png, hover.pause.png, button.play.png, hover.play.png

example of cropping:
IPB Image

O.o is there some sort of resizing going on?
spex04
QUOTE(Yotsuya @ Sep 27 2006, 06:20) *

example of cropping:
IPB Image

O.o is there some sort of resizing going on?


That's exactly what I was getting when using the bitmap files, but I changed to 2 png files (different sized), and they displayed fine..

Strange..
terrestrial
ah.

its the dpi on the images... it should be equal to the dpi windows is running at or gdi+ does some scaling. windows normal dpi is 96. or I think you can remove the dpi info form the png altogether, and you won't get scaling.
Yotsuya
1) How would one go about removing or modifying the dpi settings of the png from photoshop or irfanview? (I've never done that before)

2) Can you give an example of how to access a "command" from regular foobar main menu commands.. or is it limited to scripts?
terrestrial
1) I don't have photoshop installed, but I'm pretty sure it has a setting. It should be something like image attributes...

2) right now its limited to items from the context menu.

edit: I went ahead and uploaded a new version which ignores the dpi in the images.

and you can use this code

CODE

$if(%isplaying%,
$button(10,10,0,0,0,0,images\button.pause.png,images\hover.pause.png,Pause,)
,
$button(10,10,0,0,0,0,images\button.play.png,images\hover.play.png,Play,)
)


(although the buttons don't do anything wink.gif)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.