hello -
...and please excuse me to the moderators of this forum - but i believe i've finally found the correct thread in which to post this! here's a fairly simple config based on a turntable, shown stopped and playing.
the code is largely set up for my dockable panels, to activate the playlist, queue manager, search window, peakmeter, and albumlist - so you'll have to change it some to suit your needs, but the main playback buttons, as well as the menu and preferences buttons (the two tiny buttons under the stylus when stopped) should all work as is. the album art shown is *.jpg in the playing file's folder. ah, the button that looks like a play button is really the 'next button,' the button with the 'p' on it next to the volume slider is the play/pause button.
here's the code:
//WINDOW INSET
$put(horz,5)
$put(vert,5)
//TURNTABLE AND ART
$if(%isplaying%,
$imageabs2(210,210,0,0,210,210,
$add($get(horz),22),$add($get(vert),17),$replace(%path%,%filename_ext%,)*.jpg,nokeepaspect),
$imageabs($add($get(horz),22),$add($get(vert),17),images\ttable\platter.png,))
$imageabs($get(horz),$get(vert),images\ttable\turntableoverlay.png,)
$if(%isplaying%,$imageabs($get(horz),$get(vert),images\ttable\playoverlay2.png,))
$if(%isplaying%,$imageabs($add($get(horz),92),$add($get(vert),86),images\ttable\albumoverlay.png,))
$imageabs($add($get(horz),124),$add($get(vert),118),images\ttable\spindle.png,)
//PLAY/PAUSE
$put(playpause,$if(%isplaying%,pause,play))
$button($add($get(horz),270),$add($get(vert),185),0,0,15,15,
images\ttable\pp.png,images\ttable\pphot.png,$get(playpause),)
//STOP
$button($add($get(horz),57),$add($get(vert),229),0,0,15,15,
images\ttable\stop.png,images\ttable\stophot.png,stop,)
//PREVIOUS
$button($add($get(horz),41),$add($get(vert),229),0,0,15,15,
images\ttable\prev.png,images\ttable\prevhot.png,previous,)
//NEXT
$button($add($get(horz),11),$add($get(vert),218),0,0,20,20,
images\ttable\next.png,images\ttable\nexthot.png,next,)
//PLAYLIST
$button($add($get(horz),13),$add($get(vert),8),0,0,20,20,
images\ttable\plist.png,images\ttable\plisthot.png,3 - Single Column Playlist View,)
//MENU
$button($add($get(horz),227),$add($get(vert),231),0,0,10,10,
images\ttable\minibutton.png,images\ttable\minibuttonhot.png,5 - Menu,)
//PREFERENCES
$button($add($get(horz),213),$add($get(vert),231),0,0,10,10,
images\ttable\minibutton.png,images\ttable\minibuttonhot.png,Preferences,)
//SHUFFLE
$if($stricmp(%cwb_playback_order%,default),
$button($add($get(horz),5),$add($get(vert),187),0,0,20,20,
images\ttable\def.png,images\ttable\defhot.png,'Shuffle (tracks)',))
$if($stricmp(%cwb_playback_order%,'shuffle (tracks)'),
$button($add($get(horz),5),$add($get(vert),187),0,0,20,20,
images\ttable\shtracks.png,images\ttable\shtrackshot.png,default,))
//GRAPHICAL BROWSER
$button($add($get(horz),124),$add($get(vert),118),-10,-10,20,20,
images\ttable\spindle.png,images\ttable\spindlehot.png,1 - Graphical Browser,)
//SPECTRUM ANALYZER
$button($add($get(horz),284),$add($get(vert),228),0,0,15,15,
images\ttable\vis.png,images\ttable\vishot.png,9 - Peakmeter spectrum,)
//SEARCH
$button($add($get(horz),264),$add($get(vert),228),0,0,15,15,
images\ttable\search.png,images\ttable\searchhot.png,Search,)
//CUE LIST
$button($add($get(horz),242),$add($get(vert),228),0,0,15,15,
images\ttable\cue.png,images\ttable\cuehot.png,6 - Queue Manager,)
//FILE TREE
$button($add($get(horz),292),$add($get(vert),57),0,0,15,15,
images\ttable\alblist.png,images\ttable\alblisthot.png,2 - Album list,)
//VOLUME BAR
$puts(volume,$substr($num(%cwb_volume%,4),2,4))
//VOLUME CONTROLS
$if($stricmp(100,$get(volume)),
$button($add($get(horz),294),$add($get(vert),206),-5,-5,20,20,
images\ttable\voldown.png,images\ttable\voldownhot.png,Volume DOWN,),
$button($add($get(horz),294),$add($get(vert),206),-5,-5,20,20,
images\ttable\voldown.png,images\ttable\voldownhot.png,Volume DOWN,))
$if($stricmp(100,$get(volume)),
$button($add($get(horz),294),$add($get(vert),117),-5,-5,20,20,
images\ttable\volup.png,images\ttable\voluphot.png,Volume UP,),
$button($add($get(horz),294),$add($get(vert),117),-5,-5,20,20,
images\ttable\volup.png,images\ttable\voluphot.png,Volume UP,))
$put(slidervert,$sub(131,$mul(%cwb_volume%,1.4)))
$imageabs($add($get(horz),291),$add($get(vert),$get(slidervert)),images\ttable\volslider.png,)
and a link to the images - put the 'ttable' folder in the 'images' folder in your main foobar folder...
turntable images
@vogliadicane - trying to work out the volume slider issue as well, for now you have to click on the '+' and '-' symbols...
@moderators - please delete my other posts as you see fit, and sorry again for taking so long to find the right place - new here and there are a lot of threads to sift through...