Hi, I don't know how to code for elplaylist, so I was wondering if any of you can give me a hand. I'd just like to add an optional Composer column, just as there are 7 optional columns to choose from.
I guess this is the code I need to edit, under tracklist:
$puts(config_name,'tech')
$puts(foo_path,%el_foobar2000_path%)
$puts(img,$get(foo_path)'/skins/'$get(config_name)'/images/')
$puts(col00w,$left(%_OPTALL_%,4))
$puts(col01w,$right($left(%_OPTALL_%,9),4))
$puts(col02w,$right($left(%_OPTALL_%,14),4))
$puts(col03w,$right($left(%_OPTALL_%,19),4))
$puts(col04w,$right($left(%_OPTALL_%,24),4))
$puts(col05w,$right($left(%_OPTALL_%,29),4))
$puts(col06w,$right($left(%_OPTALL_%,34),4))
$puts(col07w,$right($left(%_OPTALL_%,39),4))
$puts(col08w,$right($left(%_OPTALL_%,44),4))
$puts(col09w,$right($left(%_OPTALL_%,49),4))
$puts(col10w,$right($left(%_OPTALL_%,54),4))
$puts(transp,%_TRANSPARENCY_%)
//$puts(pw,%el_width%)
$puts(ww,%_WW_%)
$puts(icon_width,20)
$puts(cover_width,$mul(51,1))
$puts(group_count,$add(%_GROUP_BY_DATE_%,1,1,1))
// padding values
$puts(pad_left,$add($get(col00w),1))
$ifequal(%_GROUP_BY_DATE_%,0,$puts(pad_left,$get(cover_width)),)
$puts(pad_right,0)
$puts(pad_top1,3)
$puts(pad_top2,0)
$puts(pad_top3,0)
// fonts
$puts(default_font,'segoe ui')
$puts(default_font_size,8)
$puts(default_font_style,'normal')
$puts(tracknumber_font,'segoe ui')
$puts(tracknumber_font_size,8)
$puts(tracknumber_font_style,'normal')
$puts(small_font,'uni 05_53')
$puts(small_font_size,6)
$puts(small_font_style,'normal')
// titleformat tags
$ifequal(%_CAPITALIZE_%,1,
$puts(title,' '$upper($if2(%title%,%filename%)))
$puts(artist,' '$upper($if2(%artist%,'N/A')))
$puts(album,' '$upper($if2(%album%,$if(%length%,'SINGLE','~STREAM'))))
$puts(genre,' '$upper($if2(%genre%,'N/A')))
,
$puts(title,' '$if2(%title%,%filename%))
$puts(artist,' '$if2(%artist%,'N/A'))
$puts(album,' '$if2(%album%,$if(%length%,'Single','~Stream')))
$puts(genre,' '$if2(%genre%,'N/A'))
)
$puts(date,' '$if2(%date%,'N/A'))
$puts(bitrate,$if2($if(%__bitrate_dynamic%,$if(%_isplaying%,$select($add($mod(%_time_elapsed_seconds%,2),1),%__bitrate_dynamic%,%__bitrate_dynamic%),%__bitrate_dynamic%),%__bitrate%)'K','N/A'))
$puts(tracknumber,$if(%tracknumber%,$if(%album%,%tracknumber%,$num($add(%el_item_index%,1),2)),$num($add(%el_item_index%,1),2))' ')
$puts(total_length,%length%' ')
$select($sub($len(%length%),3),
$ifgreater(%length_seconds%,59,
$puts(length,' 00:0')
,
$ifgreater(%length_seconds%,9,
$puts(length,' 00:00:')
$puts(total_length,$right(%length%,2)' ')
,
$puts(length,' 00:00:0')
$puts(total_length,$right(%length%,1)' ')
)
)
,
$puts(length,' 00:')
,
,
$puts(length,' 0')
,
$puts(length,' ')
)
$if(%length%,,
$puts(length,' 00:00:00')
$puts(total_length,' ')
)
$ifequal(%el_group_row%,0,
$puts(VA,1)
,
$if($stricmp(%album artist%,%artist%),
$puts(VA,0)
,
$puts(VA,1)
)
)
// Draw background (%list_index%)
$ifequal(%_GROUP_BY_DATE_%,1,
$puts(no_index,%el_item_index%)
,
$puts(no_index,%list_index%)
)
// draw track bg
$if(%el_isplaying%,,
$ifequal($mod($get(no_index),2),1,
$puts(bg_colour,30-35-40)
,
$puts(bg_colour,50-55-60)
)
$drawrect(0,0,$sub($get(ww),18),%el_height%,$get(bg_colour)-$get(transp),,)
)
// text colours
$if($or(%el_selected%,%el_focused%),
$puts(default_txt_colour,140-140-145)
$puts(notag_txt_colour,95-100-105)
$puts(00_txt_colour,50-50-50)
$puts(line1_colour,100-100-100-50)
$puts(line0_colour,0-0-0-90)
,
$puts(default_txt_colour,90-90-90)
$puts(notag_txt_colour,60-60-60)
$puts(00_txt_colour,50-50-50)
$puts(line1_colour,100-100-100-50)
$puts(line0_colour,0-0-0-90)
)
$puts(queue_normal_colour,200-200-70)
$puts(queue_bright_colour,230-220-120)
$puts(queue_dark_colour,070-060-020)
$puts(playcount_txt_colour,120-130-040)
// max width
$puts(tracknumber_maxwidth,$get(col01w))
$puts(title_maxwidth,$get(col02w))
$puts(artist_maxwidth,$get(col03w))
$puts(album_maxwidth,$get(col04w))
$puts(genre_maxwidth,$get(col05w))
$puts(date_maxwidth,$get(col06w))
$puts(bitrate_maxwidth,$get(col07w))
$puts(rating_maxwidth,$get(col08w))
$puts(duration_maxwidth,$get(col09w))
// TF width
$font($get(tracknumber_font),$get(tracknumber_font_size),$get(tracknumber_font_style))
$puts(tracknumber_width,$gettextwidth($get(tracknumber)))
$font($get(default_font),7,normal)
$puts(playcount_width,$gettextwidth(%_PLAYCOUNT_%' '))
$font($get(default_font),$get(default_font_size),$get(default_font_style))
$puts(title_width,$gettextwidth($get(title)))
$ifgreater($get(title_width),$sub($get(title_maxwidth),4),$puts(title_width,$sub($get(title_maxwidth),4)),)
$puts(artist_width,$gettextwidth($get(artist)))
$puts(album_width,$gettextwidth($get(album)))
$puts(genre_width,$gettextwidth($get(genre)))
$puts(date_width,$gettextwidth($get(date)))
$puts(bitrate_width,$gettextwidth($get(bitrate)))
$puts(length_width,$gettextwidth($get(length)))
$puts(total_length_width,$gettextwidth($get(total_length)))
// Draw Columns Infos
// queued index marker
$if(%el_isplaying%,,
$if(%queue_index%,
$drawellipse($sub($get(pad_left),20),3,14,13,$get(queue_normal_colour)-200,50-100-50-200,)
$font($get(default_font),7,bold)
$drawellipse($sub($get(pad_left),15),7,9,8,$get(queue_dark_colour)-55,$get(queue_dark_colour)-55,)
$drawellipse($sub($get(pad_left),18),4,7,6,$get(queue_bright_colour)-95,$get(queue_bright_colour)-85,)
$drawtextex(%queue_index%,$sub($get(pad_left),20),$add($get(pad_top1),1),15,15,40-60-40,hcenter vtop)
,)
)
$font($get(tracknumber_font),$get(tracknumber_font_size),$get(tracknumber_font_style))
// tracknumber
$ifgreater($get(tracknumber_maxwidth),0,
$if(%el_isplaying%,,
$drawrect($get(pad_left),0,1,$get(wh),$get(line1_colour),$get(line1_colour),)
$drawrect($add($get(pad_left),1),0,1,$get(wh),$get(line0_colour),$get(line0_colour),)
)
$ifgreater(%_MOOD_%,0,
$imageabs($add($get(pad_left),10),$sub($get(pad_top1),1),17,17,$get(img)mood1.png,,,255)
,
$ifgreater(%_SKIP_%,0,
$imageabs($add($get(pad_left),11),$sub($get(pad_top1),1),17,17,$get(img)skip1.png,,,255)
,
$drawtextex($get(tracknumber),$get(pad_left),$get(pad_top1),$get(tracknumber_maxwidth),%el_height%,$get(default_txt_colour),right vtop end_ellipsis)
)
)
,)
$font($get(default_font),$get(default_font_size),$get(default_font_style))
// title
$ifgreater($get(title_maxwidth),0,
$if(%el_isplaying%,,
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth)),0,1,$get(wh),$get(line1_colour),$get(line1_colour),)
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),1),0,1,$get(wh),$get(line0_colour),$get(line0_colour),)
)
$if(%el_isplaying%,,
$drawtextex($get(title),$add($get(pad_left),$get(tracknumber_maxwidth)),$get(pad_top1),$sub($get(title_maxwidth),$get(playcount_width),5),%el_height%,$if(%title%,$get(default_txt_colour),$get(notag_txt_colour)),left vtop end_ellipsis)
)
$ifequal(%_SHOW_PLAYCOUNT_%,1,
$font($get(default_font),7,italic)
$drawtextex(%_PLAYCOUNT_%' ',$sub($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth)),$get(playcount_width),3),$add($get(pad_top1),1),$get(playcount_width),%el_height%,$get(playcount_txt_colour),right vtop end_ellipsis)
,)
,)
// artist
$font($get(default_font),$get(default_font_size),$get(default_font_style))
$ifgreater($get(artist_maxwidth),0,
$if(%el_isplaying%,,
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth)),0,1,$get(wh),$get(line1_colour),$get(line1_colour),)
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),1),0,1,$get(wh),$get(line0_colour),$get(line0_colour),)
)
$if(%el_isplaying%,,
$drawtextex($get(artist),$add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth)),$get(pad_top1),$sub($get(artist_maxwidth),4),%el_height%,$if(%album artist%,$get(default_txt_colour),$get(notag_txt_colour)),left vtop end_ellipsis)
)
,)
// album
$ifgreater($get(album_maxwidth),0,
$if(%el_isplaying%,,
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth)),0,1,$get(wh),$get(line1_colour),$get(line1_colour),)
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),1),0,1,$get(wh),$get(line0_colour),$get(line0_colour),)
)
$if(%el_isplaying%,,
$drawtextex($get(album),$add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth)),$get(pad_top1),$sub($get(album_maxwidth),4),%el_height%,$get(default_txt_colour),left vtop end_ellipsis)
)
,)
// genre
$ifgreater($get(genre_maxwidth),0,
$if(%el_isplaying%,,
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth)),0,1,$get(wh),$get(line1_colour),$get(line1_colour),)
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),1),0,1,$get(wh),$get(line0_colour),$get(line0_colour),)
)
$drawtextex($get(genre),$add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth)),$get(pad_top1),$sub($get(genre_maxwidth),4),%el_height%,$get(default_txt_colour),left vtop end_ellipsis)
,)
// date
$ifgreater($get(date_maxwidth),0,
$if(%el_isplaying%,,
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth)),0,1,$get(wh),$get(line1_colour),$get(line1_colour),)
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth),1),0,1,$get(wh),$get(line0_colour),$get(line0_colour),)
)
$drawtextex($get(date),$add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth)),$get(pad_top1),$sub($get(date_maxwidth),4),%el_height%,$if(%date%,$get(default_txt_colour),$get(notag_txt_colour)),right vtop end_ellipsis)
,)
//bitrate
$ifgreater($get(bitrate_maxwidth),0,
$if(%el_isplaying%,,
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth),$get(date_maxwidth)),0,1,$get(wh),$get(line1_colour),$get(line1_colour),)
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth),$get(date_maxwidth),1),0,1,$get(wh),$get(line0_colour),$get(line0_colour),)
)
$drawtextex($get(bitrate),$add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth),$get(date_maxwidth)),$get(pad_top1),$sub($get(bitrate_maxwidth),4),%el_height%,$get(default_txt_colour),right vtop end_ellipsis)
,)
// rating
$ifgreater($get(rating_maxwidth),0,
$if(%el_isplaying%,,
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth),$get(date_maxwidth),$get(bitrate_maxwidth)),0,1,$get(wh),$get(line1_colour),$get(line1_colour),)
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth),$get(date_maxwidth),$get(bitrate_maxwidth),1),0,1,$get(wh),$get(line0_colour),$get(line0_colour),)
// $imageabs($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth),$get(date_maxwidth),$get(bitrate_maxwidth),7),$get(pad_top1),55,14,$get(img)r$if2(%rating%,0).png,,,230)
$puts(rating_deb,$add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth),$get(date_maxwidth),$get(bitrate_maxwidth),7))
$puts(rating_sp,10)
$puts(rating,$if2(%rating%,0))
$puts(c0_bg1,25-25-25)
$puts(c0_pn1,15-15-15)
$puts(c0_bg2,100-100-100)
$puts(c0_pn2,55-55-55)
$puts(c1_bg1,100-110-040)
$puts(c1_pn1,045-55-10)
$puts(c1_bg2,220-230-80)
$puts(c1_pn2,140-150-060)
$drawellipse($add($get(rating_deb),4,$mul($get(rating_sp),0)),$add($get(pad_top1),3),5,5,$ifgreater(1,$get(rating),$get(c0_bg1),$get(c1_bg1)),$ifgreater(1,$get(rating),$get(c0_pn1),$get(c1_pn1)),)
$drawellipse($add($get(rating_deb),5,$mul($get(rating_sp),0)),$add($get(pad_top1),4),3,3,$ifgreater(1,$get(rating),$get(c0_bg2),$get(c1_bg2)),$ifgreater(1,$get(rating),$get(c0_pn2),$get(c1_pn2)),)
$drawellipse($add($get(rating_deb),4,$mul($get(rating_sp),1)),$add($get(pad_top1),3),5,5,$ifgreater(2,$get(rating),$get(c0_bg1),$get(c1_bg1)),$ifgreater(2,$get(rating),$get(c0_pn1),$get(c1_pn1)),)
$drawellipse($add($get(rating_deb),5,$mul($get(rating_sp),1)),$add($get(pad_top1),4),3,3,$ifgreater(2,$get(rating),$get(c0_bg2),$get(c1_bg2)),$ifgreater(2,$get(rating),$get(c0_pn2),$get(c1_pn2)),)
$drawellipse($add($get(rating_deb),4,$mul($get(rating_sp),2)),$add($get(pad_top1),3),5,5,$ifgreater(3,$get(rating),$get(c0_bg1),$get(c1_bg1)),$ifgreater(3,$get(rating),$get(c0_pn1),$get(c1_pn1)),)
$drawellipse($add($get(rating_deb),5,$mul($get(rating_sp),2)),$add($get(pad_top1),4),3,3,$ifgreater(3,$get(rating),$get(c0_bg2),$get(c1_bg2)),$ifgreater(3,$get(rating),$get(c0_pn2),$get(c1_pn2)),)
$drawellipse($add($get(rating_deb),4,$mul($get(rating_sp),3)),$add($get(pad_top1),3),5,5,$ifgreater(4,$get(rating),$get(c0_bg1),$get(c1_bg1)),$ifgreater(4,$get(rating),$get(c0_pn1),$get(c1_pn1)),)
$drawellipse($add($get(rating_deb),5,$mul($get(rating_sp),3)),$add($get(pad_top1),4),3,3,$ifgreater(4,$get(rating),$get(c0_bg2),$get(c1_bg2)),$ifgreater(4,$get(rating),$get(c0_pn2),$get(c1_pn2)),)
$drawellipse($add($get(rating_deb),4,$mul($get(rating_sp),4)),$add($get(pad_top1),3),5,5,$ifgreater(5,$get(rating),$get(c0_bg1),$get(c1_bg1)),$ifgreater(5,$get(rating),$get(c0_pn1),$get(c1_pn1)),)
$drawellipse($add($get(rating_deb),5,$mul($get(rating_sp),4)),$add($get(pad_top1),4),3,3,$ifgreater(5,$get(rating),$get(c0_bg2),$get(c1_bg2)),$ifgreater(5,$get(rating),$get(c0_pn2),$get(c1_pn2)),)
)
,)
// duration
$ifgreater($get(duration_maxwidth),0,
$if(%el_isplaying%,,
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth),$get(date_maxwidth),$get(bitrate_maxwidth),$get(rating_maxwidth)),0,1,$get(wh),$get(line1_colour),$get(line1_colour),)
$drawrect($add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth),$get(date_maxwidth),$get(bitrate_maxwidth),$get(rating_maxwidth),1),0,1,$get(wh),$get(line0_colour),$get(line0_colour),)
)
$drawtextex($get(length),$add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth),$get(date_maxwidth),$get(bitrate_maxwidth),$get(rating_maxwidth)),$get(pad_top1),$get(duration_maxwidth),%el_height%,$get(00_txt_colour),left vtop end_ellipsis)
$drawtextex($get(total_length),$add($get(pad_left),$get(tracknumber_maxwidth),$get(title_maxwidth),$get(artist_maxwidth),$get(album_maxwidth),$get(genre_maxwidth),$get(date_maxwidth),$get(bitrate_maxwidth),$get(rating_maxwidth),$get(length_width)),$get(pad_top1),$get(duration_maxwidth),%el_height%,$get(default_txt_colour),left vtop end_ellipsis)
,)
// black vertical line at the end of the track (last column end)
$drawrect($sub($get(ww),18),0,1,$get(wh),0-0-0,0-0-0,)
// dark line on the bot of the latest track of a group
$ifequal(%_GROUP_BY_DATE_%,1,
$ifequal(%el_item_index%,$sub(%el_item_count%,1),
$drawrect(0,$sub(%el_height%,1),$sub($get(ww),18),1,15-15-15,15-15-15,)
,)
$ifequal(%el_item_index%,0,
$drawrect(0,0,$sub($get(ww),18),1,15-15-15,15-15-15,)
,)
,)
$if($or(%el_selected%,%el_focused%),
$drawellipse(3,3,13,13,50-50-50-0,40-40-45,)
$drawellipse(5,5,9,9,100-100-100,35-35-35,)
,
$drawellipse(3,3,13,13,50-50-50-0,32-32-32,)
)
I don't know how to tackle this though.