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: foo_ui_panels (Read 1318050 times) previous topic - next topic
0 Members and 22 Guests are viewing this topic.

foo_ui_panels

Reply #1725
one thing that I'm really missing in the library filter is that it doesn't go automatically further to the next level if something is !null!
an example to make myself clear:

level 1;$if($strstr(%discogs_format%,Vinyl),Vinyl,$if($strstr(%discogs_format%,CD),CD,Unknown))
level 2:$if($strstr(%discogs_format%,Vinyl),%discogs_label%,!null!)
level 3:$if($strstr(%discogs_format%,Vinyl),%discogs_catalog%,%album%)

It would be cool if the discogs label is not shown if the vinyl is not present in the discogs_format tag but that it would then just shows level three en sorts on album


maybe try something like this:
Code: [Select]
level 1;$if($strstr(%discogs_format%,Vinyl),Vinyl,$if($strstr(%discogs_format%,CD),CD,Unknown))
level 2:$if($strstr(%discogs_format%,Vinyl),%discogs_label%,%album%)
level 3:$if($strstr(%discogs_format%,Vinyl),%discogs_catalog%,!null!)


Anyway why do the characters 'ACK' with a black background get put on the active line in the edit box if CTRL+F are pressed. What does this 'ACK' thing mean?


you have some sort of control characters in your formatting string that could be causing problems. try to remove them.

Was $get_global support in SCPL removed? If so any reason why, as it works in Track Display :s. I don't want to copy and paste my complex globals into half of my config.


yes. it was causing some slowdowns. use the panels ui user / track / layout globals instead.

Feature request. The ability to add entries (links to .pp files) in the Library menu. Would be a cool feature imo since I have the Library Filter in a separate window, and I can't currently find a good place in my design to put a link for it. The Library menu would be perfect.


I've been meaning to do this (eg specify a pui as your "library" pui, that you can use in any layout....), but have to resolve some path issues first.

I just updated my panelsui from 0.13.5 to 0.13.8 and now I have some squares before everything in my Library filter (everything but the headers) First i thought it had something to do with my config, but it also happens with the basic.pui. I also tried to remove everything but %criteria% in the layout settings but there were still squares.


check your track globals for stray characters.

Is it possible in the library filter to have subcategories that exist based on tags? For example: if I have some songs that don't have a date specified, I want them grouped in a 'No Date' group that isn't expandable. The songs that do have a date are grouped in 80s,90setc and can be expanded to 1991,1992 etc. With my current config i get Dates>90s>1991, but I also get dates>No Date>? where I would like Dates>No Date.


1: $if($meta_test(date),$mul($div(%date%,10),10)s,No Date)
2: $if($meta_test(date),-$mod(%date%,10),!null!)

Any chance of one of the Sort By defaults being "By Directory"?


I've added it... I just have to remember to update the defaults for the next version (if not just remind me ).

foo_ui_panels

Reply #1726
Hi,

I cannot get the matroska transparent access to attachment file (ex. matroska://%path%|cover.jpg) to work with uie_panels. Is it possible anyway ?


no, only with regular files.

$button2 bug

I am finding that placing a $button2 command inside an $if statement causes changes to $alignabs and hence the positioning of text. This $alignabs is NOT within the $if, but prior to it.

Commenting out the $button2 section removes the error. Taking $button2 outside of the $if and placing ABOVE the $alignabs fixed the problem, when below the problem persisted.

It is irrelevant of the command in the $if statement and commenting out other things within the $if gave no fix.

EDIT: The bug only occurs if the $button2 is in the vicinity of the $alignabs command.

Seems to be some conflict between $alignabs and $button2


what kind of changes happed to the alignabs? can you post a small code snippet that demonstrates the problem?

In ColumnsUI, there's an 'Activate now playing' menu option which selects the current track, which I've been binding to the F5 key.  Handy when you've scrolled away in a long playlist and want to get back quickly.  If this menu item was available in PanelsUI, I could finally get rid of ColumnsUI.


you can try middle-clicking on a track display which should do the same thing.

I never realised ColumnsUI was still needed for Panels.


no, columnsui is not needed unless you want to use some of the panels / functions it provides.


Resizing popups with button and WINDOWSIZE.

Is this possible? All I notice is that the parent window sizes change (what I don't want) and the popup stays the same. Is this a bug? Can this be changed in a future update of PanelsUI?


Can at least someone confirm this behavior so I know that resizing of popups is not possible? Maybe there is a conflict between %_width% and %_height% from the popup and the main window?


yes, resizing popups is not currently possible

How does your CPU usage fair for your layouts with quite a bit of titleformat code and many Track Display sub-panels?

Without any DSPs, mine jumps from 2% to 7% on average. I don't understand why it fluctuates so much, considering I do not have any code in the PerSecond redraw type. If I understood correctly, button functions are processed differently regardless of the redraw type they are in -- Could that be the culprit? Because I do have quite a bit of them.

I wouldn't mind hearing some tips on making more efficient titleformat scripts. This could be useful for everyone as I think the layouts seem to be getting bigger and more complex in general. I'd love to hear some from Terrestrial.


cpu usage should be pretty low normally (0-2%). on track changes it might be a little higher if you have any track displays that need to display new images, etc. buttons don't really affect things much. if you have excessive cpu usage constantly, then check your user / track / layout globals. some stuff that is generally slow are

1) $fileexists() (especially through a network). scpl caches this info, track displays do not.
2) alpha, blur, glow, shadow text effects on text or drawrect. try to keep these to a relatively small display area and use them // PerTrack.

