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 755361 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Track Info Panel with ability to change font

Reply #1100
I'm having align(center, middle) with a big font. This is not a problem with normal artist and album names. But when streaming, I want to display the URL, which has no spaces. If the url is too long, trackinfo panel decides not to display it. How can I solve it easily (i.e., no ton of code)?

Track Info Panel with ability to change font

Reply #1101
If the text is too long it will disappear completely.  You can try the $cut() function to limit the length of any text string to a set number of characters.  Or conditionally use a smaller font if your string is greater than a certain number of characters.

Track Info Panel with ability to change font

Reply #1102
If the text is too long it will disappear completely.  You can try the $cut() function to limit the length of any text string to a set number of characters.  Or conditionally use a smaller font if your string is greater than a certain number of characters.
Yes, I used $left(), but I hate implementing exceptions especially because I do not use a fixed width font. Thanks anyway.

@Author: Please fix the bug of the editor window: If you click apply, the cursor moves to the start position

Track Info Panel with ability to change font

Reply #1103
@Author: Please fix the bug of the editor window: If you click apply, the cursor moves to the start position
This component is no longer being developed; you need to "upgrade" to the new component panels_ui, which has the same functionality as track_info_mod when columns_ui is the interface selected (and sports a much improved editing window ).
elevatorladylevitateme

Track Info Panel with ability to change font

Reply #1104
thx, shakey

Track Info Panel with ability to change font

Reply #1105
when I change my font I get this



as you can see the G isn't correctly displayed.

is there something wrong with my code or someting else?

Code: [Select]
// PerTrack
$if(%ispaused%,
$alignabs(0,0,%_width%,15,,)Artist: [%artist%]
$alignabs(0,15,%_width%,15,,)Title: [%title%]
$alignabs(0,30,%_width%,15,,)Album: [%album%] [Track: %Tracknumber%]
$alignabs(0,45,%_width%,15,,)Date: [%date%]
$alignabs(0,60,%_width%,15,,)Bitrate: [%bitrate%kbps]
$alignabs(0,90,%_width%,15,,)Status: Paused,


// PerTrack
$if(%_trackinfo_notrack%,
$alignabs(0,0,%_width%,15,,)No track,
$alignabs(0,0,%_width%,15,,)Artist: [%artist%]
$alignabs(0,15,%_width%,15,,)Title: [%title%]
$alignabs(0,30,%_width%,15,,)Album: [%album%] [Track: %Tracknumber%]
$alignabs(0,45,%_width%,15,,)Date: [%date%]
$alignabs(0,60,%_width%,15,,)Bitrate: [%bitrate%kbps]


))


// PerSecond
$alignabs(0,75,%_width%,15,,)[Length: %Playback_time% / %length%]

Track Info Panel with ability to change font

Reply #1106
@barry123
In your $alignabs() tags you're not giving the text enough height to be rendered completely.  Change this line for example -
Code: [Select]
$alignabs(0,0,%_width%,15,,)Artist: [%artist%]
to
$alignabs(0,0,%_width%,25,,)Artist: [%artist%]

Track Info Panel with ability to change font

Reply #1107
I read a page back in this thread that all I need is Panels UI installed, and I no longer need track_info_mod and the single_column_playlist. Is that correct?

If I remove the other two components and keep JUST Panels UI, will my current COLUMNS UI config with track_info_mod panels stay intact? Will all the code in my panels remain intact?

Thanks .
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

Track Info Panel with ability to change font

Reply #1108
If I remove the other two components and keep JUST Panels UI, will my current COLUMNS UI config with track_info_mod panels stay intact? Will all the code in my panels remain intact?

Thanks .

That info is stored in your foobar2000.cfg file so it will* remain intact.


*doing backups is always smart.
elevatorladylevitateme

 

Track Info Panel with ability to change font

Reply #1109
Thanks for your quick reply shakey_snake .

I shall make a backup just in case... but hope it remains anyways (I have about 15 or so track info panels spread throughout the tabs in my config... would be a pain to fix it all lol).
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

Track Info Panel with ability to change font

Reply #1110
Got a problem with this component.

I read this thread up to page 8 (than I got impatient) and the last page but coundn't find any similar problem:

In both modes I have the problem that I get text overlays on switching to next or previous or any other song.



The code I'm using is a copy of "Lycox" code for 0.8.4 infobox:

Code: [Select]
// Highly customizeable track information made by Lycox

// Credits:
// Peter Pawlowski for great fb2k
// Free - for great progressbar
// upNorth - for filesize string
// Looks quite good with Arial, 8pt bold

// ==============================================
// Global Config Part //

// Shows Song Info in track info panel
// 0 = No, 1 = Yes
$puts(show_songinfo,1)

