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

foo_ui_panels

Reply #375
I recognized a strange effect 
I posted in this topic a code for "now playing" notes and becuase of missing unicode support the notes were shown as ??? and also in SCPL
Now I recognized that the notes were shown although in code there were just  "???".

I am still using 0.4.2
Some else has this strange effect?

A question about plugin apdating too:
How can I backup my layout in case there are problems to import this into 0.6.1 ?
When will there be unicode support?
Or is this already available?

Request: Better support for Egoh spectrum analyser.
It isn't possible to configure it

foo_ui_panels

Reply #376
The safest way to do this (and to get help via copy and paste into this forum) is to use $char() after a font statement that contains the referenced $char().

Safest way to backup a config is still to copy and paste code to a text file.  That's how I do it just to be sure nothing gets blown away.  There was a change to how PanelsUI stores the layout from v0.4 to v0.5+, so copy and paste is a GREAT idea.

 

foo_ui_panels

Reply #377
at unicode Support. I found out some $char seem to work but not everything. I thought it was because terrestrial said that he added no unicode support.

Thanks for your answer.For me it is horrible to loose all the code and the work behind it. 

So know I will copy and paste 

foo_ui_panels

Reply #378
Feature request: Window title adjustments. Currently, it's set to either follow cursor or follow playback, but that's a little annoying for me.

foo_ui_panels

Reply #379
Occasionally, when shutting down Windows Vista with foobar open, panels_UI seems to create a default.pui and will try to load that on startup. However, when it does this, foobar won't actually open. It will be running in task manager but it will be nowhere to be found on the desktop or system tray.

This only seems to happen on my Vista box at work. It may have something to do with Vista, but it may also have something to do with me running foobar on my second monitor. Maybe it isn't related to either of those. Anyhow, here is the default.pui file it is creating in case it helps in the diagnosis:

default.pui

foo_ui_panels

Reply #380
at unicode Support. I found out some $char seem to work but not everything. I thought it was because terrestrial said that he added no unicode support.

I'm sure you know better than I about actual unicode support.  However I've never had a problem with $char() not working as long as the $char() I was referencing actually existed in the font I was using.

To be safe, set a font with $font() then use $char().  Check the Windows Character Map to be sure what you want to use exists in the specified font and the unicode number is correct.

foo_ui_panels

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

foo_ui_panels

Reply #382
@FofR
That's a nice idea.  I think future support will also be added to call different .pui files from buttons.  That will also be a nice one-click layout change.  Easy to keep code separated as well.

foo_ui_panels

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

to further awesomeness this idea, the textfiles could become objects:
example:
Code: [Select]
$getpvar(layoutShakey.fontsize)

where setting fontsize is stored in a textfile named layoutShakey
elevatorladylevitateme

foo_ui_panels

Reply #384
how do I get a good looking carriage return with this component?

$crlf() adds an ugly block.

foo_ui_panels

Reply #385
@FofR
Thanks for the config you posted. But, I don't understand how to use it. You use pvars to $put() into other variables. I don't understand the rationale for this, or how to initialize the pvars in the first place, since, according to the wiki pvars can only be set in button. Thanks.

foo_ui_panels

Reply #386
How the hell do i make an image dynamic so itll stay on the center no matter how i resize the window? i can do this on panels, but i cant figure out how to make an image dynamic :S

foo_ui_panels

Reply #387
How the hell do i make an image dynamic so itll stay on the center no matter how i resize the window? i can do this on panels, but i cant figure out how to make an image dynamic :S

If you want to center
- horizontally: the left position of your image should be
Code: [Select]
$div($sub(%_width%,your_image_width),2)

- vertically: the top position of your image should be
Code: [Select]
$div($sub(%_height%,your_image_height),2)


As far as I remember, it can be added in any section (background, per track or per second)

foo_ui_panels

Reply #388
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?

foo_ui_panels

Reply #389
I'm not sure if anyone has mentioned this yet but I have had a lot of success making panels work on glass by setting their background to $rgb(0,0,0). I even made a track display panel work by using the following line:
$drawrect(0,0,0,0,brushcolor-0-0-0)

It's not perfect though, foreground colors get distorted when used on glass but it sure makes for some interesting effects.

foo_ui_panels

