Masking Text

Since we now go with corona and we purchased today I thought I’ll give it a try on this forum :wink:

Case
We’re developing currently an app which needs custom sized (in height) tableviews, I thought the current workaround would be to code our own (done) and mask the whole thing.

Problem
Well but all text inside a mask display group is rendered black, instead of its original textcolor. Beside this it seems to work fine.

But we really need the assigned textcolors of course. Sadly without tableviews with custom height or masked text not being black we hit a wall here.

Example
Here’s an example (build .268)
http://www.seitwerk.de/download/corona/masked_text.zip

Thanks,
Andy

[import]uid: 12870 topic_id: 6298 reply_id: 306298[/import]

It’s not in the docs, but it seems masking doesn’t work with text. Not only is there no colour, the mask doesn’t line up correctly. (Vector shapes work OK). You could save the text and load as an image but it looks pretty poor. [import]uid: 3953 topic_id: 6298 reply_id: 23366[/import]

The same error here!!!

Mr Carlos, could you read is topic and “drop us” an answer, a bug fix is much better.
Thank you. [import]uid: 9190 topic_id: 6298 reply_id: 29491[/import]

Does masking work with bitmap fonts?

http://developer.anscamobile.com/forum/2011/02/05/bitmap-font [import]uid: 12108 topic_id: 6298 reply_id: 29493[/import]

I need the masking function to work properly to clone the sliding effect of an iOS switch too.

– Advanced UI + Graph for Corona® | Website | Forum (https) | See: [import]uid: 11385 topic_id: 6298 reply_id: 32117[/import]

@jhocking
Well I guess that would work but is a nogo for us, developing text-heavy business and consumer apps. For games with little text that would be workaround of course. [import]uid: 12870 topic_id: 6298 reply_id: 32630[/import]

we got masking working on text - sample code coming up soon.

the flashlite sample (on the sample demo folders) should work on text.

c. [import]uid: 24 topic_id: 6298 reply_id: 36001[/import]

Yeah, noticed and tested right away :wink: Works fine. I can sense, that custom height UI-Listviews are very near :wink:

Are you also planning to extend masking in the way to allow masks to be rectangle-objects etc., instead of bitmaps? [import]uid: 12870 topic_id: 6298 reply_id: 36090[/import]