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
FofR
Just thought I would say, $eval is brilliant, thanks ever so much for this function alone.
mil3s
QUOTE(FofR @ Feb 23 2007, 09:44) *

Just thought I would say, $eval is brilliant, thanks ever so much for this function alone.

What is it for? The wiki is not too clear. huh.gif
FofR
QUOTE
$eval() function to evaluate math (eg $eval(6+3*2) = 12). Valid operators are + - / * @(modulus) {}(instead of parenthesis)

From changelog.
VeaaC
$eval is very nice, shortening the code and making it more readable
nbv4
CODE

$padding(10,0)

$alignabs(10,0,%_width%,21,left,top)

$if(%_isplaying%,$font(tahoma,8,bold,200-200-200),$font(tahoma,8,bold,110-110-110))

[%discnumber%][$num(%track%,2) - ]

$if(%_isplaying%,$font(tahoma,9,,200-200-200),$font(tahoma,9,,110-110-110))

$if($meta_test(album artist),%artist%' - ')

$if(%_isplaying%,$font(tahoma,9,,200-200-200),$font(tahoma,9,,110-110-110))
%title%[' ['%sub title%']']

$if(%_isplaying%,$font(tahoma,9,,200-200-200),$font(tahoma,9,,110-110-110))
$align(right,center)%length%


how can i edit this so the background (and only the background) changes to a different color when it is selected?
mgbdeftones
QUOTE(nbv4 @ Feb 23 2007, 20:21) *

CODE

$padding(10,0)

$alignabs(10,0,%_width%,21,left,top)

$if(%_isplaying%,$font(tahoma,8,bold,200-200-200),$font(tahoma,8,bold,110-110-110))

[%discnumber%][$num(%track%,2) - ]

$if(%_isplaying%,$font(tahoma,9,,200-200-200),$font(tahoma,9,,110-110-110))

$if($meta_test(album artist),%artist%' - ')

$if(%_isplaying%,$font(tahoma,9,,200-200-200),$font(tahoma,9,,110-110-110))
%title%[' ['%sub title%']']

$if(%_isplaying%,$font(tahoma,9,,200-200-200),$font(tahoma,9,,110-110-110))
$align(right,center)%length%


how can i edit this so the background (and only the background) changes to a different color when it is selected?


Here's an example:
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-30-30-30 pencolor-60-60-60)
wraithdu
Also, in your $align() statement, the second parameter has to be top, middle, or bottom. Not center as in your example.
Yotsuya
BUG: Placing a seekbar toolbar on top of a Track Display panel appears to suffer from the same flickering refresh problems that the spectrum analyser once did. Spectrum analyser now works well, is anyone else noticing the flickering on the seekbar?
Lance Uppercut
QUOTE(Yotsuya @ Feb 24 2007, 01:31) *

BUG: Placing a seekbar toolbar on top of a Track Display panel appears to suffer from the same flickering refresh problems that the spectrum analyser once did. Spectrum analyser now works well, is anyone else noticing the flickering on the seekbar?

Actually, I'm still getting the flickering for the spectrum analyser on top of the track display.
What did you do to remedy this?
I have the lated foo_ui_panels
wolfsong
Since TIM is no longer supported seperately, any chance ui panels supports a vertical scollbar?
blaxima
If foobar is still open and I reboot or close it from the taskbar, the next time I open it it will show up only in the taskbar. I close it and open it again and it will show up resized to the original state of the plugin.
Yotsuya
Foobar seems to crash about 80-90% of the time when I try to open the Panels UI configuration dialog. Is anyone else experiencing this problem? If I keep trying it eventually opens but I gotta go cleanup all the failure.txt files from my foobar directory and it's a bit annoying.
mil3s
^I've only had problems with stability and panels_ui when trying to use the playlist_tree component.

