DIY trackinfo mod

在Hydrogenaudio论坛Foobar区逛的时候看到sune制作的Foobar的按钮,很是漂亮。需要foo_cwb_hooks和trackinfo mod。
Preview:

Download images@here.The images folder should be inside your foobar dir.
simple_trackinfo_mod code
- $imageabs(0,0,images\FOOBOTTOM.png,)
- ///////PLAY/PAUSE
- $button(21,9,0,0,28,30,
- $if($or(%ispaused%,$not(%isplaying%)),images\iconsPLAYBACK\PLAY.png,images\iconsPLAYBACK\pause.png),
- $if($or(%ispaused%,$not(%isplaying%)),images\iconsPLAYBACK\PLAY_OVER.png,images\iconsPLAYBACK\pause_OVER.png),
- $if($or(%ispaused%,$not(%isplaying%)),play,pause)
- ,)
- ///////STOP
- $button(49,12,0,0,22,24,images\iconsPLAYBACK\STOP.png,images\iconsPLAYBACK\STOP_OVER.png,stop,)
- ///////PREVIOUS
- $button(89,12,0,0,22,24,images\iconsPLAYBACK\PREVIOUS.png,images\iconsPLAYBACK\PREVIOUS_OVER.png,previous,)
- ///////NEXT
- $button(111,12,0,0,22,24,images\iconsPLAYBACK\NEXT.png,images\iconsPLAYBACK\NEXT_OVER.png,next,)
- ////////////////////////////////////////////////////////////////////
- //////////PLAYBACK ORDER
- ////////////////////////////////////////////////////////////////////
- //////DEFAULT//////
- $if(
- $not($stricmp(%cwb_playback_order%,default))
- ,
- $button(152,16,0,0,15,15,images\iconsPLAYBACK\dfnot.png,images\iconsPLAYBACK\df_over.png,default,)
- ,
- $imageabs(152,16,images\iconsPLAYBACK\df.png,)
- )
- //////SHUFFLE///
- $if(
- $xor(
- $stricmp(%cwb_playback_order%,default),
- $stricmp(%cwb_playback_order%,'repeat (track)'),
- $stricmp(%cwb_playback_order%,'repeat (playlist)')
- )
- ,
- $button(171,16,0,0,15,15,images\iconsPLAYBACK\shnot.png,images\iconsPLAYBACK\shnot_over.png,'Shuffle (tracks)',)
- ,
- $button(171,16,0,0,15,15,
- $if($stricmp(%cwb_playback_order%,'Shuffle (tracks)'),images\iconsPLAYBACK\SHTRACKS.png,images\iconsPLAYBACK\SHalbums.png),
- $if($stricmp(%cwb_playback_order%,'Shuffle (tracks)'),images\iconsPLAYBACK\SHTRACKS_over.png,images\iconsPLAYBACK\SHalbums_over.png),
- $if($stricmp(%cwb_playback_order%,'Shuffle (tracks)'),'Shuffle (albums)','Shuffle (tracks)')
- ,)
- )
- ///REPEAT///////
- $if(
- $xor(
- $stricmp(%cwb_playback_order%,default),
- $stricmp(%cwb_playback_order%,'shuffle (tracks)'),
- $stricmp(%cwb_playback_order%,'shuffle (albums)')
- )
- ,
- $button(190,16,0,0,15,15,images\iconsPLAYBACK\rpnot.png,images\iconsPLAYBACK\rpnot_over.png,'repeat (track)',)
- ,
- $button(190,16,0,0,15,15,
- $if($stricmp(%cwb_playback_order%,'repeat (track)'),images\iconsPLAYBACK\RPTRACK.png,images\iconsPLAYBACK\RPPLAYLIST.png),
- $if($stricmp(%cwb_playback_order%,'repeat (track)'),images\iconsPLAYBACK\RPTRACK_over.png,images\iconsPLAYBACK\RPPLAYLIST_over.png),
- $if($stricmp(%cwb_playback_order%,'repeat (track)'),'repeat (playlist)','repeat (track)')
- ,)
- )
- ////////////////////////////////////////////////////////////////////
- //////////VOLUME
- //////////////////////////////////////////////////////////////////
- //VOLUME BAR
- $alignabs(230,20,100,20,,)
- $puts(volume,$substr($num(%cwb_volume%,4),2,4))
- $puts(active,$rgb(117,211,255))
- $puts(back,$rgb(81,81,77))
- $font(arial,10,bold,)
- $if($greater(1,$get(volume)),$puts(amp,12),
- $if($greater(3,$get(volume)),$puts(amp,11),
- $if($greater(6,$get(volume)),$puts(amp,10),
- $if($greater(9,$get(volume)),$puts(amp,9),
- $if($greater(13,$get(volume)),$puts(amp,8),
- $if($greater(16,$get(volume)),$puts(amp,7),
- $if($greater(21,$get(volume)),$puts(amp,6),
- $if($greater(26,$get(volume)),$puts(amp,5),
- $if($greater(33,$get(volume)),$puts(amp,4),
- $if($greater(43,$get(volume)),$puts(amp,3),
- $if($greater(58,$get(volume)),$puts(amp,2),
- $puts(amp,1))))))))))))
- $if($stricmp(100,$get(volume)),$puts(amp,0))
- $font(wingdings,6,,)
- $get(active)$repeat($char(376),$get(amp))
- $get(back)$repeat($char(376),$sub(12,$get(amp)))
- ///nº Db///////
- $font(kroeger 05_55,5,,117-211-255)$alignabs(278,19,35,20,right,)-$num($get(volume),1) Db
- //BUTTONS
- $if($greater(1,$get(volume)),$puts(amp,48),
- $if($greater(3,$get(volume)),$puts(amp,44),
- $if($greater(6,$get(volume)),$puts(amp,40),
- $if($greater(9,$get(volume)),$puts(amp,36),
- $if($greater(13,$get(volume)),$puts(amp,32),
- $if($greater(16,$get(volume)),$puts(amp,28),
- $if($greater(21,$get(volume)),$puts(amp,24),
- $if($greater(26,$get(volume)),$puts(amp,20),
- $if($greater(33,$get(volume)),$puts(amp,16),
- $if($greater(43,$get(volume)),$puts(amp,12),
- $if($greater(58,$get(volume)),$puts(amp,8),
- $puts(amp,4))))))))))))
- $if($stricmp(100,$get(volume)),$puts(amp,0))
- $if($not($greater(1,$get(volume))),$button2($add($get(amp),230),20,0,-7,15,20,,'$font(wingdings,6,,250-0-0)$char(376)',volume up,))
- $button2($add($get(amp),222),20,-10,-7,15,25,,'$font(wingdings,6,,0-0-250)$char(376)',volume down,)
- //VOLUME CONTROLS
- $imageabs(331,13,images\iconsPLAYBACK\VOL.png,)
- $if($stricmp(100,$get(volume)),
- $button(331,13,0,0,12,22,images\iconsPLAYBACK\VOL_DOWN_M.png,images\iconsPLAYBACK\VOL_DOWN_OVER_M.png,Volume DOWN,),
- $button(331,13,0,0,12,22,images\iconsPLAYBACK\VOL_DOWN_V.png,images\iconsPLAYBACK\VOL_DOWN_OVER_V.png,Volume DOWN,))
- $if($stricmp(100,$get(volume)),
- $button(354,13,11,0,11,22,images\iconsPLAYBACK\VOL_UP_M.png,images\iconsPLAYBACK\VOL_UP_OVER_M.png,Volume UP,),
- $button(354,13,11,0,11,22,images\iconsPLAYBACK\VOL_UP_V.png,images\iconsPLAYBACK\VOL_UP_OVER_V.png,Volume UP,))
- $puts(volume,$substr($num(%cwb_volume%,4),2,4))
- $if($stricmp(100,$get(volume)),
- $button(343,13,0,0,22,22,images\iconsPLAYBACK\VOL_MUTE.png,images\iconsPLAYBACK\VOL_MUTE_OVER.png,Volume mute,),
- $button(343,13,0,0,22,22,images\iconsPLAYBACK\VOL_ON.png,images\iconsPLAYBACK\VOL_ON_OVER.png,Volume mute,))











foobar2000 0.8.3目录下有shared.dll这个文件么?我安装了乐辞总是说无法找到那个链接库 :em11:
0.8.3就不清楚了,现在用0.9.4~
给你Email了一个,看看能不能用~ :em08: