Список разделов › foobar2000 › Сборки › Релизы сборок
что значит умнее? перевод более грамотный или что-то другое?вовасбрат:Они гораздо умнее Вадимовских
//Simple level indicator by macarych
//for neutron v01.12.2012
var DT_TOP = 0x00000000;
var DT_CENTER = 0x00000001;
var DT_VCENTER = 0x00000004;
var DT_WORDBREAK = 0x00000010;
var DT_CALCRECT = 0x00000400;
var DT_NOPREFIX = 0x00000800;
function RGB(r, g, b) { return (0xff000000 | (r << 16) | (g << 8) | (b));
};
function RGBA(r, g, b, a) { return ((a << 24) | (r << 16) | (g << 8) | (b));
};
VUMeter = new ActiveXObject("VUMeter");
VUMeter.RegisterWindow(window.ID);
var ww = 0, wh = 0;
function on_size() {
ww = window.Width;
wh = window.Height;
};
function on_paint(gr) {
gr.FillSolidRect(0, 0, ww, wh, RGB(0,0,0));
LL=VUMeter.LeftLevel;
RL=VUMeter.RightLevel;
L=(LL+RL)/2;
N=ww/25;
gr.FillSolidRect(0, 0, ww*L, wh, RGBA(225, 150, 20, 60));
gr.FillSolidRect(ww*L, 0, ww-ww*L, wh, RGBA(0, 0, 0, 255));
gr.GdiDrawText("%",gdi.Font("Calibri", 12),RGB(225,150,20),0,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("10",gdi.Font("Calibri", 12),RGB(225,150,20),0+N*2,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("50",gdi.Font("Calibri", 12),RGB(225,150,20),N*10,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("100",gdi.Font("Calibri", 12),RGB(225,150,20),N*20,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),0+N,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),0+N*3,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),0+N*4,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),0+N*5,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),0+N*6,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),0+N*7,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),0+N*8,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),0+N*9,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),N*10+N,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),N*10+N*2,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),N*10+N*3,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),N*10+N*4,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),N*10+N*5,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),N*10+N*6,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),N*10+N*7,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),N*10+N*8,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),N*10+N*9,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(250,0,0),N*20+N,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(250,0,0),N*20+N*2,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(250,0,0),N*20+N*3,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(250,0,0),N*20+N*4,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
}
//Simple level indicator by macarych
//for neutron v01.12.2012
var DT_TOP = 0x00000000;
var DT_CENTER = 0x00000001;
var DT_VCENTER = 0x00000004;
var DT_WORDBREAK = 0x00000010;
var DT_CALCRECT = 0x00000400;
var DT_NOPREFIX = 0x00000800;
function RGB(r, g, b) { return (0xff000000 | (r << 16) | (g << 8) | (b));
};
function RGBA(r, g, b, a) { return ((a << 24) | (r << 16) | (g << 8) | (b));
};
VUMeter = new ActiveXObject("VUMeter");
VUMeter.RegisterWindow(window.ID);
var ww = 0, wh = 0;
function on_size() {
ww = window.Width;
wh = window.Height;
};
function on_paint(gr) {
gr.FillSolidRect(0, 0, ww, wh, RGB(0,0,0));
LL=VUMeter.LeftLevel;
RL=VUMeter.RightLevel;
L=(LL+RL)/2;
N=ww/25;
gr.FillSolidRect(0, 0, ww*L, wh, RGBA(225, 150, 20, 60));
gr.FillSolidRect(ww*L, 0, ww-ww*L, wh, RGBA(0, 0, 0, 255));
gr.GdiDrawText("%",gdi.Font("Calibri", 12),RGB(225,150,20),0,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("10",gdi.Font("Calibri", 12),RGB(225,150,20),0+N*2,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("50",gdi.Font("Calibri", 12),RGB(225,150,20),N*10,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText("100",gdi.Font("Calibri", 12),RGB(225,150,20),N*20,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
for (var i = 0; i < 20; i++) {
if(i !=0 && i != 2 && i != 10) {
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(225,150,20),i*N,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
}
}
for (var i = 21; i <= 25; i++) {
gr.GdiDrawText("|",gdi.Font("Calibri", wh/3,1),RGB(250,0,0),i*N,0, N, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
}
}
Все в точности как на вашем скрине...Проверьте настройки, они должны быть такими как на скриншоте.