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 1318010 times) previous topic - next topic
0 Members and 25 Guests are viewing this topic.

foo_ui_panels

Reply #1551
The Track Display transparent background does not seem to update when the content behind it changes. For instance, I am overlaying a Track Display on top of some cover art that changes with each track, but the track display shows the art from the first song only, not changing with each track change.

foo_ui_panels

Reply #1552
Now that i have some free time i've been thinking of making a new killer foobar UI. I've been playing with this plugin for a few days now its pretty amazing the things you can do with it. I've run into a few problems though.

1. Right now i have Columns UI to be my main UI which is fine, i'll likely leave it that way because the Playlist Tree doesn't refresh nicely inside a Panels UI panel. however, if i set Panels UI to be my main UI,  the buttons are not visible. sometimes they will still work if i click them but they seem quirky..

2. When you draw panels inside a panel and take up all the width and height of the container panel, is it possible to edit it?

3. Is it possible to set line spacing to a negative value like in the old track info panel?

4. Is it possible to align text buttons like regular text?

I've had some fun with it today, i modded some WMP11 style buttons which i posted here. I also made a neat little text style button to cycle through different playback orders.
Code: [Select]
// Playback Order
// Active Label
$button2(0,5,0,0,31,12,
'$font(Arial,8,glow-100-100-100 glowexpand-1 glowblur-2,212-212-212)''Order:',
'$font(Arial,8,glow-100-100-100 glowexpand-1 glowblur-2,212-212-212)''Order:',
$if($stricmp(%cwb_playback_order%,Default),'Shuffle (tracks)',
$if($stricmp(%cwb_playback_order%,'Shuffle (tracks)'),'Shuffle (albums)',Default)),)
// Button
$button2(0,17,0,0,$calcwidth(%cwb_playback_order%),15,
'$rgb(50,150,225)''%cwb_playback_order%','$rgb(50,150,225)''%cwb_playback_order%',
$if($stricmp(%cwb_playback_order%,Default),'Shuffle (tracks)',
$if($stricmp(%cwb_playback_order%,'Shuffle (tracks)'),'Shuffle (albums)',Default)),)

foo_ui_panels

Reply #1553
I have two short questions about panels and pvars.

1. Is it possible to open a 'Track Display' within another 'Track Display'? I tried to make my pui modular but it's not functional.

2. Is there a difference between a pvar set by a button with 'pvar:set:x:y' and simply $setpvar(x,y)? When I try this in a 'Track Display' the button set pvar is valid in the main window and other panels but not the pvar set by $setpvar(x,y). However, a pvar set by $setpvar(x,y) in the main window is valid in all panels.

foo_ui_panels

Reply #1554
I'm getting some horrible CPU spikes when the now playing track is being shown in a transparent SCPL item, this happens even when I remove the dynamic elements such as the progress bar / time remaining. Im commenting all of my "%isplaying% code out as well but that doesn't seem to help.

EDIT: I put a big $if(%isplaying%,,CODE) around everything so nothing would show on a playing item, I still got the horrendous CPU spikes.

When I use an SCPL with a larger row size and fewer items per page, the CPU usage is at a lower percentage.
I can confirm it gets gradually worse the more and more items appear on the page, but only when there is a now playing element showing.

foo_ui_panels

Reply #1555
First, what exactly is "%groupedcount%"?


there isn't a %groupedcount%... there's a %_itemcount% (number of tracks in node) and a %childcount% number of child nodes).

The Track Display transparent background does not seem to update when the content behind it changes. For instance, I am overlaying a Track Display on top of some cover art that changes with each track, but the track display shows the art from the first song only, not changing with each track change.


it's not meant to update for performance reasons... the background will just be a static copy from when the panel was first drawn.

1. Right now i have Columns UI to be my main UI which is fine, i'll likely leave it that way because the Playlist Tree doesn't refresh nicely inside a Panels UI panel. however, if i set Panels UI to be my main UI,  the buttons are not visible. sometimes they will still work if i click them but they seem quirky..


