edit this instead...
// ==PREPROCESSOR==
// @author "marc2003"
// @name "Panel Chooser"
// @import "%fb2k_profile_path%wsh_marc2003\js\lodash.min.js"
// @import "%fb2k_profile_path%wsh_marc2003\js\helpers.js"
// @import "%fb2k_profile_path%wsh_marc2003\js\panel.js"
// ==/PREPROCESSOR==
var panel = new _.panel("Panel Chooser");
var row_height;
var index = -1;
var scripts = [
["Album art", "wsh_marc2003\\samples\\album art.txt"],
["Allmusic", "wsh_marc2003\\samples\\allmusic review.txt"],
["Last.fm Bio", "wsh_marc2003\\samples\\last.fm bio.txt"],
["Last.fm Info", "wsh_marc2003\\samples\\last.fm artist info - user charts - recommendations - recent tracks.txt"],
["Musicbrainz", "wsh_marc2003\\samples\\musicbrainz.txt"],
["News / Reviews / Blogs", "wsh_marc2003\\samples\\echonest news - reviews - blogs.txt"],
["Properties", "wsh_marc2003\\samples\\properties.txt"],
["Thumbs", "wsh_marc2003\\samples\\thumbs.txt"]
];
function on_size() {
panel.size();
}
function on_paint(gr) {
panel.paint(gr);
row_height = panel.fonts.title.Height + 10;
if (index >=0 && index < scripts.length)
gr.FillSolidRect(0, index * row_height, panel.w, row_height, panel.colours.header);
_.forEach(scripts, function (item, i) {
gr.GdiDrawText(item[0], panel.fonts.title, panel.colours.text, 5, i * row_height, panel.w - 10, row_height, LEFT);
});
}
function on_mouse_move(x, y) {
var new_index = _.floor(y / row_height);
if (index != new_index) {
index = new_index
window.SetCursor(index < scripts.length ? IDC_HAND : IDC_ARROW);
window.Repaint();
}
}
function on_mouse_lbtn_up(x, y) {
if (index < scripts.length)
window.NotifyOthers("load_script", scripts[index][1]);
}
function on_mouse_leave() {
index = -1;
window.Repaint();
}