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 755356 times) previous topic - next topic
0 Members and 5 Guests are viewing this topic.

Track Info Panel with ability to change font

Reply #525
terrestrial, could you somehow make it possible to identify menu commands in button functions by their full path? i would need this especially for the jump feature of foo_menu_addons.

Track Info Panel with ability to change font

Reply #526
Thank you terrestrial,the update is really a great thing to happen to foobar!
I have one question:in normal way i use grouping of SCP by %album%,but then i apply sorting by %rating%
via trackinfo mod panel it still sorts the playlist by albums and their rating.How can i make the SCP to recognize
the custom sorting and not to group my playlist by albums,but by tracks along with suppressing the headers?
(I want to achieve a playlist which will be sorted by individual rating of the tracks  with no headers)TIA.
Favourite artist:CD-R
Favourite album:700MB

Track Info Panel with ability to change font

Reply #527
Ok,i found a workaround for the problem i described above,yet another question:
When you using a sorting\filtering commands the playlist won't change until you select "source",is it possible
to set source  automaticly when "sort" selected?
Favourite artist:CD-R
Favourite album:700MB

Track Info Panel with ability to change font

Reply #528
terrestrial, could you somehow make it possible to identify menu commands in button functions by their full path? i would need this especially for the jump feature of foo_menu_addons.


yes, I'll try to add it in for the next version.


Thank you terrestrial,the update is really a great thing to happen to foobar!
I have one question:in normal way i use grouping of SCP by %album%,but then i apply sorting by %rating%
via trackinfo mod panel it still sorts the playlist by albums and their rating.How can i make the SCP to recognize
the custom sorting and not to group my playlist by albums,but by tracks along with suppressing the headers?
(I want to achieve a playlist which will be sorted by individual rating of the tracks  with no headers)TIA.


cannot currently set the grouping in scp. will be in a future version.


Ok,i found a workaround for the problem i described above,yet another question:
When you using a sorting\filtering commands the playlist won't change until you select "source",is it possible
to set source  automaticly when "sort" selected?