you're image paths are probably wrong. If you're using columns ui then the base path is the main \PanelsUI subfolder, I believe.

Quote
2. When you draw panels inside a panel and take up all the width and height of the container panel, is it possible to edit it?


right click on the title and choose settings (or "Edit Layout" from preferences)

1. Is it possible to open a 'Track Display' within another 'Track Display'?


yep.

Quote
2. Is there a difference between a pvar set by a button with 'pvar:set:x:y' and simply $setpvar(x,y)? When I try this in a 'Track Display' the button set pvar is valid in the main window and other panels but not the pvar set by $setpvar(x,y). However, a pvar set by $setpvar(x,y) in the main window is valid in all panels.


pvars set by a button will trigger a refresh of all the other track displays using that pvar, but other than that there should be no difference. What you're seeing is probably because if you have two track displays with one using $setpvar and the other using $getpvar, there is no defined order as to which gets executed first (unless its a parent track display and a child track display). eg. track display with $getpvar could be drawn before the other one.

I'm getting some horrible CPU spikes when the now playing track is being shown in a transparent SCPL item,


nice bug hunting  fixed for the next version.

foo_ui_panels

Reply #1556

1. Is it possible to open a 'Track Display' within another 'Track Display'?


yep.

Woow i didn't know that. Does that mean that we can use $panel in a Track Display? I have to test that when i am back from work 

By the way i think there should be a place when we could put feature requests and where you could refuse them and let us know you refused them. I think this could be great because i made some feature requests taht in my opinion could be good, yet i don't know if you saw them and i don't want to ask them again and put any kind of pressure on you. I know what a great job you do and i want to respect you for that. And yet i want this project to grow more and i think users feature requests are good for that.

foo_ui_panels

Reply #1557

The Track Display transparent background does not seem to update when the content behind it changes. For instance, I am overlaying a Track Display on top of some cover art that changes with each track, but the track display shows the art from the first song only, not changing with each track change.




Any chance of being able to trigger a per-track change? I really want to overlay some lyrics on cover art. And my new design (http://host.trivialbeing.org/up/foobar-jun...obalbackgro.gif) has a lot of features that would depend on this feature.

foo_ui_panels

Reply #1558
Thanks for the info, i can't believe i missed the configuration button in the Columns UI, can easily edit a covered Panel now 

I'm not worried about line spacing now, it would be redundant since there are the $align options. however i would like my "$button2()" text buttons to be aligned with $align(Left,Middle) but i can't seem to get it to work.

Is there an efficient way to truncate text?

foo_ui_panels

Reply #1559
$button2 is incredibly frustrating to incorporate into existing text. It'd be great if a button could be created that aligned itself based on the text alignment and the text around it, with width and height defined by the length and height of the text in the button automatically.

$align(left,middle)
Click $button3(this,SET:PVAR:example:0) button

Something as simple as that to implement would make things a lot simpler.

foo_ui_panels

Reply #1560
This is odd.

I have a pop-up window where I use $panel to invoke foo_uie_tabs. One of the uie tabbed panels is Track Display. Now, inside that Track Display I again use $panel to invoke whatever panel I want to display, but it doesn't work, rather it says [UNKNOWN FUNCTION].

I am pretty sure I haven't made any syntax errors:

Code: [Select]
// PerTrack
$panel(Tagger,Tagger Window,0,2,%_width%,%_height%,)


Is the $panel function not compatible with foo_uie_tabs or am I doing something wrong?

foo_ui_panels

Reply #1561
foo_uie_tabs is more or less incompatable with foo_ui_panels

More specifically, foo_uie_tabs was a kind of splitter for columns_ui. (as opposed to a panel)
Panels_ui doesn't have splitters (obviously) so they can't function together.

You can however, create your own tabs with panels_ui's buttons and pvars
elevatorladylevitateme

foo_ui_panels

Reply #1562
You're absolutely right, I could make tabs using foo_ui_panels. I just thought using foo_uie_tabs would be much easier in regards to adding/removing tabs on-the-fly for the new Tagging Window "component."

Basically I just wanted to give the contents of each tab from foo_uie_tab a border, and I was trying to do it by invoking panels/drawrect inside each tab. I realise now all I had to do was invoke a panel/drawrect outside of, and after the invocation of foo_uie_tab.

But thanks for the info regarding foo_uie_tab's incompatibility with foo_ui_panels because I did not know that. I'll make a note of that incompatibility in the Wiki.

foo_ui_panels

Reply #1563

First, what exactly is "%groupedcount%"?


there isn't a %groupedcount%... there's a %_itemcount% (number of tracks in node) and a %childcount% number of child nodes).


