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

foo_ui_panels

Reply #400
I did a search for my question so sorry if it's already been answered. I'm running Foobar2k 0.9.4.2 with Panels UI 0.6.1 in Windows XP SP2 and I've got Windows configured to use "standard" (greyscale) antialiasing for the operating system fonts. However, for some reason when I run Foobar with Panels UI the fonts in the playlist use cleartype rendering (the default UI and Columns UI don't do this, both use the "standard" rendering fine). I poked around the configuration files but couldn't find any explicit reference to cleartype. Is there some option to force Panels UI to use the Windows "standard" font rendering or is cleartype hard-coded into the plugin?

 

foo_ui_panels

Reply #401
I did a search for my question so sorry if it's already been answered. I'm running Foobar2k 0.9.4.2 with Panels UI 0.6.1 in Windows XP SP2 and I've got Windows configured to use "standard" (greyscale) antialiasing for the operating system fonts. However, for some reason when I run Foobar with Panels UI the fonts in the playlist use cleartype rendering (the default UI and Columns UI don't do this, both use the "standard" rendering fine). I poked around the configuration files but couldn't find any explicit reference to cleartype. Is there some option to force Panels UI to use the Windows "standard" font rendering or is cleartype hard-coded into the plugin?

Check the wiki for Trackinfo Mod for the exact command, but you can add 'nocleartype' to the options portion of your $font() function.  Ex -
Code: [Select]
$font(Arial,10,nocleartype,0-0-0)

foo_ui_panels

Reply #402
Check the wiki for Trackinfo Mod for the exact command, but you can add 'nocleartype' to the options portion of your $font() function.  Ex -
Code: [Select]
$font(Arial,10,nocleartype,0-0-0)

Thanks for the reply. Unfortunately the "nocleartype" parameter seems to just turn off antialiasing completely. Windows XP has three options for font antialiasing: none, standard (greyscale) and cleartype, and I want the second one. The wiki you pointed me to says that options for the $font function "can include bold, italic, underline, strikeout, nocleartype, glow- and shadow." The "can include" wording suggests that perhaps this list isn't exhaustive but I'm not holding out much hope. Anyway, thanks again.

foo_ui_panels

Reply #403
I dont know if it's possible at all and if it's been asked before, but I think it would be cool that we could use an image for the seekbar, like in Windows Media Player.

foo_ui_panels

Reply #404
I think I know the answer to this, but I just want a confirmation.  I'm using this button command in a Track Display -
Code: [Select]
'Scan Selection as Single Album'

to replaygain scan selected tracks as an album.  Issuing the command from the context menu works fine (or course), however when using the button -
1.  if nothing is playing, nothing happens
2.  if a track is playing, fb2k attempts to RG scan the now playing single track, ignoring my playlist selection

I think this is because button commands affect only now playing items at the moment, correct?  I think terrestrial plans to add the option to map button commands to selected items in the future though?

If I'm wrong, has anyone else made this work correctly?

foo_ui_panels

Reply #405
you are correct.
elevatorladylevitateme

foo_ui_panels

Reply #406
is there a better way to refresh the display other than right click -> settings -> click on text box -> type a letter -> hit backspace -> apply

foo_ui_panels

Reply #407
Foobar seems to crash about 80-90% of the time when I try to open the Panels UI configuration dialog. Is anyone else experiencing this problem? If I keep trying it eventually opens but I gotta go cleanup all the failure.txt files from my foobar directory and it's a bit annoying.
Another small bug, nothing major. If '%' (literally display percent sign) is used in the Configuration dialog code, the syntax highlighting is thrown completely off as it appears to treat the % as the beginning of a variable despite being enclosed in ticks for literal display. If changed to $char(37) the highlighting is restored to what is normally expected.

