Help - Search - Members - Calendar
Full Version: foo_uie_powerpanels
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2
borgusiek
PowerPanels for Foobar2000 v0.9+

PowerPanels consists of a two panels designed for Panels UI: seek panel & volume panel.

These are transparent panels which you can put in other panels
over your custom drawn progress and/or volume bar
and change playback position and volume by simply clicking on them
instead of using default seek and volume toolbars.

I have prepared brief description how to use it so I won't be duplicating it here.

More info and download at: http://borgusiek.neostrada.pl/foobar

jclim00
Very cool!
Kiteroa
Thanks - works well; does a great job!
FofR
Works like a charm, very nice smile.gif
carmenm
This plugin is really good but i have one problem and one feature request.
problem : We only have a way (with panelsUi) to redraw on a per second base, so this is not really enough to use with a seekbar or volumebar, especially if you manage to implement this feature request:
The ability to "drag" the cursor on the seekbar, i mean keep mouse clicked and move on the panel.

EDIT : forget what i said about the redraw problem. Seems to work perfectly in track display. Just the feature request matters now tongue.gif

Huge component
cristox
This makes it perfect now!
YounhaLOV

IPB Image

really thank you Borqusiek^^

great component
Nickoladze
Very cool
store88
@borgusiek Can you make the plugins work without panelUI

just with columnUI
carmenm
QUOTE(store88 @ Aug 7 2007, 14:30) *

@borgusiek Can you make the plugins work without panelUI

just with columnUI

I dont see how this would be possible, You would just have a blank panel... No way to put an image under it.
The Judge
Haven't given this a try yet but this was the last thing I needed to perfect my config. Hope it's more stable than WSH panel smile.gif. Will report back in a bit.

EDIT: I love you. Lol. It works like a phatty biggrin.gif
BLaZor
can you use images too just like using js in wsh panels?
carmenm
QUOTE(BLaZor @ Aug 7 2007, 17:07) *

can you use images too just like using js in wsh panels?

Yes you can use image, but it wont be this plugins which will display them. You need to understand how powerpanels work. I just create a transparent clickable seekbar. You have to draw(with panelsUI) the images that will appear in coordination with the seekbar position.(depending on the volume or position in the track)
BLaZor
QUOTE(carmenm @ Aug 7 2007, 16:20) *

QUOTE(BLaZor @ Aug 7 2007, 17:07) *

can you use images too just like using js in wsh panels?

Yes you can use image, but it wont be this plugins which will display them. You need to understand how powerpanels work. I just create a transparent clickable seekbar. You have to draw(with panelsUI) the images that will appear in coordination with the seekbar position.(depending on the volume or position in the track)


got an example?

"$panel(SeekPanel,Seek Panel,xpos,ypos,width,height,)" works but not too sure how the images would work.
Taish
Thanks works great tongue.gif
The Judge
QUOTE(BLaZor @ Aug 7 2007, 15:27) *

QUOTE(carmenm @ Aug 7 2007, 16:20) *

QUOTE(BLaZor @ Aug 7 2007, 17:07) *

can you use images too just like using js in wsh panels?

Yes you can use image, but it wont be this plugins which will display them. You need to understand how powerpanels work. I just create a transparent clickable seekbar. You have to draw(with panelsUI) the images that will appear in coordination with the seekbar position.(depending on the volume or position in the track)


got an example?

"$panel(SeekPanel,Seek Panel,xpos,ypos,width,height,)" works but not too sure how the images would work.



You'd have to have an imageabs in your PerSecond section of your PUI

Something like:
CODE
$imageabs2($sub($muldiv($sub(%_width%,24),%playback_time_seconds%,%length_seconds%),2),9,,,,,25,,/images\test4.png,NOKEEPASPECT)



That would 'stretch' the image across the whole seekbar as it were.

If you want a 'button' as it were you'd just put the relevant %playback_time_seconds% code in the Xpos part of the imageabs function.
BLaZor
Nice, although instead of streching an image, could I add it to the end like in this pic: http://img368.imageshack.us/my.php?image=legendpr8.png