I would say that by far the most important thing is whether or not you have transparent back grounds on anything.
I don't and with a pretty complex layout, with quite a few panels, I stay between 0%-1%.


actually, transparent backgrounds shouldn't cause a constant cpu usage spike. the cpu usage will only be higher when you are scrolling the playlist (with a transparent playlist, every item has to be redrawn even if you only scroll one line, whereas with a opaque background, if you scroll only one line you just have to redraw the new line, and just move up/down the other lines without having to redraw them)

-----------

@all: I've added a bugs list to the panels ui feature requests page. My apologies if I didn't respond to your bug report here, but it is easier to update the wiki page. Thanks to everybody for finding the bugs and for the new ideas as well

foo_ui_panels

Reply #1727
Here's a code example, just put this in a fresh track display:

Code: [Select]
$alignabs(10,15,$eval(%_width%-20),50,left,top)

$font($getpvar(nowplayfont),20,bold $ifequal($getpvar(global.background),1,shadow,),$getpvar(nowplayfontcol))
Installation of FofR Configuration '('v 1.0')'
$alignabs(10,45,$eval(%_width%-20),$eval(%_height%-95),left,top)
$font(,12, $ifequal($getpvar(global.background),1,shadow,),)
Designed for and tested with PanelsUI version 0.13.7. Time to perform some quick diagnostics:$char(10)$char(10)
$font(,12, $ifequal($getpvar(global.background),1,shadow,),)
Calibri:
$if($fontexists(Calibri),
$font(,,,16-157-9)Installed
,
$font(,,,152-22-3)Missing
$button2(120,106,0,0,$calcwidth(Download),$calcheight(H),'$font(,,,152-22-3)Download','$font(,,underline,152-22-3)Download',EXEC:'http://www.microsoft.com/downloads/details.aspx?FamilyId=941B3470-3AE9-4AEE-8F43-C6BB74CD1466&displaylang=en',TOOLTIP:"Download Windows Compatibility Pack with Calibri Font")

)
$char(10)
$font(,12, $ifequal($getpvar(global.background),1,shadow,),$getpvar(nowplayfontcol))Arial: $if($fontexists(Arial),$font(,,,16-157-9)Installed,$font(,,,152-22-3)Missing$button2(185,125,0,0,$calcwidth(Download),$calcheight(H),'$font(,,,152-22-3)Download','$font(,,underline,152-22-3)Download',EXEC:'http://www.urbanfonts.com/fonts/BigNoodleTitling.htm',TOOLTIP:"Download BigNoodleTitling Font for Windows"))$char(10)
$char(10)$char(10)
 lots of text yadda yadda lots of text yadda yadda lots of text yadda yadda lots of text yadda yadda $char(10) lots of text yadda yadda lots of text yadda yadda lots of text yadda yadda lots of text yadda yadda $char(10)



When the first $if statement is not true, the font changes to red, and a button is displayed linking to a download. However, the presence of this button causes this:



When I comment out the conditional $button2 everything displays as it should:


foo_ui_panels

Reply #1728
yeah that's how it's meant to work (unfortunately). Basically all the text stuff ($font(), etc) gets drawn separately from the other stuff ($buttons, $drawrects, etc).

so, in the first screenshot, you have once big "text" output in a $alignabs; in the second screenshot, you have have a text output in a $alignabs, then you have a $button (which takes you out of the $alignabs), then you have some more text (which defaults to an $align(left,top)). you can't mix buttons into the flow of the text.

it should be possible when I rewrite the text parsing stuff, but I don't know when.


foo_ui_panels

Reply #1730
it should.

foo_ui_panels

