| 2480 | } |
| 2481 | |
| 2482 | LabelIssue10688Test::LabelIssue10688Test() |
| 2483 | { |
| 2484 | auto center = VisibleRect::center(); |
| 2485 | |
| 2486 | auto label = Label::createWithTTF("Glow MenuItemLabel", "fonts/arial.ttf", 30); |
| 2487 | label->setTextColor(Color4B::RED); |
| 2488 | label->enableGlow(Color4B::YELLOW); |
| 2489 | auto menuItem1 = MenuItemLabel::create(label, [](Object*) {}); |
| 2490 | menuItem1->setAnchorPoint(Vec2::ANCHOR_MIDDLE_LEFT); |
| 2491 | menuItem1->setPosition(center.x - label->getContentSize().width / 2, center.y); |
| 2492 | |
| 2493 | auto menu = Menu::create(menuItem1, NULL); |
| 2494 | menu->setPosition(Vec2::ZERO); |
| 2495 | this->addChild(menu); |
| 2496 | } |
| 2497 | |
| 2498 | std::string LabelIssue10688Test::title() const |
| 2499 | { |
nothing calls this directly
no test coverage detected