macarych |
10.12.2014 23:49 |
Цитата:
Сообщение от Lexins
(Сообщение 313118)
Есть ли возможность прикрутить к фабару полоску, которая показывает длину трека, как в стандартном муз.плеере (пометил красным на скрине)
|
Сначала Вы просите от нее избавится, потом вернуть обратно...
Код:
//7 inch v4.5.for iCar by macarych
$set_ps_global(color3,225-150-20)
$set_ps_global(color2,96-96-96)
$set_ps_global(color0,60-60-60)
$set_ps_global(color4,225-150-20-60)
$set_ps_global(color5,225-150-20-40)
$set_ps_global(color1,$if(%isplaying%,$if(%ispaused%,%color2%,%color4%),%color2%))
$set_ps_global(color6,$if(%isplaying%,$if(%ispaused%,%color2%,%color3%),%color2%))
//
$set_ps_global(xp1,15)
$set_ps_global(yp,15)
$set_ps_global(wp,$sub(%ps_width%,30))
$set_ps_global(hp,$sub(%ps_height%,85))
$set_ps_global(img_path1,%ps_foobar2000_path%\themes\off)
$set_ps_global(img_path2,%ps_foobar2000_path%\themes\on)
$set_ps_global(img_path,$if(%isplaying%,$if(%ispaused%,%img_path1%,%img_path2%),%img_path1%))
$set_ps_global(rs,$sub(%ps_width%,%ps_height%))
//
$fillrect(0,0,%ps_width%,%ps_height%,60-60-60)
$drawimage(5,5,$sub(%ps_width%,10),$sub(%ps_height%,65),%img_path%\bg.png,nokeepaspect,,)
//
$textbutton(0,0,1,1,,,COMMAND:Help/About)
//
//$imagebutton(5,$sub(%ps_height%,55),50,50,%img_path%\3n.png,%img_path%\3h.png,COMMAND:Playback/Previous)
//$if(%isplaying%,
// $if(%ispaused%,
// $imagebutton(75,$sub(%ps_height%,55),50,50,%img_path%\4n.png,%img_path%\4h.png,COMMAND:Playback/Play or pause),
// $imagebutton(75,$sub(%ps_height%,55),50,50,%img_path%\5n.png,%img_path%\5h.png,COMMAND:Playback/Play or pause)),
// $imagebutton(75,$sub(%ps_height%,55),50,50,%img_path%\4n.png,%img_path%\4h.png,COMMAND:Playback/Play or pause)
//)
//$imagebutton(145,$sub(%ps_height%,55),50,50,%img_path%\6n.png,%img_path%\6h.png,COMMAND:Playback/Next)
//
$if($isvisible_c(main_panel_1),
$imagebutton($sub(%ps_width%,125),$sub(%ps_height%,55),50,50,%img_path%\7n.png,%img_path%\7h.png,PANELSHOW:main_panel_1:0;PANELSHOW:main_panel_3:0;PANELSHOW:main_panel_2:1;REFRESH),
$if($isvisible_c(main_panel_2),
$imagebutton($sub(%ps_width%,125),$sub(%ps_height%,55),50,50,%img_path%\71n.png,%img_path%\71h.png,PANELSHOW:main_panel_1:0;PANELSHOW:main_panel_2:0;PANELSHOW:main_panel_3:1;REFRESH),
$imagebutton($sub(%ps_width%,125),$sub(%ps_height%,55),50,50,%img_path%\72n.png,%img_path%\72h.png,PANELSHOW:main_panel_2:0;PANELSHOW:main_panel_3:0;PANELSHOW:main_panel_1:1;REFRESH)
)
)
//
$if($isvisible_c(toolbar_1),
$imagebutton($sub(%ps_width%,195),$sub(%ps_height%,55),50,50,%img_path%\8n.png,%img_path%\8h.png,PANELSHOW:toolbar_1:0;PANELSHOW:toolbar_3:0;PANELSHOW:toolbar_2:1;REFRESH),
$if($isvisible_c(toolbar_2),
$imagebutton($sub(%ps_width%,195),$sub(%ps_height%,55),50,50,%img_path%\55n.png,%img_path%\55h.png,PANELSHOW:toolbar_1:0;PANELSHOW:toolbar_2:0;PANELSHOW:toolbar_3:1;REFRESH),
$imagebutton($sub(%ps_width%,195),$sub(%ps_height%,55),50,50,%img_path%\19n.png,%img_path%\19h.png,PANELSHOW:toolbar_2:0;PANELSHOW:toolbar_3:0;PANELSHOW:toolbar_1:1;REFRESH)
)
)
$imagebutton($sub(%ps_width%,55),$sub(%ps_height%,55),50,50,%img_path%\1n.png,%img_path%\1h.png,COMMAND:View/Popup Main Menu)
//
$movepanel_c(main_panel_1,%xp1%,%yp%,%wp%,%hp%)
$movepanel_c(main_panel_2,%xp1%,%yp%,%wp%,%hp%)
$movepanel_c(main_panel_3,%xp1%,%yp%,%wp%,%hp%)
$movepanel_c(toolbar_1,5,$sub(%ps_height%,55),$sub(%ps_width%,220),50)
$movepanel_c(toolbar_2,5,$sub(%ps_height%,55),$sub(%ps_width%,220),50)
$movepanel_c(toolbar_3,5,$sub(%ps_height%,55),$sub(%ps_width%,220),50)
будет вот так
|