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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Graphic Time/Date?
« previous next »
  • Print
Pages: [1]

Author Topic: Graphic Time/Date?  (Read 1123 times)

Offline Reece

  • Member
  • *
  • Posts: 101
  • AKA, ZallCaTor
Graphic Time/Date?
« on: August 13, 2013, 05:09:50 PM »
         Is there a theme tag, or a way to combine tags to make a graphic Time/Date display? So instead of using basic fonts for date and time, I would use .bmp files for the numbers. Is this possible? I have explored it a little, but didn't get far.
Logged
Reece, AKA; ZallCaTor
Devices: |Clip+|Fuze V2|

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Graphic Time/Date?
« Reply #1 on: August 14, 2013, 01:50:32 AM »
Hum...

You've reminded me again of the massive holes in the theme language documentation, the manual apparently neglects to mention an entire section on RTC tags in the Theme Tags section, anyway - here 'ya go.

EDIT: I didn't make it particularly obvious how one would achieve this. There's a few ways it could be done, but I'm pointing out right now that not a single one of them are particularly efficient. Despite what the (dated) CustomWPS page says, and single one of those tags should be able to function as a conditional statement.

But, if you want resolution in minutes, you're probably figuring out just now what you'll need 60 bitmaps for it - or 12 at 5 minutes with blank spaces in the conditional statement...and so on.

You could probably also use the %if or %and tags to check for a specific time, or time range. But its messy.

EDIT 2: I recall once upon a time assisting someone to make an analogue clock, with resolution in hours and 5 minute periods, using layered transparent bitmaps...similar thing, but with a lot less resources required. A digital time/date display using bitmaps is going to be rather a lot more wasteful.


[Saint]
« Last Edit: August 14, 2013, 02:07:38 AM by [Saint] »
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Reece

  • Member
  • *
  • Posts: 101
  • AKA, ZallCaTor
Re: Graphic Time/Date?
« Reply #2 on: August 14, 2013, 03:40:40 AM »
Thanks, so I would use these tags in conjunction with others like so?
%?cH<%xd(1a)|%xd(1b).... and so on, and use pre-loaded images?
Logged
Reece, AKA; ZallCaTor
Devices: |Clip+|Fuze V2|

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Graphic Time/Date?
« Reply #3 on: August 14, 2013, 11:15:16 AM »
If you want to take a look at an example (both time and date) check the AW200 theme http://themes.rockbox.org/index.php?themeid=1391&target=ipodvideo
Logged

Offline Reece

  • Member
  • *
  • Posts: 101
  • AKA, ZallCaTor
Re: Graphic Time/Date?
« Reply #4 on: August 14, 2013, 12:33:57 PM »
Ah thanks. That's exactly what I needed.
Logged
Reece, AKA; ZallCaTor
Devices: |Clip+|Fuze V2|

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Graphic Time/Date?
 

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

Page created in 0.073 seconds with 15 queries.