mogelbrod PanelsUI layout |
![]() ![]() |
mogelbrod PanelsUI layout |
Feb 18 2008, 19:11
Post
#1
|
|
|
Group: Members Posts: 62 Joined: 6-April 07 From: Sweden Member No.: 42262 |
mogelbrod foobar2000 layout 1.1a (1.2 beta1)
Last update: 2008-02-26 (2008-03-22) Download @ deviantart.com (1.2 beta1) After a failed attempt at creating a clean columns ui config I decided to go back to PanelsUI, although this time with simplicity and customizability in mind. No images are used and all the colors and fonts are changeable, although I created the layout based on my dark color scheme I use in the text editor EditPlus. Changelog: v1.2 beta1 - 2008-03-22 * Major overhaul for the root panel code. * Added support for up to 3 columns, each with 1-5 separate panels. * Tweaked track info panel once more. * Stripped setup screen as some options are no longer available. v1.1b - 2008-02-27 * Fixed the level of the volume bar to be able to reach 100%. v1.1a - 2008-02-26 * Added album art panel support in sidebar. * Album artist column added to playlist. v1.1 - 2008-02-22 * Added playlist switcher (columns ui) support in sidebar. * Added ability to add a channel spectrum panel in the track info panel, a csp-config has been provided to simplify setting it up. * Added the ability to toggle all columns through the setup screen, and to also configure artist/album/title percentage widths which was previously only possible through coding. * Tweaked track info extended/file/custom info positioning. v1.0 - 2008-02-18 * Initial release. This post has been edited by vigge: Mar 22 2008, 02:17 |
|
|
|
Feb 18 2008, 20:30
Post
#2
|
|
|
Group: Members Posts: 119 Joined: 4-August 07 From: GA Member No.: 45904 |
Thanks man. This is a pretty nice layout. It works very well.
|
|
|
|
Feb 20 2008, 03:45
Post
#3
|
|
|
Group: Members Posts: 149 Joined: 6-May 04 Member No.: 13926 |
probably the best layout i've ever seen, nice work. really.
|
|
|
|
Feb 20 2008, 20:50
Post
#4
|
|
|
Group: Members Posts: 62 Joined: 6-April 07 From: Sweden Member No.: 42262 |
glad you liked it, a new version is in development which adds playlist support through the columns ui playlist switcher panel, and possibly the ability to have an album art panel and spectrum.
|
|
|
|
Feb 21 2008, 18:35
Post
#5
|
|
|
Group: Members Posts: 119 Joined: 4-August 07 From: GA Member No.: 45904 |
definitely try to add an album art panel. that would b great
|
|
|
|
Feb 21 2008, 22:18
Post
#6
|
|
|
Group: Members Posts: 2 Joined: 21-February 08 Member No.: 51494 |
Very nice layout, I was really impressed with how simple but visually attractive it was. I like how neat you code as well, it was very easy to add a spectrum and lyric show to the side panel.
I do have a question though, I have never been unable to get the playcount to work. Im using a new foobar install with the components you listed for this layout as well as spectrum/lyric show. What options to i need to enable to get playcount to work? I had it set up to update the track/database as soon as the file plays but the counter never increases. Any help would be appreciated. |
|
|
|
Feb 21 2008, 23:17
Post
#7
|
|
|
Group: Members Posts: 62 Joined: 6-April 07 From: Sweden Member No.: 42262 |
Great that my attempt at modularizing seems to have paid off for someone
When it comes to playcount, I'm using foo_playback_custom.dll v1.4.1 coupled with foo_custominfo 0.1.2 and the following critical options: [checked] Custom Info -> Enable field processing in title formatting scripts. [checked] Playback Statistics Custom -> Play Counter [PLAY_COUNT] [checked] Convert old tag... [PLAY_COUNTER] (default value might be PLAY_COUNTER here, I swapped them since %play_count% seemed to be the original variable for Playback statistics) You might also wish to check/uncheck "Only tracks in the media library update playbnack statistics", I've got this unchecked as fb2k only plays stuff in my media library anyway but your case might be different. |
|
|
|
Feb 21 2008, 23:22
Post
#8
|
|
|
Group: Members Posts: 2 Joined: 21-February 08 Member No.: 51494 |
Great that my attempt at modularizing seems to have paid off for someone When it comes to playcount, I'm using foo_playback_custom.dll v1.4.1 coupled with foo_custominfo 0.1.2 and the following critical options: [checked] Custom Info -> Enable field processing in title formatting scripts. [checked] Playback Statistics Custom -> Play Counter [PLAY_COUNT] [checked] Convert old tag... [PLAY_COUNTER] (default value might be PLAY_COUNTER here, I swapped them since %play_count% seemed to be the original variable for Playback statistics) You might also wish to check/uncheck "Only tracks in the media library update playbnack statistics", I've got this unchecked as fb2k only plays stuff in my media library anyway but your case might be different. awesome, thanks. It was play_count vs play_counter that was messing things up. Thanks. Awesome layout btw. |
|
|
|
Feb 22 2008, 02:30
Post
#9
|
|
|
Group: Members Posts: 12 Joined: 22-February 08 Member No.: 51502 |
I would like to thank you for such a brilliant layout! However, I'm having some trouble setting it up... every time i select mogelbrod.pui from the PanelsUI layout list and "Save All," it reverts to default.pui and there is no sign of mogelbrod at all, not even the configuration screen. I have tried with the latest beta version of foobar (v0.9.5.1 beta 2) and with the latest stable release (v0.9.5). Am I doing something wrong?
EDIT: I notice now that you have PanelsUI 0.14.9 beta listed as required, EDIT 2: Okay, most everything works. This post has been edited by oscini: Feb 22 2008, 04:20 |
|
|
|
Feb 22 2008, 08:29
Post
#10
|
|
|
Group: Members Posts: 62 Joined: 6-April 07 From: Sweden Member No.: 42262 |
I would like to thank you for such a brilliant layout! However, I'm having some trouble setting it up... every time i select mogelbrod.pui from the PanelsUI layout list and "Save All," it reverts to default.pui and there is no sign of mogelbrod at all, not even the configuration screen. I have tried with the latest beta version of foobar (v0.9.5.1 beta 2) and with the latest stable release (v0.9.5). Am I doing something wrong? EDIT: I notice now that you have PanelsUI 0.14.9 beta listed as required, EDIT 2: Okay, most everything works. Artist layout art is loaded from $get(artistPath) For Album layout art it's $get(coverPath) Check your user globals so that they are properly pointing to the correct paths |
|
|
|
Feb 22 2008, 09:59
Post
#11
|
|
|
Group: Members Posts: 12 Joined: 22-February 08 Member No.: 51502 |
EDIT 2: Okay, most everything works. Artist layout art is loaded from $get(artistPath) For Album layout art it's $get(coverPath) Check your user globals so that they are properly pointing to the correct paths Thank you vigge for that bit of information. I checked my user globals and they should be fine. Unfortunately, I'm very inexperienced with fb2k customization, so I would really appreciate a more in-detail description of how to incorporate album titles/art sections into the playlist view, as shown in vigge's animated screenshot. Is this done by manually editing something, or should it be working right off the bat from installing mogelbrod? I'll learn quickly, but I don't know where to start. Thanks to everyone in advance! This post has been edited by oscini: Feb 22 2008, 10:00 |
|
|
|
Feb 22 2008, 16:26
Post
#12
|
|
|
Group: Members Posts: 62 Joined: 6-April 07 From: Sweden Member No.: 42262 |
Thank you vigge for that bit of information. I checked my user globals and they should be fine. Unfortunately, I'm very inexperienced with fb2k customization, so I would really appreciate a more in-detail description of how to incorporate album titles/art sections into the playlist view, as shown in vigge's animated screenshot. Is this done by manually editing something, or should it be working right off the bat from installing mogelbrod? I'll learn quickly, but I don't know where to start. Thanks to everyone in advance! Heh, I kinda misunderstood your first post, if you're looking for a way to display the album titles/art (called group headers in PanelsUI): click the topright arrow (tooltip: 'Sort/Group by') and select a different layout in the menu that should appear. If you haven't configured the sort/group presets you can do so first by rightclicking somewhere in the playlist, chose 'Sort / Group by' -> Edit and you'll be able to add and remove presets which can then be accessed through the topright arrow button. The available layouts in mogelbrod are currently 'Artist' and 'Album', which one of them to use in each sort/group preset can be controlled in the 'Sort / Group by' window.
This post has been edited by vigge: Feb 22 2008, 16:27 |
|
|
|
Feb 22 2008, 18:27
Post
#13
|
|
|
Group: Members Posts: 62 Joined: 6-April 07 From: Sweden Member No.: 42262 |
|
|
|
|
Feb 23 2008, 11:14
Post
#14
|
|
|
Group: Members Posts: 12 Joined: 22-February 08 Member No.: 51502 |
Perfect. Thanks for the help, vigge!
However, I do have another question. |
|
|
|
Feb 23 2008, 11:42
Post
#15
|
|
|
Group: Members Posts: 62 Joined: 6-April 07 From: Sweden Member No.: 42262 |
Ctrl+P -> Panels UI -> Sort/Group -> go crazy creating new criterias
I'll add an album artist column for the next version by the way, which will likely be released today. This post has been edited by vigge: Feb 23 2008, 11:52 |
|
|
|
Feb 23 2008, 17:39
Post
#16
|
|
![]() Group: Members Posts: 46 Joined: 24-May 07 From: China-Guangzhou Member No.: 43730 |
i love this pui and why not add "stop" button into it .
-------------------- www.foobar2000.cn
|
|
|
|
Feb 23 2008, 17:58
Post
#17
|
|
|
Group: Members Posts: 62 Joined: 6-April 07 From: Sweden Member No.: 42262 |
i love this pui and why not add "stop" button into it . I don't really see the point of having one, either you're playing a song or you're not ;P Adding one is kinda straight-forward though, just paste the following inbetween the previous and play/pause button code (rightclick the playback controls area and click configure): CODE $button2(
$put(x,$eval($get(x) + $get(controlsW) + $get(padding))), $get(controlsY), 0,0,$get(controlsW),$get(toolbarH), $get(symbol1)<, $get(symbol1H)<, Stop, TOOLTIP:"Stop" ) |
|
|
|
Feb 26 2008, 13:20
Post
#18
|
|
![]() Group: Members Posts: 15 Joined: 21-October 07 Member No.: 48053 |
Very nice layout, I was really impressed with how simple but visually attractive it was. I like how neat you code as well, it was very easy to add a spectrum and lyric show to the side panel. Hi, I'm really interested in how you managed to add your own panels? I would like to add a Lyric Show panel but am having trouble understanding the PanelsUI code enough to do so. All I've managed to do so far is replace the Track Info with Lyric Show, but that's not exactly what I want (I'd like them both!). Any help would be greatly appreciated |
|
|
|
Feb 26 2008, 17:37
Post
#19
|
|
|
Group: Members Posts: 62 Joined: 6-April 07 From: Sweden Member No.: 42262 |
First of all, sorry about the delay of 1.1a, I've been quite busy lately. Anyway, here it is:
v1.1a - 2008-02-26 * Added album art panel support in sidebar. * Album artist column added to playlist. I still haven't added support for the lyrics panel, I'm facing some design issues since the sidebar is running out of space ;P Need to figure out whether or not to allow for more dynamic placement of panels. If I do implement this it's gonna take a nasty amount of code which I fear will slow down the rendering considerably. delphine: Clicking 'Settings...' in the menu which appears when rightclicking the foobar2000 titlebar will bring up the "main" drawing code, where panel positioning and visibility is calculated. Each panels width, height, x and y position is calculated first (under //Calculate positions and dimensions) and then rendered further down in the code. If you wish to add a new panel you will need to calculate its dimensions and position and also make sure the other panels whose position and dimensions will be affected by the new panel have their values changed accordingly. I haven't got the time needed to write a complete tutorial on how to do it but here's a quick guide (can't guarantee that it'll work though as I haven't tested it myself): Find //...hidden and paste the following line below it: CODE $puts(lyricsH,0) Find //Quicksearch positioning and paste the following to the row above it: CODE //Lyrics panel positioning $puts(lyricsH,$get(sidebarW)) $puts(lyricsY,$get(y)) $puts(y,$add($get(y),$get(lyricsH))) Find CODE //============= //Quicksearch toolbar //============= and paste the following on the rows above it: CODE //============= //Lyrics panel //============= // Background $ifgreater($get(lyricsH),0,$drawrect( $get(pMargin), $add($get(lyricsY),$get(pMargin)), $eval($get(sidebarW) - 2*$get(pMargin)), $eval($get(lyricsH) - 2*$get(pMargin)), brushcolor-$get(b.even) pencolor-$get(b.border) ),) // PerTrack $ifgreater($get(lyricsH),0, $panel(Lyric Show,Lyric Show, $get(pMP), $add($get(lyricsY),$get(pMP)), $eval($get(sidebarW) - 2*$get(pMP)), $eval($get(lyricsH) - 2*$get(pMP)), ) ,) Click OK and a lyrics panel should be drawn above the main sidebar panel. Good luck! This post has been edited by vigge: Feb 26 2008, 17:37 |
|
|
|
Feb 26 2008, 21:44
Post
#20
|
|
|
Group: Members Posts: 12 Joined: 22-February 08 Member No.: 51502 |
I'm glad to see so much going on with this.
Under "//Track info" CODE $imageabs2( $add($get(infoW), 4), $add($get(infoW), 4),, $add( $div($add( $get(infoW), 4), 2), $div($get(rowH), 2)),,,,, $get(coverPath), NOKEEPASPECT | ALPHA-127) There is probably a much more efficient way to do this, but that's what I've come up with... In 1.1a, I'm unable to toggle either the Album Art panel or the Spectralyzer to the checked position, but that's fine with me. Finally, the volume control panel refuses to be set to a value higher than 98%, for reasons to do with the area the mouse can actually access in that small space, I assume. Slightly annoying, and I'd like to fix it. Any feedback? This post has been edited by oscini: Feb 26 2008, 21:46 |
|
|
|
Feb 26 2008, 22:46
Post
#21
|
|
|
Group: Members Posts: 62 Joined: 6-April 07 From: Sweden Member No.: 42262 |
By "toggle ... to the checked position" you mean enabling (showing) the panels I assume? Are you sure you've got foo_uie_vis_channel_spectrum.dll and foo_uie_albumart.dll in your components folder? If that's the case I'm clueless why you aren't able to check them :s
The volume panel stuck at 98% issue is known, afaik everyone should experience it as it (like you said if I got it right) seems to be caused by the width value of the volume power panel - as there's theoretically 1000 levels between mute and full volume it doesn't reach all the way up to 100% for most shorter widths. If you really want to be able to set the volume level to 100% you can try experimenting with the $puts(volumeW,100) variable in the controls panel. |
|
|
|
Feb 27 2008, 03:12
Post
#22
|
|
|
Group: Members Posts: 50 Joined: 13-March 07 Member No.: 41449 |
this is just a little annoyance, but the track info does not update VBR files properly (i think it just displays the bitrate at the start of the song)
This post has been edited by Harun: Feb 27 2008, 05:19 |
|
|
|
Feb 27 2008, 04:10
Post
#23
|
|
|
Group: Members Posts: 12 Joined: 22-February 08 Member No.: 51502 |
By "toggle ... to the checked position" you mean enabling (showing) the panels I assume? Are you sure you've got foo_uie_vis_channel_spectrum.dll and foo_uie_albumart.dll in your components folder? If that's the case I'm clueless why you aren't able to check them :s The volume panel stuck at 98% issue is known, afaik everyone should experience it as it (like you said if I got it right) seems to be caused by the width value of the volume power panel - as there's theoretically 1000 levels between mute and full volume it doesn't reach all the way up to 100% for most shorter widths. If you really want to be able to set the volume level to 100% you can try experimenting with the $puts(volumeW,100) variable in the controls panel. Turns out I forgot to move the Spectrum dll into the components folder, and the Album Art dll was some ancient version. So all is well! I also managed a workaround for the Volume panel not reaching 100%. Find: CODE $if(%panel_volume%,$setpvar(volumeLevel,%panel_volume%),) And put the following below that line: CODE $ifgreater(%panel_volume%,970,$setpvar(volumeLevel,1000),) So while the panel is any value above 97% (the closest you'll get is 96%), then it just jumps up to 100%. |
|
|
|
Feb 27 2008, 05:26
Post
#24
|
|
|
Group: Members Posts: 50 Joined: 13-March 07 Member No.: 41449 |
Find: CODE $if(%panel_volume%,$setpvar(volumeLevel,%panel_volume%),) And put the following below that line: CODE $ifgreater(%panel_volume%,970,$setpvar(volumeLevel,1000),) So while the panel is any value above 97% (the closest you'll get is 96%), then it just jumps up to 100%. this just causes the volume display to stay at 100% (although the volume updates fine when you try to adjust it) |
|
|
|
Feb 27 2008, 06:08
Post
#25
|
|
|
Group: Members Posts: 12 Joined: 22-February 08 Member No.: 51502 |
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st November 2009 - 05:22 |