Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_ui_panels (Read 1295495 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

foo_ui_panels

Reply #275
I do have...a complete desktop refresh, whenever a track-change occurs.  That's not just Fb2k, it is my complete desktop.

Mine doesn't do it.  Are you playing music that's stored on your desktop, or is fb2k installed in a desktop folder?  Writing to files on the desktop makes Windows update it.

My Seekbar and my Volume bar show up, but are not useable

Ditto.

foo_ui_panels

Reply #276
my seek bar works, although I'm not using a volume bar
elevatorladylevitateme

foo_ui_panels

Reply #277
Well, I found out that one element stood above it (The Buttons part). You wont see that cause they wont overlap it visually, just theoratical (mhm really confusing ... ). But its definately no UIPanels Bug !

greets elemakil

foo_ui_panels

Reply #278
Hmm, my seekbar works now.  It didn't before.  Oh well.

foo_ui_panels

Reply #279
Terrestrial:
Can you add transparency to the panels?
I want to show a Lyrics panel over a Track Display panel.
Thanks.

foo_ui_panels

Reply #280
I added tabbed panel.
but when sub panel is vertical splitter, I can not add any panel in there.
and
could you make it possible to toggle show/hide pannel when press button ?

Have you considered using this alternate approach instead of tabbed panels?
Code: [Select]
$select($add($getpvar(display.mode),1),
$panel(Option1,Track Display,0,20,%_width%,140,)
,
$panel(Option2,Album list,0,20,%_width%,140,)
,
$panel(Option3,Console,0,20,%_width%,140,)
)

$button2(0,160,0,0,14,14,1,x,'PVAR:SET:display.mode:0',)
$button2(14,160,0,0,14,14,2,x,'PVAR:SET:display.mode:1',)
$button2(28,160,0,0,14,14,3,x,'PVAR:SET:display.mode:2',)

The advantage to this is approach is not only do you no longer need to use foo_uie_tabs at all, but you can place multiple panels inside each option such as overlaying spectrum analyser in your track display... and all the panels will "switch" when you click the buttons.

The disadvantage to this approach is that currently pvars only work while a track is playing

-and-

Using a similar approach you can use something like:

$ifequal($getpvar(hidepanel),1,,
$panel(Panel,Track Display,0,20,%_width%,140,)
)

And toggle the value of the pvar hidepanel to hide the panel.

Do you mind explaining a little more. Under what conditions will it work? I can't get this to work with my own config. Do I place this under // PerTrack or do I put // PerTrack and such stuff inside the $select?

EDIT: Never mind, I think I got it. Mods are free to delete this post.


foo_ui_panels

Reply #282
Terrestrial:
Can you edit first post - add version number and create date?
This is very usefull to check have I last version of plugin or not.

foo_ui_panels

Reply #283
what a great plugin!

but damn, i can't get this to work. i've tried everything.

I have a button in a trackinfo mod wich I want to use to hide single column playlist with a Lyrics panel. then when it's clicked again it goes back to single column playlist, etc..

It's that simple, bue I can't get it to work.
I've read the whole thread.. nothing.

Could anyone paste the trackinfo mod line as well as the Ui Panels one? thanks.

foo_ui_panels

Reply #284
I have a button in a trackinfo mod wich I want to use to hide single column playlist with a Lyrics panel. then when it's clicked again it goes back to single column playlist, etc..

It's that simple, bue I can't get it to work.
I've read the whole thread.. nothing.

Could anyone paste the trackinfo mod line as well as the Ui Panels one? thanks.

Put your buttons in the panels ui config, not another panel. Below is part of my config based on Yotsuya's example
Code: [Select]
$select($add($getpvar(display.mode),1),

$panel(Playlist,Single Column Playlist,1,$add($get(yOffset),34),$sub(%_width%,2),$sub(%_height%,59),)
,
$panel(Trackinfo,Track info mod,1,$add($get(yOffset),34),$sub(%_width%,2),$sub(%_height%,59),)

)

$button(4,$sub(%_height%,23),0,0,22,22,
$ifequal($getpvar(display.mode),1,images\orchid\buttons\2note_active.png,images\orchid\buttons\2note.png),
images\orchid\buttons\2note_.png,
PVAR:SET:display.mode:$ifequal($getpvar(display.mode),0,1,PVAR:SET:display.mode:$ifequal($getpvar(display.mode),1,0))
,)


You don't necessary even need another trackinfo panel. Align the lyrics with some background to display.mode:1 area

foo_ui_panels

Reply #285
Yeah I know it would be easy to just put it in Panels UI. But The buttons are blended with other images in trackinfo mod..
I guess i'll just chop the image and put them in Panels UI then

foo_ui_panels

Reply #286
PANELSUI is brilliant. I am completely rebuilding my layout!

I see that the PANELS function has a 5th parameter for OPTIONS.

I guess these options sent to the panel being drawn at the time of drawing, is this correct?

What format is to be used?

I an invoking the Album list and want to view it "by album:" or "by artist"

foo_ui_panels

Reply #287
Yeah I know it would be easy to just put it in Panels UI. But The buttons are blended with other images in trackinfo mod..
I guess i'll just chop the image and put them in Panels UI then


We need to see your code to see what's going on.  There should be no problem putting buttons in a Track Display with the newer versions of PanelsUI, as the PVARs are correctly shared between panels now.  I use buttons in Track Display to show/hide elements, and they work just fine.

foo_ui_panels

Reply #288
I've tried putting the button in PanelsUI instead of trackinfo mod but it still doesnt work.
I'm trying to make it draw a 20x20 square at position 0,0 just to test if it works, unfortunatly it doesnt.

Here's the code:
Code: [Select]
 
//PerTrack

$button(278,44,0,0,42,21,c:\program files\foobar2000\images\thefoobardept\button-lyrics1.png,,$setpvar(albumslyrics,1),)

$ifequal($getpvar(albumslyrics),1,
  $drawrect(0,0,20,20,brushcolor-200-200-200 pencolor-null)
  $setpvar(albumslyrics,0)
)


Actually, it draws the square when I put this code without having to press the button..
I've tried switching $setpvar(albumslyrics,1) for PVAR:SET:albumslyrics:1 as well. doesnt work.

Edited to add: PanelsUI 0.6.1 beta

foo_ui_panels

Reply #289
[quote name='Yann' post='472995' date='Feb 18 2007, 18:55']
-> If I delete the title bar and I try minimize with click in the taskbar, don't minimize (yes with the tray icon)...
[/quote]

try minimizing by clicking the tray icon.

[quote name='jonpb' post='473008' date='Feb 18 2007, 19:59']
An extension to TitleFormatting, something like %is_in_playing_playlist%. This would allow those layouts which distinguish a "browsing" playlist from a "playing" playlist to highlight the tracks currently added to their playing playlist in their browser playlist. Alternately, %is_in_queue%, which is probably more universally appropriate, but I don't use "add to queue" because of the fact that it permanently changes the playing playlist, so I am not familiar with layouts that add tracks to the queue from multiple playlists.
[/quote]

cwb_hooks has an "is in queue" function I believe... maybe "is in playing playlist" could be implemented there as well.

[quote name='shakey_snake' post='473026' date='Feb 18 2007, 23:04']
Now that the SCPL config window doesn't have it's own default font selector, is  the one in the panels configuration dialog supposed to set it?

Because if so, mine isn't.
[/quote]

no, it should use the default windows font (although currently if you had a different font set before you upgraded, it will still use that). also panels ui isn't meant to have a font "selector" but a font "browser" (so, to set a font use $font() rather than the dialog )

[quote name='noorotic' post='473055' date='Feb 19 2007, 03:04']
I wanted to report that I'm having better luck than many, it seems, as far as not having crashes, etc.  What I do have (surprised no one else has reported this) (and wondering if it must be something crazy I'm doing!) is a complete desktop refresh, whenever a track-change occurs.  That's not just Fb2k, it is my complete desktop.  I believe it is related to the Track Display and possibly having something in the wrong section of code (// PerTrack, etc).  However, I've moved things all around, and it seems to occur no matter what.  I believe I saw this occur in Columns UI as well, using the same (or similar) Track Display.
[/quote]

please post your .pui file and I will take a look.

Quote

I am very interested to know whether it will ever happen that say, a Track Display, can host any other panel?  By 'any other' I mean, any panel which follows specific guidelines.  I don't know how much component developers watch these types of things.  Some more than others, I guess.  One really nice thing, would be for all potentially-scrolling panels to have the option to turn off both horizontal and vertical scroll bars.  Otherwise, my design appears very seamless.  I have been attempting to overlay a Playlist Tree Panel on the Track Display, as it would be very nice to dynamically see the 'more by this artist' or a PTP showing the tracks in the currently playing album.  However, apparently Track Display redraws on many events (as necessary).


yes eventually... I'm not 100% sure what you're trying to do, but instead of overlaying panels, you should probably just hide one or the other.

[quote name='2Pacalypse' post='473104' date='Feb 19 2007, 07:22']
quick question - i would test for myself but i am at work. Can SCPL use buttons yet?
[/quote]

no.

[quote name='FofR' post='473110' date='Feb 19 2007, 07:35']
Is all of our configuration information stored in the .pui file? Or just the track display and SCPL stuff?
[/quote]

all the configuration information for all the panels loaded into that particular panels ui layout.

[quote name='Bellfazar' post='473139' date='Feb 19 2007, 09:27']
I can't export my settings.  In the settings window Export is always greyed out.  I'm using 0.6.1 beta.
[/quote]

