Help - Search - Members - Calendar
Full Version: foo_ui_panels
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57
The Judge
What happened to the wiki? It seems to have disappeared sad.gif.

And is there a way to change the name of the Library Filter playlist?
Nickoladze
QUOTE(The Judge @ May 29 2007, 17:44) *

What happened to the wiki? It seems to have disappeared sad.gif.


http://wiki.hydrogenaudio.org/index.php?ti...oo_ui_panels%29

?
TheBlackCat
QUOTE('Jensen @ May 29 2007, 17:30) *
Panels transparent has many bugs!
Every panel's transparent area just display the "//backgroud" images.


It happens to me too, although with transparent png's (I haven't tried to use transparent panels yet). Basically transparency shows through directly to the //background section, anything that is between the topmost transparent png and whatever is behind it in the background section does not show up. So say you have two overlapping buttons in the Per Second section. If a transparent part of the top button covers an opaque part of the bottom button then the covered part of the bottom button is not drawn, the transparent section on the top button shows whatever is underneath it on the background. To get around this I have been drawing a static image of the buttons to the background section in the order I want them rendered and then placing the actual button directly on top, making it so the transparent section sees the button again on the background. This is kind of a hack. It certainly is not optimal and leads to other problems. For instance it only works if the part of the button that overlaps is always the same (for instance in "on" and "off" states) since the background image cannot be changed like the button can based on mouse-over or events in the program.
vlada
Hi,

just yesterday I started playing with Panels UI. So far everything forks fine, except of one thing I couldn't figure out: Is it possible to overlay an image over a panel? Or if 2 panels (or just any objects - texts/images) overlay, which one is at the bottom and which one is on the top? Thanks.
bit4bit
I have a problem with resizing popups using WINDOWSIZE. It seems that the size of the popup window stays the same and the parent window is changed. Is the reason for this that %_width% and %_height% are PVARs and only valid for the parent window? Are there different variables for popups?
Nickoladze
QUOTE(vlada @ May 29 2007, 22:50) *

Hi,

just yesterday I started playing with Panels UI. So far everything forks fine, except of one thing I couldn't figure out: Is it possible to overlay an image over a panel?


No
vlada
And how is it with the other objects (not panels). If I overlay 2 images, which one will be at the top? Or if I want tu put a text over image or image over text. How can I control it?
Falstaff
QUOTE(vlada @ May 31 2007, 07:50) *

And how is it with the other objects (not panels). If I overlay 2 images, which one will be at the top? Or if I want tu put a text over image or image over text. How can I control it?


for pics and text, all depend of your command order !
carmenm
Terrestrial: I know i asked before but i really think this is necessary. Could we have a button command like REFRESH which would redraw everything(track displays , SCPL etc ...). I hope i am not asking too much. And you know i would like to help you with that
Nickoladze
QUOTE(carmenm @ May 31 2007, 07:36) *

Terrestrial: I know i asked before but i really think this is necessary. Could we have a button command like REFRESH which would redraw everything(track displays , SCPL etc ...). I hope i am not asking too much. And you know i would like to help you with that


just open the settings, type something into the code, erase it, hit apply
carmenm
QUOTE(Nickoladze @ May 31 2007, 15:02) *

QUOTE(carmenm @ May 31 2007, 07:36) *

Terrestrial: I know i asked before but i really think this is necessary. Could we have a button command like REFRESH which would redraw everything(track displays , SCPL etc ...). I hope i am not asking too much. And you know i would like to help you with that


just open the settings, type something into the code, erase it, hit apply

Yeah i know that biggrin.gif but i need it from a button. My layout is really complex and sometimes i need to refresh the whole setup after changing a pvar
FofR
I could use this when switching between themes in my config also.
bit4bit
Yes, a REFRESH command would be very useful. I would even go further and ask for a COMMAND function independent from a button. This has many advantages over a stack of buttons. And I can even think of situations, when I want to resize or sort without pushing a button.

I already asked it yesterday: Can somebody help me with WINDOWSIZE and popups? It seems that %_width% and %_height% can only be changed for the parent window and not the popup. Is there a solution to this problem?
carmenm
QUOTE(bit4bit @ May 31 2007, 15:56) *

Yes, a REFRESH command would be very useful. I would even go further and ask for a COMMAND function independent from a button. This has many advantages over a stack of buttons. And I can even think of situations, when I want to resize or sort without pushing a button.

