Help - Search - Members - Calendar
Full Version: panel placement in panels UI?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
macca
I've just switched to panels UI, and I'm having trouble trying to place a spectrum analyser panel in my layout as shown below:

IPB Image

Nothing I try seems to work, but this is my current code, which as you can see is really quite messy and amateurish:

CODE
// Background
$imageabs2(%_width%,%_height%,,,,,,,C:\program files\foobar2000\background images\spike.jpg,NOKEEPASPECT)


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

$if(%_trackinfo_notrack%,
,
    $panel(Playing,Track Display,0,$get(yOffset),%_width%,50,)
    $puts(yOffset,71)
)

$panel(Playlist,Single Column Playlist,0,$get(yOffset),%_width%,$sub($sub(%_height%,$add($get(yOffset),20),22)),)
$panel(Buttons,Buttons,0,$sub(%_height%,21),190,21,)
$panel(Seekbar,Seekbar,200,$sub(%_height%,20),$sub(%_width%,210),20,)
$panel(spectrum,Spectrum analyser,0,$sub(%_height%,41),%_width%,20)





Why isn't this working?
thanks, mac
Spirit_of_the_ocean
Missed the last comma?
macca
thanks alot your right, I missed that comma. What exactly is supposed to go after that then? extra options?
Spirit_of_the_ocean
I don't know. I just know you have to make this comma when you are using no options.
macca
Ok thanks.

Is there anyway to make the background of the spectrum analyser transparent, so I can see the background image?
rama kandra
could you put your finished code up once you figure out how to get it the way you want? im trying to learn how this whole panels garbage works. god its so cryptic
macca
Of course, no problem at all mate I know exactly how you feel. In fact panels UI is new to me too so we're in the same boat smile.gif Once I've got something worth posting up, I'll pass you my code, and try to walk you through how to use it.

(might be a few days though as I've got exams at the moment, but I'll be sure to post it back for you)
Spirit_of_the_ocean
If you have questions you can send me a Pm with your questions.
I see what I can do.
macca
QUOTE(Spirit_of_the_ocean @ May 29 2007, 23:11) *

If you have questions you can send me a Pm with your questions.
I see what I can do.


Thanks alot thats very helpful of you, and I'm sure I'll have enough questions to ask you in time. smile.gif At the moment, I have downloaded the latest panels UI, and I'm using the 'basic.pui' file included with it. I'm gonna start off by editing this, instead of completely starting from scratch. then when I get more confident with it, I'll probably start making one from the ground up.

-mac
Spirit_of_the_ocean
I myself used this kind of method.

Placing the panels shouldn't be to difficult if you have a look at the wiki.
macca
Yeh I'm finding it quite easy now to place the panels, and mess around with their various settings, and I already know how to place images and how to change fonts, from using column UI, so I'm just having a good old mess around at the moment:)

rama kandra
wow. i decided against using other peoples pui files because they were rather complex.

it makes more sense to just start with the default and mess around until you get the hang of those basics. wish me luck dudes
Spirit_of_the_ocean
Yes this is true. I think every one should start with simple layouts. and lerning by doing is the best when you use foobar. I am learning still and its fun.
macca
QUOTE(Spirit_of_the_ocean @ Jun 1 2007, 15:05) *

Yes this is true. I think every one should start with simple layouts. and lerning by doing is the best when you use foobar. I am learning still and its fun.


Yeh, I've created a new pui file now, and deleted all the default code so I have a blank canvas, I'm now doing it completely from scratch, and using the wikis to create it bit by bit.
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.