Reply #1731
Looks like you've brought back an old bug Terrestrial. When the Title Formating was removed and replaced by $settitle, Foobar no longer update the info on the taskbar if minimized.

foo_ui_panels

Reply #1732
[a href="http://www.divshare.com/download/1040692-5af" target="_blank"] I'm using $button with alpha transparent png's, I did also try nobkgnd, but that made the background look solid.

edit: solved it by putting $imageabs2 with the reflection in PerSecond, is that how it should work?

 

foo_ui_panels

Reply #1733
Where exactly must I add some code (which code?) to support the new tray tip feature?
Thanks


foo_ui_panels

Reply #1735
Hi

I am facing two problems.. 1st that in the configuration editor i cant delete any panel i am not using..
secondly

this is the code i put up in the main configuration section

// PerSecond
$puts(yOffset,0)
$panel(Playing,Track Display,0,$get(yOffset),%_width%,18,)

for the trackdisplay this is the code
//PerSecond
$align(left,)
$font(Calibri,9,,221-222-223)
[%_time_elapsed%]

$align(right,)
$font(Calibri,9,,221-222-223)
[%length%]
$drawrect($muldiv(%_width%,8,100),4,$muldiv(%_width%,81,100),9,brushcolor-null pencolor-0-0-0)
$drawrect($add($muldiv(%_width%,8,100),2),6,$ifgreater($muldiv($sub($muldiv(%_width%,81,100),4),%playback_time_seconds%,%length_seconds%),0,$muldiv($sub($muldiv(%_width%,78,100),4),%playback_time_seconds%,%length_seconds%),1),5,brushcolor-240-240-240 pencolor-null)


The problem is neither does the text display nor does the panel update every second.. Can someone please help me cos i cant find why is this working incorrectly?

foo_ui_panels

Reply #1736
Reproducible Bug

Actually, I don't know if it's a bug, but it's a usability issue.

If I have more than one SCPL layout, and I right click to go to Settings...
It shows me the "Albums" layout every time, rather than the layout I was actually looking at.

If this is too nitpicky, than just ignore this.
elevatorladylevitateme

foo_ui_panels

Reply #1737
I need a bit of help with something I am running into with my configuration. I am trying to make my own from scratch, and I need a bit of help with some coding issues.

What I want to do is have a button that when pressed, will display panel X and hide panel Y. Then, when that button is pressed again, panel X is hidden, and panel Y comes back again. Is this possible? If so, how?

Thanks .
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

foo_ui_panels

Reply #1738
I need a bit of help with something I am running into with my configuration. I am trying to make my own from scratch, and I need a bit of help with some coding issues.

What I want to do is have a button that when pressed, will display panel X and hide panel Y. Then, when that button is pressed again, panel X is hidden, and panel Y comes back again. Is this possible? If so, how?

Thanks .

Yes, you need to use 2 buttons in the same place.

foo_ui_panels

Reply #1739
Or you can simply toggle some pvar's value with just one button,and display panel according to it.
Example:

Code: [Select]
$button(blah-blah-blah......,PVAR:SET:var:$ifequal($getpvar(var),0,1,0))

$ifequal($getpvar(var),0,$panel(panel A),$panel(panel B))
Favourite artist:CD-R
Favourite album:700MB

foo_ui_panels

Reply #1740
Im having trouble getting my SCPL to be transparent. It has a background colour set via the "..." background colour button in the editor box which I can find no way of removing.

EDIT: I am a douche and missed that checkbox.



Looks like I am a douche as well, because I have missed the "Make my SCPL transparent" checkbox  Can someone point me in the right direction?

Also, from what I've read on the 70 odd pages on this plugin it seems that only certain panels can be made transparent... I want to make a Playlist Views/Columns Playlist transparent - is it possible and if so how?

Cheers,
Rukh

PS Awesome component and thanks to all the users out there that have helped me so far!!

foo_ui_panels

Reply #1741
Or you can simply toggle some pvar's value with just one button,and display panel according to it.
Example:

Code: [Select]
$button(blah-blah-blah......,PVAR:SET:var:$ifequal($getpvar(var),0,1,0))

$ifequal($getpvar(var),0,$panel(panel A),$panel(panel B))


This was the plan, but it doesn't seem to work for me. This is my code:

