Support and General Use > Theming and Appearance Customization

Is there an easier way of doing this?

(1/1)

wintermute23:
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: ---%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|>;
--- End code ---
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.

ZincAlloy:
maybe this will work, give it a try:


--- Code: ---%?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|>
--- End code ---

wintermute23:
Alas, that breaks the WPS.

MarcGuay:
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. 

wintermute23:
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.

Navigation

[0] Message Index

Go to full version