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
mil3s
QUOTE(The Judge @ Apr 30 2007, 12:59) *

Yeah,

As 4nt1 said,

Preferences>Panels>Sort/Group By

Sorry. Didn't understand the answer was in the preferences from his post. Thanks. I got it now. biggrin.gif
Kiteroa
QUOTE(cvax @ May 1 2007, 07:10) *

is it possible to define an overall scpl header that isnt part of the group header?

i am trying to get a header above the playlist that will act as a playlist switcher and hopefully will be a floating one so that as i scroll up and down the playlist i can still see this "playlist switcher" header at all times



I do this with a track display panel.
Necrosis
Not sure if this has been mentioned, but since updating Panels UI and fb2k, $imageabs2() has stopped working in all Track Display panels.

- I have the images placed in foobar2000\PanelsUI\Images\, they will appear in SCPL but not in the main panels UI or Track Display panels. Oddly enough, album art images will show up fine from the a folder on a separate drive without fail.

- I've tried placing the code in all the fields (// Background, // PerTrack, // PerSecond) but it has made no difference.

- I've also tried using both PNG and JPG image formats.

The images load fine with $imageabs(), just not $imageabs2().

Specs:
Foobar2000 v0.9.4.3
Panels UI v0.10.2 beta
Vista Ultimate x86
Andreasvb
Everyone updating should really read the changelog. wink.gif
Necrosis
QUOTE(Andreasvb @ Apr 30 2007, 19:30) *

Everyone updating should really read the changelog. wink.gif


I've read the changelog numerous times.

It states that the relative path has changed to a sub-folder of the directory containing the .pui file being used. All my .pui files are still in ...\foobar2000\PanelsUI\ and all my images are in ...\foobar2000\PanelsUI\images\.

Now, just to make it a little bit clearer.
$imageabs(0,0,/images\file.ext,) - does not work
$imageabs(100,100,,,,,0,0,/images\file.ext,) - does not work

$imageabs(0,0,/PanelsUI\images\file.ext,) - works
$imageabs2(100,100,,,,,0,0,/PanelsUI\images\file.ext,) - does not work
Andreasvb
Try:
CODE
$imageabs2(100,100,,,,,0,0,/images\file.ext,)
Necrosis
QUOTE(Andreasvb @ Apr 30 2007, 20:15) *

Try:
CODE
$imageabs2(100,100,,,,,0,0,/images\file.ext,)



I've tried that, should have been listed in my previous post but I forgot the 2 when typing it.
The Judge
You tried file.*?
Andreasvb
QUOTE
if you have your pui in ..\foobar2000\PanelsUI\MyTheme\MyTheme.pui, then /images\myimage.jpg would be ..\foobar2000\PanelsUI\MyTheme\images\myimage.jpg


You have your .pui in \PanelsUI\ and img in \PanelsUI\images\, then it should work. The layout folder is PanelsUI and then relative from there.

I don't use PanelsUI as the loaded interface, so I don't have any .pui files. I think my layout folder is the foobar2000 one. Here's my code.
CODE
$imageabs2(100,100,,,,,0,0,/images/cover/cdcase.png,)



Necrosis
QUOTE(The Judge @ Apr 30 2007, 20:21) *

You tried file.*?


Yes.

QUOTE(Andreasvb @ Apr 30 2007, 20:30) *

You have your .pui in \PanelsUI\ and img in \PanelsUI\images\, then it should work. The layout folder is PanelsUI and then relative from there.

I don't use PanelsUI as the loaded interface, so I don't have any .pui files. I think my layout folder is the foobar2000 one. Here's my code.
CODE
$imageabs2(100,100,,,,,0,0,/images/cover/cdcase.png,)



You would think so. unsure.gif

I removed all traces of PanelsUI from my foobar folder, redownloaded it and now it appears to be working, however, now $imageabs() and $imageabs2() return different relative folders.

$imageabs2(100,100,,,,,0,0,/images\file,) - working fine now, but...
$imageabs(0,0,/images\file,) - won't work without using /PanelsUI\images\

