sue602
March 17, 2012, 4:04am
#1
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);
backGroundSprite~~>setPosition);
this~~>addChild(backGroundSprite, 0);
DecoratedBox.zip (2.1 KB)
sue602
March 17, 2012, 4:05am
#2
it’s the cocos2d-iphone version . you can take the resource image from this project for test!
sue602
April 23, 2012, 8:11am
#3
NEW FEATURE FOR Opacity SETTING
keqi24
August 22, 2012, 4:11am
#4
thanks for your great work!
when I test it in cocos2d v2.0, I find there are some little errors.
so I fixed them and made it fit for the v2.0.