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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Using %?px
« previous next »
  • Print
Pages: [1]

Author Topic: Using %?px  (Read 1503 times)

Offline signal9

  • Member
  • *
  • Posts: 2
Using %?px
« on: December 08, 2007, 05:20:26 AM »
I'm trying to make a custom wps and I want a small image that nimates when a file is playing.  The wiki says the %px command can be used in a conditional statement and I thought that would be what I need.  Unfortunately I can't figure out how to use %?px.  Is says you can tell it what to do for every possible output from a command, so since percentage goes from 1-100 do I need 100 commands in the %?px statement?  Is there a way to just have it load a specific image when it reaches, say, 10%, 20%, 30% and so on?

If theres a better way to do this, let me know, or is there isn't a way to do this, let me know also.

Thanks alot for the help,
--Signal9
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Using %?px
« Reply #1 on: December 08, 2007, 12:12:21 PM »
You just use as as many conditionals as you want, so...

%?px<+--|-+-|--+>

Would display a three-character progress bar, using the plus-sign as the position indicator, and would show your position in the track as 0%-33%, 33%-66%, 66%-100%
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline signal9

  • Member
  • *
  • Posts: 2
Re: Using %?px
« Reply #2 on: December 08, 2007, 02:57:40 PM »
--edit--
Nevermind, my friend figured it out.  If I can't use five images, use four.  

I feel like my brain failed me.
--edit--


Hey, thanks for the help bascule!  That got me 99.9% of the way there.  Now I can make it display a set of sequential images but not all of them.  For some reason it goes blank when it should show the 5th (and last) image in the sequence.  I've tried remaking the bmp's, I've tried resequencing them, nothing fixes it.  The 5th images wont display.  heres and excerpt of my code, which looks right to me.

%?px<%xdE|%xdF|%xdG|%xdH|%xdI>

Thanks in advance,
--signal9
« Last Edit: December 08, 2007, 03:29:48 PM by signal9 »
Logged

Offline Job Van Dam

  • Member
  • *
  • Posts: 167
Re: Using %?px
« Reply #3 on: December 08, 2007, 08:16:39 PM »
Chances are all the images are too big:
The file size isn't limited, but the content is. If your WPS file is too complex, only the first part of it will be loaded and used.

I've started using this tag as well to simulate what a patch used to do. It's good and most likely too many images or the images are too large is your problem.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Using %?px
 

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

Page created in 0.073 seconds with 15 queries.