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

Track Info Panel with ability to change font

Reply #650
This latest release causes my foobar to explode, consuming all the resources it can grab and making my system unresponsive for several minutes before I can finally kill the process and return to normality. This happens during the initial foobar loading so there is little I can do to narrow down the problem other than remove the component.

Request: Would you consider continuing to host the last known stable release of your component on your download page in addition to any recent releases so that those of us who forgot to backup their component or configuration can roll back when things like this happen?


must be a conflicting plugin?

Track Info Panel with ability to change font

Reply #651
To investigate if this is a matter of a conflicting plugin I have installed a separate copy of foobar using only:

foo_input_std.dll
foo_ui_columns.dll
foo_uie_trackinfo_mod.dll

I have used both foobar 0.9.4.1 and 0.9.4.2 beta 2
I have used both ColumnsUI v0.1.3 b1v6 and 0.1.3 b1v7

I continue to experience the problem of foobar consuming excessive resources and becoming non-responsive during load when using the latest version of trackinfomod. The problem goes away when trackinfomod is removed.

Does anyone have a mirror for the previous version of trackinfomod?

Track Info Panel with ability to change font

Reply #652
unfortunately I don't have older versions... but I should hopefully be able to fix the problem

maybe it has something to do with your code... please post it and I will take a look.

also does it happen with the default code, plus have you tried removing trackinfo mod completely to see if the problem persists?

Track Info Panel with ability to change font

Reply #653
After a long process of rebuilding my foobar piece by piece I tracked the problem down to a typo in the code. Sorry to bother you :)

Track Info Panel with ability to change font

Reply #654
Quote
Changelog:
+ mode changes through the context menu instead of double click


ooooh thanks a lot for this Terrestrial!! Now I can use the volume controls in my track info panel in a comfortable way.. cool


Track Info Panel with ability to change font

Reply #656
Still waiting for NOKEEPASPECT and file exist checking , these are the things I need to implement the new designs I am thinking of.

You can do file exists with foo_cwb_hooks now.

I still need inline instead of absolute positioned buttons.

Track Info Panel with ability to change font

Reply #657
Still waiting for NOKEEPASPECT and file exist checking , these are the things I need to implement the new designs I am thinking of.


its in there... most stuff automatically gets added to both components since they share a lot of the same source code.

Track Info Panel with ability to change font

Reply #658
Is there any way to calculate the size of a rezised image?

For example:

I have an image of size 180x350 (CD Single Cover).
I use this function to load the image:
$imageabs2(85,85,,,,,,,image.jpg,)
The resulting image is 43x85 (scaled as expected).

How do I calculate that the width will be 43 from an arbitrary image? Not all my images are this same aspect ratio.

Track Info Panel with ability to change font

Reply #659
Is there any way to calculate the size of a rezised image?

For example:

I have an image of size 180x350 (CD Single Cover).
I use this function to load the image:
$imageabs2(85,85,,,,,,,image.jpg,)
The resulting image is 43x85 (scaled as expected).

How do I calculate that the width will be 43 from an arbitrary image? Not all my images are this same aspect ratio.
That's the sort of thing I'd like to know.

Also, in your example, the 43x85 pic is displayed in the middle of a 85x85 box.  It would be nice to choose whether the pic is displayed in the left/middle/right of the box, or top/centre/bottom.

Track Info Panel with ability to change font

Reply #660

Still waiting for NOKEEPASPECT and file exist checking , these are the things I need to implement the new designs I am thinking of.


its in there... most stuff automatically gets added to both components since they share a lot of the same source code.


Oh excellent

Is there anyway to force an image resize when the window is resized?

Track Info Panel with ability to change font

Reply #661
@terrestrial
Is there some sort of feature list that you're working on? Is my request even being considered? I ask because I've never seen any comment on it.

Track Info Panel with ability to change font

Reply #662
Is there any way to calculate the size of a rezised image?


not currently.

Also, in your example, the 43x85 pic is displayed in the middle of a 85x85 box.  It would be nice to choose whether the pic is displayed in the left/middle/right of the box, or top/centre/bottom.


