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

foo_ui_panels

Reply #325
Well, you can use both, but only one of them at one time, either ' or " ! (I'm from germany, we use " mostly)

In foobar2000 titleformatting scripts you can use only single quotes to enclose literal, uninterpreted text. Other programming languages might allow both (often with slightly different meanings), and natural languages are a completely different matter.

foo_ui_panels

Reply #326

@elemakil

You must use single quotes ' only.  I can't think of anywhere off the top of my head where double quotes " are used.

(I'm from germany, we use " mostly)

anyways ..
greetings, elemakil


Can I take issue with that? A single quote has a very specific use in punctuation, it only needs to be used if one is directly quoting someone from within a spoken text. Linguistically, it has no other use, but they are not interchangeable, just as in FB2K.



foo_ui_panels

Reply #329
Code: [Select]
$glass(0,0,0,30)

$puts(yOffset,0)

$if(%_trackinfo_notrack%,
$glass(0,0,0,30)
,
$puts(yOffset,75)
$glass(0,0,75,30)
$alignabs(0,0,%_width%,75,center,middle)$font(Swis721 Cn BT D-Type,13,bold,98-105-113)
%artist%$char(10)
$font(calibri,9,bold,120-120-120)%title%$char(10)
)
$imageabs2(70,70,0,0,70,70,0,0,'c:\users\Todd\appdata\roaming\foobar2000\images\noalbum.png',)
$imageabs2(70,70,0,0,70,70,0,0,$replace(C:\Program Files\foobar2000\album art\%artist% - %album%.jpg,,?,),)
$imageabs2(70,70,0,0,70,70,0,0,$replace(%path%,%filename_ext%,)folder.jpg,NOKEEPASPECT)
$imageabs2(70,70,0,0,70,70,0,0,'c:\users\Todd\appdata\roaming\foobar2000\images\artoverlay2.png',)

$panel(Spectrum,Spectrum analyser,340,30,150,40,)

//$panel(Dropdown,Playlists Dropdown,0,$get(yOffset),%_width%,20,)
$panel(Quick Search Toolbar,Quick Search Toolbar,0,$get(yOffset),%_width%,20,)
$puts(yOffset,$add($get(yOffset),20))
//$panel(FilterAndSort,Track info mod,0,$get(yOffset),%_width%,20,)
//$puts(yOffset,$add($get(yOffset),20))

$panel(Playlist,Single Column Playlist View,0,$get(yOffset),%_width%,$sub(%_height%,$add($get(yOffset),30)),)

$button(0,$sub(%_height%,25),0,0,0,0,images\buttons\prev.png,,previous,)
$button(30,$sub(%_height%,23),0,0,0,0,images\buttons\stop.png,,stop,)
$button(60,$sub(%_height%,21),0,0,0,0,images\buttons\play.png,,play or pause,)
$button(90,$sub(%_height%,25),0,0,0,0,images\buttons\next.png,,next,)

$button(175,$sub(%_height%,15),0,0,0,0,images\buttons\voldown.png,,volume down,)
$button(194,$sub(%_height%,20),0,0,0,0,images\buttons\eq.png,,equalizer,)
$button(215,$sub(%_height%,19),0,0,0,0,images\buttons\volup.png,,volume up,)

$button(250,$sub(%_height%,20),0,0,0,0,images\buttons\open.png,,open...,)
$button(270,$sub(%_height%,22),0,0,0,0,images\buttons\radio.png,,add location...,)


alright guys i dont know if anyone even will take the time to help i like this plugin ive been trying my best to figure it out but the pvars and such just got me so lost, and im super n00b at coding anyway. well if you look at the configs the original is my normal config the 2nd is what im working on and what im looking for help on. if anyone can help me with the code that would be good. i cannot seem to get the eq to have a transparent background. trying to get a elapsed bar to be centered below the artist and the title kinda like the pic.

also i was able to get the search bar to show up but i want it to be below the SCP as well as i want it to havea  button to the right where it scrolls between search/dropdown playlist/seekbar/menu

then below the buttons and all that at the very button i want a track info mod like my top image has except that spans across the entire bottom.

and last if u look at the 3rd pic i wanted to have it appear as it does wen its playing instead of closing the top area as well as the eq seems to move down to the scp im sure when the 1st part is fixed it would fix that issue as well.

sorry to be a newbie ive just been trying for over a week and i just cannot seem to get any further then i have.

foo_ui_panels

Reply #330
Hi Terrestrial. Great component!

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

 

foo_ui_panels

Reply #331
Your plugin is working perfectly for me, but I have a request to have the pvars also accessible not only by buttons but the same way as the $puts function. I am making a code when I resize my foobar window changes occur, and I don't think this is already possible without buttons?. sorry for the bad english.

foo_ui_panels

Reply #332
djtoodles:
The Columns UI spectrum analyser component does not support transparent background.

Where do you want the elapsed bar, in the playlist or another panel? Do you just want something to look at or do you want something functional to use like the seekbar toolbar?

For the multifunction bar you can probably do something like this:
Code: [Select]
$select($add($getpvar(display.bar),1),
$panel(Menu,Menu,0,0,$sub(%_width%,25),20,)
,
$panel(Progress,Seekbar,0,0,$sub(%_width%,25),20,)
,
$panel(Playlists,Playlists Dropdown,0,0,$sub(%_width%,25),20,)
,
$panel(Search,Quick Search Toolbar,0,0,$sub(%_width%,25),20,)
)

$button2($sub(%_width%,20),0,0,0,20,20,X,x,PVAR:SET:display.bar:
$ifgreater($getpvar(display.bar),2,0,$add($getpvar(display.bar),1))
,)


I'm not sure what you are asking for about the trackinfo panel but if you only want to display a trackinfomod panel at the bottom when a track is playing you can do something like this:
$if(%_isplaying%,
$panel(Info,Track Display,0,$sub(%_height%,140),%_width%,140,)
,)

But you'll also need to use $if(%_isplaying%,,) to reposition and resize your other panels too.

EDIT: had x and y flipped on the button code

foo_ui_panels

Reply #333
Spectrum analyser works fine for me on top of glass, the background color to use is black and the only foreground color you can use is white.

foo_ui_panels

Reply #334

when i tried the code you gave me this is what happened. i also posted the code below so u can see if i did anything wrong.
Code: [Select]
$glass(0,0,0,30)

$puts(yOffset,0)

$if(%_trackinfo_notrack%,
$glass(0,0,0,30)
,
$puts(yOffset,105)
$glass(0,0,105,30)
$alignabs(0,0,%_width%,105,center,middle)$font(Swis721 Cn BT D-Type,13,bold,98-105-113)
%artist%$char(10)
$font(calibri,9,bold,120-120-120)%title%$char(10)
)

// EQ
$panel(Spectrum,Spectrum analyser,340,60,150,40,)

// Top Album Art
$imageabs2(100,100,0,0,100,100,0,0,'c:\users\Todd\appdata\roaming\foobar2000\images\noalbum.png',)
$imageabs2(100,100,0,0,100,100,0,0,$replace(C:\Program Files\foobar2000\album art\%artist% - %album%.jpg,,?,),)
$imageabs2(100,100,0,0,100,100,0,0,$replace(%path%,%filename_ext%,)folder.jpg,NOKEEPASPECT)
$imageabs2(100,100,0,0,100,100,0,0,'c:\users\Todd\appdata\roaming\foobar2000\images\artoverlay2.png',)

// Single Column Playlist
$panel(Playlist,Single Column Playlist View,0,$get(yOffset),%_width%,$sub(%_height%,$add($get(yOffset),30)),)


// Menu/Seek/Playlist/Quicksearch
$select($add($getpvar(display.bar),1),
$panel(Menu,Menu,0,0,$sub(%_width%,25),20,)
,
$panel(Progress,Seekbar,0,0,$sub(%_width%,25),20,)
,
$panel(Playlists,Playlists Dropdown,0,0,$sub(%_width%,25),20,)
,
$panel(Search,Quick Search Toolbar,0,0,$sub(%_width%,25),20,)
)

$button2(0,$sub(%_width%,20),0,0,20,20,X,x,PVAR:SET:display.bar:
$ifgreater($getpvar(display.bar),2,0,$add($getpvar(display.bar),1))
,)

// Buttons
$button(0,$sub(%_height%,24),0,0,0,0,images\panbutt\prevb.png,,previous,nobkgnd)
$button(45,$sub(%_height%,28),0,0,0,0,images\panbutt\playb.png,,play or pause,nobkgnd)
$button(78,$sub(%_height%,23),0,0,0,0,images\panbutt\nextb.png,,next,nobkgnd)

$button(175,$sub(%_height%,15),0,0,0,0,images\buttons\voldown.png,,volume down,)
$button(194,$sub(%_height%,20),0,0,0,0,images\buttons\eq.png,,equalizer,)
$button(215,$sub(%_height%,19),0,0,0,0,images\buttons\volup.png,,volume up,)

$button(250,$sub(%_height%,20),0,0,0,0,images\buttons\open.png,,open...,)
$button(270,$sub(%_height%,22),0,0,0,0,images\panbutt\radio.png,,add location...,nobkgnd)
$button(295,$sub(%_height%,22),0,0,0,0,images\panbutt\prefs.png,,preferences,nobkgnd)

// Bottom Track Info
//$if(%_isplaying%,
//$panel(Info,Track Display,0,$sub(%_height%,140),%_width%,140,)
//,)

foo_ui_panels

Reply #335
I'm having a little trouble here and need some verification before I call it a bug.

1.  I can't seem to use $imageabs2() functions in the main PanelsUI config under the // Background section.

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.


foo_ui_panels

Reply #337
djtoodles:
To move those panels down to the bottom, change the 2nd parameter of all the $panel() functions inside the $switch() to something like $sub(%_height%,45) instead of 0. The button I made a mistake in my origional post regarding the position. I also used just the letter X for the button, you'll probably want to whip up some images for the button. You may also need to draw a background for the button to show up if you are not using a bitmap. Try something like this:
Code: [Select]
$select($add($getpvar(display.bar),1),
$panel(Menu,Menu,0,$sub(%_height%,45),$sub(%_width%,25),20,)
,
$panel(Progress,Seekbar,0,$sub(%_height%,45),$sub(%_width%,25),20,)
,
$panel(Playlists,Playlists Dropdown,0,$sub(%_height%,45),$sub(%_width%,25),20,)
,
$panel(Search,Quick Search Toolbar,0,$sub(%_height%,45),$sub(%_width%,25),20,)
)

$drawrect($sub(%_width%,20),$sub(%_height%,45),20,20,pencolor-255-255-255 brushcolor-255-255-255)
$button2($sub(%_width%,20),$sub(%_height%,45),0,0,20,20,X,x,PVAR:SET:display.bar:
$ifgreater($getpvar(display.bar),2,0,$add($getpvar(display.bar),1))
,)

foo_ui_panels

Reply #338
djtoodles:
To move those panels down to the bottom, change the 2nd parameter of all the $panel() functions inside the $switch() to something like $sub(%_height%,45) instead of 0. The button I made a mistake in my origional post regarding the position. I also used just the letter X for the button, you'll probably want to whip up some images for the button. You may also need to draw a background for the button to show up if you are not using a bitmap. Try something like this

ok i  got that code to work right except for the menu and the dropdown playlist are showing a glass background for those 2 whiches makes it hard to see anything. is there a way for me to change that for those 2 so its visable? thats if i changed the height to move it to the glass

if i keep it at 45 where u had it the right button doesn show an X and i kinda have to search around to find th ebutton and when i do it makes the menu/seekbar n such have a black bar behind them.


note: not sure if this will be confusing or not but thats if the glass is set to cover that section so when no button is there is shows glass. now if i move the playlist to offset 50 it makes that area black everything works fine there but with a black bar behind it. but even then the menu items still have the glass affect.

IMAGE WITH GLASS EXTENDED ONTO PANEL


IMAGE WITH NO GLASS

foo_ui_panels

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

foo_ui_panels

Reply #340
djtoodles:
Try drawing a background behind the panels. Stick a line like this before the $panel() giving you a black background:
$drawrect(0,$sub(%_height%,45),$sub(%_width%,25),20,pencolor-255-255-255 brushcolor-255-255-255)

foo_ui_panels

Reply #341
Does anyone else experience flickering of their vis spectrum when placed on top of a track display?

Code: [Select]
$panel(Now Playing,Track Display,$get(xOffset),3,$sub(%_width%,5),638,)
$panel(Vis,Spectrum analyser,8,$sub(%_height%,100),$sub(%_width%,16),64,)




It just keeps flickering.
Any help is appreciated.
- FLAC/200GB external
- AAC 128 vbr/local
- iPod Nano 2G 8GB

foo_ui_panels

Reply #342
I found one bug? : I minimize foobar to taskbar while song is playing. Now if track changes, foobar main window title doesn't update (previous song name stays there).

foo_ui_panels

Reply #343
Your plugin is working perfectly for me, but I have a request to have the pvars also accessible not only by buttons but the same way as the $puts function. I am making a code when I resize my foobar window changes occur, and I don't think this is already possible without buttons?. sorry for the bad english.


$setpvar(variable name,value)

foo_ui_panels

Reply #344
I'm having a little trouble here and need some verification before I call it a bug.

1.  I can't seem to use $imageabs2() functions in the main PanelsUI config under the // Background section.

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.

Ok, did a little more testing here at home.  As mil3s said, it does work in // Background section.  Not sure what's going on at work.

I'm still having trouble with the rotateflip option though.  For example -
Code: [Select]
This works
$imageabs2(75,75,,,,,20,200,'/images\red\playr.png',rotateflip-3 nokeepaspect)

This doesn't
$imageabs2(75,50,,,,,20,200,'/images\red\playr.png',rotateflip-3 nokeepaspect)

The image is a simple 32x32 button.  In the second example, the image is missing completely.  If I remove 'nokeepaspect' from the line, it works ok, but that makes it unusable.

foo_ui_panels

Reply #345
have you tried:
...,rotateflip-3nokeepaspect) 
?
elevatorladylevitateme

foo_ui_panels

Reply #346
@shakey
Nope, no luck.  Honestly, I didn't know omitting spaces was an option.  Either way, no go.

foo_ui_panels

Reply #347
meh, maybe it isn't.
how about putting nokeepaspect first, or putting a - between the two?
elevatorladylevitateme

foo_ui_panels

Reply #348
Already tried the changing the order, no difference.  I don't believe that a dash is allowed either.  It has something to do with the resizing, but I have no idea what triggers it.  If I remember correcty, this worked ok in older versions of Track Info Mod, before it was all merged.

It seems any resizing that alters the aspect ratio breaks something when using rotateflip.

foo_ui_panels

Reply #349
I think I have found a bug - well SCPL is behaving slightly differently in Panels UI than Columns UI.  I think some other users have been describing this - it relates to the mouse scrollwheel functionality.  Basically if you change focus (bring up the file properties for example) under Panels UI you need to click the LMB in the SCPL to get scrollwheel functionality.  In Columns UI you don't need to click to get the scrollwheel functionality.

Would be great if this could be 'fixed'.

Great plugin btw.