Тема: iCarDS+Foobar2000
Показать сообщение отдельно
Старый 08.08.2014, 20:03   #548
macarych
Старший Пользователь
 
Регистрация: 12.07.2013
Возраст: 58
Регион: 63, 163
Сообщений: 211
macarych has a reputation beyond reputemacarych has a reputation beyond reputemacarych has a reputation beyond reputemacarych has a reputation beyond reputemacarych has a reputation beyond reputemacarych has a reputation beyond reputemacarych has a reputation beyond reputemacarych has a reputation beyond reputemacarych has a reputation beyond repute
По умолчанию

seriousstas, в 4.3 алгоритм работы кнопки такой: 1-е нажатие разрешает изменение размеров окна и можно увеличить курсором за уголок; 2-е - запрещает и возвращает стоковый размер 600:800.
Если надо просто в фуллскрин и обратно, поменяйте скрипт на нижеприведенный.
Код:
//7 inch v4.3 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,70)
$set_ps_global(wp,$sub(%ps_width%,30))
$set_ps_global(hp,$sub(%ps_height%,140))
$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,60,$sub(%ps_width%,10),$sub(%ps_height%,120),%img_path%\bg.png,nokeepaspect,,)
//
$textbutton(0,0,1,1,,,COMMAND:Help/About)
$if($isvisible_c(VB),
    $imagebutton($sub(%ps_width%,125),$sub(%ps_height%,55),50,50,%img_path%\8n.png,%img_path%\8h.png,PANELSHOW:VB:0;REFRESH)
    ,
    $imagebutton($sub(%ps_width%,125),$sub(%ps_height%,55),50,50,%img_path%\8n.png,%img_path%\8h.png,PANELSHOW:VB:1;REFRESH)
)
//
$movepanel_c(VB,$sub(%ps_width%,112),%yp%,96,%hp%)
$movepanel_c(P1,%xp1%,%yp%,%wp%,%hp%)
$movepanel_c(P2,%xp1%,%yp%,%wp%,%hp%)
$movepanel_c(P3,%xp1%,%yp%,%wp%,%hp%)
$movepanel_c(SB,215,$sub(%ps_height%,55),$sub(%ps_width%,430),50)  
$movepanel_c(IB,145,5,$sub(%ps_width%,290),50) 
//$ifequal(A,B,C,D)
$imagebutton(5,5,50,50,%img_path%\1n.png,%img_path%\1h.png,COMMAND:View/Popup Main Menu)
$imagebutton(75,5,50,50,%img_path%\7n.png,%img_path%\7h.png,COMMAND:View/Fullscreen)
$imagebutton($sub(%ps_width%,55),5,50,50,%img_path%\2n.png,%img_path%\2h.png,COMMAND:File/Exit)
$imagebutton($sub(%ps_width%,125),5,50,50,%img_path%\9n.png,%img_path%\9h.png,COMMAND:View/Hide)
$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(P2)
    ,
    $imagebutton($sub(%ps_width%,195),$sub(%ps_height%,55),50,50,%img_path%\17n.png,%img_path%\17h.png,PANELSHOW:P2:0;PANELSHOW:P3:0;PANELSHOW:P1:1;REFRESH)
    ,
    $imagebutton($sub(%ps_width%,195),$sub(%ps_height%,55),50,50,%img_path%\17n.png,%img_path%\17h.png,PANELSHOW:P1:0;PANELSHOW:P3:0;PANELSHOW:P2:1;REFRESH)
)
$if($isvisible_c(P3)
    ,
    $imagebutton($sub(%ps_width%,55),$sub(%ps_height%,55),50,50,%img_path%\16n.png,%img_path%\16h.png,PANELSHOW:P2:0;PANELSHOW:P3:0;PANELSHOW:P1:1;REFRESH)
    ,
    $imagebutton($sub(%ps_width%,55),$sub(%ps_height%,55),50,50,%img_path%\16n.png,%img_path%\16h.png,PANELSHOW:P1:0;PANELSHOW:P2:0;PANELSHOW:P3:1;REFRESH)
)

Последний раз редактировалось macarych; 16.03.2015 в 20:50.
macarych вне форума   Ответить с цитированием