Recommended Posts

i cannot get the hang of panelsui..... i can't figure out how to add panels or anything, i understand it's far superior to columnsui but columns were so easy, it's seems like now you have to know code in order to customize your foobar. :(

i cannot get the hang of panelsui..... i can't figure out how to add panels or anything, i understand it's far superior to columnsui but columns were so easy, it's seems like now you have to know code in order to customize your foobar. :(

you could always, you know, use columns.

How about share your config? :yes:

Alright....

Panels UI Config:

// Background
$glass(8,8,95,24)

// PerTrack

$panel(Playlist,Single Column Playlist,8,116,$sub(%_width%,16),$sub(%_height%,140),)
$panel(ButtonsControl,Buttons,8,$sub(%_height%,22),144,24,)
$panel(Seekbar,Seekbar,142,$sub(%_height%,22),$sub(%_width%,200),24,)
$panel(Volume,Volume,$sub(%_width%,48),$sub(%_height%,22),40,24,)
$panel(Vis,Spectrum analyser,$sub(%_width%,28),28,20,60,)

$puts(cover,$replace(%path%,%filename_ext%,cover.jpg))
$puts(gloss,C:\Program Files\foobar2000\images\CD Case\gloss.png)
$puts(cd,C:\Program Files\foobar2000\images\CD Case\cd.png)
$puts(case,C:\Program Files\foobar2000\images\CD Case\case.png)

$imageabs2(100,93,,,,,8,0,$get(case),)
$if(%isplaying%,$imageabs2(82,82,,,,,54,6,$get(cd),)
$imageabs2(84,85,,,,,19,4,$get(cover),nokeepaspect)
$imageabs2(100,93,,,,,9,0,$get(gloss),alpha-160),)

$if(%isplaying%,
$font(Corbel,12,,SYSCOL-0)
$alignabs(144,4,$sub(%_width%,168),22,left,top)
[%artist%]
$font(Corbel,9,,SYSCOL-0)
$alignabs(144,72,$sub(%_width%,168),32,left,top)
[%date%]
$alignabs(144,40,$sub(%_width%,168),32,left,middle)
[%album%]
$alignabs(144,16,$sub(%_width%,168),32,left,middle)
[%title%],)

