some of my friend had import DecoratedBox from cocos2d to cocos2d-x version!
i improve something
calculate DecoratedBox’s real width and height to be more accurate !
it’s easy to use like this
DecoratedBox* backGroundSprite = DecoratedBox::decoratedBoxWithFile(“60019.png”,440, 100);
DecoratedBox.zip (2.1 KB)