maybe a stupid question, but are there some configs online for ElPlaylist?
I can only find complete foobar configs but I only need the playlist part... I still have to figure out the code for making it my self and some good examples would be great
Would love to see some examples, too.. Here is my work anyhow as a start: I'm quite sure it could've been done in a much more elegant way though *g*
Tracklist
$puts(art_path,%__ART_PATH__%)
$puts(einruck,$mul(%el_group_depth%,20))
$puts(art_size,$mul(%__ART_ROW__%,%el_row_height%))
$puts(bg_left,$add($mul(%__ART_MARGIN__%,2),$get(art_size)))
$puts(track_left,$add($get(einruck),10,$get(bg_left)))
$puts(bg_index,$add($mul(2,%el_selected%),%el_isplaying%))
$puts(bg_color,$select($get(bg_index),%__PLAY_BG__%,%__SEL_BG__%,$averagecolour(%__SEL_BG__%,%__PLAY_BG__%) ))
///////BG Colour///////
$setcoordinate(1,$get(bg_left),0,%el_width%,%el_height%)
$ifgreater($get(bg_index),0,$gradientrect(,,,,$averagecolour($get(bg_color),%el_backcolour%-0),$get(bg_color),horizontal),)
$if(%el_focused%,$drawrect(,,,,,%__FOCUS__%,),)
$drawrect(0,0,$get(einruck),%el_height%,1-1-1-255,1-1-1-255,)
$setcoordinate(0)
///////Track Info///////
$puts(LEN,$add(4,$gettextwidth(%length%)))
$puts(track_right,$add(%el_width%,$if(%el_isplaying%,-$el_scale(12,$get(LEN),5),-$get(LEN))))
$setcoordinate(1)
$drawtextex(%tracknumber% %title%,$get(track_left),0,$get(track_right),%el_height%,%__TEXT_COLOR__%,vcenter end_ellipsis)
$puts(breite, $add($get(einruck),$get(track_left),$gettextwidth(%tracknumber% %title%)))
$if($or($meta(album artist),$strcmp(%el_preset_name%,Tracks)),$drawtextex( von %artist%,$get(breite),0,$get(track_right),%el_height%,%__TIME_COLOR__%,vcenter end_ellipsis))
$if(%_isplaying%,,$drawtext(%length%,0,0,$sub(%el_width%,14),%el_height%,%__TIME_COLOR__%,vcenter right))
$setcoordinate(0)
///////Album Art///////
$enabledraw(1)
$puts(art_top,$add($select(%__IS_ART_ON_GH__%,%el_row_height%),%__ART_TOP__%))
$setworldtransform($add(2,-%__IS_ART_ON_GH__%))
$imageabs($add(%__ART_MARGIN__%,$get(einruck)),$get(art_top),$get(art_size),$get(art_size),$get(art_path),,)
///////Reflection///////
$ifequal(%__IS_REFLECTION__%,1
,$if($imageabs($getlastpos(x),$getlastpos(b),$getlastpos(w),$el_scale(50,$getlastpos(h)),$get(art_path),top nokeepaspect,6)
,$gradientrect($getlastpos(x),$getlastpos(y),$getlastpos(w),$getlastpos(h),%el_backcolour%-164,%el_backcolour%-255)
,)
,)
Groupheader:
$puts(art_path,%__ART_PATH__%)
$puts(einruck,$mul(%el_group_depth%,20))
$puts(art_size,$mul(%__ART_ROW__%,%el_row_height%))
$puts(alben,$ifgreater(%el_subgroup_count%,0, in %el_subgroup_count%$ifgreater(%el_subgroup_count%,1, Albums, Album),))
$font(,10,)
///////BG Colour///////
$if($get(alben),
$drawrect(0,0,%el_width%,%el_height%,1-1-1-255,0-0-0-255)
$imageabs(0,0,%el_width%,%el_height%,images/groupheader.png,right nokeepaspect),
$if(%el_isplaying%
,$gradientrect($get(einruck),0,%el_width%,%el_height%,$averagecolour(255-128-0-255,%el_backcolour%-0),255-118-20-250,)
$drawrect(0,0,$get(einruck),%el_height%,1-1-1-255,1-1-1-255,)
,$gradientrect($get(einruck),0,%el_width%,%el_height%,$averagecolour(235-128-0-105,%el_backcolour%-0),235-118-20-105,)
$drawrect(0,0,$get(einruck),%el_height%,1-1-1-255,1-1-1-255,))
$drawrect($get(einruck),$sub(%el_height%,1),%el_width%,1,0-0-0,0-0-0,)
)
///////Group Info///////
$puts(group_left,$add($mul(%__ART_MARGIN__%,2),$get(art_size)))
$puts(group_artist,$if($meta(album artist),[%album artist% - ],[%artist% - ]))
$if($get(alben),
$font(,15,)
$puts(group_artist,[%el_group_format% - ])
$if(%el_is_collapsed%
,$drawstring($get(group_artist)%el_item_count% $ifgreater(%el_item_count%,1,Songs,Song)$get(alben),$get(group_left),0,$sub(%el_width%,$get(group_left)),%el_height%,185-185-185,hcenter vcenter nowrap elipchar hq,225-128-0-110)
,$drawstring($get(group_artist)%el_sum_length% Laufzeit,$get(group_left),0,$sub(%el_width%,$get(group_left)),%el_height%,255-255-255,hcenter vcenter nowrap elipchar hq,glow:1:225-128-0-222:1) )
,
$if(%el_is_collapsed%
,$drawstring($get(group_artist)[%album%] '('%el_item_count% $ifgreater(%el_item_count%,1,Songs,Song)$get(alben)')'$char(10)[%date% |][%genre%],$get(group_left),0,$sub(%el_width%,$get(group_left)),%el_height%,185-185-185,hcenter vcenter nowrap elipchar hq,225-128-0-110)
,$drawstring($get(group_artist)[%album%] '('%el_sum_length% Laufzeit')'$char(10)[%date% |][ %genre%],$get(group_left),0,$sub(%el_width%,$get(group_left)),%el_height%,255-255-255,hcenter vcenter nowrap elipchar hq,glow:3:225-128-0-222:2) )
)
///////Album Art///////
$if(%el_is_collapsed%
,$puts(art_top,2)
$imageabs(0,0,$get(art_size),$get(art_size),$get(art_path),noexpansion nodisplay,) //dummy call
$setworldtransform(1)
$puts(art_size,$min($get(art_size),$add(%el_height%,-$mul(2,2))))
,$puts(art_top,$add($select(%__IS_ART_ON_GH__%,%el_row_height%),%__ART_TOP__%))
$setworldtransform($add(2,-%__IS_ART_ON_GH__%))
)
$if($get(alben),,
$imageabs($add(%__ART_MARGIN__%,$get(einruck)),$get(art_top),$get(art_size),$get(art_size),$get(art_path),,))
General: __ART_PATH__ (should be easer with the new findfile-functuon now..
$if3($findfile($replace(%path%,%filename_ext%,folder.jpg)),$findfile($replace(%path%,%filename_ext%,*.png)),$findfile($replace(%path%,%filename_ext%,*.jpg)),$findfile($replace(%path%,%filename_ext%,*.gif)),$findfile($replace(%path%,%directory%\%filename_ext%,*.jpg)),$findfile($replace(%path%,%directory%\%filename_ext%,*.png)),$findfile($replace(%path%,%directory%\%filename_ext%,*.gif)))
This is how it looks like: