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
shakey_snake
QUOTE(plukin @ Jun 19 2007, 12:53) *

EDIT: @shakey_snake: this will only update the pvar "total_playtime" if the value is the same with %playback_time_seconds%. thats not what i want, too.
Wrong. This code:
QUOTE
$ifequal(%playback_time_seconds%,$getpvar(total_playtime),,
$setpvar(total_playtime,$eval($getpvar(total_playtime)+1))
)
...changes the pvar when the value is different than %playback_time_seconds%.
This is needed as a work around for VBR files.
(which since I didn't know we needed to do this for multiple songs, it fulfills your original request).

However, since you made you requirement more clear...
QUOTE(plukin @ Jun 19 2007, 12:53) *

i search a function to "save" the value of the already played seconds of every song you have played, just like the information in the fb2k config ("File"->"Preferences"->the "Playback" panel-> there under "Total Time Played". Or is there any function to get exactly this value? i dont have found something, so i want to write this function...

...we'll need to modify the code:
CODE
$ifequal(%playback_time_seconds%,$getpvar(vbr_check),,
        $setpvar(total_playtime,$eval($getpvar(total_playtime)+1))
        $setpvar(vbr_check,%playback_time_seconds%)
        )


Keep in mind that this won't update if foobar is minimized, and if the pvars are cleared, this will be deleted.
plukin
QUOTE(shakey_snake @ Jun 19 2007, 21:33) *

...we'll need to modify the code:
CODE
$ifequal(%playback_time_seconds%,$getpvar(vbr_check),,
        $setpvar(total_playtime,$eval($getpvar(total_playtime)+1))
        $setpvar(vbr_check,%playback_time_seconds%)
        )



You are the man wink.gif thanks. it works well. sometimes, espacially on trackchange the issue is still there. but it's much better now...

once more, thanks a lot...

plukin
callisto
QUOTE(Sam Stoat @ Jun 19 2007, 18:08) *

QUOTE(Maranatha @ Jun 19 2007, 16:39) *
It's there, I use it all the time within PanelsUI. You might have to remap your F5 key to point to it, but it's there!
Are you sure, Maranatha? If I remove ColumnsUI, I can't find any menu options to select the currently playing track. Just in case I'm looking in the wrong place, can you tell me where you find yours? Thanks.


don't you need columns_ui installed to use panels_ui?? so if you removed columns, then I guess this option disappears (b/c it stand below column at keyboard shortcuts) ...got no other idea, I have columns_ui installed and use panels_ui and got the feature...
Maranatha
QUOTE(callisto @ Jun 19 2007, 15:07) *



don't you need columns_ui installed to use panels_ui?? so if you removed columns, then I guess this option disappears (b/c it stand below column at keyboard shortcuts) ...got no other idea, I have columns_ui installed and use panels_ui and got the feature...


I would agree. Re-install ColumnsUI, and the command should be available once again.

I modify every configuration I get so that I have a button that does that exact command. It's a real time saver to have that available!
Ulquiorra
For some reason, I can't use imageabs2 in library filter. I get an unknown function. Is the syntax different from that in other panels bij terrestial or have I encountered some sort of bug?

CODE

$ifequal(
$get(isSingle),1,! Singles
,
%album%
)

$imageabs2(%_width%,%_height%,0,0,%_width%,%_height%,0,0,..\images/wmp/mbar.png,NOKEEPASPECT)
$imageabs2(%_height%,%_height%,0,0,%_height%,%_height%,0,0,


$if($fileexists($replace(%path%,%filename_ext%,cover.jpg)),
$replace(%path%,%filename_ext%,cover.jpg),
images\wmp\no cover.png)

,NOKEEPASPECT)
$imageabs2(%_width%,%_height%,0,0,%_width%,%_height%,0,0,..\images/wmp/mbar.png,NOKEEPASPECT alpha-60)
gob
QUOTE(simply @ Jun 19 2007, 01:06) *

gob
Works fine...
Maybe check your keybord shortcuts ?


yup, just checked that. i dont have the up/down/enter keys assigned to anything. moved foobar.cfg to get a default profile with all my components, seems to work there.. im not too sure what could overwrite these ksys...
Sam Stoat
QUOTE(callisto @ Jun 19 2007, 21:07) *
don't you need columns_ui installed to use panels_ui?? so if you removed columns, then I guess this option disappears (b/c it stand below column at keyboard shortcuts) ...got no other idea, I have columns_ui installed and use panels_ui and got the feature...
QUOTE(Maranatha @ Jun 19 2007, 21:30) *
I would agree. Re-install ColumnsUI, and the command should be available once again.
I never realised ColumnsUI was still needed for Panels. Just thought I could trim some of the fat from Foobar. Thanks, both.
Maranatha
QUOTE(Sam Stoat @ Jun 20 2007, 03:44) *

I never realised ColumnsUI was still needed for Panels. Just thought I could trim some of the fat from Foobar. Thanks, both.


You're welcome, hope that solves your problem! smile.gif
Decuman
Hey Guys!

Sorry for a stupid question which apparently was asked many times before (I tried to use search to find the answer, really)... but how to set minimal ui_panels panel height when used in columns_ui interface? It was set previously to some number but now I can't figure out how to alter it.

Thanks,
N
shakey_snake
Lock the panel with ColumnsUI's lock feature.
If you're using columnsUI as your interface, then this should have been asked in the columnsUI thread.
bit4bit
QUOTE(bit4bit @ Jun 19 2007, 11:03) *

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?
bit4bit
Request

Would it be possible to change the sort order from columns to rows with the option to start a new row when the end of the window has been reached?

What I'm thinking about is to make a layout with only a 'Group Display' which contains only covers. Something similar to the 'Album List' plugin of winamp?
shakey_snake
QUOTE(bit4bit @ Jun 20 2007, 08:39) *

Request

Would it be possible to change the sort order from columns to rows with the option to start a new row when the end of the window has been reached?

What I'm thinking about is to make a layout with only a 'Group Display' which contains only covers. Something similar to the 'Album List' plugin of winamp?

Please read the Panels UI Request page before making requests
bit4bit
QUOTE(shakey_snake @ Jun 20 2007, 14:51) *

QUOTE(bit4bit @ Jun 20 2007, 08:39) *

Request

Would it be possible to change the sort order from columns to rows with the option to start a new row when the end of the window has been reached?

What I'm thinking about is to make a layout with only a 'Group Display' which contains only covers. Something similar to the 'Album List' plugin of winamp?

Please read the Panels UI Request page before making requests



I have read the Request Page. This feature is listed only for Library Filter. If this means that's also available in SCPL, fine. If not, it would be great to implement this for SCPL, too. wink.gif
wraithdu
QUOTE(plukin @ Jun 19 2007, 14:47) *

QUOTE(shakey_snake @ Jun 19 2007, 21:33) *

...we'll need to modify the code:
CODE
$ifequal(%playback_time_seconds%,$getpvar(vbr_check),,
        $setpvar(total_playtime,$eval($getpvar(total_playtime)+1))
        $setpvar(vbr_check,%playback_time_seconds%)
        )



You are the man wink.gif thanks. it works well. sometimes, espacially on trackchange the issue is still there. but it's much better now...

once more, thanks a lot...

plukin

It might help on trackchanges to set vbr_check back to zero before the increment is evaluated -
CODE
$ifequal(%playback_time_seconds%,0,$setpvar(vbr_check,0),)
$ifequal(%playback_time_seconds%,$getpvar(vbr_check),,
        $setpvar(total_playtime,$eval($getpvar(total_playtime)+1))
        $setpvar(vbr_check,%playback_time_seconds%)
        )
The Judge
Been getting a crash with foo_playcount (official). Seems like any foo_playcount tags not in an SCPL cause it to crash. Don't have any problems with it in a Track Display panel in Columns UI but for some reason it crashes no matter the code if I have any foo_playcount tags in the PUI.

http://www.hydrogenaudio.org/forums/index....c=55680&hl=

EDIT: And for some reason my background images aren't rendered upon start-up. I need to 'apply' the PUI before they show up. Thoughts?
metal_termite
Hey guys,

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.
dawid
Request:

1. It would be nice if we can change "Transparent Background" in playlist using command, e.g.:
CODE
$transparentON()
CODE
$transparentOFF()

It could be very useful if I want to add "disable / enable transparent option" to my settings
2. Could you switch back to previous title formating in status bar and titlebar. I using:
CODE
$settitle($if($or(%ispaused%,$not(%isplaying%)),Foobar2000,%artist% - %title%))
$settray($if($or(%ispaused%,$not(%isplaying%)),Foobar2000,%artist% - %title%))
and of course title doesn't update when foo is minimized. Although "Minimize to tray" option always have "Foobar2000" tooltip.

Question:

Can someone discovered how to add foo_run commands (especially those with AlbumArt Downloader) in 0.13.8?

Greats
fwqhgads
Quick question regarding the library filter:

Any way to have what I select with it automatically sent to the playlist? Right now I have to select an album, then right click to send to playlist.
plukin
*feature request*

it would be nice if you can limit the width and height of a window (main window and popups)... just something like $minwindow(width,height)
so some layouts would keep its beautifulness

just an idee wink.gif
plukin
shakey_snake
QUOTE(bit4bit @ Jun 20 2007, 13:01) *

I have read the Request Page. This feature is listed only for Library Filter. If this means that's also available in SCPL, fine. If not, it would be great to implement this for SCPL, too. wink.gif
I don't really understand how this would work for a playlist.
How would you be able to differentiate between tracks from the same album?
I think (like it is implimented in Winamp's Album List) this is probably only reasonable for the Library.

QUOTE(metal_termite @ Jun 20 2007, 15:53) *

Hey guys,

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

CepiPerez
Run services doesn't work anymore, since v0.13.8.
Please terrestrial try to fix it.
SmilerSmiles
QUOTE(metal_termite @ Jun 16 2007, 02:53) *

From my understanding you just want a border around your album art?

Use $drawrect instead of $imageabs2 for a border.

$drawrect(X-i,Y-i,W+i,H+i,brushColor-null penColor-R-G-B OPTIONS)
$imageabs2(...)

Where X, Y, W, H are all the same coordinates as your $imageabs2 album art. And i is the size of the border in pixels. So for a black 1 pixel border $drawrect would look like this...

$drawrect(X-1,Y-1,W+1,H+1,brushColor-null penColor-0-0-0)



Sorry for the late reply. Its an actual picture of a frame that I was wanting to use. I guess i could add the frame to a background colour so the BG would be one big image!!! Ill give it a try now. Thanks for your help. S

EDIT: well i made it look right when its maximised just when its any size less than that the X and Y coordinates get messed up along with the width and height. But say when i use $sub(%_width%,80) nothing shows up. I give up can't be arsed anymore.
pirlouy
I still don't have tray context menu...
metal_termite
QUOTE(shakey_snake @ Jun 21 2007, 00:20) *

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

I have two relatively small transparent backgrounds. I disabled them and didn't notice any difference.

I just got an idea of removing the foo_uie_tabs component that contains five tagger window components inside it. I forgot that foo_uie_tab always runs in the background regardless if its displaying or not, which means every component inside it is being processed constantly. CPU usage is now mainly between 1 and 3% but it still spikes up to 5%-6% every few seconds. I'm not sure if that is normal or abnormal depending on my CPU (AMD64 3800+ Dual Core).

Using foo_uie_tabs for my layout was a bad idea after all
terrestrial
QUOTE(stampgevaar @ Jun 13 2007, 05:03) *

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

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


QUOTE(metal_termite @ Jun 14 2007, 23:56) *

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.

QUOTE(Purple Monkey @ Jun 15 2007, 15:17) *

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.

QUOTE(mil3s @ Jun 15 2007, 16:33) *

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.

QUOTE(towa @ Jun 16 2007, 10:44) *

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.

QUOTE(towa @ Jun 16 2007, 11:24) *

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

QUOTE(FofR @ Jun 16 2007, 12:10) *

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

terrestrial
QUOTE(cacko @ Jun 16 2007, 17:37) *

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.

QUOTE(FofR @ Jun 17 2007, 17:03) *

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

QUOTE(Sam Stoat @ Jun 19 2007, 10:01) *

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.

QUOTE(Sam Stoat @ Jun 20 2007, 03:44) *

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.

QUOTE(bit4bit @ Jun 20 2007, 07:28) *

QUOTE(bit4bit @ Jun 19 2007, 11:03) *

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

QUOTE(metal_termite @ Jun 20 2007, 14:53) *

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.

QUOTE(shakey_snake @ Jun 21 2007, 00:20) *

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 smile.gif
FofR
Here's a code example, just put this in a fresh track display:

CODE
$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)


IPB Image

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:

IPB Image

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

IPB Image




terrestrial
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.
FofR
Ok, so if I put all the buttons after the text it will display correctly?
terrestrial
it should.
mil3s
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.
goook
IPB Image
terrestrial, the images in the top right corner are not blending into the reflection, how come? smile.gif 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?
DaSilva
Where exactly must I add some code (which code?) to support the new tray tip feature?
Thanks
goook
QUOTE(DaSilva @ Jun 22 2007, 12:46) *

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

Use $settray() in the "// PerTrack" section
mo0nl0rd
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?
shakey_snake
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. smile.gif
Keikonium
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 smile.gif.
CepiPerez
QUOTE(Keikonium @ Jun 23 2007, 19:37) *

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

Yes, you need to use 2 buttons in the same place.
Russell777
Or you can simply toggle some pvar's value with just one button,and display panel according to it.
Example:

CODE

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

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


Rukh
QUOTE(FofR @ May 30 2007, 06:53) *

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 sad.gif 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!!
Keikonium
QUOTE(Russell777 @ Jun 23 2007, 16:58) *

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

CODE

$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

// 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?
CepiPerez
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,)
)
Keikonium
Clicking the button still does nothing sad.gif. Both the panels show up, layered on top of one another. There isn't any code I am missing is there?
CepiPerez
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),)
Keikonium
Perfect!!
Thanks so much CepiPerez, it works great now ^__^ smile.gif.
eboomer
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

$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?
metal_termite
QUOTE(eboomer @ Jun 24 2007, 15:57) *

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

$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.
eboomer
^^Thanks, it seems I just needed to add some quotes on account of the parenteses.
callisto
QUOTE(metal_termite @ Jun 24 2007, 23:10) *

QUOTE(eboomer @ Jun 24 2007, 15:57) *

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

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