Hy Marc,
thx for your fast reply. Unfortunately it doesn't work with your hint.
I don't see a heart for loved songs or a playcount. I think that I could made
a mistake because I don't have any experience in JavaScript (My home base is C).
Please can help me with the elplaylist config .
Here is the script:
$if(%el_isplaying%,,
// track BG
$if($or(%el_selected%,%el_focused%),
$gradientrect(0,0,%_ww_%,%el_height%,15-15-20,35-35-40,,)
$drawrect(0,$sub(%_wh_%,1),%_ww_%,1,10-10-15,)
$gradientrect(10,0,$sub(%_ww_%,20),1,0-0-0-0,0-0-0,horizontal,50)
$drawrect(0,1,%_ww_%,1,35-35-40,)
$gradientrect(0,$sub(%_wh_%,1),%_ww_%,1,40-40-45,45-45-50,horizontal,50)
,
$gradientrect(10,0,$sub(%_ww_%,20),1,0-0-0-0,0-0-0,horizontal,50)
$gradientrect(10,1,$sub(%_ww_%,20),1,0-0-0-0,40-40-45,horizontal,50)
)
// tracknumber or list index (when no header)
$font(%_txt_font_name_%, $sub(%_txt_font_size_%,2),)
$if(%queue_index%,
$drawroundrect(%_tracknumber.x_%,$add(%_pad_top_%,1),$sub(%_tracknumber.w_%,8),15,2,2,47-127-47,0-0-0-160,)
$gradientrect($add(%_tracknumber.x_%,2),$add(%_pad_top_%,3),$sub(%_tracknumber.w_%,11),13,67-167-67,37-137-37,)
,
$drawroundrect(%_tracknumber.x_%,$add(%_pad_top_%,1),$sub(%_tracknumber.w_%,8),15,2,2,60-60-65,0-0-0-160,)
$gradientrect($add(%_tracknumber.x_%,2),$add(%_pad_top_%,3),$sub(%_tracknumber.w_%,11),13,75-75-85,45-45-55,)
$gradientrect($add(%_tracknumber.x_%,2),$add(%_pad_top_%,3),$sub(%_tracknumber.w_%,11),6,0-0-0-0,250-250-255-20,)
)
$drawtextex(%_tracknumber_%,%_tracknumber.x_%,$add(%_pad_top_%,2),$sub(%_tracknumber.w_%,6),%_wh_%,%_tracknumber_colour_%,hcenter top)
// artist
$if(%_artist_%,
$puts(artist.w, $ifgreater(%_artist.w_%,%_free.w_%,%_free.w_%,%_artist.w_%))
$font(%_txt_font_name_%, %_txt_font_size_%,)
$drawtextex(%_artist_%,%_artist.x_%,$add(%_pad_top_%,1,$if($stricmp($ansi($upper(%_artist_%)),$upper(%_artist_%)),0,1)),$get(artist.w),%_wh_%,0-0-0,end_ellipsis)
$drawtextex(%_artist_%,%_artist.x_%,$add(%_pad_top_%,$if($stricmp($ansi($upper(%_artist_%)),$upper(%_artist_%)),0,1)),$get(artist.w),%_wh_%,%_artist_colour_%,end_ellipsis)
,
$puts(artist.w,0)
)
// title
$ifgreater($get(artist.w),%_free.w_%,,
$puts(free.w,$sub(%_free.w_%, $get(artist.w)))
$puts(title.x,$add(%_artist.x_%, $get(artist.w)))
$puts(title.w,$ifgreater(%_title.w_%,$get(free.w),$get(free.w),%_title.w_%))
$font(%_txt_font_name_%, %_txt_font_size_%,)
$drawtextex(%_title_%,$get(title.x),$add(%_pad_top_%,1,$if($stricmp($ansi($upper(%_title_%)),$upper(%_title_%)),0,1)),$get(title.w),%_wh_%,0-0-0,end_ellipsis)
$drawtextex(%_title_%,$get(title.x),$add(%_pad_top_%,$if($stricmp($ansi($upper(%_title_%)),$upper(%_title_%)),0,1)),$get(title.w),%_wh_%,%_title_colour_%,end_ellipsis)
)
$ifequal(%LASTFM_LOVED_DB%,1,$imageabs($sub(%el_width%,90),0,20,20,%images%\love_h_small.png,,,,),)
// duration
$font(%_txt_font_name_%, %_txt_font_size_%,)
$if(%el_isplaying%,,
$drawtextex($if2(%length%,0:00),%_duration.x_%,$add(%_pad_top_%,1),%_duration.w_%,%_wh_%,0-0-0,right)
$drawtextex($if2(%length%,0:00),%_duration.x_%,%_pad_top_%,%_duration.w_%,%_wh_%,%_duration_colour_%,right)
)
// rating
$if(%el_isplaying%,,
$font(guifx v2 transports,12,)
$drawtextex($repeat(b,5),$add(%_rating.x_%,05),$add(%_pad_top_%,1),%_rating.w_%,%_wh_%,00-00-05,)
$drawtextex($repeat(b,5),$add(%_rating.x_%,05),$add(%_pad_top_%,3),%_rating.w_%,%_wh_%,35-35-40,)
$drawtextex($repeat(b,5),$add(%_rating.x_%,05),$add(%_pad_top_%,2),%_rating.w_%,%_wh_%,20-20-25,)
$font(guifx v2 transports,11,)
$drawtextex($repeat(b,%_rating_%),$add(%_rating.x_%,05),$add(%_pad_top_%,3),%_rating.w_%,%_wh_%,0-0-0,)
$drawtextex($repeat(b,%_rating_%),$add(%_rating.x_%,05),$add(%_pad_top_%,2),%_rating.w_%,%_wh_%,%_rating_colour_%,)
)
// playcounter
$if(%el_isplaying%,,
$ifgreater(%_playcounter_%,0,
$ifgreater(%_title.w_%,$get(free.w),
$puts(playcounter.x,$sub(%_rating.x_%,%_playcounter.w_%))
,
$puts(playcounter.x,$add($get(title.x),$get(title.w)))
)
$font(%_small_font_name_%, %_small_font_size_%,)
$drawtextex(%_playcounter_%,$get(playcounter.x),%_pad_top_%,%_playcounter.w_%,%_wh_%,%_playcounter_colour_%,right)
,)
)
// icon select marker
$gradientrect(10,$add(%_pad_top_%,4),12,12,0-0-0,35-35-40,,)
$gradientrect(11,$add(%_pad_top_%,5),10,10,10-10-10,30-30-35,,)
$if($or(%el_selected%,%el_focused%),
$font(Webdings,12,)
$drawtextex('?',9,$add(%_pad_top_%,0),15,15,50-170-210,)
,)
)
Marc, I have a further question. I am very interesset in the foobar skin here: http://br3tt.deviantart.com/art/Xch4nge-216397917
The big problem is that your excellent script would not work on this skin because it you the WHS Panel Mod Mod 1.4.2.
How complicated is it port a skin to the newer Version of WHS Panel Mod Mod?
Many thanks!
Andi