Code: [Select]
// Global
$puts(dir2,'C:\Program Files\foobar2000\FoOrby\buttons\')

// PerTrack
$panel(Search,Quick Search Toolbar,70,0,300,20,)
$panel(Title,Track Display,70,0,500,20,)

$button(48,1,0,0,15,15,$get(dir2)search.png,$get(dir2)search.png,,PVAR:SET:var:$ifequal($getpvar(var),0,1,0))
$ifequal($getpvar(var),0,$panel(Search),$panel(Title))


The button shows up, the title panel shows up, but the button doesn't do anything, and the search panel doesn't show up (obviously if the button doesn't work). What am I doing wrong?
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

foo_ui_panels

Reply #1742
Keikonium:
Try this:

// Global
$puts(dir2,'C:\Program Files\foobar2000\FoOrby\buttons\')

// PerTrack
$button(48,1,0,0,15,15,$get(dir2)search.png,$get(dir2)search.png,,PVAR:SET:var:$ifequal($getpvar(var),0,1,0))
$ifequal($getpvar(var),0,
  $panel(Search,Quick Search Toolbar,70,0,300,20,)
,
  $panel(Title,Track Display,70,0,500,20,)
)

foo_ui_panels

Reply #1743
Clicking the button still does nothing . Both the panels show up, layered on top of one another. There isn't any code I am missing is there?
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

foo_ui_panels

Reply #1744
Try this code for the button:

$button(48,1,0,0,0,0,$get(dir2)search.png,$get(dir2)search.png,PVAR:SET:var:$ifequal($getpvar(var),0,1,0),)

foo_ui_panels

Reply #1745
Perfect!!
Thanks so much CepiPerez, it works great now ^__^ .
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

foo_ui_panels

Reply #1746
I'm having problems with a button to change playback order (ie switch between random and default playback). I think it might be because the menu comand has parenteses in in?  The code is as follows:

Code: [Select]
$if($strcmp(%cwb_playback_order%,Shuffle (tracks)),
    $button($get(xOffset),$get(yOffset),0,0,0,0,$get(button path)\Random.png,$get(button path)\Random-mousover.png,Default,$if(%glass%,nobkgnd) TOOLTIP:Default Playback)
,
    $button($get(xOffset),$get(yOffset),0,0,0,0,$get(button path)\Random.png,$get(button path)\Random-mousover.png,Shuffle (tracks),$if(%glass%,nobkgnd) TOOLTIP:Random Playback)
)


It didn't work with the $if function in the button arguments, and when I make a button that just sets the order to default, it works, but when I make one that just sets it to Suffle (tracks), it doesn't work.

Any ideas?

foo_ui_panels

Reply #1747
I'm having problems with a button to change playback order (ie switch between random and default playback). I think it might be because the menu comand has parenteses in in?  The code is as follows:

Code: [Select]
$if($strcmp(%cwb_playback_order%,Shuffle (tracks)),
    $button($get(xOffset),$get(yOffset),0,0,0,0,$get(button path)\Random.png,$get(button path)\Random-mousover.png,Default,$if(%glass%,nobkgnd) TOOLTIP:Default Playback)
,
    $button($get(xOffset),$get(yOffset),0,0,0,0,$get(button path)\Random.png,$get(button path)\Random-mousover.png,Shuffle (tracks),$if(%glass%,nobkgnd) TOOLTIP:Random Playback)
)


It didn't work with the $if function in the button arguments, and when I make a button that just sets the order to default, it works, but when I make one that just sets it to Suffle (tracks), it doesn't work.

Any ideas?


Try these for your COMMAND parameter:

'Playback/Order/Default'
'Playback/Order/Shuffle (tracks)'

That's what I use for mine, and it works.

foo_ui_panels

Reply #1748
^^Thanks, it seems I just needed to add some quotes on account of the parenteses.

foo_ui_panels

Reply #1749

I'm having problems with a button to change playback order (ie switch between random and default playback). I think it might be because the menu comand has parenteses in in?  The code is as follows:

Code: [Select]
$if($strcmp(%cwb_playback_order%,Shuffle (tracks)),
    $button($get(xOffset),$get(yOffset),0,0,0,0,$get(button path)\Random.png,$get(button path)\Random-mousover.png,Default,$if(%glass%,nobkgnd) TOOLTIP:Default Playback)
,
    $button($get(xOffset),$get(yOffset),0,0,0,0,$get(button path)\Random.png,$get(button path)\Random-mousover.png,Shuffle (tracks),$if(%glass%,nobkgnd) TOOLTIP:Random Playback)
)


It didn't work with the $if function in the button arguments, and when I make a button that just sets the order to default, it works, but when I make one that just sets it to Suffle (tracks), it doesn't work.

Any ideas?


Try these for your COMMAND parameter:

'Playback/Order/Default'
'Playback/Order/Shuffle (tracks)'

That's what I use for mine, and it works.


you just have to use the quotation marks, because of the space in the command for Shuffle (tracks)...
fb2k on OSX: flac q8 > rockboxed Sansa e280v1: Vorbis q5.0