// // cocos2d::extension::CCControlButton::ccTouchBegan from 0x5a191a to 0x5a1990 (118 bytes) // // 1 xrefs: // > `non-virtual thunk to'cocos2d::extension::CCControlButton::ccTouchBegan @ 0x5a1994 // // 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 cocos2d::extension::CCControlButton::ccTouchBegan( cocos2d::extension::CCControlButton *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { _BOOL4 hasVisibleParents; // r6 cocos2d::CCNode *i; // r5 int v6; // r0 cocos2d::extension::CCControlButton_vtbl *v7; // r3 if ( ((int (__fastcall *)(cocos2d::extension::CCControlButton *, cocos2d::CCTouch *, cocos2d::CCEvent *))a1->isTouchInside)( a1, a2, a3) && ((int (__fastcall *)(cocos2d::extension::CCControlButton *))a1->isEnabled)(a1) && ((int (__fastcall *)(cocos2d::extension::CCControlButton *))a1->isVisible)(a1) && (hasVisibleParents = cocos2d::extension::CCControl::hasVisibleParents(a1)) ) { for ( i = a1->m_pParent; i; i = i->getParent(i) ) { v6 = ((int (__fastcall *)(cocos2d::CCNode *))i->isVisible)(i); if ( !v6 ) return v6; } v7 = a1->cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; LOBYTE(a1[1].m_unknown2) = 1; v7->setHighlighted(a1, 1); a1->sendActionsForControlEvents(a1, 1); LOBYTE(v6) = hasVisibleParents; } else { LOBYTE(v6) = 0; } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source