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

foo_ui_panels

Reply #875
Quote
I think what you're trying to do is probably use one layout to handle both artist and album groupings, and while this could be made to work, I think it would be better to split them into two.

My code for both would be exactly the same with the exception of two lines, one showing only the artist in group header and one switching the image shown from album cover to artist picture. Splitting them up has two problems: 1. If I make a change to one set of code I have to go through and make that change to the other set. 2. There's a lot of redundant code.

Idea: Maybe it could be beneficial for a PUI button to be able to define its own sort/group by/scpl layout code then apply it, something that can be used by the layout but does not override a users default sort settings. I think this feature would come in handy for adding functions to a layout that are not included or required by default. I guess, for instance, imagine Chronial's Last.fm script adds tags to sort by popularity - not everyone would need a default setting as not everyone would have the component, but for those that did have it a method of switching layouts and creating sort by code is needed - I believe this should be achieved in some sort of distributable manner that does not override a users settings, for instance in a button's code. The button code would be separate and unobtrusive whilst giving layout distributors free reign.

I think the problem is balance between a power user's requirements and a new user's desired simplicity (i.e. install a pui and it just works). Capable defaults will solve most problems but not all.

Quote
I can change / add defaults. What kind of sort/group strings were you adding?

Predominantly sorting by path and grouping by folder is the sort I use most:
Primary sort:
Code: [Select]
$replace(%path%,%filename_ext%,)

(Secondary sort: %tracknumber%)
Group by:
Code: [Select]
$replace(%path%,%filename_ext%,)

I find that most people group their music into folders, usually one folder per album - this allows correct grouping even when the tags are nasty.

When I sort by folder I use the album scpl code.

A default random mode would be great too:
$rand()
I can use fb2k's "randomize" but this will not change the SCPL layout accordingly.

I also use Title sort to sort alphabetically by title name, and instead have Tracknumber sort to sort by disc and tracknumber.

When I sort or group by album/artist I use $upper(%artist%) to prevent case differences from breaking up a group.

I haven't implemented these yet but I see a need for them - Sorting by track format e.g. mp3, flac, etc., Sorting by Track Length, Size, Rating, "%ALBUM ARTIST%" (to separate VA albums from the rest?)

Keep up the great work Terrestrial.

foo_ui_panels

Reply #876
For SCPL, Trackinfo panels and the main panelsUI:
if you want a solid bg, use $drawrect()
if you want to use an image as BG, use $imageabs2()

all other panels are drawn by their own component.


Well, I can't use $imageabs2() to set a background image to the ENTIRE SCPL panel, that's what I want.

foo_ui_panels

Reply #877
@Terrestrial

I wrote a pm to you about a problem concerning the playlist switcher and panel ui 8.1. the problem is very similar to that one with playlist tree [showing up when shouldn't]. You fixed this problem with playlist tree so maybe you can fix that problem too.

 

foo_ui_panels

Reply #878
How about changing mouse cursor to the link/hand cursor when hovering $buttons?

foo_ui_panels

Reply #879
I have a couple suggestions for additional default sort strings:

album artist is a must, I use that more than artist since I have a lot of soundtracks I want to keep together.  It should probably be similar to artist:

Primary:
Code: [Select]
$if($get(album_artist),,$put(album_artist,$upper(%album artist%)))


Secondary:
Code: [Select]
%date% %title%


Grouping:
Group by Sort


Another useful one is group by first letter of track (all tracks that start with "A" together, all tracks that start with "B" together, etc).  If you want track title as your primary sort, there is really no other good way to group things.  This is an instance where I think NOT using "Group by Sort" would be good, since you could sort by the Title but group by the first letter of the title, or sort by title and not use title for grouping at all.  So this code is identical to a basic "Title" grouping except it uses the first letter of the title as the Grouping criteria instead of "Group by Sort".

Primary:
Code: [Select]
$upper(%title%))