I was holding off and experimenting a bit before I made this claim, but changing my code from '%' to $char(37) has all but cured my problem with foobar crashing when I load the panelsui config. I suspect maybe the broken syntax highlighting may have been causing the crash. So, since a few others have reported similar issues I would reccomend that once you do actually get the configuration dialog to open.. scan through your code and see if you have any large blocks of code that are improperly highlighted. Consider alternate ways to code that block of text and see if this cures your problem.

foo_ui_panels

Reply #408
Does ui_panels support vertical scollbars? I know this was a limitation in track_info_mod. I can't seem to get an answer to this and it's not in the wiki. I have cide that is too long to display within track_info_panel without scrolling.

foo_ui_panels

Reply #409
wolfsong: No, the "Track Display" Panel included with Panels UI (formerly knows as foo_uie_trackinfo_mod) does not support scrolling. If it did, things like %_height% $align() would get interesting.

foo_ui_panels

Reply #410
wolfsong: No, the "Track Display" Panel included with Panels UI (formerly knows as foo_uie_trackinfo_mod) does not support scrolling. If it did, things like %_height% $align() would get interesting.

That's disappointing. It would be nice if TIM didn't have to rely so heavily on positioning.

terrestrial had mentioned that a future version would allow you to create buttons that didn't require absolute positioning but it hasn't happened yet. It's quite a pain to add a single button to the top of a list of buttons since every button then has to be repositioned.

foo_ui_panels

Reply #411
Hell, it's not like we're paying the guy.
elevatorladylevitateme

foo_ui_panels

Reply #412
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.


it sounds like you're doing something like:

$if(blah,
// PerSecond
persecond stuff....
// PerTrack
pertrack stuff..
)

which won't work. the // PerSecond, and // PerTrack blocks have to self contained since they are executed separately.


