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
| | |-+  Not enough unique tags for pre-loading images.
« previous next »
  • Print
Pages: [1]

Author Topic: Not enough unique tags for pre-loading images.  (Read 944 times)

Offline Reece

  • Member
  • *
  • Posts: 101
  • AKA, ZallCaTor
Not enough unique tags for pre-loading images.
« on: August 16, 2013, 01:36:02 AM »
      I have been making a theme, and have come across a roadblock. This particular theme requires quite a few bit map images. So I have to make allot of pre-loads. I found out that I can only use numbers 0-9, and (capital) letters a-z. I originally thought this wouldn't be a problem, because I thought I could use multiple digit numbers. But I can only use single characters. Is there something I don't know? Or is there only a limited number of tags I can use?
Logged
Reece, AKA; ZallCaTor
Devices: |Clip+|Fuze V2|

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Not enough unique tags for pre-loading images.
« Reply #1 on: August 18, 2013, 01:31:28 AM »
This post puts me in a difficult situation.

I do not want to name names, or point fingers, and I am at least partly responsible for this as I sat and watched it happen...but, here goes...generally speaking, the skin engine documentation is rubbish.

Parts are missing. Parts are incomplete. Parts are blatantly incorrect.

Between CustomWPS (which certain people are adamant I leave intact), and the user manuals, there isn't a single complete source of documentation. This is highly regrettable. I blame myself for this for knowing this was the case but never being able to find the time to rectify it.

My desire is to get rid of CustomWPS completely, and have the one source of documentation be the user manual.

However...this rant doesn't answer your question, does it? :)

What you want is the new style of identifier calls (the style you're using was only kept in place to avoid breaking compatibility with older themes. The new style is as follows:

Code: [Select]
%xl(identifier, image_name.bmp, X, Y, N)
%xd(identifier, N)

There's two main points of interest here:

- "identifier" needn't be a single character, you can use a descriptive string like "my_cool_identifier_name_here".
-  the image display call no longer needs to use characters AaZz for the subimage count. This has been replaced with a number.

So, what does this mean?

Primarily, there are no more arbitrary restrictions on identifiers or the subimage count. Identifiers can be as long as you want them to be, and images can contain as many subimages as you need them to. Secdondarily, its easier for someone else picking up your code to read at a glance.

Apologies for the slight rant, I hope this addresses your issue, I cannot promise that I will be able to do anything about it in a timely fashion but I can promise I will try.


[Saint]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Not enough unique tags for pre-loading images.
 

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

Page created in 0.063 seconds with 15 queries.