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 1295412 times) previous topic - next topic
0 Members and 7 Guests are viewing this topic.

foo_ui_panels

Reply #225
i'm still having problems scrolling my lyrics with Lyrics panel.

foo_ui_panels

Reply #226
Hello
Since I am using the new panel ui I have some problems with the following code in SCPL

Code: [Select]
$if(%_isplaying%,
$select($add(1,$mod(%_time_elapsed_seconds%,2)),$rgb(0,0,0,0,0,0)'♪♫♩♬',$rgb(0,0,0,0,0,0)'♫♪♬♩'))


I can't copy it in the config any longer. Instead of the notes four ? appear

Can I fix my code somehow?

foo_ui_panels

Reply #227
iStormy, could you give us the possibility to use your theme (with explanation how to install would be great, b'cause I'm a noob to ui panels  )I would really enjoy it ! Thanks anyways to all helpers 'round here .. glad to see such a community !

greetings elemakil

foo_ui_panels

Reply #228
yeah, the panel will have to have a specific window style for it to work.
That's something musicmusic would have to do, right? Taking into account his frequency of updates, it's not going to happen too soon.

I've noticed some other minor issues:
1) If the "Windows frame style" of an album list panel is set to "Sunken" at the moment of foobar's launch (i.e., set, save, close and reopen), the panel's inner frame (among the two, one pixel in width each) will be colored black. Which differs from what I get after changing the frame style to "Sunken", provided this setting initially contained "Grey" or "None" (the color would be grey).
That doesn't happed with scpl.
2) Sometimes, the distance between the scroller in its lowest position and the bottom arrow button on the scrollbar in the scpl panel becomes two pixels instead of one. For example, when maximizing the window and then restoring it to the original size, provided the playlist is short enough to not have a scrollbar when the window is maximized. And long enough to have it in the restored state.
And sometimes with all the same mentioned conditions, after restoring the window's size and position, the playlist still gets no scrollbar (ever though the list becomes longer than the height of the panel).
The choice seems to depend on whether the panel's size was modified during the fullscreen state (I have a button for this, used for showing/hiding another panel) - if it wasn't, then the scrollbar doesn't appear.

foo_ui_panels

Reply #229
*  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.

  I have a similar issue.  My title bar gets stuck and won't change.  Only restarting FB2k fixes it.  I haven't figured out a cause yet.

iStormy, could you give us the possibility to use your theme (with explanation how to install would be great, b'cause I'm a noob to ui panels  )I

It's not done--still has bugs and nonworking features--but you're welcome to fiddle with it.  Download here.  Unzip it into your profile directory.  You'll  need to backup your own images & PanelsUI directories first! 

It expects your ratings to be 0-10 stars, so it can display half-star ratings from 0-5 stars (rating=7 shows 3.5 stars).

UPDATE: I forgot to turn on playlist-tree before uploading that config, so it has been replaced with a new version that has playlist tree turned on.  My download doesn't include the playlist tree config, sorry, ask if you need it.

foo_ui_panels

Reply #230
Hello
Since I am using the new panel ui I have some problems with the following code in SCPL

Code: [Select]
$if(%_isplaying%,
$select($add(1,$mod(%_time_elapsed_seconds%,2)),$rgb(0,0,0,0,0,0)'????',$rgb(0,0,0,0,0,0)'????'))


I can't copy it in the config any longer. Instead of the notes four ? appear

Can I fix my code somehow?

Eventually you'll have to replace the notes with a $font() statement followed by the corresponding $char() values.  Try deleting the notes somehow to get rid of it...sorry I can't be more helpful on that one.  The editor has issues with funny characters sometimes.

foo_ui_panels

Reply #231
can you post your complete .pui file (+any images) as your code seems to work fine for me.


http://elgatodesign.net/temp/Images.zip

Just for reference, the computer is an older dual processor system with two Pentium III 600MHz procs.  foobar is constrained to run on only one processor and uses 100% of it when using PanelsUI with this config.

