A user of cocos2d-xna asks:
He has a 50x50 sprite for the button and insets at |
>10[ 30 ]10<|. This results in a zero width/height sprite. Is this supposed to act like this, or should the insets increase the size of the button?
When I tried a similar test but used a [30,30,30,30] inset on a 50x50 sprite, I got an assertion because the height had gone negative.
I checked our code versus the cocos2d-x code and it appears to be the same. Maybe we are not understanding the Sprite9 correctly?