Merge pull request #8763 from ledenis/label-in-samples

Changed deprecated LabelTTF::create() to Label::createWithTTF() in the H...
This commit is contained in:
minggo 2014-10-17 09:37:23 +08:00
commit 4544ecff4e
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ bool HelloWorld::init()
// add a label shows "Hello World"
// create and initialize a label
auto label = LabelTTF::create("Hello World", "Arial", 24);
auto label = Label::createWithTTF("Hello World", "Arial", 24);
// position the label on the center of the screen
label->setPosition(Vec2(origin.x + visibleSize.width/2,

View File

@ -10,7 +10,7 @@ public:
static cocos2d::Scene* createScene();
// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
virtual bool init();
virtual bool init();
// a selector callback
void menuCloseCallback(cocos2d::Ref* pSender);