I use scrollView and tableView widgets in my games. And, depending on the size of the screen, I will size the widgets accordingly. But because I have to support multiple-sized widgets, I have to create multiple mask files, one for each of the pre-set widget sizes that I choose to use in my game.
I’ve gotten very good at making these mask files, and I find that when I make the mask files in Photoshop, all I’m doing is creating an image that is 4 pixels wider and longer than my widget size, and creating a white image with a 2 pixel black border. And all I’m doing is following Corona’s tutorial on making mask files.
So the question is this – since the mask file is such a simple thing, why can’t Corona generate and use mask files automatically for us? Seems that Corona can just take our widget size, then, in memory, create a white image with a 2 pixel black border for use as the mask.
This would be nice then I could programmatically set the size of my widgets and not have to worry about pre-generating a mask file for every possible size. [import]uid: 92621 topic_id: 33255 reply_id: 333255[/import]