marc2003: I'm trying to change a few things. It goes slowly, but now at least my paint function is as I want it. It looks like this, so I'm getting three icons for all but one lastfm_mode, which gets two :
function on_paint(gr) {
p.draw_background(gr);
p.left_text(gr, li.header_text(), p.title_font, p.textcolour_hl, 6, 6, p.w - 12, 24);
gr.DrawLine(5, 29, p.w - 5, 29, 1, p.textcolour_hl & 0x45ffffff);
li.text_x = li.lastfm_mode == 1 ? 40 : 60;
for(var i = 0; i < Math.min(li.items, li.rows); i++) {
p.draw_image(gr, img, li.x, li.y + 16 + (i * li.row_height), 16, 16)
p.draw_image(gr, img2, li.x, li.y + 16 + (i * li.row_height), 56, 16)
if (li.lastfm_mode == 1);
else p.draw_image(gr, img3, li.x, li.y + 16 + (i * li.row_height), 96, 16);
p.left_text(gr, li.names[i + li.offset], p.list_font, p.textcolour, li.x + li.text_x, li.y + 15 + (i * li.row_height), li.text_width, li.row_height);
}
}
If you'd like to help with some of these points it'd be appreciated.
1. How do I get a clean "+" in the adress bar instead of "%2B" when I try to replace spaces? I am trying to imitate a search, but it searches for pluses instead of spaces as it stands %2B instead of + in the adress bar. I'm trying with .replace(/ /g, '+')
2. I'd like to use the last.fm link function on a button instead. I figured out a way, but It'd be much cleaner if I could point to what you already use for clicking the text. As I expected, moving "else li.lbtn_up(x, y);" didn't work
3. Is it still possible to open spotify through this? I tried to look after the code in my old scripts, but I had deleted that as I didn't use it then
4. You helped me three years ago to get the autoplaylists to go to the same playlist, called similar. But the names have changed since, and I get some error with the break; line http://www.hydrogenaud.io/forums/index.php...mp;#entry788010
5. Just a small cosmetic thing. But now the mouse pointer turns to a hand when I hover the text, not the buttons. I don't need the tooltips or the hand actually, but it would be nice to have unity.
6. Also a small cosmetic thing, but I'd like it to read for instance just "similar artists" instead of "%artist%: similar artists", as I use four panels at the same timeand already have that info elsewhere. So how would I cut from the colon in "li.header_text()"?
Of course most of this I will probably find out eventually by JFGI, that's what I'm doing slowly, just thought I'd ask, if you have the time.