IPB

Welcome Guest ( Log In | Register )

foo_uie_single_column_playlist, single column playlist viewer
terrestrial
post Aug 29 2006, 03:40
Post #1





Group: Members
Posts: 274
Joined: 24-July 06
Member No.: 33259



I have made a plugin that displays the playlist in a single column with "headers", which I find useful for creating a narrower and smaller layout.



This is a beta so user beware. Download

For documentation, please refer to the wiki. (thanks to FofR, and the other contributors).

Requires:

MS Visual C++ 2005 Runtime Library
GDI+ - only needed for Windows 2000

This post has been edited by terrestrial: Nov 21 2006, 03:02
Go to the top of the page
+Quote Post
 
Start new topic
Replies
Yotsuya
post Sep 1 2006, 04:40
Post #2





Group: Members
Posts: 1535
Joined: 8-May 06
Member No.: 30546



Using FofR's idea for embedding images beyond the row, I played around and came up with some nice borders on the side of my playlist:


Images Used:

column.left.png, column.right.png

Group By
CODE
$if(%tracknumber%,%album%%discnumber%,)

Item Display
CODE
// -- Backgrounds -- //
$if(%tracknumber%,$drawrect(0,0,0,0,brushcolor-140-186-236 pencolor-null),)
$if(%cwb_queueindex%,$drawrect(0,0,0,0,brushcolor-58-110-165 pencolor-null),)
$if(%isplaying%,$drawrect(0,0,0,0,brushcolor-10-36-106 pencolor-null),)
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-null pencolor-233-233-233),)

// Side Art
$puts(art.width,30)
$puts(art.height,60)
$puts(art.num,$add($div($mul(%list_index%,%_height%),$get(art.height)),1))
$puts(art.offset,-$sub($sub($mul(%list_index%,%_height%),$mul($sub($get(art.num),1),$get(art.height))),%_height%))
$imageabs(0,$get(art.offset),images\column.left.png,)
$imageabs($sub(%_width%,$get(art.width)),$get(art.offset),images\column.right.png,)

// -- Text -- //
$font(tahoma,8,,)

// Track Number
$alignabs(50,,%_width%,%_height%,,)
$if(%tracknumber%,
$if(%isplaying%,$font(,,,233-233-233),$font(,,,10-36-106))
%tracknumber%$font(,,,233-233-233).
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))

// Title
$alignabs(75,,%_width%,%_height%,,)
$if(%title%,$trim($left(%title%,$sub($strrchr(%title%,$char(40)),1))),)

$if($strrchr(%title%,$char(40)),
$font(,,,233-233-233) $char(40)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,10-36-106))
$substr(%title%,$add($strrchr(%title%,$char(40)),1),$sub($strrchr(%title%,$char(41)),1))
$font(,,,233-233-233)$char(41)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
)
,
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
[%artist% - ]%title%
)


// Queue Indicator
$if(%cwb_queueindex%,
$alignabs($sub(%_width%,$calcwidth(%cwb_queueindexes%),150),,%_width%,%_height%,,)
$font(,,,233-233-233)Q
$if(%isplaying%,$font(,,,233-233-233),$font(,,,140-186-236)):
$font(,,,233-233-233)$char(91)$if(%isplaying%,$font(,,,233-233-233),$font(,,,140-186-236))%cwb_queueindexes%$char(47)%cwb_queuelength%$font(,,,233-233-233)$char(93)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
,)

// Length
$padding(50,0)
$align(right,)%length%

Group Display
CODE
$if(%tracknumber%,
$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-null)$padding(4,0)
$font(tahoma,7,,233-233-233)
$align(left,middle)$if(%CDID%,$char(91)$font(,,,140-186-236)%CDID%$font(,,,233-233-233)$char(93),)
$align(center,middle)

$if(%album artist%,
$if($strrchr(%album artist%,$char(12300)),
$font(,,,140-186-236)$char(12300)$font(,,,233-233-233)$substr(%album artist%,2,$sub($len(%album artist%),1))$font(,,,140-186-236)$char(12301)
,%album artist%)
,)