SCPL Group Display (still em3's layout)

Row Height 20, edge: none

$font(Calibri,8,,)
$puts(tracktitle,
	$if($meta_test(artist),%artist%,$substr(%_filename%,1,$sub($strstr(%_filename%, - ),1)))
	$if($or($meta_test(artist,title),$strstr(%_filename%, - )), - )
	$if($or($meta_test(title),$not($strstr(%_filename%, - ))),
	%title%,$substr(%_filename%,$add($strstr(%_filename%, - ),3),$len(%_filename%))))

$puts(li,$calcwidth(%list_index%))
$puts(margins,$sub(%_width%,55,$add($get(li),16)))
$puts(charWidth,$div($calcwidth($get(tracktitle)),$len($get(tracktitle))))

$ifequal($mod(%_itemindex%,2),0,,$drawrect(0,0,0,0,pencolor-0-0-0 alpha-6))
$imageabs2($add($get(li),10),%_height%,0,0,0,0,0,0,images\li1.png,nokeepaspect)
$imageabs($add($get(li),9),0,images\li2.png,)

$if(%_selected%,
$imageabs(0,0,images\sel1.png,)
$imageabs2($add($get(li),9),%_height%,0,0,0,0,2,0,images\sel2.png,nokeepaspect)
$imageabs($add($get(li),9),0,images\sel3.png,)
$imageabs2(%_width%,%_height%,0,0,0,0,$add($get(li),11),0,images\sel4.png,nokeepaspect)
$imageabs($sub(%_width%,2),0,images\sel5.png,))

$padding(4,3)$align(left,top)
$if(%_selected%,$font(,,,0-77-153),$font(,,,0-0-0))
$if(%isplaying%,$imageabs($sub($div($add($get(li),11),2),6),4,images/playing.png,),%list_index%.)

$alignabs($add($get(li),16),3,%_width%,20,left,top)
$ifgreater($calcwidth($get(tracktitle)),$get(margins),
	$left($get(tracktitle),$sub($sub($len($get(tracktitle)),$div($sub($calcwidth($get(tracktitle)),$get(margins)),$get(charWidth))),3))'...'
	,$get(tracktitle))

$align(right,top)%length%

Images (have to be in foobar2000\images\) and Buttons below...

Well, guess that's it :)

images.zip

Foobar_Buttons_Silk.zip

There's a new HA thread for that, if you want to share it there, too:

http://www.hydrogenaudio.org/forums/index....showtopic=52890

Using panels, is there a way to get the playback order drop down? I tried figuring out the control ID, but was clueless.
the Panel name is Playback order
the Panel name is Playback order

Thanks. Now I need to figureo ut if it's possible to have the text like the title bar, black with a white glow. Right now, it doesn't seem those font styling in the trackinfo panel work.

Thanks. Now I need to figureo ut if it's possible to have the text like the title bar, black with a white glow. Right now, it doesn't seem those font styling in the trackinfo panel work.

That's because the track info panel is using normal GDI+ text drawing as far as I can tell. Terrestrial would need to add support for DrawThemeTextEx in order to draw the text like the title bar text on Vista. If not, he can always use GDI+ to draw text into a GraphicsPath at 1/5th size and then transform it back to normal size to create the blur, then draw the normal text over that. I can provide sample code as used in NeoCleaner.

I've got this problem with my foobar such that whenever i click on a plylist tree item or a foo_browser item, it doesn't display in the colums panel. i have to use the search before it is disaplyed. anyone knows how i should go about solving this? Thanks.

In preferences for each component make sure you've got Automatically activate ticked

(found under where you choose the playlist name).

Just an FYI for anybody who hasn't figured it out, you can't use black text on the glass parts in Panels UI. The closer to black you get the more transparent it gets. It kinda sucks... So I went ahead and I'm building a bit of a different look. I'll post a screenshot when I'm all done.

Also, quick question, is there anyway with cwb_hooks or just regular variables to find out if repeat is turned on?

EDIT: Alright, so I discovered %cwb_playback_order%... Does this only allow for one option at a time? Does foobar not allow for shuffle and repeat playlist at the same time?

Edited by pixels
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • If built properly, swapping out the backend should be an easy task, but as the article points out, it's just Apple not wanting to do this.
    • Microsoft's new Xbox Shutdown change promises massive power efficiency gains by Pulasthi Ariyasinghe Microsoft has been delivering a lot of changes for Xbox Insiders to test in recent weeks, and today, another wave of changes aimed at consoles was announced. The latest drop is testing features that let users find mutual friends easier, customize their UI, and streamline wishlisting. When looking at an Xbox friend's profile, an option will appear to see mutual friends, perhaps to get a refresher on how you know that person. This will depend on the privacy settings. The same applies to when checking the profile of a person who is not in the friends list, offering a quick way to find out if this is a known connection. Next, Microsoft is giving the option to change how the 'Home' and 'Games & Apps' sections show off available games. There is a new poster style that users can enable for an "immersive library experience." "We’ve also made personalization settings easier to navigate and customize by separating Home and My Games & apps into separate sections," adds the company. "And to make personalization even more accessible, we’ve added new shortcuts throughout menus, so you can quickly jump in and tailor your XBOX experience the way you want." Moreover, heading to the store page of an unreleased game will now offer players the option to wishlist directly from the game card. Lastly, Microsoft is making a change to Xbox One and Xbox Series X|S consoles that are in Sleep mode, making them use the more energy-saving 'Shutdown' mode instead automatically. The company says this can increase power savings by up to 20 times without impacting "performance, gameplay, or your ability to receive system, games or apps updates overnight." The only down side seems to be a longer startup time that can take up to 45 seconds. The setting was originally introduced in 2023, and this is only the latest update to it. The power option can be changed from the console settings at any time. This Xbox Insider update is rolling out today to select members of the program. As usual, Microsoft aims to bring it to more Insiders over time before they reach all Xbox owners. Head here to find out how to join the Xbox Insider Program to get a chance to test these features and upcoming ones on both consoles and PC.
    • 2 was a fun game but felt a bit shallow, like not enough there. I hope this expansion fixes that.
    • I haven't paid for windows since windows 8. So I guess I would be happy to pay for a new version if it meant seeing fewer adverts (none) or product pushes. But that applies to _any_ service or OS.
  • Recent Achievements

    • Rookie
      lamborghiniv10 went up a rank
      Rookie
    • One Month Later
      pinnclepd earned a badge
      One Month Later
    • First Post
      X-No-file earned a badge
      First Post
    • One Month Later
      johnjacobb40 earned a badge
      One Month Later
    • One Year In
      Primer1st earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      510
    2. 2
      PsYcHoKiLLa
      214
    3. 3
      +Edouard
      145
    4. 4
      Steven P.
      88
    5. 5
      ATLien_0
      83
  • Tell a friend

    Love Neowin? Tell a friend!