forked from phts/js_marc2003
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautoplaylists.txt
49 lines (40 loc) · 1.1 KB
/
autoplaylists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// ==PREPROCESSOR==
// @name "Autoplaylists"
// @author "marc2003"
// @import "%fb2k_profile_path%js_marc2003\js\lodash.min.js"
// @import "%fb2k_profile_path%js_marc2003\js\helpers.js"
// @import "%fb2k_profile_path%js_marc2003\js\panel.js"
// @import "%fb2k_profile_path%js_marc2003\js\list.js"
// ==/PREPROCESSOR==
var panel = new _.panel("Autoplaylists");
var list = new _.list("autoplaylists", 10, 24, 0, 0);
function on_size() {
panel.size();
list.w = panel.w - 20;
list.h = panel.h - 24;
list.size();
}
function on_paint(gr) {
panel.paint(gr);
gr.FillSolidRect(0, 0, panel.w, 24, panel.colours.header);
gr.GdiDrawText(list.header_text(), panel.fonts.title, panel.colours.highlight, 10, 0, panel.w - 20, 24, LEFT);
list.paint(gr);
}
function on_mouse_wheel(s) {
list.wheel(s);
}
function on_mouse_move(x, y) {
list.move(x, y);
}
function on_mouse_leave() {
list.leave();
}
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);
}