I already asked it yesterday: Can somebody help me with WINDOWSIZE and popups? It seems that %_width% and %_height% can only be changed for the parent window and not the popup. Is there a solution to this problem?

yeah you are right i have the same thing here, which is actually what i want biggrin.gif
But i dont think there is a solution right now
Nickoladze
QUOTE(FofR @ May 31 2007, 08:29) *

I could use this when switching between themes in my config also.


Could you please reply to the PM I sent you? Thanks.
jclim00
QUOTE(Spirit_of_the_ocean @ May 29 2007, 17:10) *

I found some strange behavior when making also the headers transparent(no drawrect) the background is a bit
distorted where Headers should be.

Is this a bug?


Getting the same problem here. Example of this:

IPB Image
sylla
Maybe I should post in the columns:ui thread instead, but does anyone know if the Library Filter will be ported so that it works to put in a panel in columns_ui?
Nickoladze
QUOTE(sylla @ May 31 2007, 15:52) *

Maybe I should post in the columns:ui thread instead, but does anyone know if the Library Filter will be ported so that it works to put in a panel in columns_ui?


Of course not.
bb10
QUOTE(sylla @ May 31 2007, 23:52) *

Maybe I should post in the columns:ui thread instead, but does anyone know if the Library Filter will be ported so that it works to put in a panel in columns_ui?


It works, just install panels ui and add library filter to your columns ui layout smile.gif
terrestrial
QUOTE(gregory @ May 27 2007, 18:50) *

updated to 0.13.5
started up foobar and all fonts look smaller
checked my code, fonts still set the same as before
does this version handle fonts diff? maybe in relation to the windows dpi settings?

*edit*
a $calcheight() on a 12 pt. font yields an 18, it was previously 23



the new version uses 96dpi as the conversion from point size to font height. this is to prevent disappearing text when going from a 96dpi system to a higher one (eg 120dpi). ideally, we should use pixel heights, but that would break even more layouts....

QUOTE(carmenm @ May 29 2007, 07:18) *

I found something strange in the last buid that might be related to what pointed out WilB and Gregory. I used one of my conf on another computer. On that computer i dont have the font used in my skin and there is what i see
IPB Image
in the two circles the code is the same as we can see in the Track display clear type seams activated while it doesnt seem to be in the SCPL


have you set cleartype on in the system preferences? what code are you using in the track display vs scpl?

QUOTE

EDIT: Terrestrial, in Track displays it seems that we cant $get a variable in //Per Second that was set in the //Per track. It oblige duplicated code in //Per Track and //Per Second. Do you see a way to deal with this?


put it in the // Global section....
shakey_snake
Have you implimented a %foobar_dir% variable or anything like that yet?
you said you would when you changed relative paths last time
terrestrial
QUOTE(shakey_snake @ May 31 2007, 18:52) *

Have you implimented a %foobar_dir% variable or anything like that yet?


no, not yet. I will try for 0.13.7 wink.gif

-----------

I've uploaded 0.13.6... it should fix the bug with transparent headers in scpl. new web host thanks to fofr.
Nickoladze
Some requests from me:
- Setting to turn on/off window drag ability.
- Minimum group size for SCPL
- Minimum group size for LF
- Change cursor to "click hand" when hovering over $button() and $button2()
- Maybe new seekbar and volume slider panels with lots of options, that other panel crashes a lot and the creator doesn't even speak english
- Ability to make Foobar transparent (See windows behind it), I'm not sure if this is already possible. And yes, I know about $glass()
- Ability to hid the root nodes on LF
- Ability to style the scrollbars (Is this possible?)
-$imageabs3(x1,y1,x2,y2,x3,y3,x4,y4,image path,image options) function, ability to skew an image
-- x1,y1 is the position of the top-left corner of an image
-- x2,y2 is the position of the top-right corner of an image
-- x3,y3 is the position of the bottom-left corner of an image
-- x4,y4 is the position of the bottom-right corner of an image


Just keeping you busy terrestrial. smile.gif

P.S. I love the work you've done with this component, my favorite by far.
carmenm
QUOTE(terrestrial @ Jun 1 2007, 00:33) *

QUOTE(carmenm @ May 29 2007, 07:18) *

