Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Track Info Panel with ability to change font (Read 755352 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

Track Info Panel with ability to change font

Reply #475
Not much you can do there. I just used $alignabs for it, But thats rather 'dirty' as you need to specify your own 'box' for the text. That, and the fact mine had all kinds of random pixel values

Track Info Panel with ability to change font

Reply #476
is it possible to use this to display a picture or one of many pngs in a music folder??


edit: can you use wildcards in the folder adress, so you can use foobars titleformatting then?

Track Info Panel with ability to change font

Reply #477
@terrstrial
I'm not sure if I am doing something wrong, but $get variables do not seem to work inside the $button2 function.

Code: [Select]
$puts(fonthover,$font(tahoma,8,nocleartype underline,255-0-0))

$button2(117,14,0,0,$calcwidth(See Review),18,'$font(tahoma,8,nocleartype underline,88-116-163)See Review','$get(fonthover)See Review',Album Review,)

Track Info Panel with ability to change font

Reply #478
@terrstrial
I'm not sure if I am doing something wrong, but $get variables do not seem to work inside the $button2 function.

Code: [Select]
$puts(fonthover,$font(tahoma,8,nocleartype underline,255-0-0))

$button2(117,14,0,0,$calcwidth(See Review),18,'$font(tahoma,8,nocleartype underline,88-116-163)See Review','$get(fonthover)See Review',Album Review,)


He said that the $button2 display parts are like seperate trackinfo panels, so I'm guessing that it won't work.

You could either put the $puts into the $button2 code, or just replace the $get with the actual code, which will work, but will probably defeat the point of having the $puts/$get in the first place..

Track Info Panel with ability to change font

Reply #479
@spex04
You're right. I missed that post. Thanks.

all the code has to be self contained inside the button. it doesn't carry through outside the button. think of it as a separate trackinfo panel.

Track Info Panel with ability to change font

Reply #480
Right now I'm using this code:

Code: [Select]
$alignabs(50,32,$sub($div(%_width%,2),283),15,,)
$font(,,,255-255-255)%track%. %title%


How can i make "%track%. %title%" scroll horizontally?
What I'm doing is confining the text in a certain area that is flexible depending on how wide the panel is, and if the text is too wide for that area i want to to clip it down and scroll.

Track Info Panel with ability to change font

Reply #481
i need some help folks :/

i am all new to this coding etc. so show some mercy pls

this is my current code:

Code: [Select]
$if(%_isplaying%,
$imageabs2(,,,,,,$sub(%_width%,75),$sub($div(%_height%,2),38),'C:\programme\foobar2000\images\arrows.png',)
$imageabs2(474,90,,,,,0,-13,'C:\Programme\foobar2000\components\Untitled-1.png',)
$padding(4,2)
$align(left,bottom)$font(Swis721 Cn BT D-Type,10,bold glow-91-100-111 glowblur-10,203-206-211)
$font(Swis721 Cn BT D-Type,10,bold glow-91-100-111 glowblur-10,203-206-211)$get(head)Length: $font(Swis721 Cn BT D-Type,10,bold  glow-129-138-150 glowblur-10,255-255-255)$get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%, / %_length%,)$if(%_time_elapsed%, / $muldiv(%_time_elapsed_seconds%,100,%_length_seconds%)'%')$if(%_length%, / -%_time_remaining%),%_length%)$char(10)
$font(Swis721 Cn BT D-Type,10,bold glow-91-100-111 glowblur-10,203-206-211)$get(head)Quality: $font(Swis721 Cn BT D-Type,10,bold  glow-129-138-150 glowblur-10,255-255-255)$if(%__codec%, $get(info)%__codec%) $get(info)
$if2(%__bitrate_dynamic%,%__bitrate%) $get(anno)Kb/s $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))
$char(10)
$if(%__lame_version%,$get(head)Encoder: $font(Swis721 Cn BT D-Type,10,bold  glow-129-138-150 glowblur-10,255-255-255)$get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),)
$if(%__flac_vendor%,$get(head)Encoder: $font(Swis721 Cn BT D-Type,10,bold  glow-129-138-150 glowblur-10,255-255-255)$get(info)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8)$char(10),)
$if(%__mpc_profile%,$get(head)MPC Profile: $font(Swis721 Cn BT D-Type,10,bold  glow-129-138-150 glowblur-10,255-255-255)$get(info)%__mpc_profile%$char(10),)
$font(Swis721 Cn BT D-Type,10,bold glow-91-100-111 glowblur-10,203-206-211)$get(head)Compression: $font(Swis721 Cn BT D-Type,10,bold  glow-129-138-150 glowblur-10,255-255-255)$get(info)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$get(info)$muldiv(%__bitrate%,100,1411)$get(anno)'% of original quality)'$char(10)
$font(Swis721 Cn BT D-Type,10,bold glow-91-100-111 glowblur-10,203-206-211)$get(head)Channel Mode: $font(Swis721 Cn BT D-Type,10,bold  glow-129-138-150 glowblur-10,255-255-255)$get(info)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?'))$char(10)
$if(%__bitspersample%,$font(Swis721 Cn BT D-Type,10,bold glow-91-100-111 glowblur-10,203-206-211)$get(head)Bitdepth: $get(info)%__bitspersample% bits/sample$char(10),)
$if(%__samplerate%,$font(Swis721 Cn BT D-Type,10,bold glow-91-100-111 glowblur-10,203-206-211)$get(head)Samplerate: $font(Swis721 Cn BT D-Type,10,bold  glow-129-138-150 glowblur-10,255-255-255)$get(info)$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz $char(10))
$if(%_filesize%,$font(Swis721 Cn BT D-Type,10,bold glow-91-100-111 glowblur-10,203-206-211)$get(head)Filesize: $font(Swis721 Cn BT D-Type,10,bold  glow-129-138-150 glowblur-10,255-255-255)$get(info)
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB'$char(10),)

$align(right,bottom)

$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255)
$upper(%title%)
$font(calibri,8,bold glow-91-100-111 glowblur-10,129-138-150)
 /