// Show various informations in Song Info
// 0 = No, 1 = Yes
$puts(title,1)
$puts(artist,1)
$puts(mixartist,1)
$puts(band,1)
$puts(album,1)
$puts(tracknumber,1)
$puts(genre,1)
$puts(bpm,1)
$puts(date,1)
$puts(copyright,0)


// Shows Additional Info in track info panel
// 0 = No, 1 = Yes
$puts(show_additionalinfo,1)

// Show various informations in Additional Info
// 0 = No, 1 = Yes
$puts(comment,1)
$puts(wwwartist,0)
$puts(publisher,0)
$puts(language,0)
$puts(composer,0)
$puts(lyricist,0)
$puts(conductor,0)
$puts(recordingdates,0)
$puts(fileowner,0)


// Shows Technical Info in track info panel
// 0 = No, 1 = Yes
$puts(show_techinfo,1)

// Show various informations in Tech Info
// 0 = No, 1 = Yes
$puts(codec,1)
$puts(bitrate,1)
$puts(samplerate,1)
$puts(channels,1)
$puts(time_elapsed_total,1)
$puts(trackgain,1)
$puts(albumgain,1)
$puts(rating,1)
$puts(play_counter,1)
$puts(play_date,1)
$puts(encodedby,1)
$puts(encodersettings,1)
$puts(filesize,1)
// hidden, because not really needed
$puts(filename_ext,1)
$puts(mediatype,0)
$puts(size,0)
$puts(songlen,0)
$puts(time,0)


// Shows Web Info in track info panel
// 0 = No, 1 = Yes
$puts(show_webinfo,1)

// Shows Web Related Infos in Web Info
// 0 = No, 1 = Yes
$puts(show_webrelated,0)

// Show various informations in Web Info
// 0 = No, 1 = Yes
$puts(wwwaudiofile,1)
$puts(wwwcopyright,1)
$puts(wwwcommercialinfo,1)
$puts(wwwpayment,1)
$puts(wwwpublisher,1)
$puts(wwwuser,1)

// Shows NetRadio Info in Web Info
// 0 = No, 1 = Yes
$puts(show_netradioinfo,1)

// Show various informations in NetRadio Info
// 0 = No, 1 = Yes
$puts(wwwradiopage,1)
$puts(netradioowner,1)
$puts(netradiostation,1)


// Shows Misc Info in track info panel
// 0 = No, 1 = Yes
$puts(show_miscinfo,1)

// Show various informations in Misc Info
// 0 = No, 1 = Yes
$puts(subtitle,1)
$puts(involvedpeople,1)
$puts(playlistdelay,0)
$puts(initialkey,0)
$puts(isrc,0)
$puts(partinset,0)


// Shows Original Info in track info panel
// 0 = No, 1 = Yes
$puts(show_originalinfo,1)

// Show various informations in Original Info
// 0 = No, 1 = Yes
$puts(origartist,1)
$puts(origyear,1)
$puts(origlyricist,1)
$puts(origfilename,1)

// Spacer
$puts(spacer,d6d6d6------------------------------------------------------------------------------------------$char(10))

// color codes
$puts(headline,256d3d)
$puts(info,ec9184)
$puts(text,000000)
$puts(grayed,c8c8c8)

// chars
$puts(rating_char,♪)
$puts(progress_char,●)

// End Global Config
// ==============================================

