![]() |
2011-07-15
, 08:32
|
Posts: 122 |
Thanked: 19 times |
Joined on Jan 2010
@ Denmark
|
#461
|
The Following User Says Thank You to infected69 For This Useful Post: | ||
![]() |
2011-09-14
, 20:11
|
|
Posts: 133 |
Thanked: 140 times |
Joined on Feb 2010
@ Bristol, UK
|
#462
|
If I was a good teacher, I'd get you on live chat and we'd go over your code together. But I'm lazy and making this myself was faster:
Attachment 16825
Just delete the ".txt" and put in the same folder as the other clocks. (/opt/maemo/usr/lib/advanced-clock-plugin/clocks/ - remember you have to be root to save there)
It's a mix of messy and okay code-wise. I left the copyright part as just Wonko's; I didn't change enough to bother adding my name.
If you look, all I did was change the text resizing values to those of the Digital Clock, commented out some of the lines, and edited one or two more, changing some variable names/order/position of things, etc.
You can delete the commented out lines without worrying about it (unless you want to add the year later). As is, it just doesn't show the year at all, and if you change it to twelve hour mode, the PM/AM appears after the date. The font size is pretty big by default, but that's what the scaling value is there for. If you want it much smaller, but want it centered instead of pinned down, just edit the 'move_to' line in the draw_clock section (and anywhere else they exist). Edit the second value, 35, to something smaller. For text, this determines where the bottom of the text is pinned to. 16±1 is about where the center of the box is. So ~25 or so might be a good spot if you shrink it... Depending on how much you shrink it of course.
![]() |
2011-12-01
, 08:09
|
|
Posts: 117 |
Thanked: 76 times |
Joined on Aug 2010
@ Samnan,Sharjah,U.A.E.
|
#463
|
![]() |
2012-02-16
, 03:49
|
Posts: 36 |
Thanked: 7 times |
Joined on Dec 2011
|
#464
|
![]() |
2012-06-12
, 02:06
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#465
|
![]() |
2012-06-13
, 10:39
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#466
|
![]() |
2012-11-22
, 12:12
|
Posts: 1 |
Thanked: 1 time |
Joined on Nov 2012
|
#467
|
The Following User Says Thank You to ectaVgen For This Useful Post: | ||