say I have start.gif which is "(", middle which is "." and end which is ")"
"(" would be fixed whilst "." stretches and ")" comes at the end?
borgusiek
Glad you like the panels, for me that was the missing part to make foobar (almost) perfect biggrin.gif

I think the nice addition would be the ability to use mouse wheel to change volume when cursor is over the volume panel, however I can't make it work, the panel simply doesn't get mouse wheel messages sad.gif

I'm sorry, the column ui version which draws something in the panel has never been seriously considered...
The idea is like that: you draw whatever, however and wherever you want and cover it with the panel which makes that thing alive laugh.gif
BelleAndZEK
been waiting for this for so long. I didn't try it yet. I'll do it later tonight, but thanks in advance. It was about time someone does it. Thanks again!

edit: it works like a charm! thanks x1000
cristox
It does not work well with Panels UI 0.14.12 beta.
For example it makes trouble with %_trackinfo_notrack%.
Faveris
It is the plugin i was waiting smile.gif Thanks! But I have a one problem with it: I can't reach maximum volume using Volume Panel. Width of the panel doesn't matters, I can set only 99% volume with a maximum width of the panel.
radecke
thanks for this great plugin. now i finally have a good looking clickable seek bar smile.gif
Keikonium
Would I beable to get some code for a seekbar please? The code I am using now is screwed up:

CODE
//==========
// PerSecond
//==========
//IMAGE CODE FOR MY SEEK PANEL
$puts(seeksize,320)
$puts(seekX,320)
$puts(seekY,22)
$puts(SEEKdir,'C:\Program Files\foobar2000\FoOrby\buttons\powerpanels\seekbar')
$imageabs2($get(seeksize),13,,,,,$get(seekX),$get(seekY),$get(SEEKdir)\seek_back.png,nokeepaspect)
$ifgreater(%playback_time_seconds%,0,
$imageabs2($get(seeksize),13,,,%playback_time_seconds%,,$get(seekX),$get(seekY),
$get(SEEKdir)\seek_fore.png,nokeepaspect),)
//---------------------------------------------

//==========
// PerTrack
//==========
$panel(SeekPANEL,Seek Panel,$get(seekX),$get(seekY),$get(seeksize),20,)


Can someone help me make this work?
Keikonium
Anyone willing to help? If I can get some working code, I can mod it to my needs smile.gif.
Spirit_of_the_ocean
QUOTE(Keikonium @ Aug 24 2007, 05:29) *

Anyone willing to help? If I can get some working code, I can mod it to my needs smile.gif.


So I give you some smile.gif
Hope I got it right out of my code:
In Panel ui settings:
QUOTE

$panel(CustomizableSeekbar,Track Display,700,90,310,20,)
$panel(SeekPanel,Seek Panel,700,90,310,20,)

Track Display contains:

QUOTE
// PerSecond
$drawrect(2,3,$sub(%_width%,4),8,brushcolor-0-0-0 pencolor-197-197-197)
$if(%isplaying%,
$puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,8),%length_seconds%))
$ifgreater($get(progress),0,$padding(1,3)$drawrect(3,2,$get(progress),4,brushcolor-226-215-26 pencolor-nulll),))


This looks like this (the seekbar right on top):
IPB Image


Basically you have a track Display which only shows the seekbar. Then create a seekpanel which overlays the actual seekbarbar shower Track Diplay. To this is easier when you must give the right position of the invisible seekpanel.
carmenm
I have some redraw problem with this plugin. While resizing foobar, the seek panel keeps flicking between white and transprent. Also sometime the panel is just white(happen often while in pause)
DarkBlackCorner
niiice, I was always clicking on the progress bar image before, but now it actually does something!

A request for the future if it would be possible: could you allow sliding of the seekbar (right now it only allows single clicks)? I'm guessing a similar implementaion would be useful for volume control users (though I personally don't use it).

Thanks, and good work wink.gif
Keikonium
QUOTE(Spirit_of_the_ocean @ Aug 24 2007, 03:34) *
Basically you have a track Display which only shows the seekbar. Then create a seekpanel which overlays the actual seekbarbar shower Track Diplay. To this is easier when you must give the right position of the invisible seekpanel.


