Support and General Use > Theming and Appearance Customization

How to simplify? This works in the Simulator but not on my Clip+.

(1/3) > >>

KiwiCam:

--- Code: ---%ax%Vl(q,53,20,65,10,6)
--- End code ---

This is what I want to achieve. This works in the Simulator (haven't tried the Theme Editor), but not on the Clip itself:


--- Code: ---%?bp<%?bc<%t(2)%acCHARGING;%t(2)%ac%%%bl|%t(2)%acCHARGED;%t(2)%ac%%100>|%?if(%bl,<=,5)<%t(2.0)%acCHARGE;%t(0.5)%acBATTERY;%t(0.5)%acLOW|%t(3.0)%ac%?cu<Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday>;%t(3.0)%ac%ce;%ac%t(3.0)%ac%?cm<January|February|March|April|May|June|July|August|September|October|November|December>>>
--- End code ---

This DOES work on the Clip (and of course the Simulator), so it seems that the first is just a tad too much for the Clip itself:


--- Code: ---%?bp<%?bc<%acCHARGING|%acCHARGED>|%?if(%bl,<=,5)<%t(2.0)%acCHARGE;%t(0.5)%acBATTERY;%t(0.5)%acLOW|%t(3.0)%ac%?cu<Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday>;%t(3.0)%ac%ce;%ac%t(3.0)%ac%?cm<January|February|March|April|May|June|July|August|September|October|November|December>>>
--- End code ---

Do you have any suggestions as to how to code this better (the first bit of code)?

I have another challenge:

In the above code, I'm flashing the Day %ce. I'd like to add 'st' as in 1st, 'nd', 'rd or 'th' to this, depending on the number. What would be the easiest way to code this please?

Numbers ending in 'st' 1,21,31
Numbers ending in 'nd' 2 & 22
Numbers ending in 'rd' 3 & 23
Numbers ending in 'th' 4-20 & 24-30   (I think that's right)


PS: Is there a way to get the Forum Screen to fit within my Laptop Screen size, without having to scroll for miles to the right?

Thanks.

JdGordon:
I'm not sure about the first blob but the number ending could be done with some horrible use of %?if..

%?if(%ce, = 1)<st|%?if(%ce, = 21)<st|%?if(%ce, = 31)<st|%?if(%ce, = 2)<nd|%?if(%ce, = 22)<nd|%?if(%ce, = 3)<rd|%?if(%ce, = 23)<rd|th>>>>>>>

although if this is something which would be useful it could be added to the language.

The other thing that I wanted to say was: how do oyu like this sort of tag:
%ll(days, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday)  <- setup a list of strings...
... then use it like this:
%ld(days, %cu) <- i.e display the value of days[%cu]

KiwiCam:

--- Quote from: JdGordon on October 09, 2011, 08:56:46 AM ---I'm not sure about the first blob but the number ending could be done with some horrible use of %?if..

%?if(%ce, = 1)<st|%?if(%ce, = 21)<st|%?if(%ce, = 31)<st|%?if(%ce, = 2)<nd|%?if(%ce, = 22)<nd|%?if(%ce, = 3)<rd|%?if(%ce, = 23)<rd|th>>>>>>>

although if this is something which would be useful it could be added to the language.

The other thing that I wanted to say was: how do oyu like this sort of tag:
%ll(days, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday)  <- setup a list of strings...
... then use it like this:
%ld(days, %cu) <- i.e display the value of days[%cu]

--- End quote ---

That'd be brilliant. So, I gather with something like that, I could do:

%ll(days,1st,2nd,3rd,4th,5th....31st)
%ld(days,%cd)

Would there be any way to be able to make use of Bitmaps with this?

JdGordon:
you can already do that with bitmaps. load a bitmap strip and then do %xd(label, %cd)

JdGordon:

--- Quote from: JdGordon on October 09, 2011, 08:56:46 AM ---I'm not sure about the first blob but the number ending could be done with some horrible use of %?if..

%?if(%ce, = 1)<st|%?if(%ce, = 21)<st|%?if(%ce, = 31)<st|%?if(%ce, = 2)<nd|%?if(%ce, = 22)<nd|%?if(%ce, = 3)<rd|%?if(%ce, = 23)<rd|th>>>>>>>

although if this is something which would be useful it could be added to the language.

The other thing that I wanted to say was: how do oyu like this sort of tag:
%ll(days, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday)  <- setup a list of strings...
... then use it like this:
%ld(days, %cu) <- i.e display the value of days[%cu]

--- End quote ---

I'm quite happy to add this tag once the major rework patch goes in, just ned to be reminded... maye the weelend

Navigation

[0] Message Index

[#] Next page

Go to full version