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

foo_ui_panels

Reply #450
Bug report: Latest panels ui don't check for the file "user_profiles_enabled" in foobar's program folder.

Affects: People with user profiles, and "secured" systems.

Symptoms: After several hours of setting up panels ui to users liking, all settings are lost upon a restart of foobar.

Tempo fix: (as a system administrator) create a folder called PanelsUI in foobar's program folder and give the users who want to use foobar privileges to change that folder.

Useful fix: Panels ui must check for "user_profiles_enabled" if unable to create the folder PanelsUI, and if such a file exists, use to appropriate folder in "Documents & Settings".

(BTW, excellent plugin. Love it.)

It was explained by terrestrial that the new version of PanelsUI moved the PanelsUI folder to the foobar2k root directory.  I'm not sure of the reason for the change, but it's not a bug.

foo_ui_panels

Reply #451
it really makes sharing .pui's easier.
elevatorladylevitateme

foo_ui_panels

Reply #452
@stampvegaar
I'm grasping at straws here, but is there any chance removing the extra ' from these lines in the $imageabs2() tags helps?
Code: [Select]
$button2($get(xpos),$get(ypos),$mul($get(halfstar),1),0,$mul($get(halfstar),2),$get(rateheight),'$imageabs2('$get(ratewidth)','$get(rateheight)',,,,,,,'$get(imagedir)'100.png,)','$imageabs2('$get(ratewidth)','$get(rateheight)',,,,,,,'$get(imagedir)'2.png,)',Rate 1,)

to

$button2($get(xpos),$get(ypos),$mul($get(halfstar),1),0,$mul($get(halfstar),2),$get(rateheight),'$imageabs2($get(ratewidth),$get(rateheight),,,,,,,'$get(imagedir)'100.png,)','$imageabs2($get(ratewidth),$get(rateheight),,,,,,,'$get(imagedir)'2.png,)',Rate 1,)

foo_ui_panels

Reply #453

Bug report: Latest panels ui don't check for the file "user_profiles_enabled" in foobar's program folder.

Affects: People with user profiles, and "secured" systems.

Symptoms: After several hours of setting up panels ui to users liking, all settings are lost upon a restart of foobar.

Tempo fix: (as a system administrator) create a folder called PanelsUI in foobar's program folder and give the users who want to use foobar privileges to change that folder.

Useful fix: Panels ui must check for "user_profiles_enabled" if unable to create the folder PanelsUI, and if such a file exists, use to appropriate folder in "Documents & Settings".

(BTW, excellent plugin. Love it.)

It was explained by terrestrial that the new version of PanelsUI moved the PanelsUI folder to the foobar2k root directory.  I'm not sure of the reason for the change, but it's not a bug.

Well it's not a bug per say, but it's not the expected behaviour - you would want all your configs to be more or less in the same place and obey the same rules, or at least I would.
On the other hand, this way the actual configs, which take up more space, must not be duplicated for 2-3-N profiles using the same layout, so it makes some sense - though you can't restrict pui visibility between profiles.
Still, the component is great, so I won't complain
Life is Real...
(But not in audio :) )

foo_ui_panels