Now I have a question. Is it possible to use a $select in the SCPL 'Group by' code and change settings there with a $getpvar? It doesn't seem to be working for me at least. :/
carmenm
Seeing the amazing potential of this plugin i was wondering if there would be a way to implement the possiblity to change a Pvar by a keyboard shortcut.

Thanks for this amazing plugin
oScARSh
QUOTE(Yotsuya @ Feb 24 2007, 13:44) *

Foobar seems to crash about 80-90% of the time when I try to open the Panels UI configuration dialog. Is anyone else experiencing this problem? If I keep trying it eventually opens but I gotta go cleanup all the failure.txt files from my foobar directory and it's a bit annoying.

I got the same problem as i posted.
Hope This can be solved in the future version.
djtoodles
couple things. when stopped not playing the top track info doesnt show is there a way for me to keep it so the top track info is always displayed?. and also where i have the time its setup centered like

artist
title
-time/length <- what would i put for code to keep it still centered but have a progbar for just pure looks ? so it went like - time remain [ prog bar ] length
CODE
$glass(0,0,0,30)

$puts(yOffset,0)

// PerSecond
$if(%_trackinfo_notrack%,
$glass(0,0,0,30)
,
$puts(yOffset,105)
$glass(0,0,105,30)
$alignabs(0,0,%_width%,105,center,middle)$font(Swis721 Cn BT D-Type,13,bold,98-105-113)
%artist%$char(10)
$font(calibri,12,bold,120-120-120)%title%$char(10)
$font(calibri,12,bold,120-120-120)- [%playback_time_remaining%] / [%length%]$char(10)
)

// EQ
$panel(Spectrum,Spectrum analyser,364,68,120,33,)

// Top Album Art
$imageabs2(100,100,0,0,100,100,0,0,'c:\users\Todd\appdata\roaming\foobar2000\images\noalbum.png',)
$imageabs2(100,100,0,0,100,100,0,0,$replace(C:\Program Files\foobar2000\album art\%artist% - %album%.jpg,,?,),)
$imageabs2(100,100,0,0,100,100,0,0,$replace(%path%,%filename_ext%,)folder.jpg,NOKEEPASPECT)
$imageabs2(100,100,0,0,100,100,0,0,'c:\users\Todd\appdata\roaming\foobar2000\images\artoverlay2.png',)

// Single Column Playlist
$panel(Playlist,Single Column Playlist View,0,$get(yOffset),%_width%,$sub(%_height%,$add($get(yOffset),50)),)


// Menu/Seek/Playlist/Quicksearch
$drawrect(0,$sub(%_height%,50),$sub(%_width%,25),20,pencolor-255-255-255 brushcolor-255-255-255)
$select($add($getpvar(display.bar),1),
$panel(Progress,Seekbar,0,$sub(%_height%,50),$sub(%_width%,25),20,)
,
$panel(Menu,Menu,0,$sub(%_height%,50),$sub(%_width%,25),20,)
,
$panel(Playlists,Playlists Dropdown,0,$sub(%_height%,50),$sub(%_width%,25),20,)
,
$panel(Quick Search Toolbar,Quick Search Toolbar,0,$sub(%_height%,50),$sub(%_width%,25),20,)
)

$drawrect($sub(%_width%,20),$sub(%_height%,50),20,20,pencolor-255-255-255 brushcolor-255-255-255)
$button2($sub(%_width%,20),$sub(%_height%,50),0,0,20,20,  x, X,PVAR:SET:display.bar:
$ifgreater($getpvar(display.bar),2,0,$add($getpvar(display.bar),1))
,)

// Buttons
$button(0,$sub(%_height%,24),0,0,0,0,images\panbutt\prevb.png,,previous,nobkgnd)
$button(45,$sub(%_height%,28),0,0,0,0,images\panbutt\playb.png,,play or pause,nobkgnd)
$button(78,$sub(%_height%,23),0,0,0,0,images\panbutt\nextb.png,,next,nobkgnd)

