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
| | |-+  How can I replace Hold icon with an animated disk activity icon?
« previous next »
  • Print
Pages: [1]

Author Topic: How can I replace Hold icon with an animated disk activity icon?  (Read 1622 times)

Offline iPodFoo

  • Member
  • *
  • Posts: 221
  • Ya dig?
    • iPod Nano Rockbox Blog
How can I replace Hold icon with an animated disk activity icon?
« on: April 20, 2009, 10:07:35 AM »
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: [Select]
%?mh<%xdH|%?lh<%t0.1%xdDa|>;%?lh<%t0.1%xdDb|>;%?lh<%t0.1%xdDc|>>

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?
Logged
Visit my blog at modprojects.blogspot.com for some iPod Nano goodies!

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: How can I replace Hold icon with an animated disk activity icon?
« Reply #1 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.
Logged

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: How can I replace Hold icon with an animated disk activity icon?
« Reply #2 on: April 20, 2009, 11:52:05 AM »
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.
Translation:
Code: [Select]
%t0.1%?mh<%xdH|%?lh<%xdDa|>>;%t0.1%?mh<%xdH|%?lh<%xdDb|>>;%t0.1%?mh<%xdH|%?lh<%xdDc|>>
Logged

Offline iPodFoo

  • Member
  • *
  • Posts: 221
  • Ya dig?
    • iPod Nano Rockbox Blog
Re: How can I replace Hold icon with an animated disk activity icon?
« Reply #3 on: April 22, 2009, 09:24:28 AM »
Ace. That worked great thanks.  ;D
Logged
Visit my blog at modprojects.blogspot.com for some iPod Nano goodies!

Offline psycho_maniac

  • Member
  • *
  • Posts: 814
    • MyWebPage
Re: How can I replace Hold icon with an animated disk activity icon?
« Reply #4 on: April 23, 2009, 11:48:23 AM »
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.
Logged
Please SEARCH the wiki | Please read the Forum Guidelines | Please Read the Manual
I Own A Gigabeat F80

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  How can I replace Hold icon with an animated disk activity icon?
 

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

Page created in 0.087 seconds with 15 queries.