Secondary:
Code: [Select]
$upper(%album% %artist%)


Grouping  (Group by Sort off):
Code: [Select]
$upper($left(%title%,1))



Here is a proposed Title grouping that does not group at all (or rather it puts all tracks in one group).  This would be identical to the previous but would not have a heading at the top of each letter group:

Primary:
Code: [Select]
$upper(%title%))


Secondary:
Code: [Select]
$upper(%album% %artist%)


Grouping (Group by Sort off):
Code: [Select]
1


"a" or "blah" or anything that does not change with each track could go in the grouping criteria.

foo_ui_panels

Reply #880
Edit: I was an idiot problem was not panel ui but the peerson in front of the screen couldn't read the code.

NowI know why the authorin my c++ books prays to have a good organized code 

foo_ui_panels

Reply #881
Thanks Kiteroa! Just what i waned. One more thing.. Is there a way to change display options through console for splitters between panels?



Pleased I could help.

Not sure what you mean by "change display options through console for splitters between panels?".


foo_ui_panels

Reply #883
A couple people have asked about this already, but I am also having the problem and would like to know if there is anything I can do about it.  I am using columns UI, but I want to use the SCPL, so I installed panels UI only to use the SCPL.  However, I am having the same problem that others are having with this configuration: When starting foobar, the SCPL has no grouping, so each time we start foobar we have to reload the sort/group by and then it works fine (but quite annoying to have to do each time).  I have also had some crashing occur when starting foobar after trying to create new layouts from the SCPL settings.

Would it be terribly difficult to allow the SCPL in panels UI work with Columns UI?  Is there a reason why we can't have an updated version of SCPL separate from panels UI?  Is the SCPL so integrated with panels UI that it would be tons of work to also have a columns UI version?  I know there is still the old version of SCPL that does work with CUI, but I like to have the most updated version.


foo_ui_panels

Reply #885
Can anyone provide a copy of the old panels ui .8? I'm trying to install fooblog, but it is not possible without that version and since .9 released I've been unable to find it.

Thanks for the help in advance!

foo_ui_panels

Reply #886
Look an page 34
There was a downloadlink

Version 0.8

I use the following option to save my old versions in case the new version leads to crashes or is very buggy.
I rename the old .dll to .old so that foobar won't recognize it anymore and than I install the new version.
In case the new version crashes you can always reactivate the .old by renaming it to.dll and delete the newer version.

If your more paranoid you can create a hole new foobarfolder which get the newest versions while keeoing a stable foobarversion.


foo_ui_panels

Reply #888
Any chance this component can change the scrollbar colors/design of panels?

If not, any chance that feature could be added to SCPL?

foo_ui_panels

Reply #889
I'm having some odd problems.

Code: [Select]
$if($playlistname(Albums),
    $scplsetlayout(Single Artist)
,
$if($playlistname(Internet Radio)
    $scplsetlayout(Radio)
,
$if($playlistname(Now Playing)
    $scplsetlayout(Now Playing)
,
    $scplsetlayout(Multiple Artist)
)))

Shouldn't this, theoretically, go to the Single Artist Layout when I change the playlist to Albums, and go to the Now Playing layout when I change the playlist to Now Playing?

It's not for some odd reason.
naaa na na naaaaaa na na NAAAAAAA na na naaaaaaaaa

foo_ui_panels

