关于foobar2000自做面板参数设置的问题……

发布时间:2024-05-22 16:14 发布:上海旅游网

问题描述:

在网上找到一个别人做的面板设计,分栏界面的。能够按歌手、专辑分栏显示歌曲。唯一让我感到不习惯的是同一专辑内歌曲它是按照音序排列的,现在我想在专辑内按音轨顺序排列歌曲,高手帮忙看看需要加一段怎样的代码……
原始代码如下:
// 精选集过滤字符串
$puts(filter,精选集)

// 区分普通专辑与精选集的方法
// tag: 如果歌曲 Tag 信息中包含 "专辑艺术家" (album artist) 且其值与 "艺术家名称" (artist) 相同,则判定为普通专辑,否则为精选集。
// 空值: 如果歌曲路径中不含有 filter 所定义的字符串,则判定为普通专辑,否则为精选集。
$puts(album_type_from,)

// 判定专辑类型
$if($get(album_type_from),
$puts(album_type,$if($strcmp($meta(album artist),$meta(artist)),,compilation)),
$puts(album_type,$if($strstr(%path%,$get(filter)),compilation,)))

// 绘制背景图片
$imageabs(0,0,'\images\group_title.png',)

// 专辑标题
$alignabs(16,18,%_width%,%_height%,left,top)$font(Verdana,9,shadow glowalpha-60,255-255-255)
%album%

// 专辑曲目数
$alignabs(-16,18,%_width%,%_height%,right,top)
%_itemcount% Tracks

// 专辑信息
$alignabs(16,-16,%_width%,%_height%,left,bottom)$font(Verdana,8,shadow glowalpha-30,255-255-255)
$if($get(album_type),Various Artists$if(%date%, & Compiled,),%album artist%)
[ @ %date%]

// 专辑曲目在播放列表中的起止
$alignabs(-16,-16,%_width%,%_height%,right,bottom)
$add(%list_index%,0) ~ $add(%list_index%,$sub(%_itemcount%,1)) / %list_total%

问题解答:

关于foobar2000自做面板参数设置的问题……这个旅游问答期待您的解答,请登录账号或关注微信公众号回答这个问题。

热点新闻