$if($and(%album artist%,%album%),$font(,,,140-186-236) - $font(,,,233-233-233),)
$trim($left(%album%,$sub($strrchr(%album%,$char(40)),1)))
$align(right,middle)[$char(91)$font(,,,140-186-236)[%genre%]$if($and(%genre%,%date%), - ,)[%date%]$font(,,,233-233-233)$char(93)]
,
$drawrect(0,0,0,0,brushcolor-130-130-255 pencolor-null)$padding(4,0)
$align(center,)$font(tahoma,7,italic,0-0-0)~ Singles ~
)


This component is a bit of fun once you get going :)
Go to the top of the page
+Quote Post

Posts in this topic
- terrestrial   foo_uie_single_column_playlist   Aug 29 2006, 03:40
- - vonmeth   Oooo, great idea. =)   Aug 29 2006, 04:42
- - year98   It's good idea... But It doesn't work for ...   Aug 29 2006, 04:46
- - terrestrial   there were supposed to be some defaults loaded, bu...   Aug 29 2006, 04:54
- - year98   It's not working as ever... Only shows black ...   Aug 29 2006, 05:05
- - terrestrial   did you set the "row height"? maybe rest...   Aug 29 2006, 05:08
- - year98   Yes, I changed row height, but result was same. li...   Aug 29 2006, 05:13
- - vonmeth   Try changing the height to 40, and I'm sure so...   Aug 29 2006, 05:29
- - year98   Oh, thx it works...^^ Then, why edge style is alwa...   Aug 29 2006, 05:39
- - terrestrial   edge style isn't implemented yet.   Aug 29 2006, 05:47
- - Anas   Thanks, I like it. Looks very promising! I als...   Aug 29 2006, 07:43
- - unknownllama   Great Plugin! Perfect for my new mini foobar s...   Aug 29 2006, 08:25
- - Strictly4me   Perfect for my sidebarconfig! - Thanks. ((...   Aug 29 2006, 09:05
- - FofR   Are those album headers tracks?   Aug 29 2006, 10:26
- - foosion   Some first (negative) impressions:The playlist vie...   Aug 29 2006, 10:50
- - Andreasvb   Great idea, will try it. I really like the groupi...   Aug 29 2006, 11:34
- - Hamallainen   Hi, Thanks a lot, really good idea that's v...   Aug 29 2006, 12:37
- - vlada   How can I display it? I don't see it anywhere ...   Aug 29 2006, 20:14
|- - vonmeth   I am encountering the same problem with the ctrl+p...   Aug 29 2006, 21:49
- - skelly831   Thanks terrestrial, I can see this plugin becoming...   Aug 29 2006, 23:44
- - vonmeth   "No focus rectangle for the active item. I re...   Aug 30 2006, 01:26
- - mazy   i really like this plugin, quick try with it: a...   Aug 30 2006, 03:14
|- - skelly831   QUOTE (mazy @ Aug 29 2006, 19:14) i reall...   Aug 30 2006, 03:57
|- - alphaex32   QUOTE (mazy @ Aug 29 2006, 22:14) i reall...   Aug 31 2006, 15:05
- - mazy   skelly831, thanks, but it's terrestrial who ma...   Aug 30 2006, 03:59
|- - kanak   QUOTE (mazy @ Aug 30 2006, 08:59) skelly8...   Aug 31 2006, 14:05
- - 4nt1   terrestrial please listen to foosion, he knows wha...   Aug 30 2006, 06:40
- - Yotsuya   Is there a way to define the color for the backgro...   Aug 30 2006, 21:38
- - terrestrial   QUOTE Thanks, I like it. Looks very promising...   Aug 31 2006, 06:50
- - terrestrial   QUOTE separate height for group display and item d...   Aug 31 2006, 07:31
|- - Yotsuya   QUOTE (terrestrial @ Aug 31 2006, 02:31) ...   Aug 31 2006, 08:05
- - Yotsuya   This isnt specific to this plugin, but can anyone ...   Aug 31 2006, 08:39
- - mazy   just a test using the track info mod and foo_uie_s...   Aug 31 2006, 15:18
- - terrestrial   looks good, mazy could you do me a favor and che...   Aug 31 2006, 16:08
|- - mazy   QUOTE (terrestrial @ Aug 31 2006, 17:08) ...   Aug 31 2006, 16:16
- - FofR   My request: Collapsible headers. Im going to play ...   Aug 31 2006, 16:14
- - 4nt1   i second collapsable headers   Aug 31 2006, 17:19
- - FofR   Upon install, with no modification I get something...   Aug 31 2006, 18:01
- - terrestrial   a restart should fix it. There are still some sett...   Aug 31 2006, 19:30
- - alphaex32   I'm not very familiar with the modified tracki...   Aug 31 2006, 20:18
- - Yotsuya   $imageabs(,,images\backdrop.png,) If yo...   Aug 31 2006, 20:32
- - alphaex32   Oh, ok. I just remembered that the group headers n...   Aug 31 2006, 20:35
- - FofR   QUOTE (Yotsuya @ Aug 31 2006, 20:32) EDIT...   Aug 31 2006, 22:24
- - Yotsuya   So basically each row automatically offsets the im...   Aug 31 2006, 23:31
- - RevivalofHonor   I'm having quite a bit of fun with this plug-i...   Sep 1 2006, 01:31
- - Yotsuya   Using FofR's idea for embedding images beyond ...   Sep 1 2006, 04:40
- - FofR   Nice idea using the %list_index%, I hadn't tho...   Sep 1 2006, 08:27
- - FofR   I want to add some details about $drawrect to...   Sep 1 2006, 10:04
- - Jensen   Great plugin! But why don't you allow us ...   Sep 1 2006, 10:33
- - Xerion   Why doesn't this component have an every secon...   Sep 1 2006, 11:30
- - FofR   QUOTE (Xerion @ Sep 1 2006, 11:30) Why do...   Sep 1 2006, 11:32
- - Xerion   QUOTE (FofR @ Sep 1 2006, 12:32) QUOTE (X...   Sep 1 2006, 11:58
- - mazy   QUOTE (FofR @ Sep 1 2006, 11:04) I want t...   Sep 1 2006, 18:06
- - alphaex32   I love this plugin. I'd like to request a song...   Sep 1 2006, 21:01
|- - mazy   QUOTE (alphaex32 @ Sep 1 2006, 22:01) I l...   Sep 2 2006, 10:53
- - Blitzmeister   Has any tryed to get the album art in the tracks?   Sep 2 2006, 05:20
- - RevivalofHonor   I have a new question, which is probably related t...   Sep 2 2006, 17:57
- - SwiftBass   EDIT: nevermind problem solved   Sep 2 2006, 18:42
- - FofR   QUOTE (RevivalofHonor @ Sep 2 2006, 17:57...   Sep 2 2006, 19:00
- - RevivalofHonor   Thank you, FofR. I guess I did something wrong wi...   Sep 2 2006, 19:09
- - tool++   Stuff keeps disappearing   Sep 2 2006, 19:53
- - zackorah   QUOTE (Blitzmeister @ Sep 1 2006, 22:20) ...   Sep 2 2006, 20:39
- - sHsIkuA   Hi there, thanks for this great plugin theres som...   Sep 2 2006, 21:41
|- - cartman(2vd)   QUOTE (sHsIkuA @ Sep 2 2006, 22:41) Hi th...   Sep 2 2006, 23:06
|- - sHsIkuA   QUOTE (cartman(2vd) @ Sep 2 2006, 16...   Sep 3 2006, 11:42
|- - cartman(2vd)   QUOTE (sHsIkuA @ Sep 3 2006, 12:42) QUOTE...   Sep 3 2006, 17:02
- - vonmeth   QUOTE (zackorah @ Sep 2 2006, 13:39) CODE...   Sep 2 2006, 22:06
- - upNorth   @terrestrial: IMHO, this is the most exciting plug...   Sep 2 2006, 22:33
- - mazy   terrestrial, seeing all the posts about other form...   Sep 2 2006, 22:43
- - zackorah   QUOTE (upNorth @ Sep 2 2006, 15:33) @zack...   Sep 2 2006, 23:42
|- - david_dl   QUOTE (zackorah @ Sep 3 2006, 11:42) OT...   Sep 3 2006, 23:04
- - FofR   Can I see your code for that? I'd like to play...   Sep 3 2006, 00:46
- - tool++   That would be ridiculously insane. Sorta WMP11 st...   Sep 3 2006, 01:03
|- - sicutero   QUOTE (tool++ @ Sep 3 2006, 03...   Sep 3 2006, 15:15
|- - tool++   QUOTE (sicutero @ Sep 3 2006, 15:15) QUOT...   Sep 3 2006, 21:01
|- - sicutero   QUOTE (tool++ @ Sep 3 2006, 23...   Sep 3 2006, 21:12
- - zackorah   QUOTE (FofR @ Sep 2 2006, 17:46) Can I se...   Sep 3 2006, 01:15
- - tool++   That is fricken sweet. How would I adapt my curre...   Sep 3 2006, 01:40
- - alphaex32   I've got a few more ideas: First, variable lin...   Sep 3 2006, 06:56
- - SwiftBass   May I recommend a mouse activated inline metafield...   Sep 3 2006, 07:33
- - shane 4 sure   Beat me to death but placing this plug-in in the c...   Sep 3 2006, 08:23
|- - vonmeth   QUOTE (shane 4 sure @ Sep 3 2006, 01:23) ...   Sep 3 2006, 09:28
- - shane 4 sure   @ vonmeth Thanks a lot for the hint.   Sep 3 2006, 09:59
- - FofR   QUOTE (mazy @ Sep 1 2006, 18:06) there...   Sep 3 2006, 13:07
- - 4nt1   ok I am sure someone has said this before but ther...   Sep 3 2006, 15:29
- - Comwan   QUOTE (terrestrial @ Aug 29 2006, 03:40) ...   Sep 3 2006, 15:56
- - sHsIkuA   heh we all just have to wait its up to the develo...   Sep 3 2006, 18:08
- - Superunknown   I've put the component in the right folder, it...   Sep 3 2006, 19:03
- - kanak   @superunknown Go to Column UI layout options and ...   Sep 3 2006, 19:50
- - Superunknown   it has !! thank you soo much !   Sep 3 2006, 20:12
- - tool++   Aww don't apologize, makes me feel mean I...   Sep 3 2006, 22:06
- - BlindSeer   Nice component. It would be very useful to have a ...   Sep 3 2006, 23:00
|- - acedriver   QUOTE (BlindSeer @ Sep 4 2006, 06:00) Nic...   Sep 4 2006, 00:06
|- - david_dl   QUOTE (acedriver @ Sep 4 2006, 12:06) QUO...   Sep 4 2006, 00:30
- - zackorah   QUOTE (FofR @ Sep 2 2006, 17:46) (obviou...   Sep 3 2006, 23:04
- - skelly831   This plugin is sweet.   Sep 4 2006, 00:56
- - terrestrial   QUOTE (RevivalofHonor @ Aug 31 2006, 19:3...   Sep 4 2006, 04:18
|- - alphaex32   QUOTE (terrestrial @ Sep 3 2006, 23:18) M...   Sep 4 2006, 05:42
- - carmenm   QUOTE (zackorah @ Sep 3 2006, 16:04) Figu...   Sep 4 2006, 08:12
- - Yotsuya   I would like to request the ability to disable, hi...   Sep 4 2006, 10:16
14 Pages V   1 2 3 > » 


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th April 2014 - 21:31