点击(此处)折叠或打开
- //函数方法以$开头,如$puts 变量声明并赋值
- //系统变量以%%包围,如%el_row_height%
- //坑爹的只支持整数,要获得小数的,得先乘以后除
- //如下,要乘以1.75,得先乘35后除20 -_-!
- $puts(imgwidth,$div($mul($mul(%ART.ROW%,%el_row_height%),35),20))
- $puts(art.size,$get(imgwidth))
- $puts(text.left,$add(10,$mul(%ART.MARGIN%,2),$get(art.size)))
- $puts(text.color,255-255-255)
- $puts(len.width,$add(4,$gettextwidth(%length%)))
- $puts(text.right,$add(%el_width%,-$get(len.width)))
- $puts(effect,$ifequal(%ON.SHADOW%,1,glow:0:48-48-48:3 offset:1:2,))
- $puts(effect2,glow:2:99-99-99:1 offset:0:0)
- ///////Track Info///////
- //$drawstring:格式并在指定位置输出字符串
- //%x% %y%:直接连接字符串作为新的字符串
- //$if2(x,y):如果x为空则显示y
- //$replace:字符串替换
- $setcoordinate(1) //x,y,r,b mode
- $drawstring(%title% ← %artist%,$add($get(text.left),40),0,$get(text.right),%el_height%,$get(text.color),left vcenter nowrap elipchar,$get(effect2))
- $drawstring($if2($replace(%rating%,5,?),☆) %length%,0,0,$sub(%el_width%,4),%el_height%,$get(text.color),vcenter right elipchar,$get(effect2))
- //$if:判断真伪、虚实
- $if($not(%el_isplaying%),
- $drawstring(%tracknumber%,$get(text.left),0,$add($get(text.left),40),%el_height%,$get(text.color),vcenter,$get(effect2))
- ,
- $setcoordinate(0)
- $if(%ispaused%,
- $imageabs($add($get(text.left),3),5,,,
- %el_foobar2000_path%\skins\NeoAshen\EL\el_pause.png
- ,,,,glow:4:255-255-255)
- ,
- $imageabs($add($get(text.left),2),4,,,
- %el_foobar2000_path%\skins\NeoAshen\EL\el_play.png
- ,,,,glow:4:255-255-255)
- )
- )
- $setcoordinate(0)
- ///////Album Art///////
- $enabledraw(1)
- $puts(art.top,$add($select(%ON.ART.IN.GROUP%,%el_row_height%),%ART.MARGIN%))
- $puts(art.left,%ART.MARGIN%)
- $setworldtransform($add(2,-%ON.ART.IN.GROUP%))
- //$imageabs:加载图片
- $imageabs($get(art.left),$get(art.top),$get(art.size),$get(art.size),%el_group_first_path%,artreader,,,$get(effect))
1、我的发布版本:Foobar2000 Ver. of AllanYan NJU 99EE (左:可视化 右:主窗口)
2、歌词动态显示窗口 Foobar2000 Ver. of AllanYan NJU 99EE
3、Foobar2000 开发环境(左下:布局 右下:脚本)