标签:pre 坐标 int 为知笔记 creat 触发器 top http point
auto start = MenuItemFont::create("ON");
auto stop =MenuItemFont::create("OFF");
auto toggle = MenuItemToggle::createWithCallback(
CC_CALLBACK_1(HellWord::menuONorOFFCallback,this),
start,
stop,
NULL
);
toggle->setPosition(Vec2(visibleSize.width/2,visibleSize.height/2));//设置坐标
auto menu =Menu::create(toggle,NULL);
menu->setPosition(Point::ZERO);
addChild(menu);
标签:pre 坐标 int 为知笔记 creat 触发器 top http point
原文地址:http://www.cnblogs.com/feizuzu/p/7e67c5fc0539889a5e10c80101028628.html