EDIT:  Playing around I saw that this occurs any time I include "// Globals" and/or "// PerSecond" even if they are empty.

foo_ui_panels

Reply #232

I'm not sure exactly what you mean.  However $div() and $mod() are going to get me the same result, and the $if() statement will still be true 3 or 4 times for that second, thus increasing art.num by 3 or 4.

I didn't set a highest valid value for art.num because I wanted to allow for different amounts of album art for each album.

I'm still interested in what you had in mind though.


basically, use $div(%playback_time_seconds%) to get the image index, and use a pvar to store the highest valid index. if the $div is greater that the pvar then you get the image index by doing $div() mod pvar. finding the highest valid index would be the tricky part, but you could just have the pvar "unset" until you hit a index in the $div() that is higher than the last valid one.

I don't know if my explanation made sense, and I haven't actually tried implementing this but it's possible another solution


I stumbled across an easier solution to this I think.  In the main Display section of the foobar prefs is a setting for number of updates per second during playback of VBR files.  If this setting affects Track Display as well, setting this to 1 should solve the whole problem I think (untested as yet).

foo_ui_panels

Reply #233
people need to start sharing configs with this:) so my no talented ass can use someone elses great work:)

foo_ui_panels

Reply #234
Great work terrestrial, just one request:

Activate mousewheel scrolling on mouse over to a panel

edit: or should I say mouse hover

foo_ui_panels

Reply #235
Can you run other Foobar command/menu options from within PanelUI - not by button press but just as a command ?


no... what are you trying to do?

And a question regarding pvar buttons. How would I make a button, which when clicked once sets PVAR:SET:display.mode:2, when clicked again sets mode to 3 and if clicked third time sets it to 0? Thanks


PVAR:SET:display.mode:$ifequal($getpvar(display.mode),0,2,$ifequal(.... etc.

Would give me two different values, one of the playing song and one of the selected one. I'd like this to work with buttons, mainly, so I can show the now playing and have buttons to select the selected to be added to the playback queue.

That brings me to another problem: Select multiple songs and press Browse if you got Broswer, or add to playback queue without. It'll only work on the first song.


I think this might better be implemented as an option in buttons (eg, now playing, displayed, selected)

My panels UI works perfectly
but everytime when i right click -> settings or Use edit layout in preferences,
it crushes always.


it's probably scintilla related... which version worked properly?

i'm still having problems scrolling my lyrics with Lyrics panel.


which lyrics panel do you use (link please)?

Hello
Since I am using the new panel ui I have some problems with the following code in SCPL

Code: [Select]
$if(%_isplaying%,
$select($add(1,$mod(%_time_elapsed_seconds%,2)),$rgb(0,0,0,0,0,0)'????',$rgb(0,0,0,0,0,0)'????'))


I can't copy it in the config any longer. Instead of the notes four ? appear

Can I fix my code somehow?


next version will accept unicode in the scintilla window.

I've noticed some other minor issues:
1) If the "Windows frame style" of an album list panel is set to "Sunken" at the moment of foobar's launch (i.e., set, save, close and reopen), the panel's inner frame (among the two, one pixel in width each) will be colored black. Which differs from what I get after changing the frame style to "Sunken", provided this setting initially contained "Grey" or "None" (the color would be grey).
That doesn't happed with scpl.


the black is the panels ui background showing through. you should be able to change the background color to match.

Quote
2) Sometimes, the distance between the scroller in its lowest position and the bottom arrow button on the scrollbar in the scpl panel becomes two pixels instead of one. For example, when maximizing the window and then restoring it to the original size, provided the playlist is short enough to not have a scrollbar when the window is maximized. And long enough to have it in the restored state.
And sometimes with all the same mentioned conditions, after restoring the window's size and position, the playlist still gets no scrollbar (ever though the list becomes longer than the height of the panel).
The choice seems to depend on whether the panel's size was modified during the fullscreen state (I have a button for this, used for showing/hiding another panel) - if it wasn't, then the scrollbar doesn't appear.