$font(calibri,8,bold glow-91-100-111 glowblur-10,203-206-211)
$upper(%artist%)

,

$imageabs2(66,66,,,,,$sub($div(%_width%,2),33),$sub($div(%_height%,2),38),'C:\programme\foobar2000\images\arrows.png',))

//////////TRACKINFO MOD PROGRESS BAR

$padding(0,0)
$drawrect(,,,10,brushcolor-null pencolor-222-225-228)

$puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,10),%length_seconds%))

$ifgreater($get(progress),0,
$padding(2,2)$drawrect(,,$get(progress),6,brushcolor-190-197-203 pencolor-null),)


/////////////PLAYLIST DROPDOOOWN

%index%/%total% %title%
$hsl(140,25,121)
$if(%isactive%,' (active'$if(%isplaying%,', playing')')',$if(%isplaying%,' (playing)'))
$tab(2)[ '('%lock%')']
$hsl(140,25,121)' ('
%size% tracks @ %length%')'

and this is what it looks like:




as you can see, i was trying to add that image on top and it just doesnt look right. i'd like that image to be width dynamic and also show up when im not playing music.

any help is appreciated!

thx in advance.
- creative x-fi extreme music
- sennheiser 650hd
- F U B A R++

Track Info Panel with ability to change font

Reply #482
i need some help folks :/

i am all new to this coding etc. so show some mercy pls

this is my current code:
alskdjflkasjflkjsalkdflksadjflkjsadlkfj

as you can see, i was trying to add that image on top and it just doesnt look right. i'd like that image to be width dynamic and also show up when im not playing music.

any help is appreciated!

thx in advance.



