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
DaSilva
QUOTE(mquander @ Jun 5 2007, 20:41) *

QUOTE(DaSilva @ Jun 5 2007, 09:58) *

Request:

Drag & Drop like every other player has.


Just use the columns playlist.


But then I cannot use the skins for foo_ui_panels!?
FofR
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.
gob
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
// 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)),)
bit4bit
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.
FofR
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.
terrestrial
QUOTE(eboomer @ Jun 4 2007, 18:48) *

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

QUOTE(FofR @ Jun 5 2007, 14:40) *

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.

QUOTE(gob @ Jun 6 2007, 01:09) *

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)

QUOTE(bit4bit @ Jun 6 2007, 05:49) *

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.

QUOTE(FofR @ Jun 6 2007, 10:07) *

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


nice bug hunting wink.gif fixed for the next version.
carmenm
QUOTE(terrestrial @ Jun 6 2007, 16:36) *


QUOTE(bit4bit @ Jun 6 2007, 05:49) *

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 tongue.gif

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.
FofR
QUOTE(terrestrial @ Jun 6 2007, 16:36) *


QUOTE(FofR @ Jun 5 2007, 14:40) *

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.
gob
Thanks for the info, i can't believe i missed the configuration button in the Columns UI, can easily edit a covered Panel now laugh.gif

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?
FofR
$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.
metal_termite
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
// 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?
shakey_snake
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
metal_termite
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.
eboomer
QUOTE(terrestrial @ Jun 6 2007, 10:36) *

QUOTE(eboomer @ Jun 4 2007, 18:48) *

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?
shakey_snake
%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%
FofR
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.
cartman(2vd)
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)
mil3s
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
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,

))))))))))))
Hayduke
Hello all smile.gif

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 biggrin.gif
gregory
if someone would look at this i would be appreciative
i have highlighted the problem code

CODE

// 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,$eval($get(button width)-4),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
Yotsuya
gregory: Break your problem down and debug the code in a separate track display panel.
CODE
// 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
$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.
gregory
@Yotsuya

thanks for the help biggrin.gif

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 blink.gif
Yotsuya
QUOTE(gregory @ Jun 8 2007, 06:08) *
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
// 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")
gregory
thanks again Yotsuya biggrin.gif

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
Chris Norman
Just a quick question is it possible to use toolbars within a window:
CODE
$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?
florre
Hi,
I have a question and haven't been able to find an answer searching the Wiki and the forums...

When I browse my music collection (librabry) with PanelsUi installed (basic.pui and dark.pui tried) I can select items and all, but the playlist doesn't get updated. I have to right-click on an item and send it to the playlist manually...

am I missing some settings or is this just not possible with PanelsUI???
Thanks!



here are my installed components:
CODE

foobar2000 core 0.9.4.3
Album List 3.2.0
CD Audio Decoder 2.1.1
Converter 1.0.1
cwbowron's title format hooks 1.1.1
Standard DSP array 1.0
freedb Tagger 0.5.2a
Monkey's Audio decoder 2.1.2
FLAC Decoder 1.1.0
Standard Input Array 1.0
WMA Decoder 1.1
foo_lyricsdb 0.0.7 beta 5
Masstagger 1.6
Playback Statistics 1.3.2
ReplayGain Scanner 2.0.2
Run services 0.3.2
Columns UI 0.1.3 beta 1v7
Panels UI 0.13.6 beta
Default User Interface 0.9
Album Art Panel 0.2.6
Album list panel 0.2.1 beta 4
Lyric Show Panels 0.3.1.1
Playlists Dropdown 0.6 alpha 3
Quick Search Toolbar 2.8l


jclim00
The library filter doesn't have the same functionality as album list right now, hopefully terrestrial will add customizable clicking functions to it in the future.
Yotsuya
QUOTE(Chris Norman @ Jun 9 2007, 06:28) *
Just a quick question is it possible to use toolbars within a window:
CODE
$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?