EDIT: I've found that moving the Playlist Tree Panel completely off-screen solves the redraw/refresh problem.  I was trying to reduce it's size to 0,0 or 4,4, etc, and that does not seem to affect anything, but moving it totally off-screen (when it shouldn't be shown, anyway) seems to work.  I love PTP, maybe it is refreshing queries... something. Thanks!


if you don't want to display a panel, no need to move it off scree or change its size... just don't display it (using $panel()) and it will be hidden.


Regarding text on aero glass in Windows Vista...

Both of the following methods will allow you to bypass the buggy text on glass. Text can now be drawn in any color.

Use GDI+ and use GraphicsPaths instead of just drawing the text. You can add a string of text to a GraphicsPath, perform transforms, apply shadowing or glow algorithms, and output it as if it were a PNG image with preserved alpha transparency. The text would display as if it was an image.

If you're still using regular GDI, you're missing out on the simplicity and power of GDI+.


yeah, only the image stuff uses gdi+. everything else is gdi.

2.  I can't get rotateflip-x to work along with nokeepaspect for images if I apply a rotation, ie rotateflip-1/3.  Flipping works ok, ie rotateflip-4/6.  Basically I have a 400x10 px PNG graphic to go around the edges of my SCPL.  I'm resizing it to %_width%x5.  It works ok on the top, but if I rotate it 90deg or 270deg for the sides, I can't get it to show up unless it is the original dimensions.  Adding nokeepaspect does not help.

If someone can confirm these problems, then I'll call it a bug.

PS - when using rotateflip-x (esp when rotating), are the coordinates of the image that X and Y refer to, determined before or after the rotation?  Mainly I'm referring to specification of the cropping corner and cropping dimensions, but also to the 'origin' corner (usually 0,0 and the top left corner).  I guess that's the same thing, but you get the idea.


fixed for the next version. the image is rotated first, and then fitted/cropped.

My playlist drop down menu isn't working as expected, it starts off fine. Then after restarting foobar pop up list stops showing correctly. When I uninstall the component and its settings and remove the code, then redo everything it all works again - until I restart.


you mean the context menu?

BUG: Placing a seekbar toolbar on top of a Track Display panel appears to suffer from the same flickering refresh problems that the spectrum analyser once did. Spectrum analyser now works well, is anyone else noticing the flickering on the seekbar?


yeah, it's either have the flicker or the ability to overlay track info over other panels.

Now I have a question. Is it possible to use a $select in the SCPL 'Group by' code and change settings there with a $getpvar? It doesn't seem to be working for me at least. :/


no, the indexing is only done one and pvar changes won't cause a reindex. moving/deleting items, however will cause a reindex.

I have a request, I have found that as I build up the themes available for my configuration the panels code begins to get cluttered with the likes of

"if theme 1... set these variables (30 or so)
if theme 2... set another 30
..."

This makes managing and customising the code difficult.

I would love to be able to say, "if theme 1 load variables from "theme1.txt" which is just a text file formatted for panelsUI and imported directly in. Then in the actual code all I would need it one $select function to switch between all the themes - nicely separating variables and design.


well, with the .pui file, the idea is to have one self contained file with all the necessary configuration information stored inside it and having external .txt files would complicate this a bit. I have been thinking about having some sort of "global" section (similar to columns ui globals) to make managing common stuff easier.

I have a little problem with PVAR and i was wondering if it came from my code. I have a button in my panelUI config which aim is to change my SCPL layout:

$button2($sub(%_width%,90),$sub(%_height%,30),0,0,26,22,'$imageabs2(,,0,44,26,22,0,0,'images/ayofe/ViewButtons.tiff',)','$imageabs2(,,0,44,26,22,0,0,'images/ayofe/ViewButtons.tiff',)',PVAR:SET:scp.display.mode:0,)

I put a test in my group display in SCP to see this change:

$select($add($getpvar(scp.display.mode),1),!noheader,%album%,%album%)

My problem is that SCP doesnt see the change.

It works between Track Display and PanelUI but not in this case.
Does anyone managed to make something like that work?


SCPL doesn't "see" pvar changes like track display (and the panels ui base) do. however, if you change the pvar, then move a track inside scpl it should change.

Is there a way to toggle between "Now Playing" and "Follow Cursor" other than the right-click menu? Either a button command or a pvar, perhaps?


you could have two different track displays- one set to follow mode and one set to now playing and automatically switch between then depending on the playback state.

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

I've uploaded a new version, with two changes that need to be taken into account if you're upgrading:

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.

2) There can be multiple buttons over the same area and all will be executed (with the caveat below), instead of just the "last" one. The caveat is that button processing stops when a context menu / main menu button is executed. so you can have a PVAR:SET button, a WINDOWSIZE button, and then a button to change layout, but you can't have a change layout button, followed by a PVAR:SET button, etc (since to change layouts you use the main menu).


foo_ui_panels

Reply #414
I'd really, really like to see the text use GDI+ as well. Especially if you use GraphicsPaths so that we can place proper text on Vista glass.

foo_ui_panels

Reply #415
2) There can be multiple buttons over the same area and all will be executed (with the caveat below), instead of just the "last" one. The caveat is that button processing stops when a context menu / main menu button is executed. so you can have a PVAR:SET button, a WINDOWSIZE button, and then a button to change layout, but you can't have a change layout button, followed by a PVAR:SET button, etc (since to change layouts you use the main menu).


Just trying to understand the change to buttons, is this what what you mean:

Code: [Select]
$button(1,1,0,0,16,16,,,PVAR:SET:pvar:1,)
$button(1,1,0,0,16,16,,,Play,)


The two buttons are obviously overlapping, so will they be executed one after the other, first setting the pvar than pressing play?

foo_ui_panels

Reply #416
Strange, with the last version :

-I cant close foobar

-my dropdowns and menus doesnt open anymore. And Ctrl-P doesnt work so i cant go to the preferences :$

Could someone upload the version 0.6?

foo_ui_panels

Reply #417
Strange, with the last version :

-I cant close foobar

-my dropdowns and menus doesnt open anymore. And Ctrl-P doesnt work so i cant go to the preferences :$

Could someone upload the version 0.6?