$button(212,$sub(%_height%,20),0,0,0,0,images\panbutt\voldown.png,,volume down,nobkgnd)
$button(229,$sub(%_height%,25),0,0,0,0,images\panbutt\eq.png,,equalizer,nobkgnd)
$button(262,$sub(%_height%,22),0,0,0,0,images\panbutt\volup.png,,volume up,nobkgnd)

$button(303,$sub(%_height%,21),0,0,0,0,images\panbutt\open.png,,open...,nobkgnd)
$button(330,$sub(%_height%,22),0,0,0,0,images\panbutt\radio.png,,add location...,nobkgnd)
$button(460,$sub(%_height%,22),0,0,0,0,images\panbutt\prefs.png,,preferences,nobkgnd)

// Bottom Track Info
//$if(%_isplaying%,
//$panel(Info,Track Display,0,$sub(%_height%,140),%_width%,140,)
//,)
Yotsuya
djtoodles: according to the code you pasted, you do not have a top track info panel, you have instead coded your track info code directly into the master panels ui layout. You have placed your track information inside this if statement:

$if(%_trackinfo_notrack%,
$glass(0,0,0,30)
,
// track information code here //
)

That is explicitly telling foobar only to show the track information when %_trackinfo_notrack% is false, or in other words when a track is playing. If you want that data to be displayed at all times then take it outside of that if statement.
mil3s
Bug Report.
* Correct foobar icon isn't displayed when pressing alt+tab.
* When foobar is minimized and there is a trackchange the tite formating in the taskbar isn't updated. It will display the same track until foobar is restored from minimized state.
* Using $drawrect pencolor-null brushcolor-[color] with the height set to 1 result in the $drawrect beeing 2px. While if I use pencolor insetad and bruchcolor-null the height is correct (1px).
* In the SCPL settings the '(' and ')' are not highlited blue when the cursor is next to them as in the other configuration windows.
* Buttons that shouldn't be are highlighted blue (default) in the configuration windows. (color of highlight depends on the theme in use)
* Foobar window sometimes start offscreen and resized to the smallest possible size. Rightclicking the taskbar and more it with arrow keys bring it back on screen. This seem to happen if I app/remove components.
* When stretching an image the last pixels to the right looks weird when it's stretched very far. See image below. (Yellow line) (I pasted the left part which looks correct up the the right.)
IPB Image

Feature Request.
* Currently one can use different images for Inactive and when Hovering (mouseover) a $button. Would be cool if one could use a third image for when the $button is pressed (mousedown). smile.gif
* I also agree with carmenm (a few posts above). Pvar by a keyboard shortcut, would be very nice.
Yotsuya
Another small bug, nothing major. If '%' (literally display percent sign) is used in the Configuration dialog code, the syntax highlighting is thrown completely off as it appears to treat the % as the beginning of a variable despite being enclosed in ticks for literal display. If changed to $char(37) the highlighting is restored to what is normally expected.
elenhil
I've tried PanelsUI and found that album art inside playlist is easily ruined if one of the tracks is missing. Like, if you don't have the first few tracks album art will have its top part cut (corresponding to the rows for tracks that 'should' be there).

I gather that there have been a limitation of that sort in ColumsUI (that is, it cannot look ahead and see how much tracks you have, only blindly assigning 1 row for 1 track, so missing tracks = missing rows for anything it tries to display alogside the tracklist).

So, is that problem still not solved?
2Pacalypse
use %totaltrack% and an if statement eg if %totaltracks% greater than 4 show album art
shakey_snake
%_itemcount% is more reliable than %totaltracks%
FofR
I am in the process of making a white theme for my configuration, in the process some strange black lines have turned up which I would rather not have:
IPB Image
jimbo11883
QUOTE(FofR @ Feb 26 2007, 11:48) *

I am in the process of making a white theme for my configuration, in the process some strange black lines have turned up which I would rather not have:
IPB Image