I found something strange in the last buid that might be related to what pointed out WilB and Gregory. I used one of my conf on another computer. On that computer i dont have the font used in my skin and there is what i see
IPB Image
in the two circles the code is the same as we can see in the Track display clear type seams activated while it doesnt seem to be in the SCPL


have you set cleartype on in the system preferences? what code are you using in the track display vs scpl?

Yes i have cleartype activated. The code is the same for both. Here it is
CODE
$font($get(fontupper),6,,$get(grey))
$alignabs($get(xoffset),8,$eval(%_width% - $get(xoffset)),14,left,middle)
%album artist%

$font($get(fontupper),7,,$get(blue))
$alignabs($get(xoffset),19,$eval(%_width% - $get(xoffset)),14,left,middle)
%album%

QUOTE(terrestrial @ Jun 1 2007, 00:33) *

QUOTE

EDIT: Terrestrial, in Track displays it seems that we cant $get a variable in //Per Second that was set in the //Per track. It oblige duplicated code in //Per Track and //Per Second. Do you see a way to deal with this?


put it in the // Global section....

Thanks will try it
carmenm
Terrestrial: I have a feature request. It might not be down in a short time but it could one step forward for panelsUI. It is a text entry panel. I see it as a little text entry associated with a pvar. when we press enter in it the pvar is set to what is in the text panel. This could be very useful for tags or layout configuration. In fact the possibilities are endless like a a complete tagging panel.
What do you think about that?
Andreasvb
Thank you soo much for adding !null! to Library Filter. Very good. happy.gif
carmenm
thanks a lot for sysfont-val terrestrial
Nickoladze
Is there a way to make the window fully glass?

I tried: $glass($div(%_width%,2),$div(%_width%,2),$div(%_height%,2),$div(%_height%,2))

But there's still a tiny circle in the middle of the window.
mil3s
QUOTE(Andreasvb @ Jun 1 2007, 17:33) *

Thank you soo much for adding !null! to Library Filter. Very good. happy.gif

QUOTE(carmenm @ Jun 1 2007, 18:15) *

thanks a lot for sysfont-val terrestrial

Yea, thanks for both those. biggrin.gif
CepiPerez
QUOTE(Nickoladze @ Jun 2 2007, 13:47) *

Is there a way to make the window fully glass?

I tried: $glass($div(%_width%,2),$div(%_width%,2),$div(%_height%,2),$div(%_height%,2))

But there's still a tiny circle in the middle of the window.

$glass(-1,0,0,0)
bit4bit
Maybe it's a stupid question but I tried $glass() but there is no effect on my foobar windows. Is this function for VISTA users only or should this be functional with XP too? What am I doing wrong?
Hakubo
QUOTE
Maybe it's a stupid question but I tried $glass() but there is no effect on my foobar windows. Is this function for VISTA users only or should this be functional with XP too? What am I doing wrong?
Vista only.
DaSilva
How can I add a dynamic processing bar in the background of the current playing song?
So I can see how many percent are played already.
shakey_snake
the following code is from the default.pui that comes with panelsUI

CODE
// PerSecond

$if(%isplaying%,
    $puts(l,$eval({%_width%-192}* %playback_time_seconds% /  %length_seconds%))
    $ifgreater($get(l),0,,$puts(l,1))
    $drawrect(124,$eval(%_height%-18),$eval(%_width%-188),10,pencolor-SYSCOL-18 brushcolor-null)
    $drawrect(126,$eval(%_height%-16),$get(l),6,pencolor-null brushcolor-SYSCOL-13)
)


default.pui and basic.pui both have some simple examples to help you get started
DaSilva
And what must be done to display this bar always behind the whole current track in the SCPL with the possibility to change the size of the window etc. and the position of the song in the playlist and colour it in blue?
Bl@ck_warrior
The library filter is really GREAT, however it would be even greater if we have an "autosend to playlist" like on the album list panel and some other behaviour that the album playlist panel has, such as "process keyboard shortcuts" and "autoplay on send to playlist".

Will this be possible or not ?

Keep up the good work biggrin.gif
shakey_snake
QUOTE(DaSilva @ Jun 3 2007, 09:45) *

And what must be done to display this bar always behind the whole current track in the SCPL with the possibility to change the size of the window etc. and the position of the song in the playlist and colour it in blue?

