// // cocos2d::CCMenuItemSprite::setSelectedImage from 0x18005baf0 to 0x18005bb82 (146 bytes) // // 6 xrefs: // > @ 0x1800f8720 // > @ 0x1800f8b80 // > @ 0x180138da0 // > @ 0x180138db0 // > @ 0x1801438a8 // > @ 0x1801b2f40 // // 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::setSelectedImage( cocos2d::CCMenuItemSprite *this, struct cocos2d::CCNode *a2, __int64 a3) { cocos2d::CCNode_vtbl *v5; // rbx float *v6; // rax cocos2d::CCNode *m_pNormalImage; // 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, 2); v5 = a2->__vftable; v6 = kmVec2Fill(&v9, 0.0, 0.0); ((void (__fastcall *)(struct cocos2d::CCNode *, float *))v5->setAnchorPoint)(a2, v6); } m_pNormalImage = this->m_pNormalImage; if ( m_pNormalImage ) { LOBYTE(a3) = 1; ((void (__fastcall *)(cocos2d::CCMenuItemSprite *, cocos2d::CCNode *, __int64))this->removeChild)( this, m_pNormalImage, a3); } v8 = this->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; this->m_pNormalImage = a2; ((void (__fastcall *)(cocos2d::CCMenuItemSprite *))v8->updateImagesVisibility)(this); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source