Can anyone confirm this as a bug?
Andreasvb
It's intended behaviour, see
http://www.hydrogenaudio.org/forums/index....st&p=487449

Glad you got it working. =)
Necrosis
QUOTE(Andreasvb @ Apr 30 2007, 20:48) *

It's intended behaviour, see
http://www.hydrogenaudio.org/forums/index....st&p=487449

Glad you got it working. =)


Ok, I really should read these threads more often lol... thanks for the help.
snively
request: being able to right click a song in the playlist and drag it
Keikonium
I made a topic asking how to override cursor status (Here) with no replies as of yet.

So I have a request I'll ask in this thread. Would it be possible to have a command that you could put around code to define cursor status that would override whatever the global status is?

Lets say I have the cursor mode set to "Follow Cursor". I want to display album art (which I want to display for the current track. So I'd put $nowplaying(*album art code*) which would make any code in those brackets follow the current playing song, while the rest of the track display panel follows the cursor.

Is this possible? If you need a better description, or more detail, just ask.

Thanks smile.gif.
jimbo11883
QUOTE(shakey_snake @ Apr 25 2007, 23:12) *

QUOTE(jimbo11883 @ Apr 25 2007, 22:22) *

Is the follow cursor mode for Track Displays working yet?
Was it ever broken?
It's always worked for me.
The problem must be your code.


Sorry, in all my studpidity, I didn't even check my code for it being compatible with follow cursor mode. blush.gif
cvax
is there anyway to select and drag tracks around in the playlist?

ps. thakns Kiteroa
mil3s
^Hold the Alt. key.
Kiteroa
QUOTE(Keikonium @ May 1 2007, 16:43) *

I made a topic asking how to override cursor status (Here) with no replies as of yet.

So I have a request I'll ask in this thread. Would it be possible to have a command that you could put around code to define cursor status that would override whatever the global status is?

Lets say I have the cursor mode set to "Follow Cursor". I want to display album art (which I want to display for the current track. So I'd put $nowplaying(*album art code*) which would make any code in those brackets follow the current playing song, while the rest of the track display panel follows the cursor.

Is this possible? If you need a better description, or more detail, just ask.

Thanks smile.gif.


Can't you do this already by having 2 ( or more) Track display panels: one ( or more) Now Playing and the other(s) on Follow Cursor?
pinknyunyu
How do you get a button to run a service? I can get services to run, like google searches, using the buttons panel, but I can't figure out how to do it with a simple $button or $button2. There's 'Run service' in the context menu, but I've tried adding things after that and nothing works...help? Thanks.

Edit: Never mind...wow, it was so simple that I didn't think of it at all...you just need to type the name of the service. Awesome! This has been vexing me for a while.
Keikonium
QUOTE(Kiteroa @ May 1 2007, 03:50) *

Can't you do this already by having 2 ( or more) Track display panels: one ( or more) Now Playing and the other(s) on Follow Cursor?


Yes you can, but with my config, it would get a bit ugly. I'd need 4 Track Displays in place of just 1 (which I think looks nicer).

Here is an image of the part of my config that would benifit from this:
IPB Image
Purple Monkey
Wouldn't it make more sense to separate those parts of the UI, I wouldn't recommend having a follow cursor button next to a now playing part it could be mistaken to work differently.

What about this? which would only require 2:

IPB Image
Kiteroa
QUOTE(Keikonium @ May 2 2007, 04:10) *

QUOTE(Kiteroa @ May 1 2007, 03:50) *

Can't you do this already by having 2 ( or more) Track display panels: one ( or more) Now Playing and the other(s) on Follow Cursor?


Yes you can, but with my config, it would get a bit ugly. I'd need 4 Track Displays in place of just 1 (which I think looks nicer).

Here is an image of the part of my config that would benifit from this:
IPB Image


You wouldn't be able to see that there are different Track Displays; all you need to do is cut and paste your paste your existing code into the approprate new panels.
Keikonium
Alright, I guess thats what I will have to do.
Thanks :]
Blankwire
I'm trying to create this with panels:

IPB Image

I can't get the bottom Quick Search Toolbar and Spectrum analyzer to appear. Here's my configuration:
CODE
// Background
$drawrect(0,0,%_width%,43,brushcolor-SYSCOL-15 pencolor-NULL)
$drawrect(0,$sub(%_height%,43),%_width%,22,brushcolor-SYSCOL-15 pencolor-NULL)

// PerTrack
$panel(Menu,Menu,1,1,$sub(%_width%,2),19,)
$puts(yOffset,21)

$panel(Buttons,Buttons,0,$get(yOffset),190,21,)
$panel(Seekbar,Seekbar,200,$get(yOffset),$sub(%_width%,210),20,)

$panel(Playlist,Single Column Playlist,0,$add($get(yOffset),$get(yOffset)),%_width%,$eval(%_height%-21),)

$panel(Toolbars,Quick Search Toolbar,0,$sub(%_height%,$get(yOffset),$eval(%_width%/2),21,)
$panel(Visualisations,$eval(%_width%/2),$sub(%_height%,$get(yOffset),$eval(%_width%/2),21,)

Anyone know what I'm doing wrong?
shakey_snake
your SCPL panel is too tall.
Keikonium
Feature request:

Add a new command (like SORT: or FILTER:) that loads a 'right click' menu, and maybe call it MENU:. Just like both the other commands do. What the new command would do is allow you to run many things from one button.

Uses for this:

You can recreate the main menu with buttons, and whatever you want in them. There are others too for changing playlists from a single button (saves space), running different run commands from one button, etc.

Format:

CODE
$button(,,,,,,,,MENU:*name_you_give*|*foobar_name*:My Playlists|*playlist_name*,)

--

Does that make sense? Would it be useful? I think if this were implemented it should be able to apply to $button() and $button2() so you can have an image also smile.gif.

Thoughts?

Oh, also, I am having trouble applying a CUSTOM sort command to a button. I am using:
CODE
$button(0,$get(butY),0,0,22,21,$get(dir1)sort1.png,$get(dir1)sort2.png,SORT:artist|%artist%:album|%album%,)

But when I click the button, nothing happens. Any help would be great! smile.gif
4nt1
for some reason playlist tree will not work in panels ui 10.0.2 and I really want to use it - I am running the latest version - when it tries to be load the ram usage shoots up to 100+ mb and it window goes blank/white... but still nothing loads.. please help
terrestrial
QUOTE(shakey_snake @ Apr 25 2007, 22:12) *

I don't see how it would be any less feasible than $eval(). Just rather than returning a number, it would return True or False.


its the way functions return truth values... I don't think its possible sad.gif

QUOTE(kabuki @ Apr 26 2007, 00:56) *

Thanks for your reply. So it seems that I have some trouble for non-english text. Look at screenshots:


hmmm... I'm not sure... I'll see if I can track it down later.

QUOTE(carmenm @ Apr 26 2007, 01:40) *

I have to redraw the panel with another thing like next track or anything for it to go well. Does that mean that not all panel is redrawn when doing what i did


yeah, its not redrawing to reflect the changes in the variables...


QUOTE(carmenm @ Apr 26 2007, 07:50) *

Terrestrial: would it be possible to allow something like that in $eval() :
$eval(2+-4)
and make it $eval(2-4)

this is problem when you have a variable and you do $eval(2+$get(toto))
if the variable equals -2. I would like to allow positive and negative values for toto but currently it is not possible

Thanks


maybe try $eval(2$get(toto)) and set toto to "+2" or "-2" as a temporary workaround...

QUOTE(alphaex32 @ Apr 26 2007, 20:33) *

It would also be useful to have an option for $drawrect to make them formatted like 3d system boxes.


you should be able to fake it using $drawrect and using SYSCOL-

QUOTE(UnduTheGun @ Apr 29 2007, 06:22) *

I don't know why, but since I installed the new version (0.10.2), foobar crashes on startup saying "unhandled exception: bad allocation", even when using default settings. (foobar doesn't create a crash log)


delete foo_uie_single_column_playlist.dll and foo_uie_trackinfo_mod.dll. you don't need them with PanelsUI and they are incompatible.

QUOTE(Keikonium @ Apr 30 2007, 22:43) *

I made a topic asking how to override cursor status (Here) with no replies as of yet.


the command is not possible for the near future, but you can use CONTEXT-PLAYING and CONTEXT-SELECTED for the buttons...

QUOTE(Keikonium @ May 2 2007, 15:02) *

Oh, also, I am having trouble applying a CUSTOM sort command to a button. I am using:
CODE
$button(0,$get(butY),0,0,22,21,$get(dir1)sort1.png,$get(dir1)sort2.png,SORT:artist|%artist%:album|%album%,)

But when I click the button, nothing happens. Any help would be great! smile.gif


need single quotes (') around the SORT:

---------------

I've uploaded 0.11.0. The main new thing is the ability to popup new panels ui windows through a button.
terrestrial
I also started a wiki page here. Feel free to add things wink.gif
Keikonium
My sorting works now! Thanks smile.gif.

And thank you for the new version too ^__^.
mil3s
Quick question. Is it not possible to change the value of pvar with a button if $setpvar is preset in the // Global?
carmenm
QUOTE(terrestrial @ May 3 2007, 06:07) *

QUOTE(carmenm @ Apr 26 2007, 07:50) *

Terrestrial: would it be possible to allow something like that in $eval() :
$eval(2+-4)
and make it $eval(2-4)

this is problem when you have a variable and you do $eval(2+$get(toto))
if the variable equals -2. I would like to allow positive and negative values for toto but currently it is not possible

Thanks


maybe try $eval(2$get(toto)) and set toto to "+2" or "-2" as a temporary workaround...

Yes i can do that but the thing i forgot to say before is that i really would like to do something like $eval(2 -$get(toto)). Not possible yet but i can wait.

About the redraw problem would it be possible to have an action like REDRAW in order to get rid of such problems?

QUOTE(terrestrial @ May 3 2007, 06:07) *

I've uploaded 0.11.0. The main new thing is the ability to popup new panels ui windows through a button.

Great, thanks
mil3s
Bug in v0.11.0.
IPB Image

Window frames looks really weird when I start foobar. I'm using XP.

EDIT: Also noticed. I can't seem to open anything other than the default config with the new POPUP function. tongue.gif Perhaps you could set the relative path to the folder of the currently used pui config to keep things consistent.

EDIT2: I like the menu function on the button in the default config. Although i think it would be even better if one could change the root for the menu. For example if one set the root to "playback > order" one only get the playback order menu.

Thanks for keep updating this component. smile.gif
shakey_snake
QUOTE(terrestrial @ May 3 2007, 01:07) *

I've uploaded 0.11.0. The main new thing is the ability to popup new panels ui windows through a button.

Where did the Layout Globals go? sad.gif
pIv
2 Terrestial

I download ui_panels v 11.0 and clear PANELSUI folder for use it's default layout.
When I push on button "MENU" I have Error windows "Unhandle exception : Overflow" and foobar closes.

I use WindowsXP+SP2.

I have this error on other configurations (not only default) and with earlest version of ui_panels.

Can you solve this bug?
_________________________________________________________________________________

Edit: I find reason - delete foo_menu_addons and button "MENU" start work fine.
Static
Hi there,

wondering if anybody can help.

I'm trying to display in a panel an image of the artist.

I try to declare first: $puts(bandPath,$replace(%path%,%filename_ext%,band.jpg))

Then using
$if($cwb_fileexists($get(bandPath)),
$if(%ispaused%,
$imageabs2($get(albumwidth),$get(albumwidth),,,,,2,2,$get(bandPath),alpha-100 nokeepaspect)
,
$imageabs2($get(albumwidth),$get(albumwidth),,,,,2,2,$get(bandPath),nokeepaspect)
)
,
$imageabs2($get(albumwidth),$get(albumwidth),,,,,2,2,$get(images)noart.png,nokeepaspect)
)

But it's not working.

Anybody has a solution?

Thanks in advance!
4nt1
I am also getting the graphical glitch where the title bar comes up missing some parts to it..
terrestrial
QUOTE(mil3s @ May 3 2007, 02:12) *

Quick question. Is it not possible to change the value of pvar with a button if $setpvar is preset in the // Global?


well, the button changes the pvar, but then the $setpvar is executed in the global section.... so no I guess..

QUOTE(mil3s @ May 3 2007, 03:36) *

Bug in v0.11.0.
Window frames looks really weird when I start foobar. I'm using XP.


fixed.. I've uploaded 0.11.1

QUOTE

EDIT: Also noticed. I can't seem to open anything other than the default config with the new POPUP function. tongue.gif Perhaps you could set the relative path to the folder of the currently used pui config to keep things consistent.


do something like:

$button(62,$sub(%_height%,18),0,0,0,0,/images\lib.png,/images\libH.png,POPUP:library.pp,)

which will create a new layout in the same directory as the main .pui. you can then just right click on the new window and change the code.

QUOTE(shakey_snake @ May 3 2007, 05:14) *

Where did the Layout Globals go? sad.gif


since there can be more than one window, the layout globals have moved to the settings dialog (bottom left, "Globals").
saberrider
QUOTE(mil3s @ May 3 2007, 02:12) *

Quick question. Is it not possible to change the value of pvar with a button if $setpvar is preset in the // Global?


You could execute the $setpvar once a track using $ifequal(%playback_time_seconds%,0,$setpvar(),)
This way you the pvar will be executed everytime a track starts and you could still change the value using a button after that.
mil3s
QUOTE(saberrider @ May 3 2007, 11:58) *

QUOTE(mil3s @ May 3 2007, 02:12) *

Quick question. Is it not possible to change the value of pvar with a button if $setpvar is preset in the // Global?


You could execute the $setpvar once a track using $ifequal(%playback_time_seconds%,0,$setpvar(),)
This way you the pvar will be executed everytime a track starts and you could still change the value using a button after that.

Thanks, but don't want the pvar to be reset after every track. Only once when Foobar is loaded. tongue.gif But since terrestrial said it isn't possible I guess the simple toggle functionality will have to do.

QUOTE(terrestrial @ May 3 2007, 11:29) *

do something like:

$button(62,$sub(%_height%,18),0,0,0,0,/images\lib.png,/images\libH.png,POPUP:library.pp,)

which will create a new layout in the same directory as the main .pui. you can then just right click on the new window and change the code.


Great, thanks. Now, how do I change the window title? biggrin.gif
Yotsuya
When running foobar under wine/linux using panelsui, if the "settings" option is selected for the main panelsui configuration dialog, foobar does not open the dialog and instead becomes unresponsive to user input and the user must either sit and listen to music or kill the process.

I hesitate to bring this up because this is far from a typical setup however given the previous problems regarding unicode and scintilla triggered by this same event I was wondering if maybe we could have some sort of override so that panelsui can use a standard edit box instead.
terrestrial
QUOTE(mil3s @ May 3 2007, 12:37) *

Thanks, but don't want the pvar to be reset after every track. Only once when Foobar is loaded. tongue.gif But since terrestrial said it isn't possible I guess the simple toggle functionality will have to do.


or, put the $setpvar in the // Background section of the main panels ui window. The // Background section is only run on startup / after you change something in the preferences or settings dialogs.

QUOTE

Great, thanks. Now, how do I change the window title? biggrin.gif


you can't at the moment.

QUOTE(Yotsuya @ May 3 2007, 13:04) *

When running foobar under wine/linux using panelsui, if the "settings" option is selected for the main panelsui configuration dialog, foobar does not open the dialog and instead becomes unresponsive to user input and the user must either sit and listen to music or kill the process.

I hesitate to bring this up because this is far from a typical setup however given the previous problems regarding unicode and scintilla triggered by this same event I was wondering if maybe we could have some sort of override so that panelsui can use a standard edit box instead.


yeah, that's what I'll most likely do, since I still haven't had any luck on reproducing the bug sad.gif
cvax
is it possible to setup a keyboard hotkey for buttons created in panelsui?
shakey_snake
QUOTE(terrestrial @ May 3 2007, 13:29) *

QUOTE(shakey_snake @ May 3 2007, 05:14) *

Where did the Layout Globals go? sad.gif


since there can be more than one window, the layout globals have moved to the settings dialog (bottom left, "Globals").
ah!
I guess, I've kinda learned to ignore everything in that corner, thanks.
Kiteroa
[quote name='carmenm' date='May 3 2007, 20:48' post='489843']
[quote name='terrestrial' post='489811' date='May 3 2007, 06:07']
[quote name='carmenm' post='488133' date='Apr 26 2007, 07:50']
Terrestrial: would it be possible to allow something like that in $eval() :
$eval(2+-4)
and make it $eval(2-4)

this is problem when you have a variable and you do $eval(2+$get(toto))
if the variable equals -2. I would like to allow positive and negative values for toto but currently it is not possible

Thanks
[/quote]

maybe try $eval(2$get(toto)) and set toto to "+2" or "-2" as a temporary workaround...
[/quote]
Yes i can do that but the thing i forgot to say before is that i really would like to do something like $eval(2 -$get(toto)). Not possible yet but i can wait.


How about

$eval(2+$eval($get(toto)))
blaxima
I've been using the same code for my SCP for awhile but with this release (11.1) my group display wont show up now!
I tried fofr's to see if it would work and I couldn't get the group display to show with his either.
Any ideas? Anyone?
The Judge
QUOTE(blaxima @ May 4 2007, 01:51) *

I've been using the same code for my SCP for awhile but with this release (11.1) my group display wont show up now!
I tried fofr's to see if it would work and I couldn't get the group display to show with his either.
Any ideas? Anyone?



Yeah I just had to rebuild my Fb because something screwed up the CFG or my Columns UI and when I tried this latest Panels, it didn't want to work at all so don't know.
carmenm
[quote name='Kiteroa' date='May 4 2007, 00:31' post='490000']
[quote name='carmenm' date='May 3 2007, 20:48' post='489843']
[quote name='terrestrial' post='489811' date='May 3 2007, 06:07']
[quote name='carmenm' post='488133' date='Apr 26 2007, 07:50']
Terrestrial: would it be possible to allow something like that in $eval() :
$eval(2+-4)
and make it $eval(2-4)

this is problem when you have a variable and you do $eval(2+$get(toto))
if the variable equals -2. I would like to allow positive and negative values for toto but currently it is not possible

Thanks
[/quote]

maybe try $eval(2$get(toto)) and set toto to "+2" or "-2" as a temporary workaround...
[/quote]
Yes i can do that but the thing i forgot to say before is that i really would like to do something like $eval(2 -$get(toto)). Not possible yet but i can wait.


How about

$eval(2+$eval($get(toto)))
[/quote]

No this doesnt work if toto equals -3 for example. In fact toto is an offset for me and can be negative. Sometimes i have to do $eval(2 -$get(toto)), so no workaround currently
pIv
Feature request:
If I push button with POPUP:layout comand and this layout already popuped, then action of this pushing is close popuped layout.

In this way I can define very simpy main panel with buttons to open/close
1. album art
2. trackinfo panel
3. single columns panel

and etc...
Falstaff
Hi Terrestrial and thanx for this new feature POPUP ... but ...

Same Feature request:
If I push button with POPUP:layout comand and this layout already popuped, then action of this pushing is close popuped layout...

Otherwise:

=> I have buggs with POPUP button

i explain: on my main layout, i've 3 buttons, each open a specific popup layout :
POPUP1
POPUP2
POPUP3
when i open 1st or second popup, then close it, then close main layout (quit foobar), WHEN i restart foobar, i've a PVAR of my main layout which has changed !!???
I've not the pb when i launch POPUP3 then close it then close foobar and restart, the PVAR is always set to the value before closing foobar

overflow ??

thanx ...

EDIT:

after deleting my popup layouts and redone them, it's work now ... but don't understand what appen before with this pvar huh.gif

Still missing the possibility to close a popup panel !!! wink.gif

Bye
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.