BugsTest
| 456 | |
| 457 | // BugsTest |
| 458 | BugsTest::BugsTest() |
| 459 | { |
| 460 | auto issue1410 = MenuItemFont::create("Issue 1410", AX_CALLBACK_1(BugsTest::issue1410MenuCallback, this)); |
| 461 | auto issue1410_2 = MenuItemFont::create("Issue 1410 #2", AX_CALLBACK_1(BugsTest::issue1410v2MenuCallback, this)); |
| 462 | auto back = MenuItemFont::create("Back", AX_CALLBACK_1(BugsTest::backMenuCallback, this)); |
| 463 | |
| 464 | auto menu = Menu::create(issue1410, issue1410_2, back, nullptr); |
| 465 | addChild(menu); |
| 466 | menu->alignItemsVertically(); |
| 467 | |
| 468 | auto s = Director::getInstance()->getWinSize(); |
| 469 | menu->setPosition(Vec2(s.width / 2, s.height / 2)); |
| 470 | } |
| 471 | |
| 472 | void BugsTest::issue1410MenuCallback(Object* sender) |
| 473 | { |
nothing calls this directly
no test coverage detected