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
| | |-+  Trying to program playback progress bar to WPS
« previous next »
  • Print
Pages: [1]

Author Topic: Trying to program playback progress bar to WPS  (Read 1718 times)

Offline ribbie

  • Member
  • *
  • Posts: 8
Trying to program playback progress bar to WPS
« on: December 19, 2008, 03:01:50 PM »
I have a Toshiba Gigabeat F40 that I am trying to program a custom WPS for.  I have succeeded in programming all the text entries, but when I attempt to follow the instructions to program a simple playback progress bar into the display, I either get a blank line or the WPS reverts back to a much simpler WPS with almost none of the information I wish to display.  Could someone please give me the correct code for this feature or let me know what I have done wrong.   (The centering code also did not work for me, hence the spacing in the wps file.)  BlackEscape is the WPS I am trying to customize.

Here are the contents of my wps file:

        Volume %pv dB 
         %fb kbs %fc
   bat. %bl %         %bt

%s%ac%?ia<%ia|Artist Unknown>
%s%ac%?id<%id|Album Unknown>
%s%ac%?it<%it|Title Unknown>
     track-%in     year-%iy
            %ig

next:%s%ac%?Ia<%Ia|Artist Unknown>
%s%ac%?It<%It|Title Unknown>

             %pc/%pr

%lh
 
Logged

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: Trying to program playback progress bar to WPS
« Reply #1 on: December 19, 2008, 03:09:30 PM »
The progress bar tag is %pb|bitmap.bmp|x-pos|y-pos|width|height|, substituting those text labels for the appropriate information.  Also, the centering tag is %ac (which will center to the viewport, not the screen, so if the viewport's only half the screen, it will center to that half...)

Hope that helps you out!
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Trying to program playback progress bar to WPS
« Reply #2 on: December 19, 2008, 03:13:06 PM »
Quote from: ribbie on December 19, 2008, 03:01:50 PM
or the WPS reverts back to a much simpler WPS with almost none of the information I wish to display

This is what happens when your WPS code is not written properly - it reverts to the default display.  It's a common point of misunderstanding and I'm thinking of a place to add it to the documentation.  If you can suggest a place to put it, please let me know.
Logged

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Re: Trying to program playback progress bar to WPS
« Reply #3 on: December 19, 2008, 06:14:48 PM »
I'm not sure if it is feasible, but an error message displayed by the WPS parser might make it more apparent to users when a WPS issue has caused the default display to be used instead of the user's chosen WPS.
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: Trying to program playback progress bar to WPS
« Reply #4 on: December 20, 2008, 12:53:27 PM »
I assume you're talking about on target, because I know for a fact the sim dumps error messages to the terminal window whenever it reverts to the built-in default, telling you what's wrong with the WPS...
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Re: Trying to program playback progress bar to WPS
« Reply #5 on: December 20, 2008, 05:25:28 PM »
Yes, I did mean on target, as it would assist those who downloaded 'bad' WPS and were confused by what they saw. Obviously they really should read the manual, but we all know how that goes  ::)
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Trying to program playback progress bar to WPS
 

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

Page created in 0.082 seconds with 15 queries.