Reply #890
The code should be:
$if($strcmp($playlistname(),Now Playing), (or something like this)

But Layout selector doesn't support $playlistname()

foo_ui_panels

Reply #891
Is it possible to switch on/off certain DSP filters with $button? how to do that?


foo_ui_panels

Reply #893
Is it possible to use foo_run with &button? how?

foo_ui_panels

Reply #894
iElectric: To execute a foo_run service with a button, specify the name of the runservice as the command of the button. For example:

$button2(x,y,offsetx,offsety,width,height,normal,hover,Album Art Downloader,)

foo_ui_panels

Reply #895
Could someone help me out?

Hey:

I need some help with some code.  Right now my panels playlist displays a star when a song is rated anything other than a 5.  For songs with a 5 rating, it displays a heart.

This is the code now:

Quote
// Ratings images
$if(%RATING%, 
$if($greater(%RATING%,4),
// If Rating > 4 show HEART image
$imageabs2($eval({$get(textleft)*2}+24),,,,,,,,$get(heartpic),NOKEEPASPECT)
,
// Else show STAR
$imageabs2($eval({$get(textleft)*2}+24),,,,,,,,$get(starpic),NOKEEPASPECT)
)
)


I would like to have a smile for songs with a 3 rating.  I added the location in the global theme settings but I don't know how to edit the code so that it displays the image. 

So in conclusion I want songs with ratings of 5 to give a heart image, 4 a star, 3 a smile... and anything else would get this icon (anypic) (I'll add it later).

So if anyone could tell me how to properly word the coding that would be awesome.  I haven't been able to figure out a working string.

foo_ui_panels

Reply #896
Could someone help me out?

Hey:

I need some help with some code.  Right now my panels playlist displays a star when a song is rated anything other than a 5.  For songs with a 5 rating, it displays a heart.

This is the code now:

Quote

// Ratings images
$if(%RATING%, 
$if($greater(%RATING%,4),
// If Rating > 4 show HEART image
$imageabs2($eval({$get(textleft)*2}+24),,,,,,,,$get(heartpic),NOKEEPASPECT)
,
// Else show STAR
$imageabs2($eval({$get(textleft)*2}+24),,,,,,,,$get(starpic),NOKEEPASPECT)
)
)


I would like to have a smile for songs with a 3 rating.  I added the location in the global theme settings but I don't know how to edit the code so that it displays the image. 

So in conclusion I want songs with ratings of 5 to give a heart image, 4 a star, 3 a smile... and anything else would get this icon (anypic) (I'll add it later).

So if anyone could tell me how to properly word the coding that would be awesome.  I haven't been able to figure out a working string.


how about this?
Code: [Select]
$if(%rating%,

$ifequal(%rating%,5,$imageabs2(blah blah blah),)
$ifequal(%rating%,4,$imageabs2(blah blah blah),)
$ifequal(%rating%,3,$imageabs2(blah blah blah),)
$ifgreater(%rating%,2,,$imageabs2(blah blah blah))

)

[/font]

foo_ui_panels

Reply #897
what i'm trying to do is have one group of panels when any song is playing, and then another group of panels the rest of the time when nothing is playing

code is in the PanelsUI main configuration window

Code: [Select]
$if(%isplaying%,
$panel(album art,Album Art,,25,200,200,)
$panel(track display,Track Display,200,25,600,200,)
,
$panel(track display top,Track Display,,25,800,25,)
$panel(track display last played,Track Display,,50,500,175,)
$panel(playlist switcher,Playlist switcher,500,50,150,175,)
$panel(playlist tree,Playlist Tree Panel,650,50,150,175,)
)


the problem is that if i select any track(in SCPL) that is NOT the one currently playing, the display reverts to the second grouping of panels(because of the code $if(%isplaying%,...)

this is the case no matter what the Mode(follow cursor or now playing) is set to, because the above code sort of overtakes that behavior

the question seems to be how do i tell PanelsUI to always display the first grouping of panels when any track is playing, no-matter which track is selected and/or focused

since %isplaying% belongs to a single file and not the state of the application itself, i have no clue how to do this or if it's even possible

thx for the help, if i need to explain better please let me know[/font]

foo_ui_panels

Reply #898
While updating foo_ui_panels to the newest version (though, I only use it for SCPL) I ran into a problem: when I start foobar it doesn't group the songs at first. It only groups the songs when I switch to an other playlist.


I think you missed this one, terrestrial  Or have I just missed the solution somewhere in this thread..?