Reply #454
Feature Request: (even if you're already up to your eyeballs in them  )
boolean check to see if other components are installed.

$chkcomp(foo_cwb_hooks.dll)

[edit]And does the scrollbar in SCPL not use a systemcolor for the background?
elevatorladylevitateme

foo_ui_panels

Reply #455
I wonder where you got the impression that this requires .NET, because it certainly doesn't. I'm in a good mood, so I'll ignore the anti-.NET nonsense/trolling. For now.


didnt mean to troll, i had already posted then i saw the .net requirement on the wiki so i said something about it. but now the .net req is striked out on the wiki. 

foo_ui_panels

Reply #456
terrestrial: is there any way I can get v0.4.2beta? I spent sooo many time on customizing it, then I updated to 0.7.2beta and all of a sudden, my whole config is gone

regards,
Kasper

foo_ui_panels

Reply #457
hi L4nt0m,
read the first post on this page.
elevatorladylevitateme

foo_ui_panels

Reply #458
@L4nt0m
If you're jumping from 0.4 then you'll also have to do the 0.5 migration as well.  Check back in this thread (page 7 or 8 maybe?) for the update to v0.5.  Terrestrial outlined how to import your pre-0.5 configs to the 0.5+ format.

EDIT: Here you go.  Bottom of this post -

http://www.hydrogenaudio.org/forums/index....st&p=471891

foo_ui_panels

Reply #459
Quote
can you both please post your .puis (and any images).

Download
Sorry it took me so long.
Also a big feature request:is it possible to add transparency to the background of Panels ui window under
non Vista version of Windows.I need it since i want to attach a titlebar of my vis style directly to the
config (as a picture),but it has rounded edges,and so the corners of Panels Ui window are visible.
Thank you for your time.
Favourite artist:CD-R
Favourite album:700MB

foo_ui_panels

Reply #460
I guess this has already been reported but there seems to be a problem with mouse wheel scrolling. Most panels work well, but both of the lyrics panels aren't scrollable because they don't have a scrollbar and the mousewheel isn't working with these.

foo_ui_panels

Reply #461
So I was playing around with the new windowsize function and button stacking. I thought I'd post some code to show others how to use it. Here is a layout that will create three vertical panels stacked vertically, there are toggle buttons for the top and bottom panels as well as buttons to change the "tab" of the middle panel. The entire foobar window and center panel will resize when the top and bottom panels are added or removed:
Code: [Select]
$drawrect(0,0,0,0,brushcolor-233-233-233 pencolor-null)

$panel(Menu,Menu,0,0,%_width%,20,)

$ifgreater($getpvar(toppanel.hide),0,,
$panel(Now Playing,Track Display,5,20,$sub(%_width%,10),140,)
)

$puts(mainpanel.y,$add(20,$ifgreater($getpvar(toppanel.hide),0,,145)))
$puts(mainpanel.height,$sub(%_height%,$add(55,$ifgreater($getpvar(toppanel.hide),0,0,140),$ifgreater($getpvar(bottompanel.hide),0,0,50))))

$select($add($getpvar(mainpanel.mode),1),
$panel(Lists,Playlists Dropdown,0,$get(mainpanel.y),150,20,)
$panel(Order,Playback order,150,$get(mainpanel.y),120,20,)
$panel(Search,Quick Search Toolbar,270,$get(mainpanel.y),$sub(%_width%,270),20,)
$panel(Playlist,Single Column Playlist,0,$add($get(mainpanel.y),20),%_width%,$sub($get(mainpanel.height),20),)
,
$panel(Test,Track Display,0,$get(mainpanel.y),%_width%,$get(mainpanel.height),)
,
$panel(Queue,Queue Manager,0,$get(mainpanel.y),%_width%,$get(mainpanel.height),)
,
$panel(Albums,Album list,0,$get(mainpanel.y),%_width%,$get(mainpanel.height),)
,
$panel(Lyrics,Lyric Show,0,$get(mainpanel.y),%_width%,$get(mainpanel.height),)
,
$panel(Console,Console,0,$get(mainpanel.y),%_width%,$get(mainpanel.height),)
)

$ifgreater($getpvar(bottompanel.hide),0,,
$panel(Egoh,Egoh Spectrum analyser,5,$sub(%_height%,75),$sub(%_width%,10),45,)
)

$panel(Progress,Seekbar,0,$sub(%_height%,30),%_width%,14,)

// Buttons //
$puts(offset.button.x,0)
$puts(offset.button.y,$sub(%_height%,15))
$button2($add($get(offset.button.x),2),$get(offset.button.y),0,0,14,14,,,WINDOWSIZE:%_width%:$ifgreater($getpvar(toppanel.hide),0,$add(%_height%,145),$sub(%_height%,145)),)
$button2($add($get(offset.button.x),2),$get(offset.button.y),0,0,14,14,A,x,PVAR:SET:toppanel.hide:$ifgreater($getpvar(toppanel.hide),0,0,1),)
$button2($add($get(offset.button.x),16),$get(offset.button.y),0,0,14,14,,,WINDOWSIZE:%_width%:$ifgreater($getpvar(bottompanel.hide),0,$add(%_height%,50),$sub(%_height%,50)),)
$button2($add($get(offset.button.x),16),$get(offset.button.y),0,0,14,14,B,x,PVAR:SET:bottompanel.hide:$ifgreater($getpvar(bottompanel.hide),0,0,1),)

$puts(offset.button.x,%_width%)
$puts(offset.button.y,$sub(%_height%,15))
$button2($sub($get(offset.button.x),86),$get(offset.button.y),0,0,14,14,0,x,'PVAR:SET:mainpanel.mode:0',)
$button2($sub($get(offset.button.x),72),$get(offset.button.y),0,0,14,14,1,x,'PVAR:SET:mainpanel.mode:1',)
$button2($sub($get(offset.button.x),58),$get(offset.button.y),0,0,14,14,2,x,'PVAR:SET:mainpanel.mode:2',)
$button2($sub($get(offset.button.x),44),$get(offset.button.y),0,0,14,14,3,x,'PVAR:SET:mainpanel.mode:3',)
$button2($sub($get(offset.button.x),32),$get(offset.button.y),0,0,14,14,4,x,'PVAR:SET:mainpanel.mode:4',)
$button2($sub($get(offset.button.x),16),$get(offset.button.y),0,0,14,14,5,x,'PVAR:SET:mainpanel.mode:5',)

foo_ui_panels

Reply #462
Thanks for making such an amazing plug in terrestrial.  Will post my UI in a little.
Also I think it would be a good IDEA to make a UI sharing thread for this.
Since all the files are contained in such a single file, it would be very easy to share.

 

foo_ui_panels

Reply #463
This plugin is fr**king great... Maybe we will get a possibility to change double-click behaviour?



Bug report: Latest panels ui don't check for the file "user_profiles_enabled" in foobar's program folder. [...]
(BTW, excellent plugin. Love it.)

It was explained by terrestrial that the new version of PanelsUI moved the PanelsUI folder to the foobar2k root directory.  I'm not sure of the reason for the change, but it's not a bug.

Well it's not a bug per say, but it's not the expected behaviour - you would want all your configs to be more or less in the same place and obey the same rules, or at least I would.[...]
Still, the component is great, so I won't complain

I actually read the "added features" (a.k.a. "changes") and noted about the move of the configs (before posting but after screwing with the config). Problem is, this "fix" (although excellent for exchanging configs) breaks the whole plugin on systems where the user don't have write access to the program folder itself (places with uptight security administators). (((((((MS is after all trying to trying hard to fix security issues, and always running a system as administrator might not be the smartest thing to do. However....)))))))

I got some problems with "context-selected".... when the button is in a panel with "now playing"-selected it might 
choose to work on the playing track instead of the selected one. This behavior shows it ugly head on foo_run and discogs but NOT on "Place after currently playing". (and they never actually use the selected tracks but the focused track, easily seen if you select tracks, and click on one of them with ctrl hold down. Have not tried this with "delete files", could be disastrous). Well it is a new feature in a beta plugin.

Good work!
Om jag var söt som jocke thå,
skulle du tycka om mig då?

foo_ui_panels

Reply #464
Quote
can you both please post your .puis (and any images).

Download
Sorry it took me so long.
Also a big feature request:is it possible to add transparency to the background of Panels ui window under
non Vista version of Windows.I need it since i want to attach a titlebar of my vis style directly to the
config (as a picture),but it has rounded edges,and so the corners of Panels Ui window are visible.
Thank you for your time.


Thanks, I love your UI.  I was wondering if you could also include the images?  Thanks in advance.

foo_ui_panels

Reply #465
I will release my whole config shortly
Favourite artist:CD-R
Favourite album:700MB

foo_ui_panels

Reply #466
I am still trying to place a smaller Track Display over a larger one, or overlap, etc.  I've been trying to create some windows-like controls, such as a dropdown list.  It works very well, but (as you know I'm sure) if you hover the Track Display 'below' it, that one redraws and rises in z-order, or something like that.  If I move the mouse back over the DDL, it redraws and stays on top.

