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

Track Info Panel with ability to change font

Reply #1075
PanelsUI replaces ColumnsUI?

Track Info Panel with ability to change font

Reply #1076
Panels UI and Columns UI work together. Panels UI will replace Columns UI as your interface however Panels UI needs to have Columns UI installed to work properly and uses Columns UI components for the panels. It is more of a supliment than a replacement.

If you want to use the latest TrackInfoMod and SingleColumnPlaylist you simply need to put the foo_ui_panels.dll in your components directory and remove foo_uie_track_info_mod.dll and foo_uie_single_column_playlist.dll. You do not have to actually switch to the panels interface but the components have been consolidated into a single file.

Track Info Panel with ability to change font

Reply #1077
Hi, i am trying to have %playback_time% in this format :
00:00:00 (HH:MM:SS). but i cant find a way to get it right, especially keeping everything in two digits. Does someone knows how to do this.

Track Info Panel with ability to change font

Reply #1078
If you have cwb_hooks installed then you can use $cwb_hms( seconds ) to do the hard work for you.

Track Info Panel with ability to change font

Reply #1079
wow, thank you!

Track Info Panel with ability to change font

Reply #1080
Since we are discussing this, here is a bit of code I've been hammering out for a time display that you can click on to switch between time elapsed, time remaining, and total length:
Code: [Select]
// PerTrack
$button2($sub(%_width%,100),2,0,0,70,30,,'
$align(center,middle)
$select($add($getpvar(time.display),1),Elapsed,Remaining,Length)
',PVAR:SET:time.display:
$ifgreater($getpvar(time.display),1,0,$add($getpvar(time.display),1))
,)

// PerSecond
$font(tahoma,18,,0-0-0)

$select($add($getpvar(time.display),1),
$puts(time.display,%playback_time_seconds%)
,
$puts(time.display,$sub(%length_seconds%,%playback_time_seconds%))
,
$puts(time.display,%length_seconds%)
)

$alignabs($sub(%_width%,100),2,70,30,right,)
$ifgreater($get(time.display),59,,00:)
$ifgreater($get(time.display),9,,0)
$cwb_hms($get(time.display))
This works but there are a few things that bug me about it. I had to add the text for the hover code because if I left it blank, the time would disappear completely on mouseover. I wanted to put the time display as the normal button code however buttons do not work under persecond and the code wont update properly anywhere else. There is a slight delay when you take the mouse off of the button until the next persecond refresh.

Anyway it uses the $cwb_hms() function as mentioned above, it will pad zeros at the beginning if the time is too short, and I figured somebody might find this useful.

Track Info Panel with ability to change font

Reply #1081
First of all, great plugin.

I don't know if this has been brought up already, but using this, I tried to have it display elapsed time / total time. The elapsed time kind of sticks unless foobar does something. Is there any way to keep the panel active so it keeps up with the time?

Track Info Panel with ability to change font

Reply #1082
put
Code: [Select]
// PerSecond
above the part you want to get updated per second

Track Info Panel with ability to change font

Reply #1083
EDIT: Never mind, I got it. Thanks!

Track Info Panel with ability to change font