filtering creates a new playlist (if you don't select a source first, it should use the media library). sort sorts the currently active playlist. make sure you have version 0.7.1 (not 0.7).

Track Info Panel with ability to change font

Reply #529
Im using latest version, and when i use this function: (

Code: [Select]
$imageabs(0,0,C:\Program Files\foobar2000\images\0s1.png, )


It gives me [UNKNOWN FUNCTION]

What im doing wrong?


Track Info Panel with ability to change font

Reply #530
Sorry,but what's the relation to the columns ui playlist?This command works only from trackinfo mod panel or single column playlist.

On a different note:such a great tool terrestrial had provided us with!I've already added Mood>x,Mood=x,
Rating>x,Rating=x filter strings and it just kicks ass!

Favourite artist:CD-R
Favourite album:700MB


Track Info Panel with ability to change font

Reply #532
The recent feature additions look really promising, especially if they ever get proper support for tags with multiple values (TAG:SET, FILTER, etc).

I think it would be useful to have a third button function for text/code that does not require absolute positioning co-ordinates, nor mouse-over co-ordinates; all the text/code within this button function would be "clickable," and would be positioned relative to the code before it. Something like $button3(text, font properties, hover font properties, command).

Basic example:

Code: [Select]
$button3(%artist%,underline 255-0-0,underline 0-0-255,Search for Same Artist) released the album $button3(%album%,underline 255-0-0,underline 0-0-255,Search for Same Album) in the year $button3(%date%,underline 255-0-0,underline 0-0-255,playlist command here).

Would be parsed as: <Artist tag> released the album <album tag> in the year <date tag>.

Track Info Panel with ability to change font

Reply #533
Im using latest version, and when i use this function: (

Code: [Select]
$imageabs(0,0,C:\Program Files\foobar2000\images\0s1.png, )


It gives me [UNKNOWN FUNCTION]

What im doing wrong?




You have to use $imageabs() in Track info mod (foo_trackinfo_mod) panel only; this string is not valid or recognized in other panels or in standard playlist view (foo_ui_columns).

You need a much more complex layout, and u have to put a track info mod panel in the right end of your layout, and i don't surly know how to do it.

Track Info Panel with ability to change font

Reply #534
i have searched for it but i couldnt find anything. so my question is, whether there is a list of available buttons.
i am wondering if there is the possibility to add a "File/Open..." button, in particular.

please help me.

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

Track Info Panel with ability to change font

Reply #535
@terrestrial Is it possible in some way to have sub menus inside of sub menus?I mean "artist" gives you
a list of first letters of available artists (a,b,c,d) and selecting a letter gives you additional menu with artist names.I tried but with no luck,mayby something with the syntax that i don't know about?
Favourite artist:CD-R
Favourite album:700MB

Track Info Panel with ability to change font

Reply #536
i have searched for it but i couldnt find anything. so my question is, whether there is a list of available buttons.
i am wondering if there is the possibility to add a "File/Open..." button, in particular.

please help me.

thx in advance.


Something like this? $button(0,0,0,0,25,25,images\fileopen.png,images\fileopen_hover.png,Open...,)

BTW, the Wiki is helpful as a reference for this component.

Track Info Panel with ability to change font

Reply #537
Something like this? $button(0,0,0,0,25,25,images\fileopen.png,images\fileopen_hover.png,Open...,)

BTW, the Wiki is helpful as a reference for this component.



sweet! thank you man. i have looked at that wiki before and i tried "file/open" and all kinds of variations of it. apparently all but the most obvious one...

THX!
- creative x-fi extreme music
- sennheiser 650hd
- F U B A R++

 

Track Info Panel with ability to change font

Reply #538
@terrestrial Is it possible in some way to have sub menus inside of sub menus?I mean "artist" gives you
a list of first letters of available artists (a,b,c,d) and selecting a letter gives you additional menu with artist names.I tried but with no luck,mayby something with the syntax that i don't know about?


you currently can't have sub menus. I'm going to replace the menu control with something else that should handle long lists better.

Track Info Panel with ability to change font

Reply #539
Thanks!I'll be waiting.
Favourite artist:CD-R
Favourite album:700MB

Track Info Panel with ability to change font

Reply #540
Is the wiki information up to date? I'm playing with adding buttons and just to see what it looks like, I copied and pasted the examples but I'm getting an unknown function message.



Here's my code for that section.

Code: [Select]
$if(%tempo%,,
// TEMPO BUTTONS
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)S e t T e m p o $get(text1)']'
$char(10)
$button2(0,0,0,0,$calcwidth(Remove Tempo),13,'$font(tahoma,8,,0-0-0)Remove Tempo','$font(tahoma,8,underline,0-0-0)Remove Tempo',TAG:SET:tempo:,)
$button2(0,0,0,0,37,13,'$font(tahoma,8,,0-0-0)Freeflow','$font(tahoma,8,underline,0-0-0)Freeflow',TAG:SET:tempo:1,)
$button2(0,0,0,0,37,13,'$font(tahoma,8,,0-0-0)Slow','$font(tahoma,8,underline,0-0-0)Slow',TAG:SET:tempo:2,)
$button2(0,0,0,0,37,13,'$font(tahoma,8,,0-0-0)Medium','$font(tahoma,8,underline,0-0-0)Medium',TAG:SET:tempo:3,)
$button2(0,0,0,0,37,13,'$font(tahoma,8,,0-0-0)Fast','$font(tahoma,8,underline,0-0-0)Fast',TAG:SET:tempo:4,)
$button2(0,0,0,0,37,13,'$font(tahoma,8,,0-0-0)Frenetic','$font(tahoma,8,underline,0-0-0)Frenetic',TAG:SET:tempo:5,)$char(10))


Also, how do I add padding on the left side of the panel?

Track Info Panel with ability to change font

Reply #541
$padding(4,0)


Track Info Panel with ability to change font

Reply #543
you currently can't have sub menus. I'm going to replace the menu control with something else that should handle long lists better.
What's the menu control you guys are talking about? Did I miss something?

Track Info Panel with ability to change font

Reply #544
Is the wiki information up to date? I'm playing with adding buttons and just to see what it looks like, I copied and pasted the examples but I'm getting an unknown function message.

Here's my code for that section.

I cannot reproduce the [unknown function] message with the code you provided. I'm assuming you want all your tempo buttons adjacent to one another, but from your code I can tell you that a.) all your tempo buttons are overlapping and b.) they're getting clipped.

a. The first two parameters (DstX, DstY) in all your buttons are 0,0 so you're telling the buttons to align at co-ordinates 0,0 hence the overlapping. The buttons don't output text relatively, they have absolute position like the $alignabs function, which you have to specify.

b. The text in your buttons is getting clipped because you have all their bounding rectangles the same width (37). Instead of the number 37, use $calcwidth() to get the precise width of your buttons text as you did with your Remove Tempo button... $calcwidth(Freeflow), $calcwidth(Slow), etc.

Hope that helps.



Track Info Panel with ability to change font

Reply #547
I cannot reproduce the [unknown function] message with the code you provided.

I tried creating a single button and still get the same error. Here's the entire code (very long sorry). It's based on Habla's settings.

Code: [Select]
// Original code by necropimp, modified by AstreaEdge, final by KockRoach
// Appearance changed by Habla. Muchas gracias to those above!
// Best viewed with vert pad 10, hor pad 13, line space 2, Segoe UI 7pt font, black background

// !!!!BEGIN USER CONFIGURATION!!!!

// Show Artist? (1 = show, 0 = don't show)
$puts(arts,1)

// Show Album?
$puts(albs,1)

// Show Title?
$puts(tils,1)

// Info Heading Color e.g. "Title:"
$puts(head,$rgb(61,129,193))

// Info Color e.g. "Black Dog"
$puts(info,$rgb(255,255,255))

// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,$rgb(255,255,255))

// Separator
// the separators (Song,Play,Tech info) will change to a different color if the panel mode is set to Follow cursor.
// change "followcursorcol" to change this color. It is currently set to flash orange.
$puts(followcursorcol,$rgb(200,150,50))
$puts(text2,$rgb(255,255,255))
$puts(text1,$if(%_trackinfo_nowplaying%,$rgb(61,129,193))$if(%_trackinfo_followcursor%,$get(followcursorcol)))
$puts(fadeend,$rgb(0,0,0))
$puts(seplen,83)
$puts(sepchar,'.')

// Set Rating character
$puts(ratingchar,'?')

// !!!!END USER CONFIGURATION!!!!

// Day Conversion
$puts(day,$substr(%last_played%,9,10))
$if(%last_played%,
$if($strcmp($left($get(day),1),0),$puts(day,$right($get(day),1))))
$if($strcmp($get(day),11),$puts(xx,th),
$if($strcmp($get(day),12),$puts(xx,th),
$if($strcmp($get(day),13),$puts(xx,th),
$if($strcmp($right($get(day),1),1),$puts(xx,st),
$if($strcmp($right($get(day),1),2),$puts(xx,nd),
$if($strcmp($right($get(day),1),3),$puts(xx,rd),
$puts(xx,th)))))))

// Month Conversion
$puts(month,$substr(%last_played%,6,7))
$puts(month_name,$select($get(month),
Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec))

// Year Conversion
$puts(year,$substr(%last_played%,1,4))

// Time Conversion
$puts(hour,$substr(%last_played%,12,13))
$puts(min,$substr(%last_played%,14,16))
$puts(sec,$substr(%last_played%,17,19))

// 24 Hour to 12 Hour Conversion
$if($strcmp($left($get(hour),1),0),$puts(hour1,$right($get(hour),1)))
$if($strcmp($left($get(hour),1),1),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($left($get(hour),1),2),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($get(hour),00),$puts(hour1,12))
$if($strcmp($get(hour),10),$puts(hour1,10))
$if($strcmp($get(hour),11),$puts(hour1,11))
$if($strcmp($get(hour),12),$puts(hour1,12))

// AM/PM Conversion
$if($strcmp($get(hour),00),$puts(yy,am))
$if($strcmp($get(hour),10),$puts(yy,am))
$if($strcmp($get(hour),11),$puts(yy,am))
$if($strcmp($get(hour),12),$puts(yy,pm))
$if($strcmp($get(hour),24),$puts(yy,am))
$if($strcmp($left($get(hour),1),0),$puts(yy,am))
$if($strcmp($left($get(hour),1),1),$puts(yy,pm))
$if($strcmp($left($get(hour),1),2),$puts(yy,pm))

// Date Format
$puts(time_of_year,$get(month_name) $get(day)$get(xx)',' $get(year))

// Time Format
$puts(time_of_day,$get(hour1)$get(min)$get(sec) $get(yy))

// SONG INFO SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)S o n g I n f o $get(text1)']'$char(10)

$if($strcmp(1,$get(tils)),$if(%title%,$get(head)Title: $get(info)%title%[ $char(40)%version%$char(41)]$char(10),),)
$if($strcmp(1,$get(arts)),$if(%artist%,$get(head)Artist: $get(info)%artist%$char(10),),)
$if($strcmp(1,$get(albs)),$if(%album%,$get(head)Album: $get(info)%album%[ $char(40)%subtitle%$char(41)][ $char(91)%edition%$char(93)]$char(10),),)
$if(%disc%,$get(head)Disc: $get(info)%disc%$get(head)$if(%disc%, of $get(info)%totaldiscs%)$char(10),)
$if(%date%,$get(head)Year: $get(info)%date%$char(10),)
$if(%tracknumber%,$get(head)Track #: $get(info)%tracknumber%$char(10),)
$transition($repeat($get(sepchar),$get(seplen)),$get(text1),$get(fadeend))$char(10)
$if(%genre%,$get(head)Genre: $get(info)%genre%$char(10),)
$if(%style%,$get(head)Style: $get(info)%style%$char(10),)
$if(%mood%,$get(head)Mood: $get(info)%mood%$char(10),)
$if(%tempo%,$get(head)Tempo: $get(info)$select(%tempo%,Freeflow,Slow,Medium,Fast,Frenetic,Choose between 1-5)$char(10),)
$if(%bpm%,$get(head)BPM: $get(info)$num(%bpm%,1)$char(10),)
$if(%rating%,$get(head)Rating: $repeat($get(info)$get(ratingchar),%rating%)
$repeat($rgb(70,70,70)$get(ratingchar),$sub(5,%rating%))$char(10),)

// TECH INFO SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)T e c h I n f o $get(text1)']'$char(10)

$get(head)Length: $get(info)$if(%_length%,%_length%,)$if(%_isplaying%, / %_time_elapsed%$get(anno)$if(%_length%, / -%_time_remaining%),%_length%)$char(10)
$get(head)Type:$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)Preset: $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),)
$if(%__flac_vendor%,$get(head)Encoder: $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: $get(info)%__mpc_profile%$char(10),)
$get(head)Compression: $get(info)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$get(info)$muldiv(%__bitrate%,100,1411)$get(anno)'%)'$char(10)
$get(head)Channels: $get(info)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?'))$char(10)
$if(%__bitspersample%,$get(head)Bitdepth: $get(info)%__bitspersample% bits/sample$char(10),)
$if(%__samplerate%,$get(head)Samplerate: $get(info)$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz $char(10))
$if(%__replaygain_album_gain%,$get(head)Replay Gain: $get(info)A,$if(%__replaygain_track_gain%,$get(head)Replay Gain: $get(info)T,$get(head)Replay Gain: $rgb(255,0,0)X))$char(10)