Did you fill your PanelsUI window with a background color first?
FofR
Ahh yes, thank you, I forgot about that.
Spirit_of_the_ocean
I recognized a strange effect huh.gif
I posted in this topic a code for "now playing" notes and becuase of missing unicode support the notes were shown as ??? and also in SCPL
Now I recognized that the notes were shown although in code there were just "???".

I am still using 0.4.2
Some else has this strange effect?

A question about plugin apdating too:
How can I backup my layout in case there are problems to import this into 0.6.1 ?
When will there be unicode support?
Or is this already available?

Request: Better support for Egoh spectrum analyser.
It isn't possible to configure it sad.gif
wraithdu
The safest way to do this (and to get help via copy and paste into this forum) is to use $char() after a font statement that contains the referenced $char().

Safest way to backup a config is still to copy and paste code to a text file. That's how I do it just to be sure nothing gets blown away. There was a change to how PanelsUI stores the layout from v0.4 to v0.5+, so copy and paste is a GREAT idea.
Spirit_of_the_ocean
at unicode Support. I found out some $char seem to work but not everything. I thought it was because terrestrial said that he added no unicode support.

Thanks for your answer.For me it is horrible to loose all the code and the work behind it. smile.gif

So know I will copy and paste smile.gif
Ulquiorra
Feature request: Window title adjustments. Currently, it's set to either follow cursor or follow playback, but that's a little annoying for me.
Ethangar
Occasionally, when shutting down Windows Vista with foobar open, panels_UI seems to create a default.pui and will try to load that on startup. However, when it does this, foobar won't actually open. It will be running in task manager but it will be nowhere to be found on the desktop or system tray.

This only seems to happen on my Vista box at work. It may have something to do with Vista, but it may also have something to do with me running foobar on my second monitor. Maybe it isn't related to either of those. Anyhow, here is the default.pui file it is creating in case it helps in the diagnosis:

default.pui
wraithdu
QUOTE(Spirit_of_the_ocean @ Feb 26 2007, 13:10) *

at unicode Support. I found out some $char seem to work but not everything. I thought it was because terrestrial said that he added no unicode support.

I'm sure you know better than I about actual unicode support. However I've never had a problem with $char() not working as long as the $char() I was referencing actually existed in the font I was using.

To be safe, set a font with $font() then use $char(). Check the Windows Character Map to be sure what you want to use exists in the specified font and the unicode number is correct.
FofR
I have a request, I have found that as I build up the themes available for my configuration the panels code begins to get cluttered with the likes of

"if theme 1... set these variables (30 or so)
if theme 2... set another 30
..."

This makes managing and customising the code difficult.

I would love to be able to say, "if theme 1 load variables from "theme1.txt" which is just a text file formatted for panelsUI and imported directly in. Then in the actual code all I would need it one $select function to switch between all the themes - nicely separating variables and design.
wraithdu
@FofR
That's a nice idea. I think future support will also be added to call different .pui files from buttons. That will also be a nice one-click layout change. Easy to keep code separated as well.
shakey_snake
QUOTE(FofR @ Feb 26 2007, 17:54) *

I have a request, I have found that as I build up the themes available for my configuration the panels code begins to get cluttered with the likes of

"if theme 1... set these variables (30 or so)
if theme 2... set another 30
..."

This makes managing and customising the code difficult.

I would love to be able to say, "if theme 1 load variables from "theme1.txt" which is just a text file formatted for panelsUI and imported directly in. Then in the actual code all I would need it one $select function to switch between all the themes - nicely separating variables and design.

to further awesomeness this idea, the textfiles could become objects:
example:
CODE
$getpvar(layoutShakey.fontsize)

where setting fontsize is stored in a textfile named layoutShakey
nbv4
how do I get a good looking carriage return with this component?

