marc2003, where are the options regarding font size and font name stored in your scripts? What would be the easiest way to modify/override them if I only want a specific font and size for the panel below?
// ==PREPROCESSOR==
// @name "Last.fm Similar Artists / User Charts"
// @author "marc2003"
// @import "%fb2k_component_path%samples\complete\js\lodash.min.js"
// @import "%fb2k_component_path%samples\complete\js\helpers.js"
// @import "%fb2k_component_path%samples\complete\js\panel.js"
// @import "%fb2k_component_path%samples\complete\js\list.js"
// @import "%fb2k_component_path%samples\complete\js\lastfm.js"
// ==/PREPROCESSOR==
// Requires the "Guifx v2 Transports.ttf" font which can be downloaded from
// http://blog.guifx.com/2009/04/02/guifx-v2-transport-font/
var panel = new _.panel('Last.fm Similar Artists / User Charts', ['metadb']);
var lastfm = new _.lastfm();
var list = new _.list('lastfm_info', LM, TM-35, 0, 0);
panel.item_focus_change();
function on_notify_data(name, data) {
lastfm.notify_data(name, data);
}
function on_size() {
panel.size();
list.w = panel.w - (LM * 2);
list.h = panel.h - TM+50;
list.size();
}
function on_paint(gr) {
panel.paint(gr);
//gr.FillSolidRect(0, 0, panel.w, TM, panel.colours.header);
//gr.GdiDrawText(list.header_text(), panel.fonts.title, panel.colours.highlight, LM, 0, panel.w - (LM * 2), TM, LEFT);
list.paint(gr);
}
function on_metadb_changed() {
list.metadb_changed();
}
function on_mouse_wheel(s) {
list.wheel(s);
}
function on_mouse_move(x, y) {
list.move(x, y);
}
function on_mouse_lbtn_up(x, y) {
list.lbtn_up(x, y);
}
function on_key_down(k) {
list.key_down(k);
}
function on_mouse_rbtn_up(x, y) {
return panel.rbtn_up(x, y, list);
}
Also, I'd like to modify the script so it would cross reference my library and would only show similar artists which I don't have yet. Any ideas?