// // CreateParticlePopup::ccTouchMoved from 0x140435390 to 0x1404357b3 (1059 bytes) // // 4 xrefs: // > @ 0x1405e9698 // > @ 0x1406a15cc // > @ 0x1406a1600 // > @ 0x1406d9d34 // // 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 CreateParticlePopup::ccTouchMoved(CreateParticlePopup *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { int m_nId; // eax cocos2d::CCTouch *v4; // rsi _QWORD *m_pUserData; // rcx struct cocos2d::CCPoint v7; // rax int v8; // r14d GLfloat a; // ebx __int64 v10; // rax int *p_m_joystickConnected; // rbx gjParticleValue v12; // edx __int64 v13; // rax __int64 v14; // rax const struct cocos2d::CCPoint *v15; // rdx const struct cocos2d::CCPoint *v16; // rdx bool v17; // zf gjParticleValue v18; // ebx float v19; // xmm0_4 CreateParticlePopup *v20; // rcx __int64 v21; // rax const struct cocos2d::CCPoint *v22; // rdx float v23; // xmm0_4 float v24; // xmm1_4 int v25; // eax cocos2d::CCRect v26; // [rsp+30h] [rbp-28h] BYREF struct cocos2d::CCPoint v27; // [rsp+80h] [rbp+28h] BYREF struct cocos2d::CCPoint X; // [rsp+88h] [rbp+30h] BYREF char v29; // [rsp+98h] [rbp+40h] BYREF m_nId = a2->m_nId; v4 = a2; if ( m_nId != LODWORD(a1->m_pScriptAccelerateHandlerEntry) ) { if ( LODWORD(a1->m_pComponentContainer) == m_nId ) { m_pUserData = a1->m_pUserData; } else { if ( a1->m_nUpdateScriptHandler != m_nId ) return; m_pUserData = *(_QWORD **)&a1->m_bReorderChildDirty; } goto LABEL_36; } cocos2d::CCTouch::getLocation(a2); v7 = cocos2d::CCNode::convertToNodeSpace(*(cocos2d::CCNode **)&a1->m_pSquareVertices[1], &X); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v27, v7); cocos2d::CCRect::CCRect(&v26, 0.0, 0.0, 120.0, 180.0); v8 = ((__int64 (__fastcall *)(cocos2d::CCTouchScriptHandlerEntry *))a1->m_pScriptTouchHandlerEntry->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::__vftable[21].acceptVisitor)(a1->m_pScriptTouchHandlerEntry); if ( cocos2d::CCRect::containsPoint(&v26, &v27) ) { a = a1->m_pSquareColors[0].a; if ( a == 0.0 ) { cocos2d::CCPoint::operator+(&v27, &X); a1->m_pScriptTouchHandlerEntry->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::__vftable[2].encodeWithCoder( a1->m_pScriptTouchHandlerEntry, (DS_Dictionary *)&X); goto LABEL_31; } switch ( LODWORD(a) ) { case 1: if ( !v8 ) { v10 = ((__int64 (__fastcall *)(cocos2d::CCTouchScriptHandlerEntry *))a1->m_pScriptTouchHandlerEntry->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::__vftable[2].getTag)(a1->m_pScriptTouchHandlerEntry); cocos2d::CCPoint::operator-(v10, &X, &v27); p_m_joystickConnected = &a1[-1].m_joystickConnected; CreateParticlePopup::updateParticleValueForType( (CreateParticlePopup *)((char *)a1 - 320), fabs(X.x), PosVarX, nullptr); CreateParticlePopup::updateParticleValueForType( (CreateParticlePopup *)((char *)a1 - 320), fabs(X.y), PosVarY, nullptr); CreateParticlePopup::updateInputNodeStringForType((CreateParticlePopup *)((char *)a1 - 320), PosVarX); CreateParticlePopup::updateSliderForType((CreateParticlePopup *)((char *)a1 - 320), PosVarX); CreateParticlePopup::updateInputNodeStringForType((CreateParticlePopup *)((char *)a1 - 320), PosVarY); v12 = PosVarY; LABEL_29: v20 = (CreateParticlePopup *)p_m_joystickConnected; LABEL_30: CreateParticlePopup::updateSliderForType(v20, v12); goto LABEL_31; } break; case 2: if ( !v8 ) { v13 = ((__int64 (__fastcall *)(cocos2d::CCTouchScriptHandlerEntry *))a1->m_pScriptTouchHandlerEntry->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::__vftable[2].getTag)(a1->m_pScriptTouchHandlerEntry); cocos2d::CCPoint::operator-(v13, &v29, &v27); cocos2d::CCPoint::operator*(&v29, &X); p_m_joystickConnected = &a1[-1].m_joystickConnected; CreateParticlePopup::updateParticleValueForType( (CreateParticlePopup *)((char *)a1 - 320), X.x, GravityX, nullptr); CreateParticlePopup::updateParticleValueForType( (CreateParticlePopup *)((char *)a1 - 320), X.y, GravityY, nullptr); CreateParticlePopup::updateInputNodeStringForType((CreateParticlePopup *)((char *)a1 - 320), GravityX); CreateParticlePopup::updateSliderForType((CreateParticlePopup *)((char *)a1 - 320), GravityX); CreateParticlePopup::updateInputNodeStringForType((CreateParticlePopup *)((char *)a1 - 320), GravityY); v12 = GravityY; goto LABEL_29; } break; case 3: v21 = ((__int64 (__fastcall *)(cocos2d::CCTouchScriptHandlerEntry *))a1->m_pScriptTouchHandlerEntry->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::__vftable[2].getTag)(a1->m_pScriptTouchHandlerEntry); cocos2d::CCPoint::operator-(v21, &X, &v27); p_m_joystickConnected = &a1[-1].m_joystickConnected; if ( v8 ) { v24 = atan2f(X.y, X.x) * 57.29578; } else { v23 = cocos2d::ccpLength((cocos2d *)&X, v22); CreateParticlePopup::updateParticleValueForType( (CreateParticlePopup *)((char *)a1 - 320), v23 * 4.0, Speed, nullptr); v24 = (float)(atan2f(X.y, X.x) * 57.29578) + 180.0; } if ( v24 <= 180.0 ) { if ( v24 < -180.0 ) v24 = v24 + 360.0; } else { v24 = v24 + -360.0; } CreateParticlePopup::updateParticleValueForType((CreateParticlePopup *)((char *)a1 - 320), -v24, Angle, nullptr); if ( !v8 ) { CreateParticlePopup::updateInputNodeStringForType((CreateParticlePopup *)((char *)a1 - 320), Speed); CreateParticlePopup::updateSliderForType((CreateParticlePopup *)((char *)a1 - 320), Speed); } CreateParticlePopup::updateInputNodeStringForType((CreateParticlePopup *)((char *)a1 - 320), Angle); v12 = Angle; goto LABEL_29; default: goto LABEL_31; } v14 = ((__int64 (__fastcall *)(cocos2d::CCTouchScriptHandlerEntry *))a1->m_pScriptTouchHandlerEntry->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::__vftable[2].getTag)(a1->m_pScriptTouchHandlerEntry); cocos2d::CCPoint::operator-(v14, &X, &v27); cocos2d::ccpLength((cocos2d *)&X, v15); v17 = LODWORD(a) == 1; v18 = StartRad; if ( !v17 ) v18 = EndRad; v19 = cocos2d::ccpLength((cocos2d *)&X, v16); CreateParticlePopup::updateParticleValueForType((CreateParticlePopup *)((char *)a1 - 320), v19, v18, nullptr); CreateParticlePopup::updateInputNodeStringForType((CreateParticlePopup *)((char *)a1 - 320), v18); v12 = v18; v20 = (CreateParticlePopup *)((char *)a1 - 320); goto LABEL_30; } LABEL_31: v25 = v4->m_nId; if ( LODWORD(a1->m_pComponentContainer) == v25 ) { m_pUserData = a1->m_pUserData; } else { if ( a1->m_nUpdateScriptHandler != v25 ) return; m_pUserData = *(_QWORD **)&a1->m_bReorderChildDirty; } a2 = v4; LABEL_36: (*(void (__fastcall **)(_QWORD *, cocos2d::CCTouch *))(m_pUserData[40] + 16LL))(m_pUserData + 40, a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source