probably some round off error somewhere. I will look into it.

Just for reference, the computer is an older dual processor system with two Pentium III 600MHz procs.  foobar is constrained to run on only one processor and uses 100% of it when using PanelsUI with this config.

EDIT:  Playing around I saw that this occurs any time I include "// Globals" and/or "// PerSecond" even if they are empty.


can you try running this benchmark: http://www.stereopsis.com/blttest/ and let me know what you get.

foo_ui_panels

Reply #236
After replace PanelUI 0.6.1 beta, this sorting button does not work.

Code: [Select]
$puts(offsetX,$add($get(offsetX),$get(w),10))
$puts(w,$calcwidth($font(tahoma,8,,200-200-200)$put(str,$if(%sortstring%,ST:%sortstring%,Sort))))
$button2($get(offsetX),$get(offsetY),0,0,$get(w),$get(h),'$font(tahoma,8,,110-110-110)$if(%sortstring%,$rgb(250,250,250))'$get(str),'$font(tahoma,8,,200-250-63)'$get(str)
,'Sort:rating|%rating%:genre|%genre%:date|%date%:artist|%artist%:album|%album%',)

foo_ui_panels

Reply #237
Is there a way to center a panel?  For example, I want to center a Buttons panel at the bottom of my setup.  I've tried using $align but it doesn't seem to work.

foo_ui_panels

Reply #238
Is there a way to center a panel?  For example, I want to center a Buttons panel at the bottom of my setup.  I've tried using $align but it doesn't seem to work.


$sub the width of the panel from %_width% and $div by 2,
$div($sub(%_width%,<panel width>),2)

---

I know it's possible to open the context menus by using the 'menu' command for buttons, but would it be possible to modify it slightly in future versions so that you can specify which menu the button triggers... for example: MENU:File or MENU:Edit

If it's already possible let me know how.

 

foo_ui_panels

Reply #239
I think this might better be implemented as an option in buttons (eg, now playing, displayed, selected)


My panels UI works perfectly
but everytime when i right click -> settings or Use edit layout in preferences,
it crushes always.


it's probably scintilla related... which version worked properly?


I tried the old 0.45beta,0.50beta and now 0.61beta
All of them did crash when i hit "setting".

What is strange is that "sometimes" it wont crash...though i didnt change anything.







p.s. sry about my broken english,Im an Asian.

foo_ui_panels

Reply #240
Might have been asked before but ive read and didnt see it so imma ask.  Is there anyway to have the panels you add to your config move along with the SCPL when resizing the foobar window?

foo_ui_panels

Reply #241
Might have been asked before but ive read and didnt see it so imma ask.  Is there anyway to have the panels you add to your config move along with the SCPL when resizing the foobar window?

Yes.  Panel sizes and positions have to be relative to %_width% and %_height% of the main window.


foo_ui_panels

Reply #243
sweet, thanks man. got it now.

foo_ui_panels

Reply #244
I've noticed some other minor issues:
1) If the "Windows frame style" of an album list panel is set to "Sunken" at the moment of foobar's launch (i.e., set, save, close and reopen), the panel's inner frame (among the two, one pixel in width each) will be colored black. Which differs from what I get after changing the frame style to "Sunken", provided this setting initially contained "Grey" or "None" (the color would be grey).
That doesn't happed with scpl.
the black is the panels ui background showing through. you should be able to change the background color to match.
Umm, no. That's not it.
Adding $drawrect(0,0,%_width%,%_height%,brushcolor-SYSCOL-15 pencolor-NULL) to the ui config doesn't change that color. See here.

Configuration used:
Code: [Select]
// Global
$puts(rowh,30)
$puts(alhdivisor,75)

// Background
//$drawrect(0,0,%_width%,93,brushcolor-SYSCOL-15 pencolor-NULL)
//$drawrect(0,$sub(%_height%,48),%_width%,48,brushcolor-SYSCOL-15 pencolor-NULL)
$drawrect(0,0,%_width%,%_height%,brushcolor-SYSCOL-15 pencolor-NULL)
// PerTrack

