Skip to main content

Topic: Shuffle button (Read 134 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • firewater
  • [*]
Shuffle button
Anyone has any idea how I could implement this? Looking for a visual indicative that I can click to turn shuffle on/off, rather than using keyboard shortcuts (as I won't remember if it's enabled or not).

  • jazzthieve
  • [*][*][*][*]
Re: Shuffle button
Reply #1
I use this code snippet for a shuffle text button. It cycles through various kinds of shuffle modes. See if this works for you.

Code: [Select]
$font(tahoma,9,bold)
$puts(pb_order.action,COMMAND:Playback/Order/Cycle Forward)

$puts(pb_order.txt,
$if($strstr(%ps_playback_order%,Default),$upper(Normal),
$if($strstr(%ps_playback_order%,Random),$upper(Random),
$if($strstr(%ps_playback_order%,Repeat '('track')'),$upper(Repeat),
$if($strstr(%ps_playback_order%,Repeat '('playlist')'),$upper(Repeat PL),
$if($strstr(%ps_playback_order%,Shuffle '('albums')'),$upper(Shuffle A),
$if($strstr(%ps_playback_order%,Shuffle '('folders')'),$upper(Shuffle F),
$if($strstr(%ps_playback_order%,Shuffle '('tracks')'),$upper(Shuffle),
))))))))

$textbutton(x,y,w,h,$get(pb_order.txt),$get(pb_order.txt),$get(pb_order.action);%_REFRESH%,fontcolor:255-255-255 left,fontcolor:153-204-255 left)

  • marc2003
  • [*][*][*][*][*]
  • Developer
Re: Shuffle button
Reply #2
^You might mention the component you are using (panel stack splitter) and the the fact it requires Columns UI.

The easiest way for both default UI and columns is using the playback order toolbar. Just right click any other toolbar to enable.