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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Is there an easier way of doing this?
« previous next »
  • Print
Pages: [1]

Author Topic: Is there an easier way of doing this?  (Read 1600 times)

Offline wintermute23

  • Member
  • *
  • Posts: 116
  • What Would Batman Do?
Is there an easier way of doing this?
« on: April 30, 2008, 02:52:51 PM »
I'm using an animated HDD icon for a WPS I'm building (the first one I've done from scratch), and the code I've come up with to make it work is somewhat clunky:
Code: [Select]
%t0.1%?lh<%xdda|>;%t0.1%?lh<%xddb|>;%t0.1%?lh<%xddc|>;%t0.1%?lh<%xddd|>;%t0.1%?lh<%xdde|>;%t0.1%?lh<%xddf|>;%t0.1%?lh<%xddg|>;%t0.1%?lh<%xddh|>;
Is there a cleaner way of doing this, so that %?lh is only checked once? Is there anything to be gained, other than neater code?

Thanks for your help.
Logged
Past: iRiver H320 w/ 32GB CF card mod; iPod 4th Gen 30GB; iPod 5th Gen 30GB

Present: iPod Classic 80GB

Offline ZincAlloy

  • Member
  • *
  • Posts: 488
Re: Is there an easier way of doing this?
« Reply #1 on: April 30, 2008, 03:58:38 PM »
maybe this will work, give it a try:

Code: [Select]
%?lh<%t0.1%xdda;%t0.1%xddb;%t0.1%xddc;%t0.1%xddd;%t0.1%xdde;%t0.1%xddf;%t0.1%xddg;%t0.1%xddh|>
Logged

Offline wintermute23

  • Member
  • *
  • Posts: 116
  • What Would Batman Do?
Re: Is there an easier way of doing this?
« Reply #2 on: April 30, 2008, 04:04:59 PM »
Alas, that breaks the WPS.
Logged
Past: iRiver H320 w/ 32GB CF card mod; iPod 4th Gen 30GB; iPod 5th Gen 30GB

Present: iPod Classic 80GB

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Is there an easier way of doing this?
« Reply #3 on: April 30, 2008, 04:10:41 PM »
Related:

http://forums.rockbox.org/index.php?topic=14252.msg106864#msg106864

I think the way you have it is the only way it's going to work. 
Logged

Offline wintermute23

  • Member
  • *
  • Posts: 116
  • What Would Batman Do?
Re: Is there an easier way of doing this?
« Reply #4 on: April 30, 2008, 04:20:31 PM »
Yeah, I suspected that might be the case. But I thought I'd check with the experts before I decided for sure.

Thanks for the help.
Logged
Past: iRiver H320 w/ 32GB CF card mod; iPod 4th Gen 30GB; iPod 5th Gen 30GB

Present: iPod Classic 80GB

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Is there an easier way of doing this?
 

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

Page created in 0.335 seconds with 15 queries.