Awesome!! Thank you so much for the help happy.gif. I can take it from here now that I have some working code smile.gif.
Spirit_of_the_ocean
No problem. There was a user I can't remember who had this. So it wasn't my idea. But the idea was great. smile.gif
Just some informations to add:
When the powerpanel lays over the Track Display you can't edit the trackdisplay directly until you deactivate the powerpanel with // .

Keikonium
I just do this to edit my panels nice and fast:
IPB Image
Spirit_of_the_ocean
Thanks smile.gif Didn't know that.
Yes foobar is very complex and panel ui, too. It happens a lot that I overlook some options.

Okay thanks again smile.gif

Bye the way I named my seekbar customizable seekbar too biggrin.gif
tool++
I just have to say that this plugin is AWESOME
spaceships
Is there anyway to have multiple instances of powerpanels?

I have two progress bars and the invisible seekbar only works for one of them. I would both of the progress bars to be clickable

Thanks.
lhnz
The link is down?!
Kirya
QUOTE(lhnz @ Sep 9 2007, 11:58) *

The link is down?!

no, http://borgusiek.neostrada.pl/foobar/ works fine for me
gregory
i have a problem similar to carmenm's,

when i first play a track
the Track Display in which Seek Panel is located blinks white
the whole thing turns white --minus the actual area where the Seek Panel is, which remains transparent

great component, this was something i had looked for from the beginning, nice to see it happen
montyview
Just a quick thanks for this component: works really well, and really cleans up the look of my config...

I'm a bit a n00bie, so sorry if this an obvious question: is it possible at present to configure it to show mouseover tooltips? I'm thinking it would be good to have precise info on the potential chosen volume level or time point in the track before clicking. If this can't be done yet, is this a feasible feature request?
Kirya
little request:
is it possible to change onmouseover cursor?
KnightMare
nice, thanks
konakona
nvm, got it all sorted out. thanks!
skyhopper88
I'm trying to impliment this with FofR's config but having trouble. Here's what I have so far.

CODE
// * Progress Bar *
// ===========

//$ifequal($getpvar(panel.mode),1,,
$panel(SeekPanel,Seek Panel,%_width%-8,%_height%-12,%_width%,%_height%,)
$ifequal($getpvar(nowplay.progress),0,,
$font(Small Fonts,$getpvar(IDfontLengthSize),fixedwidth$ifequal($getpvar(global.background),0,,shadow),$getpvar(IDfontSmallColor))
$alignabs(5,$eval(%_height%-26),$eval(%_width%-10),20,right,top)
$ifequal($getpvar(moredetails),0,$if(%isplaying%,%playback_time% / %length%)
$alignabs(5,$eval(%_height%-26),$eval(%_width%-10),20,left,top)
$upper([%genre% ][%year% ])
,)

// Check if length is 0, do not want to divide by a 0!
$ifequal(%length_seconds%,0,,
// Only draw when playing
$if(%isplaying%,
$padding($eval($get(textleft)+8),0)
$puts(progress,$eval({%playback_time_seconds%*{%_width%-12}}/%length_seconds%))
$ifgreater($get(progress),0,
// $drawrect($eval($getpvar(globalcentrew)+2),$eval($getpvar(globaltopmargin)+7),$eval($getpvar(globalimgw)-2),1,brushcolor-null pencolor-0-0-0)
$drawrect(4,$eval(%_height%-12),$eval(%_width%-8),10,brushcolor-null pencolor-$getpvar(nowplayborder) alpha-100)
$drawrect(6,$eval(%_height%-10),$get(progress),6,brushcolor-$getpvar(IDprogbar) pencolor-$getpvar(IDprogbar) alpha-180)
// $drawrect($eval($getpvar(globalcentrew)+2),$eval($getpvar(globaltopmargin)+1),$get(progress),3,brushcolor-$getpvar(nowplayfontcol) alpha-180 pencolor-$getpvar(nowplayfontcol))
// $drawrect($eval($getpvar(globalcentrew)+1),$eval($getpvar(globaltopmargin)+8),$getpvar(globalimgw),1,brushcolor-null pencolor-$getpvar(nowplayborder))
,
)
)
)
)
//)