Reply #1084
hey i was rearrranging my layout and somehow my whole config of my track info mod panel disappeared. Is there a way to get it back (ie it's somewhere in a config file) or am i screwed?

Track Info Panel with ability to change font

Reply #1085
if foobar hasn't been closed yet, kill it with the taskmanager. If it has, you're screwed.
elevatorladylevitateme

Track Info Panel with ability to change font

Reply #1086
hey i was rearrranging my layout and somehow my whole config of my track info mod panel disappeared. Is there a way to get it back (ie it's somewhere in a config file) or am i screwed?


I discoved the other day that windows records the foobar.cfg as part of the system restore. I don't suggest that you use System Restore, but you should be able to get it out of the System Volume Information folder (wont be named foobar.cfg mind).

Track Info Panel with ability to change font

Reply #1087
do you mind reminding me where i can find this folder? also under what name should i find this .cfg? thanks a million

Track Info Panel with ability to change font

Reply #1088
You'll need Administrator access, and what ever you do don't muck about with the files. If you do and attempt a restore you really screw up you system. It's probably in:
C:\System Volume Information\_restore{<hexcode>}\RP<numbers>\A<numbers>.cfg

Track Info Panel with ability to change font

Reply #1089
Is there any possibility to have buttons that doesn't execute a command but opens a submenu with commands?
I would like to replace my main menu without bloating my UI with so many buttons - so i thought i could 1. define groups of commands in a button wich are then shown in submenu and 2. creating buttons that show submenus that already exist in main menu (f.e. main menu->edit->sort)

Edit: and 3. buttons that opens menus with commands and menus. (and opportunity to set seperators)

Track Info Panel with ability to change font

Reply #1090
Hi all,

I think I have bug.
I have setup a trackinfopanel that looks good most of the time. When I open foobar (foobar.exe or any link pointing to it), everything looks OK, but when I double click on an mp3 file, the pictures from the trackinfo won't show.
Do you also have the same problem ?

Here the code (you could not make simplier !):

// Background
$imageabs2(%_width%,%_height%,,,,,,,images\blue.png,NOKEEPASPECT)

Same pb with buttons in //Per Track section



Stupid me, the answer was in the Wiki:
"Note: when using relative path, add a slash ('/') at the beginning."

So I have my answer !

Leo

Track Info Panel with ability to change font

Reply #1091
I don't know if it's already been requested or even possible, but it would be very awesome if there was the option to add either a vertical or horizontal scrollbar to a panel, or at least make it scrollable with the mouse wheel.

Track Info Panel with ability to change font

Reply #1092
Im using this plugin for a while, but i cant find something:

The trackinfo panel displays information about the current song SELECTED in my playlist. However, i want trackinfo to let me view information about the current song PLAYING, and not selected.

Can someone help me?

Track Info Panel with ability to change font

Reply #1093
Im using this plugin for a while, but i cant find something:

The trackinfo panel displays information about the current song SELECTED in my playlist. However, i want trackinfo to let me view information about the current song PLAYING, and not selected.

Can someone help me?

rightclick -> mode
elevatorladylevitateme

Track Info Panel with ability to change font

Reply #1094
Srry for this stupid question, its mentioned in the first sentence of this thread...

Its working fine now

When im playing a song, i use 'now playing' mode. When i stop, i have to manually change to 'follow cursor' mode (because, when nothing is playing, i prefer 'follow cursor' mode)

Is there any way by doing this automatically? So when i stop playing, it will switch automatically to 'follow cursor' mode?

Track Info Panel with ability to change font

Reply #1095
Its been awhile since I posted but I was wondering if anyone figured out how to make scrolling lyrics work properly with the lyrics scrolling in direct relation to the percentage of the song playing and ending in the middle of the display area. I have come close a few times but its inconsistant depending on the length of the song. Thanks.

-Brandon

Track Info Panel with ability to change font

Reply #1096
Srry for this stupid question, its mentioned in the first sentence of this thread...

Its working fine now

When im playing a song, i use 'now playing' mode. When i stop, i have to manually change to 'follow cursor' mode (because, when nothing is playing, i prefer 'follow cursor' mode)

Is there any way by doing this automatically? So when i stop playing, it will switch automatically to 'follow cursor' mode?

terrestrial had a good solution for this some posts back.  create a second track display panel, and keep one in each mode.  Then use an $if(%isplaying%...) to switch between them.
Code: [Select]
Ex.
$if(%isplaying%,
$panel(TDplaying,Track Display....)
,
$panel(TDstopped,Track Display....)
)

Track Info Panel with ability to change font

Reply #1097
I just wrote a script that fits a single-lined string into an arbitrary sized rectangle (here the panel)
Just tested it with Calibri bold font

Code: [Select]
// Global
// this script only works with a defaultFontSize of 1
$puts(defaultfontsize,1)
$puts(dpi,92)

// Set defaultFont to calculate text width and height for the text being displayed
$font(Calibri,$get(defaultfontsize),bold,255-255-255)

// PerTrack
$if(%_trackinfo_notrack%,
    $puts(text,No track)
,
    //Put your Text here
    $puts(text,%title% performed by %artist%)
)

$puts(textwidth,$calcwidth($get(text)))
$puts(textheight,$calcheight($get(text)))

// Rectangle that the text is fit in
$puts(rectwidth,%_width%)
$puts(rectheight,%_height%)

// Text and Panel aspect ratios multiplied by 10000 due to lack of float values
$puts(textAR,$muldiv(10000,$get(textwidth),$get(textheight)))
$puts(panelAR,$muldiv(10000,$get(rectwidth),$get(rectheight)))

$if($greater($get(panelAR),$get(textAR)),
    $puts(fontsize,$muldiv($get(defaultfontsize),$get(rectheight),$get(textheight)))
,
    $puts(fontsize,$muldiv($get(defaultfontsize),$get(rectwidth),$get(textwidth)))
)

// convert from points to pixels (thanks to terrestrial)
$puts(fontsize, $muldiv($get(fontsize),$get(dpi),72))


// OUTPUT SECTION
$font(Calibri, $get(fontsize),bold,255-255-255)

$get(text)


Feel free to use and adjust it to suit your needs

greetz

 

Track Info Panel with ability to change font

Reply #1098
This belong here more than elsewhere.

Is there a way to center buttons that use text? I'd like it to not hover towards the right.
naaa na na naaaaaa na na NAAAAAAA na na naaaaaaaaa

Track Info Panel with ability to change font

Reply #1099
This belong here more than elsewhere.

Is there a way to center buttons that use text? I'd like it to not hover towards the right.

You can include an $align() before your actual button text.  Ex -
Code: [Select]
$button(,,,,50,12,'$align(center,middle)Test','$align(center,middle)TEST','COMMAND',)