Конфигурация s8e
Скриншоты:
Ссылки:
Список разделов › foobar2000 › Сборки › Релизы сборок
// ==PREPROCESSOR==
// @import "%fb2k_profile_path%marc2003\common8.js"
// @name "Now Playing"
// @author "marc2003"
// @feature "v1.4"
// @feature "watch-metadb"
// ==/PREPROCESSOR==
//the track info section displays 3 lines of title formatted text. you can customise that here/////////////////////////////////////////////
var line1 = {
text: "", //leave this blank
tf: "%artist%", //enter any title formatting
font: gdi.Font("Segoe UI", 36, 1), //font name, size, style. 1 means bold and 0 is normal.
colour: RGB(240, 240, 240), //colour
y: 0 //change this value to move text up or down.
}
var line2 = {
text: "",
tf: "%title%",
font: gdi.Font("Segoe UI", 28, 1),
colour: RGB(210, 210, 210),
y: 38
}
var line3 = {
text: "",
tf: "[%album% ]['('%date%')']",
font: gdi.Font("Segoe UI", 20, 1),
colour: RGB(180, 180, 180),
y: 70
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var np_bio = window.GetProperty("2k3.np_bio", true);
var np_cd = window.GetProperty("2k3.np_cd", true);
var np_rating = window.GetProperty("2k3.np_rating", true);
var np_track_info = window.GetProperty("2k3.np_track_info", true);
var np_cd_size = window.GetProperty("2k3.np_cd_size", 200);
var p = new panel("Now Playing", ["metadb", "remap", "custom_background", "custom_menu"]);
var c = new cd(0, 0, np_cd_size, np_cd_size);
var r = new rating(0, 0, 24);
var t = new text("lastfm_wiki", 0, 0, 0, 0);
var th = new thumbs();
th.mode = th.modes.disabled;
var bar1y = 0;
var bar1h = 0;
var bar2y = 0;
var bar2h = 0;
var tix = 0;
on_item_focus_change();
function on_playback_time(time) {
th.playback_time(time);
}
function on_size() {
p.size();
th.size();
tix = np_cd ? np_cd_size : 10;
bar1y = p.h - (np_rating ? 130 : 100);
bar1h = np_track_info ? 100 : 0;
bar2y = p.h - 30;
bar2h = np_rating ? 30 : 0;
c.x = np_cd ? 0 : p.w;
c.y = p.h - np_cd_size + (np_cd_size * 0.05);
r.x = np_rating ? tix : p.w;
r.y = bar2y + 3;
t.x = np_bio ? p.w - Math.round(p.w / 3) : p.w;
t.y = 0;
t.w = p.w - t.x - 15;
t.h = p.h - bar1h - bar2h;
t.size();
}
function on_paint(gr) {
p.textcolour = RGB(220, 220, 220);
p.draw_background(gr);
th.draw(gr);
if (np_track_info) {
gr.FillSolidRect(0, bar1y, p.w, bar1h, RGBA(0, 0, 0, 196));
p.left_text(gr, line1.text, line1.font, line1.colour, tix, bar1y + line1.y, p.w - tix - 10, line1.font.Height);
p.left_text(gr, line2.text, line2.font, line2.colour, tix, bar1y + line2.y, p.w - tix - 10, line2.font.Height);
p.left_text(gr, line3.text, line3.font, line3.colour, tix, bar1y + line3.y, p.w - tix - 10, line3.font.Height);
}
if (np_rating) gr.FillSolidRect(0, bar2y, p.w, bar2h, RGBA(0, 0, 0, 136));
if (np_cd) c.draw(gr);
if (np_rating) r.draw(gr);
if (np_bio) {
gr.FillSolidRect(t.x - 15, t.y, t.w + 30, t.h, RGBA(0, 0, 0, 156));
t.draw(gr, RGB(240, 240, 240));
}
p.menu_btn.draw(gr);
}
function on_metadb_changed() {
r.metadb_changed();
th.metadb_changed();
t.metadb_changed();
c.metadb_changed();
if (p.metadb) {
line1.text = p.eval(line1.tf);
line2.text = p.eval(line2.tf);
line3.text = p.eval(line3.tf);
}
window.Repaint();
}
function on_get_album_art_done(metadb, art_id, im, ip) {
c.get_album_art_done(ip);
}
function on_mouse_wheel(step) {
if (t.wheel(step)) return;
th.wheel(step);
}
function on_mouse_move(x, y) {
p.move(x, y);
if (r.move(x, y)) return;
if (t.move(x, y)) return;
if (c.move(x, y)) return;
th.move(x, y);
}
function on_mouse_lbtn_up(x, y) {
if (p.menu_btn.lbtn_up(x, y)) return;
if (r.lbtn_up(x, y)) return;
if (t.lbtn_up(x, y)) return;
}
function on_mouse_lbtn_dblclk(x, y) {
if (c.lbtn_dblclk(x, y)) return;
if (th.lbtn_dblclk(x, y)) return;
}
p.menu = function() {
var _menu = window.CreatePopupMenu();
_menu.AppendMenuItem(MF_STRING, 1, "Bio");
_menu.CheckMenuItem(1, np_bio);
_menu.AppendMenuItem(MF_STRING, 2, "CD");
_menu.CheckMenuItem(2, np_cd);
_menu.AppendMenuItem(MF_STRING, 3, "Rating");
_menu.CheckMenuItem(3, np_rating);
_menu.AppendMenuItem(MF_STRING, 4, "Track Info");
_menu.CheckMenuItem(4, np_track_info);
var idx = _menu.TrackPopupMenu(p.menu_btn.x, p.menu_btn.y);
switch(idx) {
case 1:
np_bio = !np_bio;
window.SetProperty("2k3.np_bio", np_bio);
on_size();
window.Repaint();
break;
case 2:
np_cd = !np_cd;
window.SetProperty("2k3.np_cd", np_cd);
on_size();
window.Repaint();
break;
case 3:
np_rating = !np_rating;
window.SetProperty("2k3.np_rating", np_rating);
on_size();
window.Repaint();
break;
case 4:
np_track_info = !np_track_info;
window.SetProperty("2k3.np_track_info", np_track_info);
on_size();
window.Repaint();
break;
}
_menu.Dispose();
}
http://rusfolder.com/43057648angry_dog:сайт terpilovsky.ru в ауте. Перезалейте пожалуйста линки.
zsoft:Добавлено спустя 38 минут 57 секунд:
Нашел такой скрипт: http://www.hydrogenaud.io/forums/index.php?s=&showtopic=77883&view=findpost&p=886009
вполне устраивает, био даже слишком полное получается), языки переключаются....
zsoft
Гость
(возможно нужно будет перезапустить Foobar).Нашел такой скрипт:...
Scripting Engine Initialization Failed (Now Playing by marc2003, CODE: 0x80020101)
Check the console for more information (Always caused by unexcepted script error).