If you don't have much programming experience and can't figure it out I'd recommend downloading and using someone else's .pui
sylla
I also want to say thanks for the !null! function. It would be great if you could send items to playlist by doubleclicking, and adding them with middle click though...
DaSilva
QUOTE(shakey_snake @ Jun 3 2007, 16:14) *

QUOTE(DaSilva @ Jun 3 2007, 09:45) *

And what must be done to display this bar always behind the whole current track in the SCPL with the possibility to change the size of the window etc. and the position of the song in the playlist and colour it in blue?

If you don't have much programming experience and can't figure it out I'd recommend downloading and using someone else's .pui


Iam using a nice skin and I want to add it there.
Yotsuya
QUOTE(DaSilva @ Jun 3 2007, 09:45) *
And what must be done to display this bar always behind the whole current track in the SCPL with the possibility to change the size of the window etc. and the position of the song in the playlist and colour it in blue?
QUOTE(shakey_snake @ Jun 3 2007, 09:16) *
the following code is from the default.pui that comes with panelsUI
CODE
// PerSecond

$if(%isplaying%,
    $puts(l,$eval({%_width%-192}* %playback_time_seconds% /  %length_seconds%))
    $ifgreater($get(l),0,,$puts(l,1))
    $drawrect(124,$eval(%_height%-18),$eval(%_width%-188),10,pencolor-SYSCOL-18 brushcolor-null)
    $drawrect(126,$eval(%_height%-16),$get(l),6,pencolor-null brushcolor-SYSCOL-13)
)
default.pui and basic.pui both have some simple examples to help you get started


DaSilva: Read the default code and reference each function with the wiki to find out what they do. What this code is doing is drawing a rectangle with a border (pencolor) and no fill (brushcolor) and then filling it with another rectangle with no border but with a different color fill based on the playback position of the current song.

The position of the current song is being calculated in percent by %playback_time_seconds% divided by %length_seconds%. That percentage is then being applied to the desired width %_width%-192.

There is a problem with what do you do with a zero width rectangle so the code tests to see if the percent of the desired width is greater than 0 and if not sets it to 1..

To make the bars appear only for the current track in SCPL, add it to your Track Display code using $if(%isplaying%) undr a // PerSecond header like in the above example.

To change the size and position of the bars you will need to change "%_width%-192", "%_width%-188", "124", "126", "%_height%-18", and "%_height%-16". To make the bar blue change "SYSCOL-13". To change the color of the border change "SYSCOL-18".

These are rather basic modifications and if you are serious about customizing your own PanelsUI configuration I highly suggest you read the wiki and familiarize yourself with its functions. Code examples and discussions on their use are littered about the forum, use the search function to find them.
DaSilva
QUOTE(Yotsuya @ Jun 4 2007, 05:46) *

QUOTE(DaSilva @ Jun 3 2007, 09:45) *
And what must be done to display this bar always behind the whole current track in the SCPL with the possibility to change the size of the window etc. and the position of the song in the playlist and colour it in blue?
QUOTE(shakey_snake @ Jun 3 2007, 09:16) *
the following code is from the default.pui that comes with panelsUI
CODE
// PerSecond

$if(%isplaying%,
    $puts(l,$eval({%_width%-192}* %playback_time_seconds% /  %length_seconds%))
    $ifgreater($get(l),0,,$puts(l,1))
    $drawrect(124,$eval(%_height%-18),$eval(%_width%-188),10,pencolor-SYSCOL-18 brushcolor-null)
    $drawrect(126,$eval(%_height%-16),$get(l),6,pencolor-null brushcolor-SYSCOL-13)
)
default.pui and basic.pui both have some simple examples to help you get started


DaSilva: Read the default code and reference each function with the wiki to find out what they do. What this code is doing is drawing a rectangle with a border (pencolor) and no fill (brushcolor) and then filling it with another rectangle with no border but with a different color fill based on the playback position of the current song.

The position of the current song is being calculated in percent by %playback_time_seconds% divided by %length_seconds%. That percentage is then being applied to the desired width %_width%-192.

There is a problem with what do you do with a zero width rectangle so the code tests to see if the percent of the desired width is greater than 0 and if not sets it to 1..

To make the bars appear only for the current track in SCPL, add it to your Track Display code using $if(%isplaying%) undr a // PerSecond header like in the above example.