Yes, you can use toolbars in PanelsUI but I do not know what you mean by "within a window". I use it myself in my own layout and am surprised your code did not work. Are you sure you have the Quick Search Toolbar loaded?

File> Preferences> Components
Do you see foo_uie_quicksearch listed as a component?

File> Preferences> Display> Columns UI> "Layout" Tab
If you right click a splitter in your ColumnsUI layout and choose to insert a panel, do you see "Quick Search Toolbar" as an available Toolbar?
eboomer
QUOTE(Chris Norman @ Jun 9 2007, 05:28) *

Just a quick question is it possible to use toolbars within a window:
CODE
$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?


I believe you have to use "$panel(Toolbar,..." rather than "$panel(Search,...".

In general, in the layout window, click the "Panels" button towards the upper left corner, and look up the desired panel from the dropdown list. They will look like "Catagory / Panel Name". The panel command should then look like "$panel(Catagory,Panel Name,...".
bit4bit
REQUEST:

I've got a request for multi-dimensional variables. I've tried the following without success:

$puts(abc,'str1,str2,str3,...,strN')
$select(n,$get(abc))

The reason is obvious: $select is executed before $get and finds only one item. If there is another solution to this problem, please let me know.

With multi-dimensional variables this would be easy, e.g.:

$setdim(abc,str1|str2|str3|...|strN)
$getdim(abc,n)

Maybe others could find this useful, too.


And thank you for your support with all the questions I had last week. Finally I found my mistake (a pvar needed initialization) and now I see all panels.
metal_termite
Just throwing an idea out here that I had. A new function for popping up context menus. It would be used in a button as such...

$button(DstX,DstY,X,Y,W,H,TEXT,HOVER TEXT,$context(text,command,text,command),OPTIONS)

So let's say you wanted to make a context menu to mimic this one in WMP11.

IPB Image


$button(DstX,DstY,X,Y,W,H,IMAGE,HOVER IMAGE,$context(Format,COMMAND,Bit Rate,COMMAND,Rip CD Automatically When Inserted,COMMAND,Eject CD After Ripping,COMMAND,More Options...,COMMAND,Help With Ripping,COMMAND),OPTIONS)


A $context specific parameter could be $separator for adding horizontal separators. Example... $context(Format,COMMAND,Bit Rate,COMMAND,$separator)
metal_termite
Hmm, one more thing. Would it be out of the scope of Panels UI titleformatting to make a $forloop (for loop) function?
jclim00
QUOTE(metal_termite @ Jun 10 2007, 17:11) *

Just throwing an idea out here that I had. A new function for popping up context menus. It would be used in a button as such...

$button(DstX,DstY,X,Y,W,H,TEXT,HOVER TEXT,$context(text,command,text,command),OPTIONS)

So let's say you wanted to make a context menu to mimic this one in WMP11.

IPB Image


$button(DstX,DstY,X,Y,W,H,IMAGE,HOVER IMAGE,$context(Format,COMMAND,Bit Rate,COMMAND,Rip CD Automatically When Inserted,COMMAND,Eject CD After Ripping,COMMAND,More Options...,COMMAND,Help With Ripping,COMMAND),OPTIONS)


A $context specific parameter could be $separator for adding horizontal separators. Example... $context(Format,COMMAND,Bit Rate,COMMAND,$separator)


This would be freakin awesome.
metal_termite
None of the playlist info functions work in a ui panel, with the exception of %isplaying%.

Sorry if that has been brought up before, but a search yielded nothing of the sort.
gob
oops, wrong thread smile.gif

but there are a few neat things i've donw with this component in this post.
HiFiRE
When I put this hotness code into panels ui track globals, grouping breaks... any idea why? The code works btw...

