do anyone have an example how to use CCScale9Sprite with setCapInsets? Every time i call the setCapInset function the sprite gets invisible.
The origion for CCScle9Sprite is upper left not lower left.
Beside there is a bug in the following function:
TCCScale9Sprite* TCCScale9Sprite::create(CCRect capInsets, const char* file)
TCCScale9Sprite* pReturn = new TCCScale9Sprite();
if ( pReturn && pReturn~~>initWithFile )
It have to be if ( pReturn && pReturn->initWithFile(capInsets, file) )