you can specify where teh image is aligned in the image options-- you might have to check the scpl changelog for the exact syntax.

Is there anyway to force an image resize when the window is resized?


nope. will do for the next version.

@terrestrial
Is there some sort of feature list that you're working on? Is my request even being considered? I ask because I've never seen any comment on it.


yes that feature will make it in, but it will have to wait for a rewrite of the drawing code- which I don't know when I'll get to

Track Info Panel with ability to change font

Reply #663

Also, in your example, the 43x85 pic is displayed in the middle of a 85x85 box.  It would be nice to choose whether the pic is displayed in the left/middle/right of the box, or top/centre/bottom.

you can specify where teh image is aligned in the image options-- you might have to check the scpl changelog for the exact syntax.


Or you can go the wiki. I've made a couple of updates today, hopefully it is now up to date. And while you are there, you can also take a look for some informations that I would have missed.

Track Info Panel with ability to change font

Reply #664

@terrestrial
Is there some sort of feature list that you're working on? Is my request even being considered? I ask because I've never seen any comment on it.


yes that feature will make it in, but it will have to wait for a rewrite of the drawing code- which I don't know when I'll get to

Thanks for the update. I'll be patient now. 

Track Info Panel with ability to change font

Reply #665
its in there... most stuff automatically gets added to both components since they share a lot of the same source code.
Does that mean buttons will be implemented into the single column playlist code?

Track Info Panel with ability to change font

Reply #666
As a side note, I'd just like to comment on terrestrial's awesome attitude towards bug reports and\or feature requests, as well as questions most developers find annoying (and i can understand those too, being one myself) like "when is the next version done".

It's nice to see such friendly and active developers in the community. Kudos

Track Info Panel with ability to change font

Reply #667
As a side note, I'd just like to comment on terrestrial's awesome attitude towards bug reports and\or feature requests, as well as questions most developers find annoying (and i can understand those too, being one myself) like "when is the next version done".

It's nice to see such friendly and active developers in the community. Kudos

Here! Here!

Track Info Panel with ability to change font

Reply #668
Can values be appended with buttons? I just realised that what I want to do with non-aligned buttons really requires that as well. I'd like to be able to click each button and add the value instead of replacing the existing value.

 

Track Info Panel with ability to change font

Reply #669
I've got a couple of small problems to which I haven't been able to find a solution yet. I hope this is the right place to ask for help, otherwise I apologize. 

1. I've set the default font to Verdana 7pt, but whenever I try to use a larger amount of pt (like 20 pt on the second line below //Track in the codebox) that line get's drawn but the other lines don't  See the screenshots.


