| 29 | USING_NS_AX; |
| 30 | |
| 31 | OptionsLayer* OptionsLayer::create() |
| 32 | { |
| 33 | auto pRet = new(std::nothrow) OptionsLayer(); |
| 34 | |
| 35 | if (pRet && pRet->init()) { |
| 36 | pRet->autorelease(); |
| 37 | return pRet; |
| 38 | } else { |
| 39 | AX_SAFE_DELETE(pRet); |
| 40 | return nullptr; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | bool OptionsLayer::init() |
| 45 | { |