| 28 | USING_NS_AX; |
| 29 | |
| 30 | BoomScrollLayer* BoomScrollLayer::create(std::vector<ax::Layer*> layers, int currentPage) |
| 31 | { |
| 32 | BoomScrollLayer* pRet = new BoomScrollLayer(); |
| 33 | if (pRet->init(layers, currentPage)) |
| 34 | { |
| 35 | pRet->autorelease(); |
| 36 | return pRet; |
| 37 | } |
| 38 | else |
| 39 | { |
| 40 | delete pRet; |
| 41 | pRet = nullptr; |
| 42 | return nullptr; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | void BoomScrollLayer::selectPage(int current) |
| 47 | { |