$panel(Menu,Menu,1,1,$sub(%_width%,2),19,)

$puts(yOffset,21)

// PerTrack
$panel(Playing,Track Display,0,$get(yOffset),%_width%,50,)

$ifequal($getpvar(displaycover),1,
$puts(yOffset,71)
//$drawrect(0,$sub(%_height%,48),%_width%,48,brushcolor-SYSCOL-8 pencolor-NULL)
$panel(Album Art,Album Art,0,$get(yOffset),%_width%,$sub(%_height%,$add($get(yOffset),44)),)
$panel(Progress Bar,Track Display,0,$sub(%_height%,37),%_width%,42,)
// $panel(Seekbar,Seekbar,0,$sub(%_height%,24),%_width%,22,)
,
$panel(Seekbar,Seekbar,0,$add($get(yOffset),50),%_width%,22,)
$puts(yOffset,93)
$ifequal($getpvar(showlib),1,
$puts(alheight,$mul($div($sub(%_height%,$add($get(yOffset),26)),$get(alhdivisor)),$get(rowh)))
$puts(plheight,$sub($sub(%_height%,$add($get(yOffset),26)),$mul($div($sub(%_height%,$add($get(yOffset),25)),$get(alhdivisor)),$get(rowh))))
$panel(Playlist,Single Column Playlist,0,$get(yOffset),%_width%,$get(plheight),)
// $panel(Album list,Album list,-2,$sub($add($get(yOffset),$get(plheight)),1),$add(%_width%,4),$add($get(alheight),2),)
$panel(Album list,Album list,2,$sub($add($get(yOffset),$get(plheight)),-1),$add(%_width%,-2),$add($get(alheight),-30),)
// $panel(updownbuttons,Track Display,300,400,100,60,)
,
$panel(Playlist,Single Column Playlist,0,$get(yOffset),%_width%,$sub(%_height%,$add($get(yOffset),26)),)
)
$panel(Playlists Dropdown,Playlists Dropdown,0,$sub(%_height%,24),$sub(%_width%,166),24,)
$panel(Buttons,Buttons,$sub(%_width%,162),$sub(%_height%,24),285,25,)
)

foo_ui_panels

Reply #245
is the lyrics panel 0.3.1.0 that doesn't scroll... i really cant figure it out. If there is a lyrics panel that works or a way to show a .txt inside a track info it would be wonderful.


foo_ui_panels

Reply #247
EDIT: Found 3 bugs also.
* 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.
* 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.)

I've got these issues as well.
And when I hover the foobar icon next to the clock in the systray area, there's no track in the tooltip it just sais "foobar200", but I have it set to show the current playing track.

foo_ui_panels

Reply #248
when I put a panel above my spectrum analyser the analyser is still visable, and my buttons keep appearing and dissapearing when I put them above a trackinfo panel. I choose to hide them with pvars maybe that has something to do with it...

Quote

And a question regarding pvar buttons. How would I make a button, which when clicked once sets PVAR:SET:display.mode:2, when clicked again sets mode to 3 and if clicked third time sets it to 0? Thanks


PVAR:SET:display.mode:$ifequal($getpvar(display.mode),0,2,$ifequal(.... etc.



I tried
$button(0,$sub(%_height%,25),0,0,0,0,$get(browse),$get(browse2),'PVAR:SET:Tree:$ifequal($getpvar(Tree),0,1,0)',)
and this does not work, like you said it should work?

Ooh and btw great component but it still needs a lot of work...

foo_ui_panels

Reply #249
first of all thank you VERY much iStormy, for providing your layout !

so my question (which is surely really noobish  ) is how do change the usage of of the playlist tree panel to the playlist switcher panel ? This is connected to my main probelm: I can not add new panels, I've got all of them in the drop-down menu, but how do I add them to the layout ? I've not found any wiki or something like it, so I thought I should post it here ....

thanks for your help elemakil