I used PanelsUI before and i used cwb_playback_order to determine the mode with the following code:
// PerTrack
$drawrect(0,0,0,0,pencolor-null brushcolor-41-45-51)
$button($sub(%_width%,122),0,0,0,24,24,/images\flx-v1\gonowplaying.png,/images\flx-v1\gonowplaying_hover.png,Activate now playing,)
$button($sub(%_width%,98),0,0,0,24,24,/images\flx-v1\playlist.png,/images\flx-v1\playlist_hover.png,File info,)
$button($sub(%_width%,74),0,0,0,24,24,/images\flx-v1\albumlist.png,/images\flx-v1\\albumlist_hover.png,Refresh Browser Contents,)
//$button($sub(%_width%,74),0,0,0,24,24,/images\flx-v1\albumlist.png,/images\flx-v1\albumlist_hover.png,PVAR:SET:showPane:
//$if($strcmp($getpvar(showPane),1),0,1),)
//$button($sub(%_width%,48),0,0,0,24,24,/images\flx-v1\explorer.png,,PVAR:SET:showPane:
//$if($strcmp($getpvar(showPane),2),0,2),)
$if($strcmp(%cwb_playback_order%,Default),$setpvar(playbackbutton,1),$setpvar(playbackbutton,2))
$select($getpvar(playbackbutton),
$button($sub(%_width%,50),0,0,0,24,24,/images\flx-v1\default.png,/images\flx-v1\default_hover.png,'Playback/Order/Shuffle (tracks)',),
$button($sub(%_width%,50),0,0,0,24,24,/images\flx-v1\shuffle.png,/images\flx-v1\shuffle_hover.png,'Playback/Order/Default',)
)
//$button($sub(%_width%,24),0,0,0,24,24,/images\flx-v1\prefs.png,,Preferences,)
$button($sub(%_width%,26),0,0,0,24,24,/images\flx-v1\prefs.png,/images\flx-v1\prefs_hover.png,Preferences,)
Could anyone shed light on how to do this in ColumnsUI?