// // EditorWindowPopup::beginTouch from 0x78cee8 to 0x78d13e (598 bytes) // // 1 xrefs: // > EditorWindowPopup::ccTouchBegan @ 0x78d198 // // 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:59:37 +0000 // int __fastcall EditorWindowPopup::beginTouch(int a1, cocos2d::CCTouch *a2, int a3) { float v6; // s16 float v7; // s19 float v8; // s18 int v9; // r2 int v10; // r3 int v11; // r6 int v12; // r0 int v14; // r10 int v15; // r0 int ResizeCorner; // r0 float v17; // s15 float v18; // s16 float v19; // s16 float v20; // s17 ScrollableContentLayer *v21; // r0 const cocos2d::CCPoint *v22; // r1 int v23; // r0 int v24; // r0 _BYTE v25[8]; // [sp+14h] [bp+0h] BYREF _BYTE v26[8]; // [sp+1Ch] [bp+8h] BYREF float v27[2]; // [sp+24h] [bp+10h] BYREF _BYTE v28[16]; // [sp+2Ch] [bp+18h] BYREF cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v25); v6 = *(float *)(a1 + 732); v7 = *(float *)(a1 + 740); v8 = *(float *)(a1 + 736); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, (const cocos2d::CCPoint *)v25); if ( EditorWindowPopup::touchIsOnField(a1, (const cocos2d::CCPoint *)v28, v9, v10) ) return 1; EditorWindowPopup::blurField((EditorWindowPopup *)a1); v12 = *(_DWORD *)(a1 + 444); *(_BYTE *)(a1 + 771) = 0; if ( v12 ) { v11 = (*(int (__fastcall **)(int, cocos2d::CCTouch *, int))(*(_DWORD *)v12 + 448))(v12, a2, a3); if ( v11 ) { *(_BYTE *)(a1 + 769) = 1; return v11; } } EditorWindowPopup::touchRect((EditorWindowPopup *)v28, (float *)a1); v11 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v28, (const cocos2d::CCPoint *)v25); if ( !v11 ) return v11; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, (const cocos2d::CCPoint *)v25); v14 = EditorWindowPopup::isInCloseButton(a1, (const cocos2d::CCPoint *)v28); if ( v14 ) { v15 = *(_DWORD *)(a1 + 720); *(_BYTE *)(a1 + 770) = 1; if ( v15 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 456))(v15, 150); v11 = v14; *(_BYTE *)(a1 + 768) = 0; } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, (const cocos2d::CCPoint *)v25); ResizeCorner = EditorWindowPopup::getResizeCorner(a1, (const cocos2d::CCPoint *)v28); if ( ResizeCorner ) { *(_DWORD *)(a1 + 772) = ResizeCorner; v17 = -1.0; v18 = v6 * v7; if ( ResizeCorner != 1 ) v17 = 1.0; v19 = (float)(v17 * v18) * 0.5; v20 = (float)(v8 * v7) * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, *(float *)(a1 + 744) - v19, v20 + *(float *)(a1 + 748)); cocos2d::CCPoint::operator=(a1 + 776, v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v19 + *(float *)(a1 + 744), *(float *)(a1 + 748) - v20); cocos2d::CCPoint::operator-(v28, v25, v27); cocos2d::CCPoint::operator=(a1 + 784, v28); *(_BYTE *)(a1 + 768) = 0; } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, (const cocos2d::CCPoint *)v25); v11 = EditorWindowPopup::isInDragHandle((float *)a1, (const cocos2d::CCPoint *)v28); if ( v11 ) { *(_BYTE *)(a1 + 756) = 1; cocos2d::CCPoint::operator-(v28, v25, a1 + 744); cocos2d::CCPoint::operator=(a1 + 760, v28); *(_BYTE *)(a1 + 768) = 0; return v11; } v21 = *(ScrollableContentLayer **)(a1 + 724); if ( v21 ) ScrollableContentLayer::handleTouchBegan(v21, a2); v22 = *(const cocos2d::CCPoint **)(a1 + 724); if ( !v22 || (cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v26, v22), cocos2d::CCSize::CCSize((cocos2d::CCSize *)v27, (const cocos2d::CCSize *)(*(_DWORD *)(a1 + 724) + 324)), cocos2d::CCRect::CCRect((cocos2d::CCRect *)v28, 0.0, 0.0, v27[0], v27[1]), cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v28, (const cocos2d::CCPoint *)v26)) ) { v23 = *(_DWORD *)(a1 + 728); if ( v23 ) v11 = (*(int (__fastcall **)(int, cocos2d::CCTouch *, int))(*(_DWORD *)v23 + 448))(v23, a2, a3); } *(_BYTE *)(a1 + 768) = v11; if ( v11 ) return 1; v11 = *(unsigned __int8 *)(a1 + 757); if ( !*(_BYTE *)(a1 + 757) ) return 1; v24 = *(_DWORD *)(a1 + 724); if ( v24 ) ScrollableContentLayer::handleTouchCancelled(v24, a2); *(_BYTE *)(a1 + 756) = 1; cocos2d::CCPoint::operator-(v28, v25, a1 + 744); cocos2d::CCPoint::operator=(a1 + 760, v28); } } return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source