(How it's supposed to look like with small font)

Code: [Select]
//Track
$alignabs(665,87,50,12,,)$font(Verdana,,,)$transition(Track:,$rgb(25,100,255),$rgb(0,0,0))
$alignabs(700,87,280,12,center,middle)$font(Verdana,,,)$if(%title%,$transition(%title%,$rgb(25,100,255),$rgb(0,0,0)),$transition(Unknown titlet,$rgb(25,100,255),$rgb(0,0,0)))

(What happens with 20pt)

Code: [Select]
//Track
$alignabs(665,87,50,12,,)$font(Verdana,,,)$transition(Track:,$rgb(25,100,255),$rgb(0,0,0))
$alignabs(700,87,280,50,center,middle)$font(Verdana,20,,)$if(%title%,$transition(%title%,$rgb(25,100,255),$rgb(0,0,0)),$transition(Unknown titlet,$rgb(25,100,255),$rgb(0,0,0)))

2. Whenever I enable "Update every second" using the code below, CPU usage goes up to 14% (P4 2.4GHZ). I don't use a lot of code, i suspect it has to do with my code for the $imageabs2 functions but i can't seem to solve the problem. Do variables on lines that have been commented out still get evaluated? Because commenting out the line with $puts and $alignabs doesn't seem to do much, makes up for a difference of 1 or 2%. With the "Update every second" CPU usages simply is 0%.

Code: [Select]
//Background
$imageabs2(1280,350,0,0,1280,350,0,0,images/background.png,)
$imageabs2(1280,350,0,0,1280,350,0,0,images/overlay.png,alpha-25)

//Albumart path
$puts(coverlocation,$replace(%path%,%filename%.mp3,)folder.jpg)
 
//Album art
$imageabs2(248,248,0,0,248,248,100,63,$if($fileexists($get(coverlocation)),$get(coverlocation),images/nocover.png),imageOptions)

//Trackinfo
//Track
$alignabs(665,87,50,12,,)$font(Verdana,,,)$transition(Track:,$rgb(25,100,255),$rgb(0,0,0))
$alignabs(700,87,280,12,center,middle)$font(Verdana,,,)$if(%title%,$transition(%title%,$rgb(25,100,255),$rgb(0,0,0)),$transition(Unknown title,$rgb(25,100,255),$rgb(0,0,0)))
//Artist
$alignabs(665,122,50,12,,)$font(Verdana,,,)$transition(Artist:,$rgb(25,100,255),$rgb(0,0,0))
$alignabs(700,122,280,12,center,middle)$font(Verdana,,,)$if(%artist%,$transition(%artist%,$rgb(25,100,255),$rgb(0,0,0)),$transition(Unknown artist,$rgb(25,100,255),$rgb(0,0,0)))
//Album
$alignabs(665,145,50,12,,)$font(Verdana,,,)$transition(Album:,$rgb(25,100,255),$rgb(0,0,0))
$alignabs(700,145,280,12,center,middle)$font(Verdana,,,)$if(%album%,$transition(%album%,$rgb(25,100,255),$rgb(0,0,0)),$transition(No album,$rgb(25,100,255),$rgb(0,0,0)))
//Album
$alignabs(665,168,50,12,,)$font(Verdana,,,)$transition(Album:,$rgb(25,100,255),$rgb(0,0,0))
$alignabs(700,168,280,12,center,middle)$font(Verdana,,,)$if(%album%,$transition(%album%,$rgb(25,100,255),$rgb(0,0,0)),$transition(No album,$rgb(25,100,255),$rgb(0,0,0)))

Track Info Panel with ability to change font

Reply #670
Here's some sample code for displaying album art inside a cd case when it exists, but otherwise displaying a nocover image:

Code: [Select]
// Album Art
$if($fileexists($replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).*)),
$imageabs2(150,,,,,,10,10,images\emptycd.png,)
$imageabs2(103,103,,,,,36,13,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).*),)
,
$if($strcmp($left(%path%,7),http$char(58)$char(47)$char(47)),
$imageabs2(150,150,,,,,8,2,images\online-radio.*,)
,
$imageabs2(150,150,,,,,8,2,images\no-cover.*,)
))

EDIT: Added image for online radio.

Track Info Panel with ability to change font

Reply #671
is there a way to have clickable (searchable) progress bars?


Track Info Panel with ability to change font

Reply #673
There would be a way, if there was a command to seek to a certain point in a given song. As far as i know, foobar only has commands to seek relative to the current position -- for example, 'Playback/Seek ahead by 1 minute'.

What you would need to make a functioning searchable progress bar is a command to do that absolutely, like maybe a 'Seek to 50% of track length' kind of deal. And then you would need several of those (at the very minimum, i suppose, 0%, 25%, 50%, 75%, and 100%; but preferably even more than that) which you could assign to various buttons along the length of the progress bar.

The problem is, i don't think that such a command exists for foobar. It'd probably be trivial to write a component for it though, so if you can get someone to do that for you you'd be OK.
~

Track Info Panel with ability to change font

Reply #674
Yeah, I think that and the ability to control volume through Track Info Panel in the same way would be just perfect. I mean right now you can customize almost everything with columnUI, track info mod and single column... except for those two things (volume and seekbar) which look pretty ugly if you don't have a nice Visual Style.

edit : More generaly, it would be useful to have "clickable" buttons in Trackinfo, for exemple if you display stars to chow your rating, you could make each star a button which would allow you to quickly set your rating. Or is it already possible ?