I have none of the problems you describe. Though I have uploaded the old version for you. See PM for URL.

Thanks terrestrial for the new version

foo_ui_panels

Reply #418
Ok so it come from my config somehow.
Thanks a lot for the upload anyway

EDIT: Found the guilty one.
Prettypopup and the last panelsui are not compatible. Dont know why yet as the symptoms  are quite strange

foo_ui_panels

Reply #419
Very glad to see you back, Terrestrial, and eager to try the new version.

Maybe what I"m going to say is impossible... yet it happens!  The Playlist Tree Panel WILL cause problems (not serious ones) even if it is not displayed, ie:

Code: [Select]
$ifequal($get(foo),0,
     $panel(.. playlist tree panel),
     $panel(... other panel same coordinates)
)


is used.  It appears to me that it is redrawing the tree, but of course it happens very quickly.  So, just a flash.  I'll do more testing, take out the PTP altogether, and see if that is, for sure, what is going on.  If I am scripting, when a track changes, everything in foober2000 (except the sound) freezes for a second or two.

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).

Thanks!  Having a great time working with PanelsUI.

foo_ui_panels

Reply #420
Ok so it come from my config somehow.
Thanks a lot for the upload anyway

EDIT: Found the guilty one.
Prettypopup and the last panelsui are not compatible. Dont know why yet as the symptoms  are quite strange
It's also incompatible with foo_oddcastv3 and foo_title (dotnet_title.dll + foo_managedWrapper.dll).

To your symptoms, I can add inability to scroll anything that can scroll, and form a selection in the playlist.

foo_ui_panels

Reply #421
Using the new version... seems like $imageabs2 is causing shrinked images to look a little more blurish compared to version 0.6, in this case, album art at about 500x500px shrinked to 142x142px.

foo_ui_panels

Reply #422
Using the new version... seems like $imageabs2 is causing shrinked images to look a little more blurish compared to version 0.6, in this case, album art at about 500x500px shrinked to 142x142px.

Same here

foo_ui_panels

Reply #423

...
I would love to be able to say, "if theme 1 load variables from "theme1.txt" which is just a text file formatted for panelsUI and imported directly in. Then in the actual code all I would need it one $select function to switch between all the themes - nicely separating variables and design.


well, with the .pui file, the idea is to have one self contained file with all the necessary configuration information stored inside it and having external .txt files would complicate this a bit. I have been thinking about having some sort of "global" section (similar to columns ui globals) to make managing common stuff easier.


I am thinking more along the lines of an HTML/CSS partnership, where your content is separated from design. I don't see why a function such as:
$import('%profile_directory%/variabledata.txt')
would complicate things - it would just be an option for users that want the same general design but with different variable values.

My exact problem is, I have around 55 variables that determine shape and colour of my configuration, with some refinements I can pair this down a lot. However now that I have a black and white theme within the PUI, so that users can choose between them, I have to have 110 variables defined. For a user to then scan through these variables and change the correct ones becomes complicated. Ideally I want to have two more colour themes in my design, this would be 220 variables and the code to select between them would bog it down further, let alone finding the correct variable to edit.

Importing from files would also let me do a lot of other interesting things like scraping info from the web via a custom run command, storing that in a text file and importing it into foobar to display, all within a few seconds.

I guess I could have a hidden track display panel containing the variables for each colour theme. But then it's harder for users to find the correct file to edit (it's proven difficult to get most new users to set just one variable). Would it perhaps be possible to get a button action that lets you open a particular panel for editing?

foo_ui_panels

Reply #424
Bug (?) report:
With the latest version i get massive memory leaking while playing track.
Task manager indicates that after a track switch fb2k allocates additional RAM for album art caching (as usual),
but then keeps allocating RAM with spontaneous jumps during track's playback.
The $imageabs2 statement is under // PerTrack section,the OS is Win XP x64 and the components are:
Favourite artist:CD-R
Favourite album:700MB