// // cocos2d::extension::CCControlButton::setTitleLabelForState from 0x5a1498 to 0x5a1538 (160 bytes) // // 0 xrefs: // // 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 // void cocos2d::extension::CCControlButton::setTitleLabelForState( cocos2d::extension::CCControlButton *a1, cocos2d::CCNode *a2, unsigned int a3) { cocos2d::CCNode *v6; // r1 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCPoint v8; // [sp+4h] [bp-10h] BYREF v6 = (cocos2d::CCNode *)cocos2d::CCDictionary::objectForKey((cocos2d::CCDictionary *)a1[1].m_unknown5, a3); if ( v6 ) { a1->removeChild_0(a1, v6, 1); cocos2d::CCDictionary::removeObjectForKey((cocos2d::CCDictionary *)a1[1].m_unknown5, a3); } cocos2d::CCDictionary::setObject((cocos2d::CCDictionary *)a1[1].m_unknown5, a2, a3); a2->setVisible(a2, 0); setAnchorPoint = a2->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v8, 0.5, 0.5); setAnchorPoint(a2, &v8); a1->addChild_0(a1, a2, 1); if ( a1->m_eState == a3 ) a1->needsLayout(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source