// // cocos2d::CCMenuItemSprite::setDisabledImage from 0x18005b620 to 0x18005b6b2 (146 bytes) // // 6 xrefs: // > @ 0x1800f8730 // > @ 0x1800f8b90 // > @ 0x180138dc4 // > @ 0x180138dd4 // > @ 0x1801438a8 // > @ 0x1801b2e50 // // 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 __fastcall cocos2d::CCMenuItemSprite::setDisabledImage( cocos2d::CCMenuItemSprite *this, struct cocos2d::CCNode *a2, __int64 a3) { cocos2d::CCNode_vtbl *v5; // rbx float *v6; // rax cocos2d::CCNode *m_pSelectedImage; // rdx cocos2d::CCMenuItemSprite_vtbl *v8; // rax float v9; // [rsp+30h] [rbp+8h] BYREF if ( a2 != *(struct cocos2d::CCNode **)&this->m_nScriptTapHandler ) { if ( a2 ) { ((void (__fastcall *)(cocos2d::CCMenuItemSprite *, struct cocos2d::CCNode *, _QWORD, __int64))this->addChild)( this, a2, 0, 3); v5 = a2->__vftable; v6 = kmVec2Fill(&v9, 0.0, 0.0); ((void (__fastcall *)(struct cocos2d::CCNode *, float *))v5->setAnchorPoint)(a2, v6); } m_pSelectedImage = this->m_pSelectedImage; if ( m_pSelectedImage ) { LOBYTE(a3) = 1; ((void (__fastcall *)(cocos2d::CCMenuItemSprite *, cocos2d::CCNode *, __int64))this->removeChild)( this, m_pSelectedImage, a3); } v8 = this->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; this->m_pSelectedImage = a2; ((void (__fastcall *)(cocos2d::CCMenuItemSprite *))v8->updateImagesVisibility)(this); } }