Maybe what I'm trying to do is impossible, or not feasible?  Incidentally, I'm using a lot of dynamic positioning/sizing based on various factors (usually on button click).


overlaying panels is generally going to be hit or miss depending on which panels you're working with. a better solution would probably be to use something like dockable panels to pop up a new window.

(since to change layouts you use the main menu).

Does this mean you've implemented changing .pui's with a button/menu command?  Or are you referring to people still using/changing a ColumnsUI layout?


look under view/panels ui/layout

Quote
I got some problems with "context-selected".... when the button is in a panel with "now playing"-selected it might 
choose to work on the playing track instead of the selected one. This behavior shows it ugly head on foo_run and discogs but NOT on "Place after currently playing". (and they never actually use the selected tracks but the focused track, easily seen if you select tracks, and click on one of them with ctrl hold down. Have not tried this with "delete files", could be disastrous). Well it is a new feature in a beta plugin.


are you using the full path to execute the command?

--------------------------

I've uploaded a new version with a couple of minor new features.

foo_ui_panels

Reply #467
Please fix image stretching (size increase) with $imageabs2 (nokeepaspect). It looks terrible. It was a lot better in v0.6.
Thanks.

foo_ui_panels

Reply #468
I finally found why my panels UI always crush when i entered configuration.


That is when I use the ASIO output with my EMU 0404 sound card, it crushes.

After i set it back to directsound output, its being very stable without any failure...

foo_ui_panels

Reply #469
I finally found why my panels UI always crush when i entered configuration.


That is when I use the ASIO output with my EMU 0404 sound card, it crushes.

