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
| | |-+  (non-denominational-) santa brought you all a nice pressy!
« previous next »
  • Print
Pages: [1] 2

Author Topic: (non-denominational-) santa brought you all a nice pressy!  (Read 5618 times)

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
(non-denominational-) santa brought you all a nice pressy!
« on: December 25, 2008, 12:39:55 AM »
hey folks.
I got a pressy for the rockbox crowd!

http://www.rockbox.org/tracker/task/9710  <<- tracker task ,   example->> http://imagebin.ca/view/8i4Iy7.html

what this does is let you display a number in a font other than the 2 available fonts in the WPS, comments in the tracker please... examples would be nice in here though :)
let me know if you need me to do a build for you if you cant roll your own.

oh and happy holidays and new year to all
Logged


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

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #1 on: December 25, 2008, 08:37:57 PM »
Nice... thanks! I'd like to use it in my arboxWidgets theme... it might look really cool in the calendar and the clock widgets... so would it work with the %cd, %ci and %cm tags? And If so... I'd really appreciate the iPod video 80GB patched build ;)
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #2 on: December 25, 2008, 08:56:55 PM »
I'm changing the patch now to make it work with more tags, but those 3 shouldn't have a problem.
my next version will let you add a few custom chars to the end of the bmp strip (only 7 though) to make things like a full clock look better..
80GB 5.5g build coming up when its working
Logged


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

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #3 on: December 25, 2008, 09:47:52 PM »
ok seems I'm having trouble getting to rb.org :/

http://jdgordon.info/~jonno/rockbox-video.zip is svn with this patch

The new version adds 2 params to the %xn line...
format: %dn|n|m|x|y|abc
        where:
            n is the bmp strip number/letter to use.
            m is the max number of chars to draw (Always drawn right justified)
            x is the x pixel to start drawing at (viewport relative)
            y is the y pixel to start drawing at (viewport relative)
            abc is up to 7 extra chars in the order they appear at the end of the bmp strip

the m one was added because if you used this with volume when it goes from 3 to 2 chars it didnt get cleared properly...
abc can be any 7 letters/chars that you want to display (except | but that can be fixed later). Add them at the end of the bmp strip in the same order (so if you add "-:" then your strip should be "0123456789-:" (going down of course)
Logged


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

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #4 on: December 26, 2008, 05:53:22 PM »
OK, I've been trying to make it work but I must be doing something wrong. I'm using the ipod video build you posted (thanks for that!), I arranged the numbers' images from 0 to 9 in a bitmapstrip, but I've got something wrong in the tags syntax I guess (wps reverting to the "peak meter default"), maybe I'm not getting the new parameters you introduced (that are not in your wps example). The image below shows what I'd like to achieve (flipclock-like numbers) using tags %cI and %cM... thanks in advance for the help

« Last Edit: October 29, 2010, 01:38:15 AM by audio-i »
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #5 on: December 27, 2008, 05:36:21 AM »
post your .wps and ill have a look
Logged


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

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #6 on: December 27, 2008, 10:23:47 AM »
ok
Code: [Select]
#Clock
%xl|c|clock_numbers.bmp|0|0|
%V|265|141|33|13|0|-|-|
%dn|c|2|0|0|%cI
%dn|c|2|17|0|%cM

where clock_numbers.bmp has the number images from 0 to 9 (just in case here's the whole .zip including the calendar numbers case and everything else http://www.

« Last Edit: October 29, 2010, 01:37:50 AM by audio-i »
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #7 on: December 27, 2008, 10:27:02 AM »
the tag is %xn... also you need to add an extra | at the end of them before the %c tag
Logged


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

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #8 on: December 27, 2008, 10:36:58 AM »
 :) I thought you'd changed the %xn since you wrote
Quote from: JdGordon on December 25, 2008, 09:47:52 PM
format: %dn|n|m|x|y|abc
        where:
            n is the bmp strip number/letter to use.
            m is the max number of chars to draw (Always drawn right justified)
            x is the x pixel to start drawing at (viewport relative)
            y is the y pixel to start drawing at (viewport relative)
            abc is up to 7 extra chars in the order they appear at the end of the bmp strip
(there's %dn on the tracker too)

when I tried %xn before, I got a data abort error, and that still happens even with the extra |.

Am I doing wrong what you meant?:

Code: [Select]
#Clock
%xl|c|clock_numbers.bmp|0|0|
%V|265|141|33|13|0|-|-|
%xn|c|2|0|0||%cI
%xn|c|2|17|0||%cM
#%V|278|160|20|7|0|76b4b5|EEE9E9|
#%ar%cP
#
#Calendar
%xl|D|days.bmp|0|0|6|
%V|262|187|40|12|1|000000|FFFFFF|
%?cu<|%xdDa|%xdDb|%xdDc|%xdDd|%xdDe|%xdDf>
%xl|k|cal_numbers.bmp|0|0|
%V|266|202|32|20|0|-|-|
%xn|k|2|0|0||%cd
(I also tried %xn|k|2|0|0|%cd|... I'm lost here)
« Last Edit: December 27, 2008, 10:55:36 AM by akahhannah »
Logged

Offline blackthunder

  • Member
  • *
  • Posts: 26
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #9 on: December 27, 2008, 07:07:02 PM »
Code: [Select]
%xl|c|clock_numbers.bmp|0|0|
don't you need to tell it the number of strips there?
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #10 on: December 27, 2008, 07:14:42 PM »
%xn|k|2|0|0||%cd looks ok... i'm not sure
Logged


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

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #11 on: December 27, 2008, 10:13:45 PM »
Could it be the patched build I downloaded? When I use the %xn, no matter what comes after that, I get "data abort at 00010154 (0)"  :-\
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #12 on: December 27, 2008, 10:16:43 PM »
oh your still using the old build... redownload it... just updated
Logged


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

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #13 on: December 27, 2008, 10:42:54 PM »
Thanks for the update... I get the same data abort crash with this one too, though...
Logged

Offline blackthunder

  • Member
  • *
  • Posts: 26
Re: (non-denominational-) santa brought you all a nice pressy!
« Reply #14 on: December 29, 2008, 02:26:42 PM »
as I stated you are not defining the number of images for the clock_numbers.bmp.

it should be:
%xl|c|clock_numbers.bmp|0|0|[insert number of images]|
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  (non-denominational-) santa brought you all a nice pressy!
 

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

Page created in 0.076 seconds with 15 queries.