// // UILayer::processUINodeTouch from 0x6ef5b8 to 0x6ef8cc (788 bytes) // // 3 xrefs: // > UILayer::processUINodeTouch @ 0x6ef6c4 // > UILayer::processUINodesTouch @ 0x6ef964 // > @ 0xdd5a8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:51:47 +0000 // __int64 __fastcall UILayer::processUINodeTouch( __int64 a1, int a2, int a3, const cocos2d::CCPoint *a4, __int64 a5, double a6) { __int64 result; // x0 const cocos2d::CCPoint *v11; // x1 int v12; // w20 int v13; // w22 cocos2d::CCPoint *v15; // [xsp+58h] [xbp+58h] __int64 v16; // [xsp+68h] [xbp+68h] BYREF __int64 v17; // [xsp+70h] [xbp+70h] BYREF if ( a2 ) { result = 0; if ( *(_DWORD *)(a5 + 352) != a3 ) return result; if ( a2 == 1 ) { if ( *(_BYTE *)(a5 + 386) || *(_BYTE *)(a5 + 387) ) return 1; cocos2d::CCNode::convertToNodeSpace(&v17, (cocos2d::CCNode *)a5, a4); v13 = (unsigned int)GJUINode::activeTouchTest(a5, (const cocos2d::CCPoint *)&v17); if ( (unsigned int)(v13 - 2) <= 1 ) { if ( v13 != *(_DWORD *)(a5 + 388) ) { *(_BYTE *)(a5 + 384) = 0; GJUINode::highlightButton((GJUINode *)a5, v13); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 600), v13, 1, *(_BYTE *)(a5 + 385), a6); GJBaseGameLayer::queueButton( *(GJBaseGameLayer **)(a1 + 600), *(_DWORD *)(a5 + 388), 0, *(_BYTE *)(a5 + 385), a6); *(_DWORD *)(a5 + 388) = v13; return 1; } return 1; } if ( *(_BYTE *)(a5 + 384) ) return 1; *(_BYTE *)(a5 + 384) = 1; GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 600), *(_DWORD *)(a5 + 388), 0, *(_BYTE *)(a5 + 385), a6); if ( !*(_BYTE *)(a5 + 381) ) GJUINode::touchEnded((GJUINode *)a5); *(_DWORD *)(a5 + 388) = 0; return 1; } else { if ( a2 != 2 ) return 1; if ( *(_BYTE *)(a5 + 386) ) { GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 600), 1, 0, *(_BYTE *)(a5 + 385), a6); } else { GJBaseGameLayer::queueButton( *(GJBaseGameLayer **)(a1 + 600), *(_DWORD *)(a5 + 388), 0, *(_BYTE *)(a5 + 385), a6); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 600), 5, 0, *(_BYTE *)(a5 + 385), a6); } GJUINode::touchEnded((GJUINode *)a5); return 1; } } else { cocos2d::CCNode::convertToNodeSpace(&v16, (cocos2d::CCNode *)a5, a4); if ( *(_DWORD *)(a5 + 352) != -1 && (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a5 + 336), (const cocos2d::CCPoint *)&v16) ) { v11 = a4; v15 = (cocos2d::CCPoint *)*(unsigned int *)(a5 + 352); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, v11); UILayer::processUINodeTouch(a1, 2, v15, &v17, a5, a6); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, (const cocos2d::CCPoint *)&v16); v12 = (unsigned int)GJUINode::touchTest((_BYTE *)a5, (const cocos2d::CCPoint *)&v17); result = 0; if ( v12 ) { *(_DWORD *)(a5 + 352) = a3; if ( v12 == 1 ) { GJUINode::toggleHighlight((GJUINode *)a5, 1); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 600), 1, 1, *(_BYTE *)(a5 + 385), a6); return 1; } else { if ( (unsigned int)(v12 - 2) <= 1 ) { GJUINode::toggleHighlight((GJUINode *)a5, v12); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 600), v12, 1, *(_BYTE *)(a5 + 385), a6); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 600), 5, 1, *(_BYTE *)(a5 + 385), a6); *(_DWORD *)(a5 + 388) = v12; } else { *(_DWORD *)(a5 + 388) = 0; *(_BYTE *)(a5 + 384) = 1; } return 1; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source