To change the size and position of the bars you will need to change "%_width%-192", "%_width%-188", "124", "126", "%_height%-18", and "%_height%-16". To make the bar blue change "SYSCOL-13". To change the color of the border change "SYSCOL-18".

These are rather basic modifications and if you are serious about customizing your own PanelsUI configuration I highly suggest you read the wiki and familiarize yourself with its functions. Code examples and discussions on their use are littered about the forum, use the search function to find them.


Thank you.
Now I have it like I wanted it!
sune
ugh.. I can't believe how lost I am with this panels_ui...
most important thing is.. how do I get library filter to work?!?! I only switched to panels ui because of it...
I added a LF panel with default settings and all i get is a black background. when I select something it gets highligthted in gray, but the rest remains black. Changing the background color in the layout filter display does nothing..

can someone please shed some light on my total darkness?? tongue.gif

thanks
metal_termite
I haven't played around with the LF yet. However I noticed a section on the Library filter was added to the wiki. Maybe that might help you a bit.
bb10
QUOTE(sune @ Jun 4 2007, 20:54) *

ugh.. I can't believe how lost I am with this panels_ui...
most important thing is.. how do I get library filter to work?!?! I only switched to panels ui because of it...
I added a LF panel with default settings and all i get is a black background. when I select something it gets highligthted in gray, but the rest remains black. Changing the background color in the layout filter display does nothing..

can someone please shed some light on my total darkness?? tongue.gif

thanks


The background color is weird. It adjusts to your background color, so if you draw a rectangle behind it and you make that white, rightclick > reset the library filter and it'll turn white. tongue.gif

hope that helps wink.gif
eboomer
First, what exactly is "%groupedcount%"?

terestrial:
* Bug: The background color setting of library filter is not working for me, no matter what color I set it to, it's just transparent (just the color of the rectangle I've drawn underneath it)
Feature requests:
* A way in the Library Filter preferences to move filtering criteria up and down, or an option to insert a new criterion in a particular spot (I've found myself having to copy/paste large chunks of text between criteria as a workaround)
* Option to have nodes at a certain level expand all children when clicked. This would allow for grouping without needing to click through multiple layers to get there.
* Ability to play a track from Library Filter by double clicking (you already can do this by right clicking and selecting "Play" from the context menu)
CepiPerez
Some requests:
- Transparency in main Panels UI layout
- Drag & Drop in Library Filter
Keikonium
Request:

Would it be possible to have something that can be pressed, that will exit out foobar, and reload foobar with the specified layout?

For example:

I generally use a columns UI layout, but go check out Panels UI every once in a while. To do this, I need to go into my preferences, change to the Panels UI layout, exit foobar, then if need be, load the desired .pui.

So a button that when pressed, exits foobar, switches the UI to Panels (or columns) and loads the desired .pui (defined by the layouts name so columns is compatible).

$button2(DstX,DstY,X,Y,W,H,TEXT[OR IMAGE],HOVER TEXT [OR IMAGE],LAYOUT:PANELS[or columns]:NAME,OPTIONS)

does that make sense? Is this even possible?
DaSilva
Request:

Drag & Drop like every other player has.
stampgevaar
QUOTE(eboomer @ Jun 5 2007, 01:48) *

First, what exactly is "%groupedcount%"?

terestrial:
* Bug: The background color setting of library filter is not working for me, no matter what color I set it to, it's just transparent (just the color of the rectangle I've drawn underneath it)
Feature requests:
* A way in the Library Filter preferences to move filtering criteria up and down, or an option to insert a new criterion in a particular spot (I've found myself having to copy/paste large chunks of text between criteria as a workaround)
* Option to have nodes at a certain level expand all children when clicked. This would allow for grouping without needing to click through multiple layers to get there.
* Ability to play a track from Library Filter by double clicking (you already can do this by right clicking and selecting "Play" from the context menu)


That would be cool, you can use the libary filter as a playlist then and since I only use one playlist it would make things a bit more simple can it also made possible that the entire child is loaded so if the song is ended fooobar switches to the next.

I also would like to browse by directory structure in the library filter
mquander
QUOTE(DaSilva @ Jun 5 2007, 09:58) *

Request:

Drag & Drop like every other player has.


Just use the columns playlist.
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.