$crlf() adds an ugly block.
jonpb
@FofR
Thanks for the config you posted. But, I don't understand how to use it. You use pvars to $put() into other variables. I don't understand the rationale for this, or how to initialize the pvars in the first place, since, according to the wiki pvars can only be set in button. Thanks.
Dom
How the hell do i make an image dynamic so itll stay on the center no matter how i resize the window? i can do this on panels, but i cant figure out how to make an image dynamic :S
anolae
QUOTE(Dom @ Feb 27 2007, 07:35) *

How the hell do i make an image dynamic so itll stay on the center no matter how i resize the window? i can do this on panels, but i cant figure out how to make an image dynamic :S

If you want to center
- horizontally: the left position of your image should be
CODE
$div($sub(%_width%,your_image_width),2)

- vertically: the top position of your image should be
CODE
$div($sub(%_height%,your_image_height),2)


As far as I remember, it can be added in any section (background, per track or per second)
carmenm
I have a little problem with PVAR and i was wondering if it came from my code. I have a button in my panelUI config which aim is to change my SCPL layout:

$button2($sub(%_width%,90),$sub(%_height%,30),0,0,26,22,'$imageabs2(,,0,44,26,22,0,0,'images/ayofe/ViewButtons.tiff',)','$imageabs2(,,0,44,26,22,0,0,'images/ayofe/ViewButtons.tiff',)',PVAR:SET:scp.display.mode:0,)

I put a test in my group display in SCP to see this change:

$select($add($getpvar(scp.display.mode),1),!noheader,%album%,%album%)

My problem is that SCP doesnt see the change.

It works between Track Display and PanelUI but not in this case.
Does anyone managed to make something like that work?
Yotsuya
I'm not sure if anyone has mentioned this yet but I have had a lot of success making panels work on glass by setting their background to $rgb(0,0,0). I even made a track display panel work by using the following line:
$drawrect(0,0,0,0,brushcolor-0-0-0)

It's not perfect though, foreground colors get distorted when used on glass but it sure makes for some interesting effects.
elenhil
QUOTE
I've tried PanelsUI and found that album art inside playlist is easily ruined if one of the tracks is missing. Like, if you don't have the first few tracks album art will have its top part cut (corresponding to the rows for tracks that 'should' be there).
I gather that there have been a limitation of that sort in ColumsUI (that is, it cannot look ahead and see how much tracks you have, only blindly assigning 1 row for 1 track, so missing tracks = missing rows for anything it tries to display alogside the tracklist).
So, is that problem still not solved?
QUOTE(2Pacalypse @ Feb 26 2007, 18:27) *

use %totaltrack% and an if statement eg if %totaltracks% greater than 4 show album art

No, you've probably misunderstood me. It is not short tracklists that cause the problem, it is the fragmented ones that do. Missing tracks - missing image parts.
anolae
QUOTE(elenhil @ Feb 27 2007, 12:12) *

QUOTE
I've tried PanelsUI and found that album art inside playlist is easily ruined if one of the tracks is missing. Like, if you don't have the first few tracks album art will have its top part cut (corresponding to the rows for tracks that 'should' be there).
I gather that there have been a limitation of that sort in ColumsUI (that is, it cannot look ahead and see how much tracks you have, only blindly assigning 1 row for 1 track, so missing tracks = missing rows for anything it tries to display alogside the tracklist).
So, is that problem still not solved?
QUOTE(2Pacalypse @ Feb 26 2007, 18:27) *

use %totaltrack% and an if statement eg if %totaltracks% greater than 4 show album art

No, you've probably misunderstood me. It is not short tracklists that cause the problem, it is the fragmented ones that do. Missing tracks - missing image parts.

Then use %_itemindex% instead of %tracknumber%
mil3s
QUOTE(carmenm @ Feb 27 2007, 03:05) *

I have a little problem with PVAR and i was wondering if it came from my code. I have a button in my panelUI config which aim is to change my SCPL layout:

