Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  conditional check for playback status?
« previous next »
  • Print
Pages: [1]

Author Topic: conditional check for playback status?  (Read 1408 times)

Offline fallenturtle

  • Member
  • *
  • Posts: 5
conditional check for playback status?
« on: January 03, 2011, 01:08:17 PM »
I have some elements in my sbs that I don't want to appear when there is no file playing. More specifically I have the track length in parenthesis (so when no song is playing there is just a () displayed) and the remaining time has a "-" prefix which looks odd when there is no time displayed after it.

Is there a conditional I can setup to hide these elements when a song is playing?

Thanks.
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: conditional check for playback status?
« Reply #1 on: January 03, 2011, 11:31:20 PM »
Quote from: fallenturtle on January 03, 2011, 01:08:17 PM
I have some elements in my sbs that I don't want to appear when there is no file playing. More specifically I have the track length in parenthesis (so when no song is playing there is just a () displayed) and the remaining time has a "-" prefix which looks odd when there is no time displayed after it.

Is there a conditional I can setup to hide these elements when a song is playing?

Thanks.

You can display these elements conditionally with the %mp tag:

%?mp<Stop|Play|Pause|Fast Forward|Rewind|Recording|Recording Paused|FM Play|FM Mute>

Make the elements you want to display conditional to this tag, only call the elements you want displayed in the sections that match the situations you want them displayed in.

%?mp<%xd(foo)|%xd(bar)|%xd(baz)|%acdisplay some text here|%<some_tag>|%?<some_conditional true|some_conditional false>|...etc.|...etc|...etc>



[St.]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  conditional check for playback status?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.164 seconds with 22 queries.