no need for export. all the for the layout are stored in the .pui files.

[quote name='CepiPerez' post='473235' date='Feb 19 2007, 14:44']
Terrestrial:
Can you add transparency to the panels?
I want to show a Lyrics panel over a Track Display panel.
Thanks.
[/quote]

nope, transparency has to be added by the panels themselves.

[quote name='FofR' post='473261' date='Feb 19 2007, 16:19']
Any chance of getting a placeable text input box? The contents of which are stored in a PVAR? Though this would only be useful if the PVARS are stored across sessions.
[/quote]

what are you trying to do?


[quote name='pIv' post='473318' date='Feb 19 2007, 21:36']
Can you edit first post - add version number and create date?
This is very usefull to check have I last version of plugin or not.
[/quote]

I'll try.. but I don't always remember.

[quote name='Kiteroa' post='473335' date='Feb 19 2007, 22:44']
I see that the PANELS function has a 5th parameter for OPTIONS.

I guess these options sent to the panel being drawn at the time of drawing, is this correct?

What format is to be used?
[/quote]

no, there are no options yet.

foo_ui_panels

Reply #290
no, it should use the default windows font (although currently if you had a different font set before you upgraded, it will still use that). also panels ui isn't meant to have a font "selector" but a font "browser" (so, to set a font use $font() rather than the dialog )

ah.
Thanks for clearing that up.
elevatorladylevitateme

foo_ui_panels

Reply #291
well, having a problem with my maximized panels_ui window
when minimizing my maximized foobar window to system tray and want to activate it again with my remote control with the 'Activate or Hide' command foobar isnt maximized anymore. Same problem when activating minimized foobar trough foo_title and the same command. Activiating foobar (maximized) with the tray icon works

foo_ui_panels

Reply #292
Well, this is not a PanelsUI specific question, but I thought posting it here would be better, because ya guys are all pro's

So the question is, can I check via an if array whether playback is set to repeat(track/playlist),random etc .. and and how can I check whether the foobar is muted (also via an if array). I think this must be possible, so ... tell me please !

