| 299 | } |
| 300 | |
| 301 | bool MenuItemAtlasFont::initWithString(std::string_view value, |
| 302 | std::string_view charMapFile, |
| 303 | int itemWidth, |
| 304 | int itemHeight, |
| 305 | char startCharMap, |
| 306 | const ccMenuCallback& callback) |
| 307 | { |
| 308 | AXASSERT(value.size() != 0, "value length must be greater than 0"); |
| 309 | LabelAtlas* label = LabelAtlas::create(value, charMapFile, itemWidth, itemHeight, startCharMap); |
| 310 | if (MenuItemLabel::initWithLabel(label, callback)) |
| 311 | { |
| 312 | // do something ? |
| 313 | } |
| 314 | return true; |
| 315 | } |
| 316 | |
| 317 | // |
| 318 | // CCMenuItemFont |
no test coverage detected