// Song Info
$if($strcmp(1,$get(show_songinfo)),
$char(1)$get(headline)Song Info$char(10)
$if($strcmp(1,$get(title)),$get(info)Title: $get(text)$if(%title%,%title%,$get(grayed)'['No Title']')$char(10))
$if($strcmp(1,$get(artist)),$get(info)Artist: $get(text)$if(%artist%,%artist%,$get(grayed)'['Unknown Artist']')$char(10))
$if($strcmp(1,$get(mixartist))
|$strcmp(1,$get(band))
,
$if($strcmp(1,$get(mixartist)),$if(%mixartist%,$get(info)MixArtist: $get(text)%mixartist%$char(10)))
$if($strcmp(1,$get(band)),$if(%band%,$get(info)Band: $get(text)%band%$char(10))))
$if($strcmp(1,$get(album)),$if(%album%,$get(info)Album: $get(text)%album%$char(10)))
$if($strcmp(1,$get(tracknumber)),$if(%tracknumber%,$get(info)Track: $get(text)%tracknumber%$char(10)))
$if($strcmp(1,$get(genre)),$if(%genre%,$get(info)Genre: $get(text)%genre%$char(10)))
$if($strcmp(1,$get(bpm)),$if(%bpm%,$get(info)bpm: $get(text)%bpm%$char(10)))
$if($strcmp(1,$get(date)),$if(%date%,$get(info)Date: $get(text)%date%$char(10)))
$if($strcmp(1,$get(copyright)),$if(%copyright%,$get(info)© $get(text)%copyright%$char(10)))
)
$if($strcmp(1,$get(show_additionalinfo)),
$if($if(%comment%,$and($strcmp(1,$get(comment))))
|$if(%wwwartist%,$and($strcmp(1,$get(wwwartist))))
|$if(%publisher%,$and($strcmp(1,$get(publisher))))
|$if(%language%,$and($strcmp(1,$get(language))))
|$if(%composer%,$and($strcmp(1,$get(composer))))
|$if(%lyricist%,$and($strcmp(1,$get(lyricist))))
|$if(%conductor%,$and($strcmp(1,$get(conductor))))
|$if(%recordingdates%,$and($strcmp(1,$get(recordingdates))))
|$if(%fileowner%,$and($strcmp(1,$get(fileowner))))
,

$if($strcmp(1,$get(comment)),$if(%comment%,$get(info)Comment: $get(text)%comment%$char(10)))
$if($strcmp(1,$get(wwwartist)),$if(%wwwartist%,$get(info)Web: $get(text)%wwwartist%$char(10)))
$if($strcmp(1,$get(publisher)),$if(%publisher%,$get(info)Publisher: $get(text)%publisher%$char(10)))
$if($strcmp(1,$get(language)),$if(%language%,$get(info)Language: $get(text)%language%$char(10)))
$if($strcmp(1,$get(composer)),$if(%composer%,$get(info)Composer: $get(text)%composer%$char(10)))
$if($strcmp(1,$get(lyricist)),$if(%lyricist%,$get(info)Lyricist: $get(text)%lyricist%$char(10)))
$if($strcmp(1,$get(conductor)),$if(%conductor%,$get(info)Conductor: $get(text)%conductor%$char(10)))
$if($strcmp(1,$get(contentgroup)),$if(%contentgroup%,$get(info)Group: $get(text)%contentgroup%$char(10)))
$if($strcmp(1,$get(recordingdates)),$if(%recordingdates%,$get(info)Rec. Date: $get(text)%recordingdates%$char(10)))
$if($strcmp(1,$get(fileowner)),$if(%fileowner%,$get(info)Owner: $get(text)%fileowner%$char(10)))))
// End Song Info






// Tech Info
$if($strcmp(1,$get(show_techinfo)),
$char(10)

$char(1)$get(headline)Tech Info$char(10)
$get(info)Added:$get(text) %added% $get(info)Playcount:$get(text) %play_count%$char(10)
$if($strcmp(1,$get(codec)),$get(info)Codec: $get(text)%__codec%$char(10))
$if($strcmp(1,$get(bitrate)),$get(info)Bitrate: $get(text)%__bitrate% Kbit/s  $if2(%__extrainfo%,'CBR'))   
$if($strcmp(1,$get(samplerate)),$get(info)Samplerate: $get(text)%__samplerate% Hz$char(10))
$if($strcmp(1,$get(channels)),$get(info)Channels: $get(text)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10))
$puts(size,5)
$if($strcmp(1,$get(trackgain)),$if(%__replaygain_track_gain%,$get(info)RG Track: $get(text)$cut(%__replaygain_track_gain%,$get(size)) dB))           
$if($strcmp(1,$get(albumgain)),$if(%__replaygain_album_gain%,$get(info)RG Album: $get(text)$cut(%__replaygain_album_gain%,$get(size)) dB$char(10)))

$puts(rating,1)
$puts(_rating,$repeat($get(rating_char),%rating%))
$if($strcmp(1,$get(rating)),$if(%rating%,$get(info)Rating: $get(text) $get(_rating) $get(grayed)'('%rating%')'$char(10)))

$if($strcmp(1,$get(play_counter)),$if(%play_counter%,$get(info)Played $get(text)%play_counter%$get(info) times.$char(10)))
$if($strcmp(1,$get(play_date)),$if(%play_date%,$get(info)Last played: $get(text)%play_date%$char(10)))
$if($strcmp(1,$get(encodedby)),$if(%encodedby%,$get(info)Encoded by: $get(text)%encodedby%$char(10)))
$if($strcmp(1,$get(encodersettings)),$if(%encodersettings%,$get(info)Encoder Settings: $get(text)%encodersettings%$char(10)))

// formating filesize string by upNorth
$if($strcmp(1,$get(filesize)),$get(info)Filesize: $get(text)$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'$char(10))
$if($strcmp(1,$get(filename_ext)),$get(info)File: $get(text)%_filename_ext%$char(10))
$if($strcmp(1,$get(mediatype)),$if(%mediatype%,$get(info)Mediatype: $get(text)%mediatype%$char(10)))
$if($strcmp(1,$get(size)),$if(%size%,$get(info)Size: $get(text)%size%$char(10)))
$if($strcmp(1,$get(songlen)),$if(%songlen%,$get(info)Length: $get(text)%songlen%$char(10)))
$if($strcmp(1,$get(time)),$if(%time%,$get(info)Time: $get(text)%time%$char(10)))
)
// End Tech Info

