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

foo_ui_panels

Reply #2075
Terrestrial. So if I want to place an image in the middle of an $alignabs. Shouldn't %_width% the width of the $alignabs? Wondering because it doesn't seem to be.

$imagebutton($sub($div(%_width%,2),imagewith/2),30,...


it should, but for various reasons it can't  a workaround is to use something like $puts(width,<width>) etc.

Quote
Or would be cool to be able to leave x/y as blank and the image would automatically line up to the horizontal/vertical alignment. This goes for buttons as well I've noticed.


yes maybe some sort of anchor point would be nice...

Quote
And about my $color suggestion. After some thinking and recoding my config I think it was a bad idea. Best would be to use as short function names as possible for these. And also since they will be used only in another functions - $textcolor/$rectabs - $rgb and $hex would be better imo, defining the format given to these.


$rgb is already taken, but you can still use $c() and $h()

I get a crash when opening the effects menu in a trackinfo panel.

Edit: in every trackinfo panel


update to the latest test version.

Terrestrial, we need a way to un-wordwrap, because $wordwrap() applies on the whole rest of the code.


add a $char(10) and wordwrap will turn off.

One other thing i was wondering if it would be possible to close a popup with a button like POPUPCLOSE for example. Something even more beautiful would be to have popups shown depending on pvar and not just buttons. That way we could do some really fun new layout and especially under xp i could do some pseudo transparent layouts


yes, this would be nice... but have to deal with a few small issues.

I have a quick question.  Does the $imageabs function work inside the $imagebutton function, because I can't get a button to work when I use $imageabs to set the image.  It shows the hover image of the two, which is also strange.  I am using the most recent beta12.

So here is some generic code I mean:
Code: [Select]
$imagebutton(30,$sub(%_height%,56),
$imageabs(30,$sub(%_height%,56),/images\forward.png,alpha,200),
$imageabs(30,$sub(%_height%,56),/images\forward.png),
PVAR:SET:hide2:1,
tooltip,'Scroll show',
hotspot,0,0,13,10,)

The image (2nd one) shows where it is supposed to but, the button and tooltip don't work.  Being able to use $imageabs will be nice so that I could use alpha settings, or even clipping and resizing.


no, use a textbutton instead

Terrestrial. Not sure if this applies everywhere but in SCPL an alignabs are relative to previous alignabs. Should alignabs really be relative to each other?


yes.. use $alignabs() to reset.

foo_ui_panels

Reply #2076
I am not able to change layouts anymore  I always get the basic layout.

 

foo_ui_panels

Reply #2077
I've had this problem for awhile and it changes but doesn't work, it just screws up in different ways with each release. When I have foo minimized to tray and exit from there the next time I open it it shows all fudged up. It kills the pui's after that too because it saves it in that state.


an answer for this would be great

foo_ui_panels

Reply #2078
Some problems with the new scpl and some code

Quote
$align(14,1)      %list_index%      %tracknumber%   
$alignabs(75,1)  $cut(%artist%,15)
$alignabs(195,1) $cut(%album%,21)
$alignabs(300,1)$cut(%title%,18)


This cuts some text from %title% where it shouldn't  It cuts after 2 letters instead of 18

foo_ui_panels

Reply #2079

I have a quick question.  Does the $imageabs function work inside the $imagebutton function, because I can't get a button to work when I use $imageabs to set the image.  It shows the hover image of the two, which is also strange.  I am using the most recent beta12.

So here is some generic code I mean:
Code: [Select]
$imagebutton(30,$sub(%_height%,56),
$imageabs(30,$sub(%_height%,56),/images\forward.png,alpha,200),
$imageabs(30,$sub(%_height%,56),/images\forward.png),
PVAR:SET:hide2:1,
tooltip,'Scroll show',
hotspot,0,0,13,10,)

The image (2nd one) shows where it is supposed to but, the button and tooltip don't work.  Being able to use $imageabs will be nice so that I could use alpha settings, or even clipping and resizing.


no, use a textbutton instead

Hi terrestrial,

Thanks for the reply.  The reason why I ask is so that I can have hover images for the buttons.  That is something I cannot do with the current $imagebutton, but it did work with the old $button function.  What I am doing right now is to show the image, and use an $imagebutton that shows no images.  It works, but it doesn't allow hover images.

If there is a way to do a hover image, I would like to know how.  Otherwise, it would be nice if the $imageabs function could be used with the $imagebutton function.

Thanks!

foo_ui_panels

Reply #2080
I just upgraded foo_ui_panels after not having upgraded anything in awhile and I'm absolutely loving the changes!  The new library filter is great, but I've got two questions.

1. Is there any way to filter by directory structure?  I know you can put %path% in the filter box, but that doesn't do it recursively, and so you end up with one level that just contains every song that you have.

2. I'm an idiot.  How do you set the double-click action for Library Filter?  I can't seem to find the option and I've seen a ton of posts that seem to imply the feature has been implemented.

foo_ui_panels

Reply #2081

Quote
what kind of font smoothing have you specified in windows (display properties/advanced/effects)?

When turning the global cleartype on it's fine,but having it all over Windows is just a little too much for me,could the local cleartype support be brought back?

well currently you can specify "nocleartype" to turn off cleartype for a font, so I can add a "cleartype" to force it on for a font...


I got exactly the same Problem. I doesn't like the ClearType Style in Windows, but normally this doesn't afffect Foobar, with the newest UI_panels Version it does! Please can you make a Switch, with the Option "depending on Windows Settings" - "Generally Off" - "Generally On"

That would be very kind


foo_ui_panels

Reply #2083
terrestrial,

I was wondering if perhaps it would be possible to use something other than a comma to separate options like "alpha,100" or "resize,100,100".

The reason why is because one cannot use an $ifequal or $ifgreater function to display different alpha blends or resize images differently.  There are way too many commas, which breaks those "$if.." functions.

foo_ui_panels

Reply #2084
if you right click and choose add or send to playlist in the library filter it still always sends to *FILTER*.

Can you please make this playlist customisable or just make it that it sends this to the currently active playlist.

foo_ui_panels

Reply #2085
if you right click and choose add or send to playlist in the library filter it still always sends to *FILTER*.

Can you please make this playlist customisable or just make it that it sends this to the currently active playlist.


Customisable, please!


foo_ui_panels

Reply #2087
Thanks for all your work on this new release Terrestrial.

I'm waiting until it goes final before I move to it - as I don't have enough time to do any rework necessary more than once.

But I'm looking forward to it!

foo_ui_panels

Reply #2088


I am not able to change layouts anymore  I always get the basic layout.
It happens to me when I go back to 0.13.8 and try to open a PUI file that has opened with 0.14.x. Check if you did this.
same thing happened to me too. what's wrong?


I had this too. You CANNOT open PUIs with an older version if you have opened them with a later version.

foo_ui_panels

Reply #2089
hey guys I had suddenly an error.
I updated to the newest plugin.
works fine but the background of my foobar changed from blue to black.
and the buttons are gone, but I can click on the place so the fuction works.

it's from picture 1 to picture 2 but I don't know how to change it to the old one.
the config and .pui are the same.

I tried to remove the blue bar but I can't find any option, only to remove taskbar, and tray icon.



foo_ui_panels

Reply #2090
You have an error in your PUI code most likely.

foo_ui_panels

Reply #2091
and how do I solve it?

foo_ui_panels

Reply #2092
barry123
I highly doubt that The Judge does know your code, so it might be helpful if you would post it.

foo_ui_panels

Reply #2093
Oh I'm sorry here are codes

track:
$puts(isSingle,$if(%tracknumber%,0,1))
$puts(isVarious,$if($stricmp($meta(album artist),Various),1,0))

user:
$puts(coverPath,$replace(%path%,%filename_ext%,folder.*))
$puts(isSingle,$if(%tracknumber%,0,1))

edit lay out. (this is the pui code I think)
Code: [Select]
// config

// Global
$puts(full,680)
$puts(compact,120)
$puts(mini,20)

// Background
$imageabs2(%_width%,%_height%,,,,,,,/images\blue.png,NOKEEPASPECT)

// PerTrack
$drawrect(0,0,0,0,brushColor-null penColor-58-80-101)
$button(2,2,0,0,16,16,/images\menu.png,/images\menuh.png,MENU,TOOLTIP:"Menu")

$ifgreater(4,$getpvar(mode),
//mode = 1, 2 3 en 4
$button(485,2,0,0,16,16,/images\hide.png,,hide,TOOLTIP:"Minimize")
$button(505,2,0,0,16,16,/images\exit.png,,exit,)
$button(20,2,0,0,16,16,,,WINDOWSIZE:450:$get(mini):LEFT:TOP,)
$button(20,2,0,0,16,16,/images\minus.png,,'PVAR:SET:mode:4',TOOLTIP:"Mini View")
$button(14,$eval($get(mini)+90),0,0,22,26,/images\playlist.png,,'PVAR:SET:mode:1',TOOLTIP:"Columns Playlist")
$button(44,$eval($get(mini)+90),0,0,22,26,/images\albumlist.png,,'PVAR:SET:mode:2',TOOLTIP:"Album list")
$button(112,$eval($get(mini)+86),0,0,26,26,/images\previous.png,,previous,TOOLTIP:"Previous")
$button(137,$eval($get(mini)+86),0,0,26,26,
$if($or(%ispaused%,$not(%isplaying%)),/images\play.png,/images\pause.png),
$if($or(%ispaused%,$not(%isplaying%)),/images\play.png,/images\pause.png),Play or Pause,TOOLTIP:" Play/Pause ")
$button(162,$eval($get(mini)+86),0,0,26,26,/images\next.png,,next,TOOLTIP:"Next")
$button(187,$eval($get(mini)+86),0,0,26,26,/images\random.png,,random,TOOLTIP:"Random")
$button(428,$eval($get(mini)+92),0,0,22,26,/images\lyric.png,,'PVAR:SET:mode:3',TOOLTIP:"Lyric Show")
$button(455,$eval($get(mini)+90),0,0,22,26,/images\prefs.png,,Preferences,TOOLTIP:"Preferences")
$button(488,$eval($get(mini)+90),0,0,22,26,/images\library.png,,Rescan Media Library,TOOLTIP:"Rescan Media Library")
$if(%isplaying%,
$button(506,$eval($get(mini)+5),0,0,26,26,/images\exit14.png,,Stop,TOOLTIP:"Stop")
$panel(name,Peakmeter,453,30, 50,75,)
$panel(Seekar,Seekbar,36,$eval($get(mini)+55),250,20,)
$imageabs2(330,75,0,0,0,0,230,$eval($get(mini)+10),$replace(%path%,%filename_ext%,*.jpg),)
,)

$drawrect(0,$get(mini),%_width%,2,brushColor-58-80-101 penColor-58-80-101)

$if(%_isplaying%,
$font(Verdana,8,bold,231-237-241)
$alignabs(40,0,450,$get(mini),left,middle)
%artist% - %title%
$alignabs(40,20,260,$get(mini),left,middle)
Album: [%album%] [#%Tracknumber%]
$alignabs(40,32,260,$get(mini),left,middle)
Date: [%date%]
$alignabs(40,44,260,$get(mini),left,middle)
Genre: [%genre%]
$alignabs(40,56,260,$get(mini),left,middle)
Bitrate: [%BITRATE% kbps]
,
$font(Verdana,8,bold,231-237-241)
$alignabs(40,0,260,$get(mini),left,middle)
Not Playing)
,
)

$if(%_isplaying%
,)


$select($getpvar(mode),
// mode 1: Playlist View
$panel(Columns Playlist,Columns Playlist,5,$eval($get(compact)+$get(mini)),$sub(%_width%,-20),$eval($get(full)-$get(compact)-$get(mini)-29),)

$panel(playlists,Playlist tabs,5,$eval($get(full)-28),245,23,)
$panel(Order,Playback order,250,$eval($get(full)-28),115,23,)
$panel(Quick Search Toolbar,Quick Search Toolbar,364,$eval($get(full)-28),160,23,)

,



// mode 2: Album list
$panel(Album list,Album list,5,$eval($get(compact)+$get(mini)),$sub(%_width%,-20),$eval($get(full)-$get(compact)-$get(mini)-5),)


,
// mode 3: Lyric Show
$panel(Lyric Show,Lyric Show,5,$eval($get(compact)+$get(mini)),$sub(%_width%,10),$eval($get(full)-$get(compact)-$get(mini)-5),)

,
// mode 4: Mini View
$button(20,2,0,0,16,16,,,WINDOWSIZE:525:$get(full):LEFT:TOP,)
$button(20,2,0,0,16,16,/images\plus.png,,'PVAR:SET:mode:1',TOOLTIP:"Playlist View")
$button(360,2,0,0,16,16,/images\miniprev.png,/images\miniprevh.png,Previous,TOOLTIP:"Previous")
$button(375,2,0,0,16,16,
$if($or(%ispaused%,$not(%isplaying%)),/images\miniplay.png,/images\minipause.png),
$if($or(%ispaused%,$not(%isplaying%)),/images\miniplayh.png,/images\minipauseh.png),Play or Pause,TOOLTIP:" Play/Pause ")
$button(390,2,0,0,16,16,/images\mininext.png,/images\mininexth.png,next,TOOLTIP:"Next")
$button(410,2,0,0,16,16,/images\hide.png,,hide,TOOLTIP:"Minimize")
$button(430,2,0,0,16,16,/images\exit.png,,Exit,)
$if(%_isplaying%,
$font(Verdana,8,bold,231-237-241)
$alignabs(40,0,300,$get(mini),left,middle)
%artist% - %title%
,
$font(Verdana,8,bold,231-237-241)
$alignabs(40,0,260,$get(mini),left,middle)
Not Playing)
,

,
)

// PerSecond

$ifgreater(4,$getpvar(mode),
$font(Verdana,7,,58-80-101)
$alignabs(39,$eval($get(mini)+72),250,12,left,)
[%playback_time%]
$alignabs(42,$eval($get(mini)+72),240,12,right,)
[%length%]
,
)
$ifequal($getpvar(mode),4,
$font(Verdana,7,bold,231-237-241)
$alignabs(325,0,45,$get(mini),left,middle)
 [-%playback_time_remaining%]
,
)

foo_ui_panels

Reply #2094
Quote from: foosion link=msg=0 date=
The Panels UI thread: A bug tracker would be useful. Despite the name, bug trackers can also be used for feature requests and the like

I like the bug tracker idea myself. What do you think about this idea Terrestrial? I think your response was an allusion to not having the time to set one up. I'm presuming if one were set up by someone, it would be very useful, for you and consequently for the development of Panels UI; granted, only if people were to use it -- this is where I am a bit skeptical.

foo_ui_panels

Reply #2095
I just upgraded foo_ui_panels after not having upgraded anything in awhile and I'm absolutely loving the changes!  The new library filter is great, but I've got two questions.

1. Is there any way to filter by directory structure?  I know you can put %path% in the filter box, but that doesn't do it recursively, and so you end up with one level that just contains every song that you have.

2. I'm an idiot.  How do you set the double-click action for Library Filter?  I can't seem to find the option and I've seen a ton of posts that seem to imply the feature has been implemented.


1. Yes, and depending on how you have your directory structure set up, it may be very simple.  If you have a consistent number of sub-folders between your main folder and the folder where your music files are, you can make use of the $directory(x,n) function described in the Titleformat Reference.  If that's not the case, then it could get more complicated, but you could at least to something like:
Code: [Select]
$left(%path%,$eval($chrstr(%path%,\)-1))

For the top level, then something like the following for the next level:
Code: [Select]
$left($right(%path%,$eval($len(%path%)-$chrstr(%path%,\))),$eval($chrstr($right(%path%,$eval($len(%path%)-$chrstr(%path%,\))),\)-1))

And so on; as you can see the code gets much longer and more complicated for each new layer.  Basically, there is currently no easy way that I know of to group by directory structure in Library Filter, though it is pretty much possible if it's important to ya.  I think it might be easier to use the tags to accomplish mostly the same thing, though (ie group by artist, then album, then title).

2. First, you have to have the latest beta version.  It can be found in Preferences->Display->Panels UI->Library Filter, near the bottom.

Quote from: foosion link=msg=0 date=

I like the bug tracker idea myself. What do you think about this idea Terrestrial? I think your response was an allusion to not having the time to set one up. I'm presuming if one were set up by someone, it would be very useful, for you and consequently for the development of Panels UI; granted, only if people were to use it -- this is where I am a bit skeptical.


There's already a bug reporting section on the Feature Requests / Bugs List page linked on the wiki.

foo_ui_panels

Reply #2096
Does anyone know what the current incompatibilities with PanelsUI are?  Currently having a few problems.
darkblackcorner - in the dark since 1986

foo_ui_panels

Reply #2097
1. Yes, and depending on how you have your directory structure set up, it may be very simple.  If you have a consistent number of sub-folders between your main folder and the folder where your music files are, you can make use of the $directory(x,n) function described in the Titleformat Reference.  If that's not the case, then it could get more complicated, but you could at least to something like:
Code: [Select]
$left(%path%,$eval($chrstr(%path%,\)-1))

For the top level, then something like the following for the next level:
Code: [Select]
$left($right(%path%,$eval($len(%path%)-$chrstr(%path%,\))),$eval($chrstr($right(%path%,$eval($len(%path%)-$chrstr(%path%,\))),\)-1))

And so on; as you can see the code gets much longer and more complicated for each new layer.  Basically, there is currently no easy way that I know of to group by directory structure in Library Filter, though it is pretty much possible if it's important to ya.  I think it might be easier to use the tags to accomplish mostly the same thing, though (ie group by artist, then album, then title).

2. First, you have to have the latest beta version.  It can be found in Preferences->Display->Panels UI->Library Filter, near the bottom.


Thank you very much!

foo_ui_panels

Reply #2098
Does anyone know what the current incompatibilities with PanelsUI are?  Currently having a few problems.
First of all I posted this already and actually reposted it just a few posts up from yours so READ a little first before you start new threads on old questions


I've had this problem for awhile and it changes but doesn't work, it just screws up in different ways with each release. When I have foo minimized to tray and exit from there the next time I open it it shows all fudged up. It kills the pui's after that too because it saves it in that state.


an answer for this would be great
Secondly, I reposted because I have yet to get a response and this is not a new problem. Like I said, It's been in ALL the versions I have used and it does this with EVERY config I've used including my own.

Finally, I hope that you saved your pui before you encountered this because it screws it up which means that code you posted in your thread would not be correct anymore because it got saved in the screwed up state.

foo_ui_panels

Reply #2099
There's already a bug reporting section on the Feature Requests / Bugs List page linked on the wiki.

I know that exists and while it is decent for feature requests, it is not entirely suitable for bug reports. Not to mention the registration process for anyone who wants to report a bug or feature request on the HA wiki is a bit  cumbersome; its why still, most Panels UI feature requests and bugs are reported on this thread and forum. Rather than using the wiki; the wiki which I'm not sure is the best vehicle for it either.

I was thinking of something like Bugzilla, or maybe there is more appropriate bug tracking system better suited for Panels UI.

Just an idea to consider.