// // CCMenuItemSpriteExtra::init from 0x2e679c to 0x2e6890 (244 bytes) // // 3 xrefs: // > CCMenuItemSpriteExtra::create @ 0x2e6960 // > CreateMenuItem::init @ 0x3860c6 // > InfoAlertButton::init @ 0x4b9ae4 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool CCMenuItemSpriteExtra::init( CCMenuItemSpriteExtra *a1, cocos2d::CCNode *a2, cocos2d::CCNode *a3, cocos2d::CCObject *a4, cocos2d::SEL_MenuHandler a5) { _BOOL4 v7; // r8 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r9 float width; // s17 float v11; // s15 float height; // s16 float v13; // r0 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCNode *v15; // r0 cocos2d::CCPoint v17; // [sp+14h] [bp-10h] BYREF v7 = cocos2d::CCMenuItemSprite::initWithNormalSprite(a1, a2, a3, nullptr, a4, a5); if ( v7 ) { a1->m_baseScale = 1.0; setAnchorPoint = a2->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v17, 0.5, 0.5); setAnchorPoint(a2, &v17); setContentSize = a1->setContentSize; width = a2->getContentSize(a2)->width; v11 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCNode *))a2->getScaleX)(a2)); height = a2->getContentSize(a2)->height; v13 = a2->getScaleY(a2); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v17, width * v11, height * v13); setContentSize(a1, (const cocos2d::CCSize *)&v17); setPosition = a2->setPosition; v15 = a2->getParent(a2); cocos2d::CCNode::convertToNodeSpace(&v17, v15, &stru_AC5320); setPosition(a2, &v17); a1->m_animationEnabled = 1; a1->m_scaleMultiplier = 1.26; } return v7; }