But it doesn't seem to respond. Assuming my added code is right, it may have something to do with the on click event to hide track data that might be superseding it, I don't really know. I can't seem to find what lines control that to troubleshoot it. Can anyone offer some advice?
dRsrb
Great Plugin! smile.gif

One request:
Seeking with held left mouse key (like volume, so I only need ones to press the left key)!

bye
blaxima
I use a seekbar in my playlist so it moves to the song that is playing. Is it possible for the seekpanel to follow it or is it only going to work in a fixed position?
Lucky Luciano
EDIT: nevermind!
Smirra
Power Panels disables my hotkeys... T.T. I localized the problem bcuz when i remove the panel the hotkey function comes back... Global hotkeys still works but that's really unwanted from my part so i really need these hotkeys.

CODE
// PerSecond

$panel(Seekbar,Seek Panel,$eval({%_width%-620}/2),$add($getpvar(seekbar-h),2),620,14,)
$puts(progress,$muldiv(%playback_time_seconds%,620,%length_seconds%))
$ifgreater($get(progress),0,,$puts(progress,0))
$imageabs2(,,,,,,
$eval({%_width%-620}/2-620+$get(progress)),
$add($getpvar(seekbar-h),2),
%foobar_path%\images\Seekbar\seekbar.png,)
$drawrect(,
$getpvar(seekbar-h),
$eval({%_width%-620}/2),18,
brushcolor-$getpvar(bgcolor) pencolor-null)
$drawrect(
$eval(%_width%-{%_width%-620}/2),
$getpvar(seekbar-h),
$eval({%_width%-620}/2),18,
brushcolor-$getpvar(bgcolor) pencolor-null)
$imageabs2(,,,,,,
$eval({%_width%-624}/2),
$getpvar(seekbar-h),
%foobar_path%\images\Seekbar\border.png,)

$alignabs($eval({%_width%-624}/2),
$add($getpvar(seekbar-h),18),
624,16,,
middle)
$if(%isplaying%,%playback_time%)

$alignabs($eval({%_width%-624}/2),
$add($getpvar(seekbar-h),18),
624,16,
right,
middle)
$if(%isplaying%,-%playback_time_remaining%)
antar3s
is it only a focus problem, ie do the hotkeys work again after clicking somewhere else in the panel?
i don't know if this is related, but i've been experiencing weird behaviour of panelsui when i used $panel in the PerSecond section. the seekbar will work just as fine if you put the $panel code in PerTrack or Background section.
Smirra
QUOTE(antar3s @ Mar 26 2008, 23:22) *

is it only a focus problem, ie do the hotkeys work again after clicking somewhere else in the panel?
i don't know if this is related, but i've been experiencing weird behaviour of panelsui when i used $panel in the PerSecond section. the seekbar will work just as fine if you put the $panel code in PerTrack or Background section.

It's really strange! I tried what u said and thought it might work. But it works fine with other panels i can temporary change panel to what becomes a very tiny track display panel and the bug emmidiately dissapears...
antar3s
QUOTE(Smirra @ Mar 27 2008, 00:21) *

But it works fine with other panels i can temporary change panel to what becomes a very tiny track display panel and the bug emmidiately dissapears...

Not sure I understood you right: you just change the powerpanel size and then it works? then i would guess it is rather a panelsui bug...
Smirra
QUOTE(antar3s @ Mar 27 2008, 01:14) *

QUOTE(Smirra @ Mar 27 2008, 00:21) *

But it works fine with other panels i can temporary change panel to what becomes a very tiny track display panel and the bug emmidiately dissapears...

Not sure I understood you right: you just change the powerpanel size and then it works? then i would guess it is rather a panelsui bug...

No it is when i use the power panels like if u for example change
CODE
$panel(Seekbar,Seek Panel,,,,,)

to
CODE
$panel(Seekbar,Whatever-other-panel,,,,,)

It starts to work again... So the problem is in the Power Panels dll and not in the "$panel" command itself.
Really strange. And i have the $panel in the // PerTrack box and it still doesn't cooperate... T.T

EDIT:
As my friend could reproduce the error I have written a thorough bug report to the author of power panels!
z-x
I can't set the volume to 100% with volume bar. It's always stuck at 99% or 98% and can't get more with sliding on the bar. Any ideas?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.