Reply #390
Quote
I've tried PanelsUI and found that album art inside playlist is easily ruined if one of the tracks is missing. Like, if you don't have the first few tracks album art will have its top part cut (corresponding to the rows for tracks that 'should' be there).
I gather that there have been a limitation of that sort in ColumsUI (that is, it cannot look ahead and see how much tracks you have, only blindly assigning 1 row for 1 track, so missing tracks = missing rows for anything it tries to display alogside the tracklist).
So, is that problem still not solved?

use %totaltrack% and an if statement eg if %totaltracks% greater than 4 show album art

No, you've probably misunderstood me. It is not short tracklists that cause the problem, it is the fragmented ones that do. Missing tracks - missing image parts.

foo_ui_panels

Reply #391
Quote
I've tried PanelsUI and found that album art inside playlist is easily ruined if one of the tracks is missing. Like, if you don't have the first few tracks album art will have its top part cut (corresponding to the rows for tracks that 'should' be there).
I gather that there have been a limitation of that sort in ColumsUI (that is, it cannot look ahead and see how much tracks you have, only blindly assigning 1 row for 1 track, so missing tracks = missing rows for anything it tries to display alogside the tracklist).
So, is that problem still not solved?

use %totaltrack% and an if statement eg if %totaltracks% greater than 4 show album art

No, you've probably misunderstood me. It is not short tracklists that cause the problem, it is the fragmented ones that do. Missing tracks - missing image parts.

Then use %_itemindex% instead of %tracknumber%

foo_ui_panels

Reply #392
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?

I tried a while ago to do the same thing but it doesn't work.

foo_ui_panels

Reply #393
Then use %_itemindex% instead of %tracknumber%

How can you then ensure that the art shows at the start of the group? EDIT: A tutorial on how to do this would be nice on fooblog.

@jonpb: Please post Config questions in the correct place or in the comments on the blog.
I use $setpvar to set the PVAR. I put these into $puts commands as it offered a quick way of moving variables out of one panel and into another and helped me create a global configuration section.

foo_ui_panels

Reply #394
how do I get a good looking carriage return with this component?

$crlf() adds an ugly block.

I think $char(10) should work for you.

@carmenm
The SCPL layout is only drawn once when foobar is opened, or for new tracks when they are added (I know this is true for the 'Group Header' anyway).  The only way to redraw this, that I've found, is to restart foobar.  So changing by button at this point I don't think will work.

EDIT:  or SCPL is not aware of PVAR changes yet.  Perhaps this has only been implemented between Panels main config and Track Display?

@Yotsuya
I believe Terrestrial mentioned a while back, that on top of glass colors equate to transparency.  Black is transparent and white is opaque.  Anything else is going to be some strange looking partially transparent color.  That's why it was mentioned to use black as background and white as foreground for the spectrum analyser, for example.


foo_ui_panels

Reply #396
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?

Terrestrial, thanks for this plugin so far - I can see some really interesting things happening with this one.

-Nate

foo_ui_panels

Reply #397

How the hell do i make an image dynamic so itll stay on the center no matter how i resize the window? i can do this on panels, but i cant figure out how to make an image dynamic :S

If you want to center
- horizontally: the left position of your image should be
Code: [Select]
$div($sub(%_width%,your_image_width),2)

- vertically: the top position of your image should be
Code: [Select]
$div($sub(%_height%,your_image_height),2)


As far as I remember, it can be added in any section (background, per track or per second)


Sadly, i dont get it
Could you make an example?

foo_ui_panels

Reply #398
Basically, you want the middle of your image in the middle of the panel. e.g. For a 200 pixel picture on a 1024x pixel panel you want the 100 pixel mark to be at 512 pixels across. We can only define the starting point from the left edge of the image, which is of course 100 pixels further left. So we choose to set the image corner at 412 pixels across.

Now the maths:
panel width - image width: 1024-200 = 824
divide this by 2: 824 / 2 = 412

foo_ui_panels

Reply #399
Basically, you want the middle of your image in the middle of the panel. e.g. For a 200 pixel picture on a 1024x pixel panel you want the 100 pixel mark to be at 512 pixels across. We can only define the starting point from the left edge of the image, which is of course 100 pixels further left. So we choose to set the image corner at 412 pixels across.

Now the maths:
panel width - image width: 1024-200 = 824
divide this by 2: 824 / 2 = 412


Ok, but i dont get where/how to put the string above... =\