mirror of https://github.com/axmolengine/axmol.git
Merge pull request #8763 from ledenis/label-in-samples
Changed deprecated LabelTTF::create() to Label::createWithTTF() in the H...
This commit is contained in:
commit
4544ecff4e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue