@TP Wang: Tahnks for the last version. I dont know if you did it on purpose but my scripts dont crash anymore on startup
Now i have another question about foobar startup.
This a part of the code i use
function reloadConf(inipath)
{
skinpath = translatePath(utils.ReadINI(inipath, "SKIN", "imgpath", ""),true);
///progressbar
var pbw = window.width - 135;
var pbh = 12;
var pbx = window.width/2 - pbw/2;
var pby = window.height - pbh - 4;
np_progbar = new ProgressBar(pbx, pby, pbw, pbh);
///rating
np_rating = new Rating(window.width - pbx + 3, window.height -17, skinpath);
//lovebutton
np_lovebutton = new LoveButton( 3, window.height -22, skinpath);
on_item_focus_change();
}
reloadConf(inipath);
My problem is that when foobar starts my objects np_lovebutton , np_rating and np_progbar are not created. Then when i open the script config and click ok, the objects appear. May be you can help me figure out what i am doing wrong.
Thanks again for all your hard work.