marc2003: This paints the icons where I want them:
p.draw_image(gr, img6, p.w - bs, bh, bs, bs)
p.draw_image(gr, img3, p.w - 4 - bs * 2, bh, bs, bs)
p.draw_image(gr, img4, p.w - 8 - bs * 3, bh, bs, bs)
p.draw_image(gr, img4, p.w - 12 - bs * 4, bh, bs, bs)
p.draw_image(gr, img, p.w - 16 - bs * 5, bh, bs, bs)
p.draw_image(gr, img7, p.w - 20 - bs * 6, bh, bs, bs)
gr.DrawLine(p.w - 25 - bs * 6, 13,p.w - 25 - bs * 6, 0, 1, p.textcolour_hl & 0x45ffffff);
if (li.lastfm_mode == 0) //similar artists
{
p.draw_image(gr, img, p.w - 16 - bs * 8, bh, bs, bs)
p.draw_image(gr, img, p.w - 20 - bs * 9, bh, bs, bs)
//p.draw_image(gr, img5, p.w - (bstart + 5 + bs * 4), bh, bs, bs)
}
else if (li.lastfm_mode == 3) //top albums
{
p.draw_image(gr, img9, p.w - 16 - bs * 8, bh, bs, bs)
p.draw_image(gr, img10, p.w - 20 - bs * 9, bh, bs, bs)
p.draw_image(gr, img13, p.w - 24 - bs * 10, bh, bs, bs)
}
else if (li.lastfm_mode == 4) //top tracks
{
p.draw_image(gr, img11, p.w - 16 - bs * 8, bh, bs, bs)
p.draw_image(gr, img12, p.w - 20 - bs * 9, bh, bs, bs)
p.draw_image(gr, img13, p.w - 24 - bs * 10, bh, bs, bs)
}
I want all the paneltype independent-buttons to perform browser searches similar to this:
p.browser("https://www.youtube.com/results?search_query=" + li.header_text().replace(/: top tracks/g, '').replace(/ /g, '+'));
(But I suspect there is a better way than to replace "top tracks" and so on...)
Then, I thought about extra buttons for:
File operations (move selected tracks)
Scan replaygain
Open foo_run? I want to open album art downloader and search for art for current album (the header in the "top album" version, but would need to get artist and directory as well... hmm)
Some "softplaylist" stuff like search for artists top tracks and so on, available in context menu
No idea if these last buttons can even be done here, or if they are better suited for a toolbar... Again, space is important