// Web Info
$if($strcmp(1,$get(show_webinfo)),
$if($if(%wwwaudiofile%,$and($strcmp(1,$get(wwwaudiofile))))
|$if(%wwwcopyright%,$and($strcmp(1,$get(wwwcopyright))))
|$if(%wwwcommercialinfo%,$and($strcmp(1,$get(wwwcommercialinfo))))
|$if(%wwwpayment%,$and($strcmp(1,$get(wwwpayment))))
|$if(%wwwpublisher%,$and($strcmp(1,$get(wwwpublisher))))
|$if(%wwwuser%,$and($strcmp(1,$get(wwwuser))))
|$if(%wwwradiopage%,$and($strcmp(1,$get(wwwradiopage))))
|$if(%netradioowner%,$and($strcmp(1,$get(netradioowner))))
|$if(%netradiostation%,$and($strcmp(1,$get(netradiostation))))
,$get(spacer)

// Web Related
$if($strcmp(1,$get(show_webrelated)),
$if($if(%wwwaudiofile%,$and($strcmp(1,$get(wwwaudiofile))))
|$if(%wwwcopyright%,$and($strcmp(1,$get(wwwcopyright))))
|$if(%wwwcommercialinfo%,$and($strcmp(1,$get(wwwcommercialinfo))))
|$if(%wwwpayment%,$and($strcmp(1,$get(wwwpayment))))
|$if(%wwwpublisher%,$and($strcmp(1,$get(wwwpublisher))))
|$if(%wwwuser%,$and($strcmp(1,$get(wwwuser))))
,
$char(1)C$get(headline)Web Info$char(10)
$if($strcmp(1,$get(wwwaudiofile)),$if(%wwwaudiofile%,$get(info)File: $get(text)%wwwaudiofile%$char(10)))
$if($strcmp(1,$get(wwwcopyright)),$if(%wwwcopyright%,$get(info)© $get(text)%wwwcopyright%$char(10)))
$if($strcmp(1,$get(wwwaudiosource)),$if(%wwwaudiosource%,$get(info)Source: $get(text)%wwwaudiosource%$char(10)))
$if($strcmp(1,$get(wwwcommercialinfo)),$if(%wwwcommercialinfo%,$get(info)Info: $get(text)%wwwcommercialinfo%$char(10)))
$if($strcmp(1,$get(wwwpayment)),$if(%wwwpayment%,$get(info)Payment: $get(text)%wwwpayment%$char(10)))
$if($strcmp(1,$get(wwwpublisher)),$if(%wwwpublisher%,$get(info)Publisher: $get(text)%wwwpublisher%$char(10)))
$if($strcmp(1,$get(wwwuser)),$if(%wwwuser%,$get(info)User: $get(text)%wwwuser%$char(10)))
$char(10))
)
// End Web Info

// Net Radio Ifno
$if($strcmp(1,$get(show_netradioinfo)),

$if($if(%wwwradiopage%,$and($strcmp(1,$get(wwwradiopage))))
|$if(%netradioowner%,$and($strcmp(1,$get(netradioowner))))
|$if(%netradiostation%,$and($strcmp(1,$get(netradiostation))))
,$char(1)C$get(headline)NetRadio Info$char(10)
$if($strcmp(1,$get(wwwradiopage)),$if(%wwwradiopage%,$get(info)Page: $get(text)%wwwradiopage%$char(10)))
$if($strcmp(1,$get(netradioowner)),$if(%netradioowner%,$get(info)Owner: $get(text)%netradioowner%$char(10)))
$if($strcmp(1,$get(netradiostation)),$if(%netradiostation%,$get(info)Station: $get(text)%netradiostation%$char(10))))
)))
// End - Web Related

// Misc Info
$if($strcmp(1,$get(show_miscinfo)),
$if($if(%subtitle%,$and($strcmp(1,$get(subtitle))))
|$if(%involvedpeople%,$and($strcmp(1,$get(involvedpeople))))
|$if(%playlistdelay%,$and($strcmp(1,$get(playlistdelay))))
|$if(%initialkey%,$and($strcmp(1,$get(initialkey))))
|$if(%isrc%,$and($strcmp(1,$get(isrc))))
|$if(%partinset%,$and($strcmp(1,$get(partinset))))
,$get(spacer)
$char(1)C$get(headline)Misc Info$char(10)
$if($strcmp(1,$get(subtitle)),$if(%subtitle%,$get(info)Subtitle: $get(text)%subtitle%$char(10)))
$if($strcmp(1,$get(involvedpeople)),$if(%involvedpeople%,$get(info)Involved People: $get(text)%involvedpeople%$char(10)))
$if($strcmp(1,$get(playlistdelay)),$if(%playlistdelay%,$get(info)Playlistdelay: $get(text)%playlistdelay%$char(10)))
$if($strcmp(1,$get(initialkey)),$if(%initialkey%,$get(info)Initialkey: $get(text)%initialkey%$char(10)))
$if($strcmp(1,$get(isrc)),$if(%isrc%,$get(info)ISRC: $get(text)%isrc%$char(10)))
$if($strcmp(1,$get(partinset)),$if(%partinset%,$get(info)Partinset: $get(text)%partinset%$char(10)))
))
// End Misc Info