the code:
CODE
/////////////////////////////////////////
// HOTNESS - an algorithm for meta-rating
// v1.6.c.1 (foo_cwb_hooks version)
// Dec 6, 2006 - by topdownjimmy
/////////////////////////////////////////
//
// configure baselines: define baseline playfrequency and decay period (in days)
//
// decrease if songs stay hot too long
$puts(baselinefrequency,28)
// decrease if too many songs are hot
$puts(baselinedecay,7)
//
// configure default rating for unrated songs
//
$puts(avgrating,3)
//
// DO NOT EDIT BELOW THIS LINE //
$puts(baselinefrequency,$mul($get(baselinefrequency),24))
$puts(baselinedecay,$mul($get(baselinedecay),24))
$puts(lp_age,$add($substr(%last_played%,12,13),
$mul(24,$cwb_datediff(%last_played%,2000-01-01))))
$puts(fp_age,$add($substr(%first_played%,12,13),
$mul(24,$cwb_datediff(%first_played%,2000-01-01))))
$puts(age,$sub($get(lp_age),$get(fp_age)))
$puts(now_age,$add($substr(%cwb_systemdatetime%,12,13),
$mul(24,$cwb_datediff(%cwb_systemdate%,2000-01-01))))
$puts(recentness,$sub($get(now_age),$get(lp_age)))
$puts(decay,$div($div($mul($if2(%play_count%,%play_counter%),
$get(baselinefrequency),$get(baselinedecay),$if2(%rating%,
$get(avgrating)),100),$mul($max($get(age),$get(baselinefrequency)),
$get(avgrating))),100))
$puts(rawhotness,$div($mul($max($sub($get(decay),
$get(recentness)),0),100),$get(decay)))
$puts(forecast,$div($mul($max($sub($get(decay),
$add($div($max(0,$sub($get(baselinedecay),$get(recentness))),2),
$get(recentness))),0),100),$get(decay)))
$puts(hotness,$div($add($get(rawhotness),$get(forecast)),2))
//$set_global(hotness,$get(hotness))
// END HOTNESS //
Sam Stoat
I want to use my desktop background picture as a background pic in foobar, so everything is overlayed on top of it. That part is easy enough, but I use Wallpaper Master to change my picture every so often.

Is it possible to get PanelsUI to recognise when the wallpaper has changed and update the background picture? I tried moving the $imageabs2 command into '// PerTrack' but that didn't work.
carmenm
QUOTE(Sam Stoat @ Jun 11 2007, 12:16) *

I want to use my desktop background picture as a background pic in foobar, so everything is overlayed on top of it. That part is easy enough, but I use Wallpaper Master to change my picture every so often.

Is it possible to get PanelsUI to recognise when the wallpaper has changed and update the background picture? I tried moving the $imageabs2 command into '// PerTrack' but that didn't work.

No Not possible, images are loaded once on layout load i think and are not reloaded after even if the layour is redrawn. Your only chance is to be under Vista and to use the transparency feature of PanelsUI.
Falstaff
QUOTE(metal_termite @ Jun 10 2007, 23:11) *

Just throwing an idea out here that I had. A new function for popping up context menus. It would be used in a button as such...

$button(DstX,DstY,X,Y,W,H,TEXT,HOVER TEXT,$context(text,command,text,command),OPTIONS)

So let's say you wanted to make a context menu to mimic this one in WMP11.

IPB Image


$button(DstX,DstY,X,Y,W,H,IMAGE,HOVER IMAGE,$context(Format,COMMAND,Bit Rate,COMMAND,Rip CD Automatically When Inserted,COMMAND,Eject CD After Ripping,COMMAND,More Options...,COMMAND,Help With Ripping,COMMAND),OPTIONS)


A $context specific parameter could be $separator for adding horizontal separators. Example... $context(Format,COMMAND,Bit Rate,COMMAND,$separator)


yep, great idea, hope it will be done a day wink.gif
Nickoladze
I found a bug on Vista when using $glass for the entire window:
IPB Image

All black text and $drawrect boxes are completely transparent, the background of the items in the library filter panel are actually 150-150-150, but show up white.
terrestrial
I've uploaded 0.13.7; a few fixes, a few tweaks... there are some changes to how scpl layouts are selected, so backup before updating.
terrestrial
QUOTE(carmenm @ Jun 6 2007, 10:51) *

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.


