DIY trackinfo mod

foobar.jpg

Hydrogenaudio论坛Foobar区逛的时候看到sune制作的Foobar的按钮,很是漂亮。需要foo_cwb_hookstrackinfo mod

Preview:

Preview_foobar_button.jpg

Download images@here.The images folder should be inside your foobar dir.

simple_trackinfo_mod code

  1. $imageabs(0,0,images\FOOBOTTOM.png,)
  2.  
  3. ///////PLAY/PAUSE
  4. $button(21,9,0,0,28,30,
  5. $if($or(%ispaused%,$not(%isplaying%)),images\iconsPLAYBACK\PLAY.png,images\iconsPLAYBACK\pause.png),
  6. $if($or(%ispaused%,$not(%isplaying%)),images\iconsPLAYBACK\PLAY_OVER.png,images\iconsPLAYBACK\pause_OVER.png),
  7. $if($or(%ispaused%,$not(%isplaying%)),play,pause)
  8. ,)
  9.  
  10. ///////STOP
  11. $button(49,12,0,0,22,24,images\iconsPLAYBACK\STOP.png,images\iconsPLAYBACK\STOP_OVER.png,stop,)
  12.  
  13. ///////PREVIOUS
  14. $button(89,12,0,0,22,24,images\iconsPLAYBACK\PREVIOUS.png,images\iconsPLAYBACK\PREVIOUS_OVER.png,previous,)
  15.  
  16.  
  17. ///////NEXT
  18. $button(111,12,0,0,22,24,images\iconsPLAYBACK\NEXT.png,images\iconsPLAYBACK\NEXT_OVER.png,next,)
  19.  
  20. ////////////////////////////////////////////////////////////////////
  21. //////////PLAYBACK ORDER
  22. ////////////////////////////////////////////////////////////////////
  23.  
  24. //////DEFAULT//////
  25. $if(
  26. $not($stricmp(%cwb_playback_order%,default))
  27. ,
  28. $button(152,16,0,0,15,15,images\iconsPLAYBACK\dfnot.png,images\iconsPLAYBACK\df_over.png,default,)
  29. ,
  30. $imageabs(152,16,images\iconsPLAYBACK\df.png,)
  31. )
  32.  
  33. //////SHUFFLE///
  34. $if(
  35. $xor(
  36. $stricmp(%cwb_playback_order%,default),
  37. $stricmp(%cwb_playback_order%,'repeat (track)'),
  38. $stricmp(%cwb_playback_order%,'repeat (playlist)')
  39. )
  40. ,
  41. $button(171,16,0,0,15,15,images\iconsPLAYBACK\shnot.png,images\iconsPLAYBACK\shnot_over.png,'Shuffle (tracks)',)
  42. ,
  43. $button(171,16,0,0,15,15,
  44. $if($stricmp(%cwb_playback_order%,'Shuffle (tracks)'),images\iconsPLAYBACK\SHTRACKS.png,images\iconsPLAYBACK\SHalbums.png),
  45. $if($stricmp(%cwb_playback_order%,'Shuffle (tracks)'),images\iconsPLAYBACK\SHTRACKS_over.png,images\iconsPLAYBACK\SHalbums_over.png),
  46. $if($stricmp(%cwb_playback_order%,'Shuffle (tracks)'),'Shuffle (albums)','Shuffle (tracks)')
  47. ,)
  48. )
  49.  
  50. ///REPEAT///////
  51. $if(
  52. $xor(
  53. $stricmp(%cwb_playback_order%,default),
  54. $stricmp(%cwb_playback_order%,'shuffle (tracks)'),
  55. $stricmp(%cwb_playback_order%,'shuffle (albums)')
  56. )
  57. ,
  58. $button(190,16,0,0,15,15,images\iconsPLAYBACK\rpnot.png,images\iconsPLAYBACK\rpnot_over.png,'repeat (track)',)
  59. ,
  60. $button(190,16,0,0,15,15,
  61. $if($stricmp(%cwb_playback_order%,'repeat (track)'),images\iconsPLAYBACK\RPTRACK.png,images\iconsPLAYBACK\RPPLAYLIST.png),
  62. $if($stricmp(%cwb_playback_order%,'repeat (track)'),images\iconsPLAYBACK\RPTRACK_over.png,images\iconsPLAYBACK\RPPLAYLIST_over.png),
  63. $if($stricmp(%cwb_playback_order%,'repeat (track)'),'repeat (playlist)','repeat (track)')
  64. ,)
  65. )
  66.  
  67. ////////////////////////////////////////////////////////////////////
  68. //////////VOLUME
  69. //////////////////////////////////////////////////////////////////
  70.  
  71. //VOLUME BAR
  72. $alignabs(230,20,100,20,,)
  73. $puts(volume,$substr($num(%cwb_volume%,4),2,4))
  74. $puts(active,$rgb(117,211,255))
  75. $puts(back,$rgb(81,81,77))
  76. $font(arial,10,bold,)
  77.  
  78. $if($greater(1,$get(volume)),$puts(amp,12),
  79. $if($greater(3,$get(volume)),$puts(amp,11),
  80. $if($greater(6,$get(volume)),$puts(amp,10),
  81. $if($greater(9,$get(volume)),$puts(amp,9),
  82. $if($greater(13,$get(volume)),$puts(amp,8),
  83. $if($greater(16,$get(volume)),$puts(amp,7),
  84. $if($greater(21,$get(volume)),$puts(amp,6),
  85. $if($greater(26,$get(volume)),$puts(amp,5),
  86. $if($greater(33,$get(volume)),$puts(amp,4),
  87. $if($greater(43,$get(volume)),$puts(amp,3),
  88. $if($greater(58,$get(volume)),$puts(amp,2),
  89. $puts(amp,1))))))))))))
  90. $if($stricmp(100,$get(volume)),$puts(amp,0))
  91. $font(wingdings,6,,)
  92. $get(active)$repeat($char(376),$get(amp))
  93. $get(back)$repeat($char(376),$sub(12,$get(amp)))
  94.  
  95. ///nº Db///////
  96. $font(kroeger 05_55,5,,117-211-255)$alignabs(278,19,35,20,right,)-$num($get(volume),1) Db
  97.  
  98. //BUTTONS
  99. $if($greater(1,$get(volume)),$puts(amp,48),
  100. $if($greater(3,$get(volume)),$puts(amp,44),
  101. $if($greater(6,$get(volume)),$puts(amp,40),
  102. $if($greater(9,$get(volume)),$puts(amp,36),
  103. $if($greater(13,$get(volume)),$puts(amp,32),
  104. $if($greater(16,$get(volume)),$puts(amp,28),
  105. $if($greater(21,$get(volume)),$puts(amp,24),
  106. $if($greater(26,$get(volume)),$puts(amp,20),
  107. $if($greater(33,$get(volume)),$puts(amp,16),
  108. $if($greater(43,$get(volume)),$puts(amp,12),
  109. $if($greater(58,$get(volume)),$puts(amp,8),
  110. $puts(amp,4))))))))))))
  111. $if($stricmp(100,$get(volume)),$puts(amp,0))
  112.  
  113. $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,))
  114. $button2($add($get(amp),222),20,-10,-7,15,25,,'$font(wingdings,6,,0-0-250)$char(376)',volume down,)
  115.  
  116. //VOLUME CONTROLS
  117. $imageabs(331,13,images\iconsPLAYBACK\VOL.png,)
  118.  
  119. $if($stricmp(100,$get(volume)),
  120. $button(331,13,0,0,12,22,images\iconsPLAYBACK\VOL_DOWN_M.png,images\iconsPLAYBACK\VOL_DOWN_OVER_M.png,Volume DOWN,),
  121. $button(331,13,0,0,12,22,images\iconsPLAYBACK\VOL_DOWN_V.png,images\iconsPLAYBACK\VOL_DOWN_OVER_V.png,Volume DOWN,))
  122.  
  123. $if($stricmp(100,$get(volume)),
  124. $button(354,13,11,0,11,22,images\iconsPLAYBACK\VOL_UP_M.png,images\iconsPLAYBACK\VOL_UP_OVER_M.png,Volume UP,),
  125. $button(354,13,11,0,11,22,images\iconsPLAYBACK\VOL_UP_V.png,images\iconsPLAYBACK\VOL_UP_OVER_V.png,Volume UP,))
  126. $puts(volume,$substr($num(%cwb_volume%,4),2,4))
  127.  
  128. $if($stricmp(100,$get(volume)),
  129. $button(343,13,0,0,22,22,images\iconsPLAYBACK\VOL_MUTE.png,images\iconsPLAYBACK\VOL_MUTE_OVER.png,Volume mute,),
  130. $button(343,13,0,0,22,22,images\iconsPLAYBACK\VOL_ON.png,images\iconsPLAYBACK\VOL_ON_OVER.png,Volume mute,))

2 comments so far

  1. nephrite November 9, 2006 6:37 pm

    foobar2000 0.8.3目录下有shared.dll这个文件么?我安装了乐辞总是说无法找到那个链接库 :em11:

  2. gYtHiAlY November 9, 2006 7:26 pm

    0.8.3就不清楚了,现在用0.9.4~
    给你Email了一个,看看能不能用~ :em08:

Leave a comment

Please be polite and on topic. Your e-mail will never be published.