// Original Info
$if($strcmp(1,$get(show_originalinfo)),
$if($if(%origartist%,$and($strcmp(1,$get(origartist))))
|$if(%origyear%,$and($strcmp(1,$get(origyear))))
|$if(%origlyricist%,$and($strcmp(1,$get(origlyricist))))
|$if(%origfilename%,$and($strcmp(1,$get(origfilename))))
,$get(spacer)
$char(1)C$get(headline)Original Info$char(10)
$if($strcmp(1,$get(origartist)),$if(%origartist%,$get(info)Artist: $get(text)%origartist%$char(10)))
$if($strcmp(1,$get(origyear)),$if(%origyear%,$get(info)Year: $get(text)%origyear%$char(10)))
$if($strcmp(1,$get(origlyricist)),$if(%origlyricist%,$get(info)Lyricist: $get(text)%origlyricist%$char(10)))
$if($strcmp(1,$get(origfilename)),$if(%origfilename%,$get(info)Filename: $get(text)%origfilename%$char(10)))
))

My components:

Code: [Select]
Core (2006-11-25 14:21:34)
    foobar2000 core 0.9.4.2
foo_abx.dll (2006-11-25 14:20:22)
    ABX Comparator 1.3.1
foo_albumlist.dll (2006-11-25 18:49:06)
    Album List 3.2.0
foo_browser.dll (2006-12-04 09:42:48)
    Music Browser 1.2.3 [Dec  4 2006 - 09:42:32]
foo_burninate.dll (2006-08-04 20:56:44)
    Audio CD Writer 2.0.1
foo_cdda.dll (2006-11-25 14:19:46)
    CD Audio Decoder 2.1.1
foo_converter.dll (2006-11-25 14:20:00)
    Converter 1.0.1
foo_custominfo.dll (2006-08-25 04:12:16)
    foo_custominfo 0.1.2
foo_cwb_hooks.dll (2006-12-01 13:47:46)
    cwbowron's title format hooks 1.1.0beta [Dec  1 2006 - 13:47:34]
foo_dbsearch.dll (2006-03-12 23:24:38)
    Database search 1.3.1 beta 11
foo_dockable_panels.dll (2006-12-04 09:04:14)
    Dockable Panels 1.0.5 [Dec  4 2006 - 09:04:00]
foo_dsp_continuator.dll (2006-09-06 10:28:10)
    Continuator 0.4.0
foo_dsp_std.dll (2006-11-25 14:20:12)
    Standard DSP array 1.0
foo_extm3u.dll (2007-02-02 00:10:27)
    EXTM3U playlist format plugin 1.3
foo_freedb2.dll (2006-08-29 19:43:04)
    freedb Tagger 0.5.2a
foo_infobox.dll (2006-06-25 12:48:13)
    Special file info box 2.0.3
foo_input_monkey.dll (2006-08-04 20:57:18)
    Monkey's Audio decoder 2.1.1
foo_input_std.dll (2006-11-25 14:19:14)
    FLAC Decoder 1.1.0
    Standard Input Array 1.0
    WMA Decoder 1.1
foo_lnk.dll (2006-03-11 18:24:54)
    Shell link resolver 1.1
foo_lyricsdb.dll (2006-07-19 22:45:52)
    foo_lyricsdb 0.0.7 beta 4
foo_masstag.dll (2006-11-25 14:18:42)
    Masstagger 1.6
foo_masstag_addons.dll (2006-10-15 08:59:42)
    Masstagger Addons 0.3.2
foo_menu_addons.dll (2006-11-28 04:28:28)
    Menu Addons 0.3.6
foo_midi.dll (2006-08-21 09:42:26)
    MIDI synthesizer host 1.7
foo_navigator.dll (2006-11-04 20:56:28)
    Navigator 0.6
foo_playcount.dll (2006-09-16 16:55:54)
    Playback Statistics 1.3.2
foo_playlist_manager.dll (2006-03-12 23:25:15)
    Playlist Manager 1.0
foo_preview.dll (2006-07-24 16:19:51)
    Preview 1.2
foo_random.dll (2006-03-13 10:35:03)
    Randomized playlist entry 1.2.3
foo_rating.dll (2006-12-10 04:22:22)
    foo_rating BETA 1.1
foo_rgscan.dll (2006-11-25 14:18:18)
    ReplayGain Scanner 2.0.2
foo_run.dll (2006-06-15 21:08:10)
    Run services 0.3.2
foo_scheduler.dll (2006-12-04 17:23:20)
    Scheduler 3.52
foo_sendtodevice.dll (2006-05-17 12:21:24)
    Send to Device 1.0.4 [May 17 2006 - 13:21:17]
foo_ui_columns.dll (2006-04-29 21:48:01)
    Columns UI 0.1.3 beta 1v5
foo_ui_std.dll (2006-11-25 14:18:12)
    Default User Interface 0.9acc
foo_uie_albumart.dll (2006-10-07 15:35:36)
    Album Art Panel 0.2.5
foo_uie_albumlist.dll (2006-04-28 13:15:07)
    Album list panel 0.2.1 beta 4
foo_uie_bookmarks.dll (2006-09-14 23:26:32)
    Bookmarks 0.0.5.2
foo_uie_console.dll (2006-04-28 13:14:36)
    Console panel 0.2
foo_uie_quicksearch.dll (2006-10-15 17:56:24)
    Quick Search Toolbar 2.8j
foo_uie_tabs.dll (2006-09-15 22:42:12)
    Tabbed panel modified 0.2.4
foo_uie_trackinfo_mod.dll (2007-01-05 13:36:20)
    Track info panel mod 0.8.0 beta [Jan  5 2007 - 13:36:12]
foo_unpack.dll (2006-11-25 14:20:32)
    RAR reader 1.1
    ZIP/GZIP reader 1.0
foo_utils.dll (2006-04-27 11:37:32)
    Playlist tools 0.5.7
foo_verifier.dll (2006-08-29 21:09:16)
    File Integrity Verifier 1.0.1
foo_write_http.dll (2006-09-06 10:44:32)
    HTTP Writer 1.1

You got any idea what happens there?

I forgot: When I switch to another tab and back, the trackinfo gets refreshed!

JD


/edit: "I forgot..."

Track Info Panel with ability to change font

Reply #1111
OK so I have this panel, and I stole some code from some other people's configs, but I'm not sure how to do some stuff. Can I have some help guys?

Code: [Select]
// !!!!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(85,217,255))

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

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

// 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(100,105,110))
$puts(text1,$if(%_trackinfo_nowplaying%,$rgb(19,66,94))$if(%_trackinfo_followcursor%,$get(followcursorcol)))
$puts(fadeend,$rgb(245,245,240))
$puts(seplen,70)
$puts(sepchar,'.')

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