I think a wiki page might be useful. If you (or someone else) want's to start one, I will try to categorize feature requests.


QUOTE(FofR @ Jun 6 2007, 11:03) *

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.



yes, I'll try to add an option for the next version.


QUOTE(FofR @ Jun 6 2007, 11:21) *

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


the $button code get processed separately from the text code (such as $font) so this isn't really technically possible at the moment. I have been meaning to rewrite the text code to be more flexible, but haven't gotten to it yet.

QUOTE(cartman(2vd) @ Jun 7 2007, 05:38) *

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)


right clicking on the tray icon does nothing? what version of windows do you use?

QUOTE(mil3s @ Jun 7 2007, 06:11) *

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.


the sorting within library filter goes according to what's displayed (so you could do something like 12-month to get reverse sorting). when tracks are sent to the playlist they use the current sort/group criteria.


QUOTE(eboomer @ Jun 9 2007, 18:19) *

I believe you have to use "$panel(Toolbar,..." rather than "$panel(Search,...".

In general, in the layout window, click the "Panels" button towards the upper left corner, and look up the desired panel from the dropdown list. They will look like "Catagory / Panel Name". The panel command should then look like "$panel(Catagory,Panel Name,...".


the first arguement can be any "id" that you choose... you can use the same id again if you want to move or resize the panel, or a new id to create a new instance of the panel.

QUOTE(bit4bit @ Jun 10 2007, 14:48) *

REQUEST:

I've got a request for multi-dimensional variables. I've tried the following without success:

$puts(abc,'str1,str2,str3,...,strN')
$select(n,$get(abc))

The reason is obvious: $select is executed before $get and finds only one item. If there is another solution to this problem, please let me know.


no, the $get is execute before the $select. the problem is that abc is treated as a single string (not multiple strings separated by a comma).

QUOTE(metal_termite @ Jun 10 2007, 18:42) *

Hmm, one more thing. Would it be out of the scope of Panels UI titleformatting to make a $forloop (for loop) function?


yes wink.gif

QUOTE(metal_termite @ Jun 10 2007, 20:42) *

None of the playlist info functions work in a ui panel, with the exception of %isplaying%.

Sorry if that has been brought up before, but a search yielded nothing of the sort.