There is a %groupedcount%, it's used in Preferences-->Display-->Panels UI-->Sort/Group, in the "Single Column Playlist Selector" pane.

What is it?

foo_ui_panels

Reply #1564
%groupedcount% is the number of grouping criteria being used.

right-click on SCPL-> Sort/Group by-> Edit

The number of check marks in the Group column is returned by %groupedcount%
elevatorladylevitateme

foo_ui_panels

Reply #1565
An option to enable and disable SCPL transparency via a button would be great. I have a button that turns on/off transparency in my layout and the only thing I cannot change with it is the slow down in SCPL scrolling when transparency is enabled.

foo_ui_panels

Reply #1566
i found absolutly no way to open tray context menu... any idea what can be wrong?
panels ui version: 0.13.6 beta (from may 31 2007)

foo_ui_panels

Reply #1567
Hi Terrestrial. I trying to make a Last Modified category in the Library Filter so I can see the files that were added/modified last. This is pretty cool, though it would be even better if there was a way to reverse the sorting, and perhaps even limit results to x lines.

EDIT: Here is the code I currently use.

Code: [Select]
Last Modified
--- New Line ---
$left(%lastmodified%,4)
--- New Line ---
$ifequal($right($left(%lastmodified%,7),2),01,01 - Januari,
$ifequal($right($left(%lastmodified%,7),2),02,02 - February,
$ifequal($right($left(%lastmodified%,7),2),03,03 - March,
$ifequal($right($left(%lastmodified%,7),2),04,04 - April,
$ifequal($right($left(%lastmodified%,7),2),05,05 - May,
$ifequal($right($left(%lastmodified%,7),2),06,06 - June,
$ifequal($right($left(%lastmodified%,7),2),07,07 - July,
$ifequal($right($left(%lastmodified%,7),2),08,08 - August,
$ifequal($right($left(%lastmodified%,7),2),09,09 - September,
$ifequal($right($left(%lastmodified%,7),2),10,10 - October,
$ifequal($right($left(%lastmodified%,7),2),11,11 - November,
$ifequal($right($left(%lastmodified%,7),2),12,12 - December,

))))))))))))

foo_ui_panels

Reply #1568
Hello all

I'm pretty new to the forums, but I'm starting to understand Panel UI finally!

I'd like to make a request without stepping on toes. Could we get the version # appended to the foo_ui_panels download please?

Thanks 

foo_ui_panels

Reply #1569
if someone would look at this i would be appreciative
i have highlighted the problem code

Code: [Select]
// Global

$puts(button offset,2)

$puts(button width,$eval({%_width%-{$get(button offset)*6}}/7))


// PerTrack

////FLIP