I'm not the best with code but I'm learning........(i think) but looking at yours I'd say for starters the
Code: [Select]
$if(%_isplaying%,
string being right before your images could be why they dont show when your not playing anything

also the image does not stretch across the entire panel so you can try this
Code: [Select]
$imageabs2(,,,,,,0,0,'C:\Programme\foobar2000\components\Untitled-1.png',)

becuase the plugin wants even ratios anyways ie (100,100,,,,,)

Track Info Panel with ability to change font

Reply #483
I'm having trouble getting images to work and I can't figure out why. I'm using this line:

$imageabs(0,0,'C:\Program Files\foobar2000\images\cloudbw.png',)

and the file is definately there, but I'm still just getting black.

(I'm having the same problem with the single column playlist plugin)

Anything obvious I could be missing?


Track Info Panel with ability to change font

Reply #485
@terrstrial
Is there a way to use mouse wheel for scroll like the classic trackinfo?
I want to show lyrics with background image.

Track Info Panel with ability to change font

Reply #486
I'm having trouble getting images to work and I can't figure out why. I'm using this line:

$imageabs(0,0,'C:\Program Files\foobar2000\images\cloudbw.png',)

and the file is definately there, but I'm still just getting black.

(I'm having the same problem with the single column playlist plugin)

Anything obvious I could be missing?



try this:

$imageabs2(,,,,,,,,'C:\Program Files\foobar2000\images\cloudbw.png',)


pd: i have the same problem with 'width dynamic image'

a stretch or resize image code will be nice.

Track Info Panel with ability to change font

Reply #487
"a stretch or resize image code will be nice."

There is a resize, but it seems to only be able to 'squeeze' the image and not stretch it.

Track Info Panel with ability to change font

Reply #488
@terrstrial
Is there a way to use mouse wheel for scroll like the classic trackinfo?
I want to show lyrics with background image.


no, the display code (and syntax) are not really designed for scrolling.

----

I've uploaded a new version which fixes a bug which could cause a crash when using a button. Also a new button command: "TAG:SET:tag:value" which sets tag values without having to use scripts.

example:

Code: [Select]
$button2(0,0,0,0,20,10,'$font(tahoma,11,,0-0-0)Rating1','$font(tahoma,11,bold,0-0-0)Rating1',TAG:SET:Rating:1,)

Track Info Panel with ability to change font

Reply #489
I've uploaded a new version which fixes a bug which could cause a crash when using a button.
So I guess you didn't find out about the reported display glitches? How can I help?

BTW, would you please edit the first post and add a version info if you offer a new version? Then we can see there, when the post was edited and which version it is. Now we have to search and read your postings within the thread.

Track Info Panel with ability to change font

Reply #490
Thank you terrestrial
Favourite artist:CD-R
Favourite album:700MB

Track Info Panel with ability to change font

Reply #491
Thanks for the update terrestrial!

Question:

How do i know which main menu entries are supported for buttons?!
I am trying to set up my own volume-control, but "Set volume to XYdB" does not work.
Entries like e.g. "Seek ahead by 10 seconds" or "About" work (but do not really help me setting up a volume-control  ).
I looked them up on the Commandline Guide.

Track Info Panel with ability to change font

Reply #492
Also a new button command: "TAG:SET:tag:value"

New command seems to work very well - no crashes when clicking around on tag-related buttons anymore

Thanks

Track Info Panel with ability to change font

Reply #493
2 LXtreme
In latest fb2k versions the volume commands are restricted to volume up\down\mute only,however you can define the volume steps in advanced options window.That's the reason why it doesn't work from $button command.
Favourite artist:CD-R
Favourite album:700MB

Track Info Panel with ability to change font

Reply #494
So I guess you didn't find out about the reported display glitches? How can I help?


display glitch in trackinfo? if you're referring to the display glitch in single column playlist, I haven't had a chance to look further into it yet...

Quote
BTW, would you please edit the first post and add a version info if you offer a new version? Then we can see there, when the post was edited and which version it is. Now we have to search and read your postings within the thread.


will try to remember for next time.

New command seems to work very well - no crashes when clicking around on tag-related buttons anymore


it shouldn't crash using scripts anymore either

Track Info Panel with ability to change font

Reply #495
is there any way i can check if "stop after current" is turned on?


Track Info Panel with ability to change font

Reply #497
I've uploaded a new version which fixes a bug which could cause a crash when using a button. Also a new button command: "TAG:SET:tag:value" which sets tag values without having to use scripts.

That is awesome addition. Thank you

Track Info Panel with ability to change font

Reply #498
In latest fb2k versions the volume commands are restricted to volume up\down\mute only

thanx russell777! didn't know that. is there a ressource where all availible commands are listed?
(well, i could use foo_run or the buttons to have a look at them, but isn't there a web-ressource....would be easier for a lazy guy like me  )

Quote
however you can define the volume steps in advanced options window

didn't know about that feature either, so thanks for the hint....now my volume-up and down buttons are more helpful....
and with foo_runs "simultanious runs"-option it might be even possible to create some kind of klickable volume-bar.
(i thought someone allready made something like this with pics included, but i can't find the thread/post anymore)

Track Info Panel with ability to change font

Reply #499
Would you be able to implement standard windows controls into this somehow, like:
$button_check(xpos,ypos,text,offcriteria,oncriteria,offaction,onaction,disabledcriteria)
$button_radio(xpos,ypos,text,groupname,oncriteria)

I know this could be done with some fancy coding, but it would be nice to have real skinned windows controls with easily set options. You could do stuff like have panels of checkboxes for genres, styles, etc and maybe even dropdown lists, real windows-style progress bars, buttons, etc. Also, you could create custom context menus for certain areas of the panel, so for example you could right click on genre and a menu would popup with a list of genres.
$menu(xstart,ystart,xend,yend,menuitem1,action1,menuitem2,action2,etc...)