// 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(%title%,$get(head)Title: $get(info)%title%$char(10),)
$if(%artist%,$get(head)Artist: $get(info)%artist%$char(10),)
$if(%album%,$get(head)Album: $get(info)%album%$char(10),)
$if(%date%,$get(head)Year: $get(info)%date%$char(10),)
$if(%tracknumber%,$get(head)Track #: $get(info)%tracknumber%$char(10),)
$if(%genre%,$get(head)Genre: $get(info)%genre%$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)


This is what I have now (yes, I know the tech bit is empty. Basically, I want to know how to just show something like "Not Playing" when everything is stopped. Currently, it shows the separators, and when I had stuff in the tech section, it showed the prefixes and notations for the info (eg "kbps"), but no info, and it looked messy.
Any ideas?

Track Info Panel with ability to change font

Reply #1112
I want to know how to just show something like "Not Playing" when everything is stopped. Currently, it shows the separators, and when I had stuff in the tech section, it showed the prefixes and notations for the info (eg "kbps"), but no info, and it looked messy.
Code: [Select]
$if(%isplaying%,
// Code For Displaying Information //
,
Not Playing
)

Track Info Panel with ability to change font

Reply #1113
Thanks

Track Info Panel with ability to change font

Reply #1114
Is there a way to position a group of things?
I'm adding rating buttons/stars to my trackinfo area, so that when I click on the star, it rates the track playing (kinda stolen from Brumals config)

Now there's a block of code for all of this, and it's currently displaying them aligned a bit off to the right, but in the wrong vertical place. Is there a way to align them all, or will I have to do each star/button separately?

Code: [Select]
// rating images
$ifequal(%rating%,1,
$button($sub(%_width%,82),79,0,0,12,12,/images\brumal-treeline\star-on.png,,TAG:SET:Rating:,),
$button($sub(%_width%,82),79,0,0,12,12,
$ifgreater(%rating%,0,/images\brumal-treeline\star-on.png,/images\brumal-treeline\star-off.png)
,,TAG:SET:Rating:1,)
)
$ifequal(%rating%,2,
$button($sub(%_width%,70),79,0,0,12,12,/images\brumal-treeline\star-on.png,,TAG:SET:Rating,),
$button($sub(%_width%,70),79,0,0,12,12,
$ifgreater(%rating%,1,/images\brumal-treeline\star-on.png,/images\brumal-treeline\star-off.png)
,,TAG:SET:Rating:2,)
)
$ifequal(%rating%,3,
$button($sub(%_width%,58),79,0,0,12,12,/images\brumal-treeline\star-on.png,,TAG:SET:Rating,),
$button($sub(%_width%,58),79,0,0,12,12,
$ifgreater(%rating%,2,/images\brumal-treeline\star-on.png,/images\brumal-treeline\star-off.png)
,,TAG:SET:Rating:3,)
)
$ifequal(%rating%,4,
$button($sub(%_width%,46),79,0,0,12,12,/images\brumal-treeline\star-on.png,,TAG:SET:Rating,),
$button($sub(%_width%,46),79,0,0,12,12,
$ifgreater(%rating%,3,/images\brumal-treeline\star-on.png,/images\brumal-treeline\star-off.png)
,,TAG:SET:Rating:4,)
)
$ifequal(%rating%,5,
$button($sub(%_width%,34),79,0,0,12,12,/images\brumal-treeline\star-on.png,,TAG:SET:Rating,),
$button($sub(%_width%,34),79,0,0,12,12,
$ifgreater(%rating%,4,/images\brumal-treeline\star-on.png,/images\brumal-treeline\star-off.png)
,,TAG:SET:Rating:5,)
)


Also, for some reason, if I put in another separator for "Rating" as in the code above, it breaks the "Not Playing" thing I have. I'm putting it in before the rating code, and inside the $if(isplaying etc code. Any ideas?

Edit: Never mind, I figured out the vertical alignment. now if there's an easy way to align all 5 to the centre....

Track Info Panel with ability to change font

Reply #1115
is there a way to do this:

when I play a .ASX file (online radio stream) I want to see something like this:

Internet radio station in my trackinfo panel.

else just my normal info:

$alignabs(2,5,%_width%,15,,)Artist: [%artist%]
$alignabs(2,20,%_width%,15,,)Title: [%title%]
$alignabs(2,35,%_width%,15,,)Album: [%album%]    [Track: #%Tracknumber%]
$alignabs(2,50,%_width%,15,,)Date: [%date%]
$alignabs(2,65,%_width%,15,,)Genre: [%genre%]
$alignabs(2,80,%_width%,15,,)Bitrate: [%bitrate% kbps]

Track Info Panel with ability to change font

Reply #1116
can imageabs STRETCH picture to lager ? like 150x150 to 300x300 ?

any other function can ?

Track Info Panel with ability to change font

Reply #1117
can imageabs STRETCH picture to lager ? like 150x150 to 300x300 ?

any other function can ?


No, you need to use $imageabs2
Check the wiki to learn how to use this function.

Track Info Panel with ability to change font

Reply #1118
I was wondering, is there a performance penalty for using a track info panel inside panels ui, relative to just putting whatever you were going to put directly into the main panels ui code?  It would be helpful for organizing in some cases.  Does it make a performance difference if you use several such panels relative to just using one?

Track Info Panel with ability to change font

Reply #1119
Is there a way to position a group of things?
...
Edit: Never mind, I figured out the vertical alignment. now if there's an easy way to align all 5 to the centre....
My suggestion would be to choose a reference point such as a side or the middle of your buttons. Then define a variable with $puts() for that reference point and code all your buttons off of that with $get(). For example:
Code: [Select]
$puts(offset.button.x,$div(%_width%,2))
$puts(offset.button.y,$sub(%_height%,16))

$button($sub($get(offset.button.x),50),$get(offset.button.y),0,0,0,0,/images\dark.prev.png,/images\bright.prev.png,Previous,)
$button($sub($get(offset.button.x),25),$get(offset.button.y),0,0,0,0,/images\dark.stop.png,/images\bright.stop.png,Stop,)
$button($get(offset.button.x),$get(offset.button.y),0,0,0,0,/images\dark.$if(%ispaused%,pause,play).png,/images\bright.$if(%ispaused%,pause,play).png,Play or Pause,TOOLTIP:$if(%isplaying%,$if(%ispaused%,Resume,Pause),Play))
$button($add($get(offset.button.x),25),$get(offset.button.y),0,0,0,0,/images\dark.next.png,/images\bright.next.png,Next,)
This way all you need to do is change the variable at the top and the entire group of buttons will move accordingly. If you go even further by defining that variable based off of window size like in the example above, the buttons will automatically reposition themselves if you resize foobar.


barry123:
Code: [Select]
$if($strcmp($left(%path%,7),http$char(58)$char(47)$char(47)),
Internet Radio Stream
,
$alignabs(2,5,%_width%,15,,)Artist: [%artist%]
$alignabs(2,20,%_width%,15,,)Title: [%title%]
$alignabs(2,35,%_width%,15,,)Album: [%album%] [Track: #%Tracknumber%]
$alignabs(2,50,%_width%,15,,)Date: [%date%]
$alignabs(2,65,%_width%,15,,)Genre: [%genre%]
$alignabs(2,80,%_width%,15,,)Bitrate: [%bitrate% kbps]
)

Track Info Panel with ability to change font

Reply #1120
thank you for the answer, but nothing happens when I listen to a radio station.

this is the file I open:
633104880142201250.ASX

the code is
$if($strcmp($left(%path%,7),http$char(58)$char(47)$char(47)),

so I tried
$if($strcmp($left(%path%,7),*.asx$char(58)$char(47)$char(47)),

but It won't work
I see nothing at all.

Track Info Panel with ability to change font

Reply #1121
If I add the //Persecond bit above my code for bitrate and length, it makes the rest of the stuff disappear, and completely changes the formatting for the display. Any ideas on how to fix this?

Track Info Panel with ability to change font

Reply #1122
sorry for bothering again. any ideas for my described little abnormality?

JD

Track Info Panel with ability to change font

Reply #1123
If I add the //Persecond bit above my code for bitrate and length, it makes the rest of the stuff disappear, and completely changes the formatting for the display. Any ideas on how to fix this?


post the script.

possible some ] or , forgotten.

Track Info Panel with ability to change font

Reply #1124
Code: [Select]
// !!!!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(19,66,94))

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

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

// 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(100,105,110))
$puts(text1,$if(%_trackinfo_nowplaying%,$rgb(19,66,94))$if(%_trackinfo_followcursor%,$get(followcursorcol)))
$puts(fadeend,$rgb(245,245,240))
$puts(seplen,70)
$puts(sepchar,'.')

// NOT PLAYING
$puts(notplaying,$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)Not Playing $get(text1)']'$char(10))

// !!!!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))

$if(%isplaying%,
// 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(%title%,$get(head)Title: $get(info)%title%$char(10),)
$if(%artist%,$get(head)Artist: $get(info)%artist%$char(10),)
$if(%album%,$get(head)Album: $get(info)%album%$char(10),)
$if(%date%,$get(head)Year: $get(info)%date%$char(10),)
$if(%tracknumber%,$get(head)Track #: $get(info)%tracknumber%$char(10),)
$if(%genre%,$get(head)Genre: $get(info)%genre%$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)%_length%$char(10)
$get(head)Codec: $get(info)%codec%[ '('%__extrainfo%')'][ %codec_profile%] @ %bitrate%kbps )$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(%_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),)

// rating images
$ifequal(%rating%,1,
$button($sub(%_width%,82),290,0,0,12,12,/images\brumal-treeline\star-on.png,,TAG:SET:Rating:,),
$button($sub(%_width%,82),290,0,0,12,12,
$ifgreater(%rating%,0,/images\brumal-treeline\star-on.png,/images\brumal-treeline\star-off.png)
,,TAG:SET:Rating:1,)
)
$ifequal(%rating%,2,
$button($sub(%_width%,70),290,0,0,12,12,/images\brumal-treeline\star-on.png,,TAG:SET:Rating,),
$button($sub(%_width%,70),290,0,0,12,12,
$ifgreater(%rating%,1,/images\brumal-treeline\star-on.png,/images\brumal-treeline\star-off.png)
,,TAG:SET:Rating:2,)
)
$ifequal(%rating%,3,
$button($sub(%_width%,58),290,0,0,12,12,/images\brumal-treeline\star-on.png,,TAG:SET:Rating,),
$button($sub(%_width%,58),290,0,0,12,12,
$ifgreater(%rating%,2,/images\brumal-treeline\star-on.png,/images\brumal-treeline\star-off.png)
,,TAG:SET:Rating:3,)
)
$ifequal(%rating%,4,
$button($sub(%_width%,46),290,0,0,12,12,/images\brumal-treeline\star-on.png,,TAG:SET:Rating,),
$button($sub(%_width%,46),290,0,0,12,12,
$ifgreater(%rating%,3,/images\brumal-treeline\star-on.png,/images\brumal-treeline\star-off.png)
,,TAG:SET:Rating:4,)
)
$ifequal(%rating%,5,
$button($sub(%_width%,34),290,0,0,12,12,/images\brumal-treeline\star-on.png,,TAG:SET:Rating,),
$button($sub(%_width%,34),290,0,0,12,12,
$ifgreater(%rating%,4,/images\brumal-treeline\star-on.png,/images\brumal-treeline\star-off.png)
,,TAG:SET:Rating:5,)
)
,
$get(notplaying)
)


If I put the //Persecond bit above the "Tech info" area, then it just shows a couple of lines from that, but in bold, and black (doesn't use custom formatting).
I want to be able to have a timer counting down witht he time played.