// // UILayer::processUINodeTouch from 0x3fcf10 to 0x3fd10e (510 bytes) // // 2 xrefs: // > UILayer::processUINodeTouch @ 0x3fd102 // > UILayer::processUINodesTouch @ 0x3fd178 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:47:21 +0000 // int __fastcall UILayer::processUINodeTouch( int a1, int a2, int a3, const cocos2d::CCPoint *a4, cocos2d::CCPoint *a5, double a6) { char v9; // r5 int v10; // r0 int v11; // r5 float v12; // r2 float v13; // r3 int active; // r0 int v15; // r11 char v16; // r3 GJBaseGameLayer *v17; // r0 int v18; // r1 const cocos2d::CCPoint *v20; // r1 double v21; // [sp+0h] [bp-34h] int v22; // [sp+4h] [bp-30h] cocos2d::CCPoint *v24; // [sp+14h] [bp-20h] _BYTE v25[8]; // [sp+1Ch] [bp-18h] BYREF _BYTE v26[8]; // [sp+24h] [bp-10h] BYREF v9 = a2; if ( a2 ) { if ( *((_DWORD *)a5 + 72) == a3 ) { if ( a2 != 1 ) { if ( a2 == 2 ) { v16 = *((_BYTE *)a5 + 321); v21 = a6; v17 = *(GJBaseGameLayer **)(a1 + 480); if ( *((_BYTE *)a5 + 322) ) { v18 = 1; } else { GJBaseGameLayer::queueButton(v17, *((_DWORD *)a5 + 81), 0, v16, a6); v17 = *(GJBaseGameLayer **)(a1 + 480); v18 = 5; v16 = *((_BYTE *)a5 + 321); v21 = a6; } GJBaseGameLayer::queueButton(v17, v18, 0, v16, v21); GJUINode::touchEnded(a5); } return 1; } if ( *((_BYTE *)a5 + 322) || *((_BYTE *)a5 + 323) ) return 1; cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v26, a5); active = GJUINode::activeTouchTest((int)a5, (const cocos2d::CCPoint *)v26, v12, v13); v15 = active; if ( (unsigned int)(active - 2) <= 1 ) { if ( *((_DWORD *)a5 + 81) != active ) { *((_BYTE *)a5 + 320) = 0; GJUINode::highlightButton((unsigned __int8 *)a5, active); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 480), v15, v9, *((_BYTE *)a5 + 321), a6); GJBaseGameLayer::queueButton( *(GJBaseGameLayer **)(a1 + 480), *((_DWORD *)a5 + 81), 0, *((_BYTE *)a5 + 321), a6); *((_DWORD *)a5 + 81) = v15; } return 1; } if ( *((_BYTE *)a5 + 320) ) return 1; *((_BYTE *)a5 + 320) = v9; GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 480), *((_DWORD *)a5 + 81), 0, *((_BYTE *)a5 + 321), a6); if ( !*((_BYTE *)a5 + 317) ) GJUINode::touchEnded(a5); LABEL_21: *((_DWORD *)a5 + 81) = 0; return 1; } } else { cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v25, a5); if ( *((_DWORD *)a5 + 72) != -1 ) { if ( cocos2d::CCRect::containsPoint((cocos2d::CCPoint *)((char *)a5 + 272), (const cocos2d::CCPoint *)v25) ) { v20 = a4; v24 = *((cocos2d::CCPoint **)a5 + 72); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, v20); UILayer::processUINodeTouch(a1, 2, (int)v24, (int)v26, a5, v22, SLODWORD(a6)); } } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, (const cocos2d::CCPoint *)v25); v10 = GJUINode::touchTest(a5, (const cocos2d::CCPoint *)v26); v11 = v10; if ( v10 ) { *((_DWORD *)a5 + 72) = a3; if ( v10 == 1 ) { GJUINode::toggleHighlight(a5, 1, 1); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 480), v11, v11, *((_BYTE *)a5 + 321), a6); return 1; } if ( (unsigned int)(v10 - 2) <= 1 ) { GJUINode::toggleHighlight(a5, v10, 1); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 480), v11, 1, *((_BYTE *)a5 + 321), a6); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 480), 5, 1, *((_BYTE *)a5 + 321), a6); *((_DWORD *)a5 + 81) = v11; return 1; } *((_BYTE *)a5 + 320) = 1; goto LABEL_21; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source