Hi,
thank you very much for this awesome panel!
I updated almost all of my very outdated WSH panels and Im very happy.
One question - and a request for coding help :/
I am using the sample script of the menu button. I would love to add an onHover image to the menu image though.
Can someone give me pointers into the right direction?
Here is the script I use:
'use strict';
window.DefinePanel('Menu Button', {author:'marc2003'});
include(fb.ComponentPath + 'samples\\complete\\js\\lodash.min.js');
include(fb.ComponentPath + 'samples\\complete\\js\\helpers.js');
include(fb.ComponentPath + 'samples\\complete\\js\\panel.js');
let panel = new _panel(true);
let buttons = new _buttons();
buttons.buttons.menu = new _button(0, 0, 36, 36, {normal : 'misc\\foobar2000.png'}, (x, y, mask) => { _menu(0, 36); }, 'Menu');
function on_focus(is_focused) {
if (is_focused) {
plman.SetActivePlaylistContext();
}
}
function on_colours_changed() {
panel.colours_changed();
window.Repaint();
}
function on_mouse_lbtn_up(x, y, mask) {
buttons.lbtn_up(x, y, mask);
}
function on_mouse_leave() {
buttons.leave();
}
function on_mouse_move(x, y) {
buttons.move(x, y);
}
function on_mouse_rbtn_up(x, y) {
if (buttons.buttons.menu.trace(x, y)) {
_help(0, 36);
return true;
} else {
return panel.rbtn_up(x, y);
}
}
function on_paint(gr) {
panel.paint(gr);
buttons.paint(gr);
}
function on_size() {
panel.size();
}