To say I’ve spent over 20 hours on this thing is probably an understatement.
I just want a nice looking progress bar… that said, what I had in mind doesn’t seem to be possible.
I thought a really nice looking bar would employ newRoundedRect(), with a nice gradient. I took the bitwise code from here: http://developer.anscamobile.com/code/bitwise-operators-lua alas, this will NOT work with roundedRect because it’s creating 2 pixel high slivers, and the curves get REALLY funky.
Then I had to add them to a viewgroup in order to move them as one unit. Oh man, after hours of wracking my brain, I STILL have no idea why the viewgroup doesn’t move properly (change width, move .x coordinate). I’ve tried scaling, I’ve tried modifying the width, but it will just not stay within the confines of the expected area.
And so I’m here wondering if I’m just an idiot, or if there is a simple solution to this. I suppose I can make all the progress bars images and continue to bloat my game, but even with images, I’m not 100% sure I have a good idea how to pull it off without distorting it.
With simple rects, and even non-gradient rounded rects, my progress bars work great. They’re just ugly as hell… and I really don’t know how to spice these things up… and it really shouldn’t take me the better part of 3 days to do something like this. =/ [import]uid: 37122 topic_id: 11793 reply_id: 311793[/import]