引用
最初由 Jonsoncao 发布
$if(%_classical%,
$puts(track,
$if(%title%,$caps(%title%),$caps(%_filename%)))
$puts(track_wt,$max($strchr($get(track),'('),$strchr($get(track),'['),$strchr($get(track),'('),$strchr($get(track),'【')))
$puts(track_left,$substr($get(track),1,$sub($get(track_wt),1)))
$puts(track_right,$substr($get(track),$get(track_wt),$len($get(track))))
$puts(title,
$if($strcmp(0,$get(track_wt)),
%_c_title%$get(track),
%_c_title%$get(track_left)%_c_title2%$get(track_right)
))
$if(%_single%,
$if(%title%,%_c_title%$get(title)
$if(%album%, %_single_album%''From %album%''),
%_c_title%%_filename%),
$if(%_various%,
$if($not($stricmp(%artist%,%album artist%)),
%_various_artist%$caps(%artist%)
%_frame%-
$get(title)),
$get(title)
)
))
$if(%_newmode%,
$puts(track,
$if(%title%,$caps(%title%),$caps(%_filename%)))
$puts(track_wt,$max($strchr($get(track),'('),$strchr($get(track),'['),$strchr($get(track),'('),$strchr($get(track),'【')))
$puts(track_left,$substr($get(track),1,$sub($get(track_wt),1)))
$puts(track_right,$substr($get(track),$get(track_wt),$len($get(track))))
$puts(title,
$if($strcmp(0,$get(track_wt)),
%_c_title%$get(track),
%_c_title%$get(track_left)%_c_title2%$get(track_right)
))
%_frame%
$if(
$or($stricmp($cut(%tracknumber%,2),1/),
$stricmp($cut(%tracknumber%,2),01),
$stricmp($cut(%tracknumber%,2),1)),
-, )
$if(%_single%,
$if(%title%,%_c_title%$get(title)
$if(%album%, %_single_album%''From %album%''),
%_c_title%%_filename%),
$if(%_various%,
$if($not($stricmp(%artist%,%album artist%)),
%_various_artist%$caps(%artist%)
%_frame%-
$get(title)),
$get(title)
)
)
%_frame%
$if(
$or($stricmp($cut(%tracknumber%,2),1/),
$stricmp($cut(%tracknumber%,2),01),
$stricmp($cut(%tracknumber%,2),1)),
$repeat(─,100)))
以上是column UI的标题栏的代码…………
这段代码哪里出了错…………造成我的一些动漫专辑的歌曲显示不能…………]
不是打着问号,而是根本那里就没有字—_—b
着色的代码像是写错了。
这是我写的一个最简单的playlist,你试试看
$puts(c_darkplno,000080|000080)
$puts(c_lightplno,0020c0|0020c0)
$puts(c_title,EE6600|EE6600)
$puts(c_extinfo,BB8800|BB8800)
$puts(c_lightgreen2,$if(%_isplaying%,FFFFFF|FFFFFF,99FF55|7EBABE))
$puts(c_blue,CC9922|7EBABE)
$puts(c_blue2,$if(%_isplaying%,66FF88|66FF88,FFBB66|DDDDDD))
$puts(c_darkblue,996600|7EBABE)
$puts(c_darkblue2,$if(%_isplaying%,669922|669922,996600|AAAAAA))
$puts(c_green,44FF44|44FF44)
$puts(c_lightgreen,D0CB46|D0CB46)
$puts(c_lightorange,88AABB|88AABB)
$puts(c_orange,0055DD|0055DD)
$puts(c_codec,7E80BE|7E80BE)
//variables
$puts(s_codec,[%__codec%])
$puts(s_extrainfo,[%__extrainfo%])
$puts(s_station,[%station%])
$puts(s_filename,%_filename%)
$puts(s_title,[%title%])
$puts(l_title,35)
$puts(l_artist,35)
//deciding various artists
$puts(is_various,$if($or($or($or($or(%various%,%performer%),%album artist%),$stricmp($substr(%_directoryname%,0,5),'VA - ')),$stricmp($substr($directory(%_path%,2),0,5),'VA - ')),1,0))
$puts(color_extra,1)
//playlist number formating
$if(%_isplaying%,
$puts(plno,$get(c_green)'♪♪. ')
,
$puts(plno,
$repeat($get(c_darkplno)'0',$sub($len(%_playlist_total%),$len(%_playlist_number%)))$get(c_lightplno)%_playlist_number%'. ')
)
//title formating
//-------------------
//removing eventual extra info from title to add it in another color later
$if($and($and(%title%,$strcmp(1,$get(color_extra)),$not(%LTA%))),
$puts(ext1,$strchr(%title%,'('))
//skip this if no parenthesis exist
$if($greater($get(ext1),1),
$puts(ext2,$sub($get(ext1),1))
//(note to self: use t_title or %title% here?)
$puts(s_title,$cut(%title%,$get(ext2)))
$puts(extra,$substr(%title%,$get(ext1),$len(%title%)))
)
)
//-------------------
$if($strcmp(1,$get(is_various)),
$puts(artist,$if(%artist%,$get(c_lightgreen2)%artist%))
$puts(title,$get(artist)$get(c_gray)' - '$get(c_blue2)$get(s_title)$get(c_darkblue2)$if($strcmp(1,$get(color_extra)),$get(extra))[ %version%][ %bonustrack%])
,
$puts(title,$get(c_blue2)$get(s_title)$get(c_darkblue2)$if($strcmp(1,$get(color_extra)),$get(extra))[ %version%][ %bonustrack%])
)
//if no title
$if(%title%,,
$puts(title,$get(c_blue2)$get(s_filename))
)
//if station
$if($and(%station%,%title%),
$puts(title,$get(c_lightorange)$get(s_title))
)
//artist formating
$if($strcmp(1,$get(is_various)),
$puts(artist,'Various Artists')
,
$if(%artist%,$puts(artist,$get(c_lightgreen)%artist%),$puts(artist,$get(c_lightorange)'未知艺术家'))
)
//codec formating
$if($strcmp($len(%__codec%),3),$puts(codec,%__codec%))
$if($stricmp(%__codec%,vorbis),$puts(codec,'Ogg'))
$if($stricmp(%__codec%,musepack),$puts(codec,'MPC'))
$if($stricmp(%__codec%,Monkey''s Audio),$puts(codec,'APE'))
$if(%__codec%,,$puts(codec,$upper($ext(%_path%))))
$puts(codec,$get(c_codec)'['$get(c_codec)$padcut_right($get(codec),3)']')
//length formating
$if(%_length%,
$puts(length,$get(c_orange)$pad_right(%_length%,5))
,
$puts(length,$get(c_gray2)'Stream')
)
//creat string
$get(plno)
$get(title)
$repeat($char(9),$get(l_title))
$get(artist)
$repeat($char(9),$get(l_artist))
$get(codec)
$get(length)