Foobar2000–panel stack splitter

在imagebutton上点击时后,鼠标总是变成水平状,在 behaviour 中关闭 enable resizeable border就好了.

 

CUI的布局:

1

根选项最好是Horizontal/Vertical splitter,因为只有这样才能控制下面Panel Stack Splitter的caption的显隐,Playlist Tabs只能包含一个播放列表,不防设在PSS中设Playlist Tabs的名字为ELPlaylist。配制那个PSS,对下属的两个面板就选“强制布局”,位置参数都设成这样,Left:0,Right:0, Width: %ps_width%, Height: $sub(%ps_height,36),然后在Script的PerTrack中粘贴下面的代码:


$puts(skin_path,%ps_foobar2000_path%\skin\mono_lite)

$drawrect(0,$sub(%ps_height%,36),%ps_width%,36,30-30-30,,)

$if($or($not(%ps_isplaying%),%ps_ispause%),
$imagebutton(41,$sub(%_height%,29),,,$get(skin_path)\play.png,$get(skin_path)\play_h.png,COMMAND:Playback/Play or Pause),
$imagebutton(41,$sub(%_height%,29),,,$get(skin_path)\pause.png,$get(skin_path)\pause_h.png,COMMAND:Playback/Play or Pause))
$imagebutton(12,$sub(%_height%,28),,,$get(skin_path)\prev.png,$get(skin_path)\prev_h.png,COMMAND:Playback/Previous)
$imagebutton(71,$sub(%_height%,28),,,$get(skin_path)\next.png,$get(skin_path)\next_h.png,COMMAND:Playback/Next)
$imageabs(105,$sub(%_height%,30),1,24,$get(skin_path)\splitter.png)

$if($isvisible_c(ELPlaylist),
$textbutton(120,$sub(%ps_height%,30),$add($gettextwidth(Lyric),10),22,Lyric,Lyric,PANELSHOW:ELPlaylist:0;PANELSHOW:Lyric:1;REFRESH,fontcolor:255-255-255 brushcolor:100-100-100,fontcolor:255-219-0 brushcolor:0-35-70),
$textbutton(120,$sub(%ps_height%,30),$add($gettextwidth(Lyric),10),22,Lyric,Lyric,PANELSHOW:ELPlaylist:1;PANELSHOW:Lyric:0;REFRESH,fontcolor:255-255-255 brushcolor:100-100-100,fontcolor:255-219-0 brushcolor:0-35-70)
)


2

posted @ 2015-05-07 10:40  cnsealine  阅读(1037)  评论(0编辑  收藏  举报