$button2($sub(%_width%,90),$sub(%_height%,30),0,0,26,22,'$imageabs2(,,0,44,26,22,0,0,'images/ayofe/ViewButtons.tiff',)','$imageabs2(,,0,44,26,22,0,0,'images/ayofe/ViewButtons.tiff',)',PVAR:SET:scp.display.mode:0,)

I put a test in my group display in SCP to see this change:

$select($add($getpvar(scp.display.mode),1),!noheader,%album%,%album%)

My problem is that SCP doesnt see the change.

It works between Track Display and PanelUI but not in this case.
Does anyone managed to make something like that work?

I tried a while ago to do the same thing but it doesn't work.
FofR
QUOTE(anolae @ Feb 27 2007, 11:25) *

Then use %_itemindex% instead of %tracknumber%

How can you then ensure that the art shows at the start of the group? EDIT: A tutorial on how to do this would be nice on fooblog.

@jonpb: Please post Config questions in the correct place or in the comments on the blog.
I use $setpvar to set the PVAR. I put these into $puts commands as it offered a quick way of moving variables out of one panel and into another and helped me create a global configuration section.
wraithdu
QUOTE(nbv4 @ Feb 26 2007, 23:52) *

how do I get a good looking carriage return with this component?

$crlf() adds an ugly block.

I think $char(10) should work for you.

@carmenm
The SCPL layout is only drawn once when foobar is opened, or for new tracks when they are added (I know this is true for the 'Group Header' anyway). The only way to redraw this, that I've found, is to restart foobar. So changing by button at this point I don't think will work.

EDIT: or SCPL is not aware of PVAR changes yet. Perhaps this has only been implemented between Panels main config and Track Display?

@Yotsuya
I believe Terrestrial mentioned a while back, that on top of glass colors equate to transparency. Black is transparent and white is opaque. Anything else is going to be some strange looking partially transparent color. That's why it was mentioned to use black as background and white as foreground for the spectrum analyser, for example.
FofR
I have found that scrolling down or up redraws the SCPL correctly after I have changed a PVAR (e.g. in my config changing album art from left to right)
nate
Is there a way to toggle between "Now Playing" and "Follow Cursor" other than the right-click menu? Either a button command or a pvar, perhaps?

Terrestrial, thanks for this plugin so far - I can see some really interesting things happening with this one.

-Nate
Dom
QUOTE(anolae @ Feb 27 2007, 00:19) *

QUOTE(Dom @ Feb 27 2007, 07:35) *

How the hell do i make an image dynamic so itll stay on the center no matter how i resize the window? i can do this on panels, but i cant figure out how to make an image dynamic :S

If you want to center
- horizontally: the left position of your image should be
CODE
$div($sub(%_width%,your_image_width),2)

- vertically: the top position of your image should be
CODE
$div($sub(%_height%,your_image_height),2)


As far as I remember, it can be added in any section (background, per track or per second)


Sadly, i dont get it tongue.gif
Could you make an example?
FofR
Basically, you want the middle of your image in the middle of the panel. e.g. For a 200 pixel picture on a 1024x pixel panel you want the 100 pixel mark to be at 512 pixels across. We can only define the starting point from the left edge of the image, which is of course 100 pixels further left. So we choose to set the image corner at 412 pixels across.

Now the maths:
panel width - image width: 1024-200 = 824
divide this by 2: 824 / 2 = 412
Dom
QUOTE(FofR @ Feb 27 2007, 11:53) *

Basically, you want the middle of your image in the middle of the panel. e.g. For a 200 pixel picture on a 1024x pixel panel you want the 100 pixel mark to be at 512 pixels across. We can only define the starting point from the left edge of the image, which is of course 100 pixels further left. So we choose to set the image corner at 412 pixels across.

Now the maths:
panel width - image width: 1024-200 = 824
divide this by 2: 824 / 2 = 412


Ok, but i dont get where/how to put the string above... =\
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.