thanks elemakil

foo_ui_panels

Reply #293
hi.. first of all thansk for this new component,... i really appreciate it..

i got no crashes or the like but i have a problem...

i want to change different screens (library view, now playing and so on) via buttons.
so i have a pvar called "view" and the value is evaluated for what to show...

now in every code block for each view in the if-condition
there are some "// PerSecond" and some "// PerTrack" codelines.
now i want to have in a view some control buttons like play/pause, fast forward and the like but in the other views there shouldn't be this buttons. as far as i know buttons only work in the "// PerTrack"-section, but if i write them in this section they won't dissapear when i change the view.

is there a possibility to handle this? i hope so...

thanks and greetings

 

foo_ui_panels

Reply #294
Code: [Select]
 // Background
$imageabs(46,19,images\Schwarz.png,)

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

    $panel(Playing,Track Display,300,$get(yOffset),600,121,)
        $panel(Playing,Track Display,601,$get(yOffset),900,121,)
    $panel(Spectrum analyser,Spectrum analyser,20,$get(yOffset),150,121,)
        $puts(yOffset,140)

$panel(Playlist,Columns Playlist,450,$get(yOffset),%_width%,$sub(%_height%,$add($get(yOffset),22)),)

$panel(Playlist,Single Column Playlist,430,165,20,$sub(%_height%,$add($get(yOffset),22)),)

$panel(Buttons,Buttons,0,$sub(%_height%,21),230,21,)
$panel(Seekbar,Seekbar,200,$sub(%_height%,20),$sub(%_width%,210),20,)


I tried this. But I have only one instance of track display running. The second doesn't seem to work.
What must I do?

foo_ui_panels

Reply #295
I tried this. But I have only one instance of track display running. The second doesn't seem to work.
What must I do?

Change the ID portion of the $panel() function.  ie -
Code: [Select]
$panel(TD1,Track Display....)
$panel(TD2,Track Display....)


Well, this is not a PanelsUI specific question, but I thought posting it here would be better, because ya guys are all pro's

So the question is, can I check via an if array whether playback is set to repeat(track/playlist),random etc .. and and how can I check whether the foobar is muted (also via an if array). I think this must be possible, so ... tell me please !

thanks elemakil

You need cwb_hooks and something like this -
Code: [Select]
$if($stricmp(%cwb_playback_order%,'Repeat (tracks)'),
$if($stricmp(%cwb_playback_order%,'Repeat (playlist)'),
etc...


Keep in mind that a track must be playing for this to work (limitation of cwb_hooks) or %cwb_playback_order% is undefined.

To check if it's muted I think you could use -
Code: [Select]
$if($strstr(%cwb_volume%,'-100'),


Again, a track must be playing for %cwb_volume% to be defined.

foo_ui_panels

Reply #296
I use this code to create a  button, which should change the Volume from mute to 100%. But somehow it does not work. (The mute part works, but the unmute part does not .. I think "Volume up" is not the correct function to set the Volume to 100% but I couldn't find another one)
Here my Code
Code: [Select]
$if($strstr(%cwb_volume%,'-100'),
// Volume Zero, let's show up the unmute button and unmute it //
$button(630,20,0,0,25,25,/images\loud.png,images\loud_hot.png,Volume up,)
,
// Volume not Zero, give us a mute button and let's mute //
$button(630,20,0,0,25,25,/images\mute.png,images\mute_hot.png,Volume mute,)
)


thanks for help !

elemakil

foo_ui_panels

Reply #297
Try 'Set volume to 0dB'

http://wiki.hydrogenaudio.org/index.php?ti...Main_Menu_Items

Actually, if you issue the 'Volume mute' command while the volume is already muted, it will return the volume to the previous setting, ie  -12 db -> -100 db -> -12 db

So all you really need is the second button command, no $if() statement.

foo_ui_panels

Reply #298
thank you thousands of times !