Gad_str » 11.01.2010, 21:14
Заменил foo_uie_wsh_panel.dll на foo_uie_wsh_panel_mod.dll а старые скрипты не подходят пишет ошибка и не может сохранить.
[code="громкость старый скрипт"]//--------
var g_font = gdi.Font(-10, 800, 0, 0, "Segoe UI");
var g_drag = 0;
//--------
function RGB(r,g,b){ return (0xff000000|(r0)
fb.VolumeUp();
else
fb.VolumeDown();
}
//--------
function on_volume_change(val){
window.Repaint();
}
//EOF[/code]
[code="полоса проигрования старый скрипт"]//--------
var weight_normal =400;
var weight_bold =800;
var italic_no =0;
var italic =1;
var uline_no =0;
var uline =1;
//--------
var align_top =0;
var align_middle=1;
var align_bottom=2;
var align_left =0;
var align_center=1;
var align_right =2;
//--------
var trim_no =0;
var trim_chara =1;
var trim_word =2;
var trim_elips_chara =3;
var trim_elips_word =4;
var trim_elips_path =5;
//--------
var flag_rtl =0x0001;
var flag_vert =0x0002;
var flag_nofit =0x0004;
var flag_dispctrl =0x0020;
var flag_nofallback =0x0400;
var flag_trailspace =0x0800;
var flag_nowrap =0x1000;
var flag_linelimit =0x2000;
var flag_noclip =0x4000;
//--------
function StrFmt(alignH,alignV,trim,flag){ return ((alignH0) return h.toString()+":"+zpad(m)+":"+zpad(s);
return m.toString()+":"+zpad(s);
}
//--------
var g_font = gdi.Font(-11, weight_bold, italic_no, uline_no, "Segoe UI");
var g_titlefmt = fb.TitleFormat("%playback_time% / %length%");
var g_fileinfo = null;
var g_drag = 0;
var g_drag_seek = 0;
//--------
function on_paint(gr){
var ww = window.Width;
var wh = window.Height;
var pos = 0;
var length = fb.PlaybackLength;
var txt;
if(length > 0){
if(g_drag){
pos = window.Width * g_drag_seek;
txt = "Seek " + TimeFmt(g_drag_seek * length) + " / " + TimeFmt(length);
}
else{
pos = window.Width * (fb.PlaybackTime / length);
txt = g_titlefmt.Eval();
}
}
gr.FillGradRect(0, 0, pos, wh, 90, RGB(16,38,50), RGB(6,6,8));
gr.FillGradRect(pos, 0, ww-pos, wh, 90, RGB(6,6,8), RGB(17,30,29));
gr.DrawString(txt, g_font, RGB(255,255,255), 0, 0, ww, wh,
StrFmt(align_center, align_middle, trim_no, flag_nowrap | flag_noclip));
gr.DrawRect(0,0, ww-1, wh-1, 1, RGB(47,60,59));
}
//--------
function on_mouse_lbtn_down(x,y){
g_drag = 1;
}
//--------
function on_mouse_lbtn_up(x,y){
if(g_drag){
g_drag = 0;
g_drag_seek = x / window.Width;
g_drag_seek = (g_drag_seek<0) ? 0 : (g_drag_seek<1) ? g_drag_seek : 1;
fb.PlaybackTime = fb.PlaybackLength * g_drag_seek;
}
}
//--------
function on_mouse_move(x,y){
if(g_drag){
g_drag_seek = x / window.Width;
g_drag_seek = (g_drag_seek<0) ? 0 : (g_drag_seek<1) ? g_drag_seek : 1;
window.Repaint();
}
}
//--------
function on_playback_new_track(info){
window.Repaint();
}
//--------
function on_playback_stop(){
window.Repaint();
}
//--------
function on_playback_seek(time){
window.Repaint();
}
//--------
function on_playback_time(time){
window.Repaint();
}
//EOF[/code]
Что не так подскажите и как в них прозрачность добавить????
foo_uie_wsh_panel_mod.dll 1.2.1