Support and General Use > Theming and Appearance Customization

How can I replace Hold icon with an animated disk activity icon?

(1/1)

iPodFoo:
I want my hard drive activity icon to animate when the hold switch is off, when the hold is on, Id like the disk activity to not show.

I have this:


--- Code: ---%?mh<%xdH|%?lh<%t0.1%xdDa|>;%?lh<%t0.1%xdDb|>;%?lh<%t0.1%xdDc|>>
--- End code ---

So, it should display the 3 frames of animation of the disk activity when the hold switch is off. But its just not working. An error in the sim dos window says ERR: Failed parsing on line 22 : ERR: Unclosed conditional.

The disk activity code works fine on its own.

Any ideas?

Llorean:
You can't pit %t statements inside a conditional. %t statements are used to define entire alternating subLINES, meaning that when you read the end of one (the semicolon) everything after is treated as a new line. Thus, your conditional isn't being closed.

You'll need to use multiple duplicate conditionals, an identical one on each subline.

BdN3504:

--- Quote from: Llorean on April 20, 2009, 10:21:23 AM ---You can't pit %t statements inside a conditional. %t statements are used to define entire alternating subLINES, meaning that when you read the end of one (the semicolon) everything after is treated as a new line. Thus, your conditional isn't being closed.

You'll need to use multiple duplicate conditionals, an identical one on each subline.

--- End quote ---
Translation:

--- Code: ---%t0.1%?mh<%xdH|%?lh<%xdDa|>>;%t0.1%?mh<%xdH|%?lh<%xdDb|>>;%t0.1%?mh<%xdH|%?lh<%xdDc|>>
--- End code ---

iPodFoo:
Ace. That worked great thanks.  ;D

psycho_maniac:
you could have looked at pen&paper theme and noticed that it has a animated icon while paused and used the same concept towards the hold button i believe.

Navigation

[0] Message Index

Go to full version