for playlist name try %playlistname% (I actually didn't know about the other one, or I would have used the same name....)

%isplaylist% and %ispaused% should work. %list_index% and %list_total% only work in scpl as that's the only one that works with lists of songs.

QUOTE(Nickoladze @ Jun 11 2007, 10:50) *

I found a bug on Vista when using $glass for the entire window:
IPB Image

All black text and $drawrect boxes are completely transparent, the background of the items in the library filter panel are actually 150-150-150, but show up white.


on glass the "whiter" the color the more opaque, and the "darker" the color, the more transparent (for text and $drawrect). you can use images if you want better handling of colors.
gob
hey terrestrial, is there anyway of scrolling and/or truncating text?
Keikonium
QUOTE(gob @ Jun 11 2007, 19:06) *

hey terrestrial, is there anyway of scrolling and/or truncating text?


You can truncate text with this code:

$ifgreater($len(%title%),35,$left(%title%,32)...,$if(%title%,%title%,'['No Title']'))

That truncates the %title% tag to 32 characters long and appends "..." to the end if the tag is LONGER than 35 characters long. Not sure if the entire thing is needed, but it should be a start?
gob
QUOTE(Keikonium @ Jun 11 2007, 21:22) *

QUOTE(gob @ Jun 11 2007, 19:06) *

hey terrestrial, is there anyway of scrolling and/or truncating text?


You can truncate text with this code:

$ifgreater($len(%title%),35,$left(%title%,32)...,$if(%title%,%title%,'['No Title']'))

That truncates the %title% tag to 32 characters long and appends "..." to the end if the tag is LONGER than 35 characters long. Not sure if the entire thing is needed, but it should be a start?


sort of trying to do it based on a width in pixels, although this is what i was using before the track info panel had those features...
metal_termite
QUOTE(terrestrial @ Jun 11 2007, 15:39) *

I think a wiki page might be useful. If you (or someone else) want's to start one, I will try to categorize feature requests.

The Panels UI Feature Requests wiki page was made (thanks Shakey_snake). I categorized it into three sections; Approved, Rejected, and Requests (Pending Review). I added the one feature request I know of that you approved.

I don't know how this is supposed to work so I formatted the lone requests into three parts as well; Title, Brief description, and link to the forum post for a detailed description if need be.
gob
QUOTE(gob @ Jun 11 2007, 21:29) *

QUOTE(Keikonium @ Jun 11 2007, 21:22) *

QUOTE(gob @ Jun 11 2007, 19:06) *

hey terrestrial, is there anyway of scrolling and/or truncating text?


You can truncate text with this code:

$ifgreater($len(%title%),35,$left(%title%,32)...,$if(%title%,%title%,'['No Title']'))

That truncates the %title% tag to 32 characters long and appends "..." to the end if the tag is LONGER than 35 characters long. Not sure if the entire thing is needed, but it should be a start?


sort of trying to do it based on a width in pixels, although this is what i was using before the track info panel had those features...


nevermind, i just loaded up the old track info panel and it works fine.
Nickoladze
QUOTE(metal_termite @ Jun 11 2007, 20:30) *

QUOTE(terrestrial @ Jun 11 2007, 15:39) *

I think a wiki page might be useful. If you (or someone else) want's to start one, I will try to categorize feature requests.

The Panels UI Feature Requests wiki page was made (thanks Shakey_snake). I categorized it into three sections; Approved, Rejected, and Requests (Pending Review). I added the one feature request I know of that you approved.

I don't know how this is supposed to work so I formatted the lone requests into three parts as well; Title, Brief description, and link to the forum post for a detailed description if need be.


Can you add my requests? http://www.hydrogenaudio.org/forums/index....st&p=495802

The wiki page is protected from editing.
mil3s
In the latest version the View > Panels UI menu is broken. I no longer se my configs there. Not even the provided basic.

Also, this code is also broken in the new version. How do I make it work again?
CODE
$if($isgrouped(folder),%directoryname%)
$if($isgrouped(date),%date%)
$if($isgrouped(artist),%artist%)
$if($isgrouped(album),$if2($meta(album artist),%album%))
$if($isgrouped(rating),%rating%)
$if($isgrouped(track),%tracknumber%)
$if($isgrouped(title),%title%)

$alignabs(5,20,$sub(%_width%,5),25,left,top)
$font($getpvar(userFont),$add($getpvar(userFontSize),1),bold,0-128-255)

$if($isgrouped(folder),%directoryname%)
$if($isgrouped(date),%date%)
$if($isgrouped(artist),%artist%)
$if($isgrouped(album),%album%)
$if($isgrouped(rating),%rating%)
$if($isgrouped(track),%tracknumber%)
$if($isgrouped(title),%title%)

$if($isgrouped(album),
$alignabs($sub(%_width%,$calcwidth(%date%),40),21,$calcwidth(%date%),25,right,top)
$font($getpvar(userFont),$getpvar(userFontSize),,)[%date%]

$alignabs($sub(%_width%,$calcwidth(%genre%),40),4,$calcwidth(%genre%),25,right,top)
[%genre%]

$if($fileexists($get(coverPath)),
$imageabs2(27,27,0,0,0,0,$sub(%_width%,33),7,$get(coverPath),NOKEEPASPECT)
$imageabs2(31,30,0,0,0,0,$sub(%_width%,35),5,$getpvar(Image.Path)border.png,)
,
$imageabs2(27,27,0,0,0,0,$sub(%_width%,33),7,$getpvar(Image.Path)nocover.png,)
)
)

shakey_snake
QUOTE(Nickoladze @ Jun 12 2007, 00:37) *

The wiki page is protected from editing.

You can ask for permission. Since you're not a bot, you'll get it.
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.