$button2(0,2,0,0,$get(button width),21,
'$drawrect(0,0,0,0,brushcolor-null pencolor-$get(glow color))
$font($get(font face),$get(font size medium),,$get(glow color))
$align(center,bottom)
FLIP'
,
'$drawrect(0,0,0,0,brushcolor-null pencolor-$get(glow color))
$drawrect(2,2,[color=#ff0000]$eval($get(button width)-4)[/color],17,brushcolor-$get(glow color) pencolor-null)
$font($get(font face),$get(font size medium),,$get(base color))
$align(center,bottom)
FLIP'
,
PVAR:SET:top panel switch:$eval($getpvar(top panel switch)+1),
TOOLTIP:"Flip Display")

my %_width% is 750, so the code should return a value of 101
$eval($get(button width)-4) --> {{750-{2*6}}/7}-4 --> 101

this code doesn't work, the rectangle doesn't get drawn, if i put the code to a variable and then call opon it --it draws but incorrectly
however, if i simply type 101 in it's place, everything is fine and the rectangle draws properly --which is 2 pixels before the buttons end

what am i doing wrong?, i really need this to be scalable and not just a static number like 101

thx everyone[/font][/color]

foo_ui_panels

Reply #1570
gregory: Break your problem down and debug the code in a separate track display panel.
Code: [Select]
// Global
$puts(button offset,2)
$puts(button width,$eval({%_width%-{$get(button offset)*6}}/7))

// PerSecond
$eval($get(button width)-4)

Does this return 101 for you? It did not for me, because my %_width% is something else. so I replace that third line with
Code: [Select]
$puts(button width,$eval({750-{$get(button offset)*6}}/7))
Does this return 101 for you? It did for me. All I did was change %_width%.. I would then replace the last line with %_width% to see if it was the 750 expected.

The next step I'd suggest would be to replace $get(button offset) with 2. Break down your formula further and further until you find out where the problem is.

 

foo_ui_panels

Reply #1571
@Yotsuya

thanks for the help 

i called upon the code outside of the $button2() command, using both %_width% and 750, i did this both inside the track display panel where the buttons are located as well as a seperate test panel, every instance yielded a value of 101 --this was expected

so i kept breaking down the code all the way to the point of this:
$puts(button width,105) --directly setting the button width variable
so the only calculation would look like this
$eval($get(button width)-4) --> 105-4 = 101
calling upon this code outside of the $button2() command yields 101 --as expected
however inside the button2() command --nada, the rectangle just doesn't draw, but if i simply type 101 --bingo, there it is
i don't get it 

foo_ui_panels

Reply #1572
however inside the button2() command --nada, the rectangle just doesn't draw, but if i simply type 101 --bingo, there it is
i don't get it
If I remember correctly, $button2() code parameters work inside there own little memory space. So if you $puts() something outside of the $button2() you can not $get() it from within the $button2(). Try using $setpvar()/$getpvar() instead of $puts()/$gets() and that should work. I think this is the only way to transport variables from outside a button's code to inside a button's code. You can confirm this by adding a $puts(button width,x) line inside the button code:
Code: [Select]
// Global
$puts(button width,70)

// Background
$drawrect(0,0,0,0,brushcolor-255-255-255 pencolor-null)

// PerTrack
$button2(0,2,0,0,$get(button width),21,'

$drawrect(0,0,0,0,brushcolor-null pencolor-0-0-0)
$font(Tahoma,10,,0-0-0)
$align(center,bottom)
FLIP

','

// Test processing of puts with the line below
$puts(button width,70)

$drawrect(0,0,0,0,brushcolor-null pencolor-255-0-0)
$drawrect(2,2,$eval($get(button width)-4),17,brushcolor-32-0-0 pencolor-null)
$font(Tahoma,10,,255-0-0)
$align(center,bottom)
FLIP

',null,TOOLTIP:"Flip Display")

foo_ui_panels

Reply #1573
thanks again Yotsuya 

what i've learned;

-$setpvar()/$getpvar() works

-setting  a variable with $puts() elsewhere and calling it inside a $button2()  command works --as long as the call does not come from inside the  $buton2() quotes ('')

-setting a variable with $puts() inside  the quotes of $button2() and calling it further down works --as long as  the call occurs within the quotes as well

-$puts() set within the quotes cannot be called upon outside of the quotes

perhaps someone can validate this and add it to the wiki, maybe save someone the headache

foo_ui_panels

Reply #1574
Just a quick question is it possible to use toolbars within a window:
Code: [Select]
$panel(Search,Quick Search Toolbar,5,5,200,300,)

but all I get is
"Missing panel: Quick Search Toolbar"
On a side note is there anywhere information available on how to improve efficiency and speed in panels_ui?