After i set it back to directsound output, its being very stable without any failure...

Nah i figure out that setting DSout is just reducing the probability of crush...
hmm 95% to 10% ?

foo_ui_panels

Reply #470
May i ask
how do i put multi-command into one button? (WINDOWSSIZE,PVAR,TOOLTIP)

Thanks.

foo_ui_panels

Reply #471
1) PanelsUI subfolder (which stores the .pui files) has been move from the profile directory to the foobar directory. So, if you want you old layouts move them from your profile directory to your foobar install directory.

I'm not sure where my .pui file existed under the previous version (if it was a file at all) but after upgrading the only .pui file on my C drive is in "c:\Program Files\foobar2000\PanelsUI" and it has lost all my old settings.

Is there anyway to get them back?  If I knew I needed to move it before upgrading I would have done so.

foo_ui_panels

Reply #472
oScARSh: AFAIK you will need to stack multiple buttons on top of each other to accomplish what you are trying to do. A few posts earlier I posted an example of this:
Code: [Select]
$button2($add($get(offset.button.x),2),$get(offset.button.y),0,0,14,14,,,WINDOWSIZE:%_width%:$ifgreater($getpvar(toppanel.hide),0,$add(%_height%,145),$sub(%_height%,145)),)
$button2($add($get(offset.button.x),2),$get(offset.button.y),0,0,14,14,A,x,PVAR:SET:toppanel.hide:$ifgreater($getpvar(toppanel.hide),0,0,1),)

Someone please post if there is a better way to combine these button commands. I tried several approaches and this was the only one that appeared to work.

On another note, I have a feature request. The $getpvar() function currently returns a boolean value of TRUE if it exists (regardless of its value) and FALSE if it does not. However the majority of other foobar functions will return boolean value of FALSE if the value the tested data is 0. I would like to be able to do things like
PVAR:SET:variable:$if($getpvar(variable),0,1)
for toggle buttons however this does not currently work as expected. I can accomplish this with $ifgreater() so this is not a pressing issue, however the code is more bulky and it would be nice if $getpvar() worked more like, for an example, $get().
Sorry, I misinterpreted something.

foo_ui_panels

Reply #473
This plugin is fr**king great... Maybe we will get a possibility to change double-click behaviour?




Bug report: Latest panels ui don't check for the file "user_profiles_enabled" in foobar's program folder. [...]
(BTW, excellent plugin. Love it.)

It was explained by terrestrial that the new version of PanelsUI moved the PanelsUI folder to the foobar2k root directory.  I'm not sure of the reason for the change, but it's not a bug.

Well it's not a bug per say, but it's not the expected behaviour - you would want all your configs to be more or less in the same place and obey the same rules, or at least I would.[...]
Still, the component is great, so I won't complain

I actually read the "added features" (a.k.a. "changes") and noted about the move of the configs (before posting but after screwing with the config). Problem is, this "fix" (although excellent for exchanging configs) breaks the whole plugin on systems where the user don't have write access to the program folder itself (places with uptight security administators). (((((((MS is after all trying to trying hard to fix security issues, and always running a system as administrator might not be the smartest thing to do. However....)))))))


The thing is, on Vista with UAC enabled by default (which I asume most people will be running), PanelUI will be magically stored in C:\Users\<USER>\AppData\Local\VirtualStore\Program Files\foobar2000 instead of %programfiles%\foobar2000. Unless you either disable UAC or run fb as administrator.

This of course will confuse alot of average joe, and actually make sharing config file more difficult on vista, now we have profile under \AppData\Local and some bits and pieces under \AppData\Local\VirtualStore.

I think the best solution is to stick with foobar profile directory and simply add a "Open Profile Directory" button in PanelUI's configuration page. People who want share profile can disable user profile and mess with file premissions any way.

foo_ui_panels

Reply #474
The thing is, on Vista with UAC enabled by default (which I asume most people will be running), PanelUI will be magically stored in C:\Users\<USER>\AppData\Local\VirtualStore\Program Files\foobar2000 instead of %programfiles%\foobar2000. Unless you either disable UAC or run fb as administrator.

This of course will confuse alot of average joe, and actually make sharing config file more difficult on vista, now we have profile under \AppData\Local and some bits and pieces under \AppData\Local\VirtualStore.

I think the best solution is to stick with foobar profile directory and simply add a "Open Profile Directory" button in PanelUI's configuration page. People who want share profile can disable user profile and mess with file premissions any way.

Question:
If in Vista people have file permission problems writing to the foobar install dir, how are they installing panels_ui (or any extra components) to begin with?
elevatorladylevitateme