$transition($repeat($get(sepchar),$get(seplen)),$get(text1),$get(fadeend))$char(10)
$if(%path%,$get(head)Path: $get(info)%path%$char(10),)
$if(%_filesize%,$get(head)Filesize: $get(info)
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB'$char(10),)

$if(%last_played%,
// PLAY STATS SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)P l a y I n f o $get(text1)']'
$char(10),)

$if(%play_count%,$get(head)Played: $get(info)%play_count% times$char(10),)
$if(%last_played%,$get(head)Last played on: $get(info)$get(time_of_year) at $get(time_of_day)$char(10),)
$get(head)$progress(%_time_elapsed_seconds%,%_time_total_seconds%,52,$get(info)'()',$get(head)'-')
$get(info)$muldiv(%_time_elapsed_seconds%,100,%_length_seconds%)'%'$char(10)

$if(%mood%,,
// MOOD BUTTONS
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)S e t M o o d $get(text1)']'
$char(10)
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,0-0-0)Properties','$font(tahoma,8,underline,0-0-0)Properties', properties,))
[!--sizeo:1--][span style=\"font-size:8pt;line-height:100%\"][!--/sizeo--]Edit: Changed CODE to CODEBOX.[/size]

Track Info Panel with ability to change font

Reply #548
I tried creating a single button and still get the same error. Here's the entire code (very long sorry). It's based on Habla's settings.

Weird, I'm still not getting that error. Make sure you're using the latest version of the component -- 0.7 beta [Oct 24 2006 - 18:45:32]

Track Info Panel with ability to change font

Reply #549
There's a more recent one.
Track info panel mod 0.7.1 beta [Oct 24 2006 - 22:48:54]