// // SetupSpawnParticlePopup::init from 0xa455d8 to 0xa46300 (3368 bytes) // // 2 xrefs: // > SetupSpawnParticlePopup::create @ 0xa464d4 // > @ 0xaef48 // // 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 SetupSpawnParticlePopup::init(SetupSpawnParticlePopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool v4; // w27 cocos2d::CCPoint *p_m_textOffset; // x0 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 cocos2d::CCPoint *v12; // x0 cocos2d::CCPoint *v13; // x0 void *v14; // x0 cocos2d::CCDirector *v15; // x0 float v16; // s3 float v17; // s4 cocos2d::CCPoint *v18; // x0 float v19; // s3 float v20; // s4 cocos2d::CCPoint *v21; // x0 float v22; // s3 float v23; // s4 cocos2d::CCPoint *v24; // x0 float v25; // s3 float v26; // s4 cocos2d::CCPoint *v27; // x0 float v28; // s3 float v29; // s4 cocos2d::CCPoint *v30; // x0 float v31; // s3 float v32; // s4 cocos2d::CCPoint *v33; // x0 float v34; // s3 float v35; // s4 cocos2d::CCPoint *v36; // x0 float v37; // s3 float v38; // s4 cocos2d::CCPoint *v39; // x0 float v40; // s3 float v41; // s4 cocos2d::CCPoint *v42; // x0 float v43; // s3 float v44; // s4 cocos2d::CCPoint *v45; // x0 cocos2d::CCPoint *v46; // x19 unsigned int *p_m_caption; // x1 int m_data; // w2 unsigned int *v49; // x1 int v50; // w2 unsigned int *v51; // x1 int v52; // w2 unsigned int *v53; // x1 int v54; // w2 unsigned int *v55; // x1 int v56; // w2 unsigned int *v57; // x1 int v58; // w2 unsigned int *v59; // x1 int v60; // w2 unsigned int *v61; // x1 int v62; // w2 unsigned int *v63; // x1 int v64; // w2 unsigned int *v65; // x1 int v66; // w2 unsigned int *v67; // x1 int v68; // w2 unsigned int *v69; // x1 int v70; // w2 unsigned int *v71; // x1 int v72; // w2 unsigned int *v73; // x1 int v74; // w2 unsigned int *v75; // x21 int v76; // w0 _QWORD v77[2]; // [xsp+30h] [xbp+0h] BYREF float v78; // [xsp+D0h] [xbp+A0h] float v79; // [xsp+D4h] [xbp+A4h] cocos2d::CCPoint v80; // [xsp+D8h] [xbp+A8h] BYREF cocos2d::CCPoint v81; // [xsp+E0h] [xbp+B0h] BYREF cocos2d::CCPoint v82; // [xsp+E8h] [xbp+B8h] BYREF ButtonSprite *v83; // [xsp+F0h] [xbp+C0h] BYREF cocos2d::CCPoint v84; // 0:s0.4,4:s1.4 cocos2d::CCPoint v85; // 0:s0.4,4:s1.4 cocos2d::CCPoint v86; // 0:s0.4,4:s1.4 cocos2d::CCPoint v87; // 0:s0.4,4:s1.4 cocos2d::CCPoint v88; // 0:s0.4,4:s1.4 cocos2d::CCPoint v89; // 0:s0.4,4:s1.4 cocos2d::CCPoint v90; // 0:s0.4,4:s1.4 cocos2d::CCPoint v91; // 0:s0.4,4:s1.4 cocos2d::CCPoint v92; // 0:s0.4,4:s1.4 cocos2d::CCPoint v93; // 0:s0.4,4:s1.4 v4 = SetupTriggerPopup::init(a1, a2, a3, 380.0, 280.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_D153B8((unsigned int)v77 + 192, "Spawn Particles"); SetupTriggerPopup::addTitle((__int64)a1); p_m_textOffset = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { p_m_caption = (unsigned int *)&v83[-1].m_caption; do m_data = __ldaxr(p_m_caption); while ( __stlxr(m_data - 1, p_m_caption) ); } else { m_data = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = m_data - 1; } if ( m_data <= 0 ) operator delete(p_m_textOffset); } sub_D153B8((unsigned int)v77 + 192, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, &v83, v7, v8, v9, v10, v11); v12 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v49 = (unsigned int *)&v83[-1].m_caption; do v50 = __ldaxr(v49); while ( __stlxr(v50 - 1, v49) ); } else { v50 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v50 - 1; } if ( v50 <= 0 ) operator delete(v12); } sub_D153B8((int)&v82, "Help"); sub_D153B8( (int)&v83, "Spawns particles given by Particle Group at a target location given by Position Group.\n" "It can be more than one particle object at once.\n" "Offset X and Y offsets the target position.\n" "OffVarX and Y set an area the particles can randomly spawn in.\n" "Match Rot makes the rotation of several particles match."); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v13 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v57 = (unsigned int *)&v83[-1].m_caption; do v58 = __ldaxr(v57); while ( __stlxr(v58 - 1, v57) ); } else { v58 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v58 - 1; } if ( v58 <= 0 ) operator delete(v13); } v14 = (void *)(*(_QWORD *)&v82 - 24LL); if ( (__int64 *)(*(_QWORD *)&v82 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v53 = (unsigned int *)(*(_QWORD *)&v82 - 8LL); do v54 = __ldaxr(v53); while ( __stlxr(v54 - 1, v53) ); } else { v54 = *(_DWORD *)(*(_QWORD *)&v82 - 8LL); *(_DWORD *)(*(_QWORD *)&v82 - 8LL) = v54 - 1; } if ( v54 <= 0 ) operator delete(v14); } SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v15 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v15); cocos2d::CCPoint::CCPoint(&v80, v78 * 0.5, (float)(v79 * 0.5) + 80.0); sub_D153B8((int)&v83, "Particle Group"); cocos2d::CCPoint::CCPoint(&v81, -95.0, 0.0); cocos2d::CCPoint::operator+(&v82, &v80, &v81); v84.y = 0.0; v84.x = 0.6; SetupTriggerPopup::createValueControlAdvanced( a1, 0x33u, v84, 100.0, v16, v17, (std::string)&v83, &v82, Float, Uint, 6, 1u, 1, 0, 0, 2, 0); v18 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v65 = (unsigned int *)&v83[-1].m_caption; do v66 = __ldaxr(v65); while ( __stlxr(v66 - 1, v65) ); } else { v66 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v66 - 1; } if ( v66 <= 0 ) operator delete(v18); } sub_D153B8((int)&v83, "Position Group"); cocos2d::CCPoint::CCPoint(&v81, 65.0, 0.0); cocos2d::CCPoint::operator+(&v82, &v80, &v81); v85.x = 0.6; v85.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x47u, v85, 100.0, v19, v20, (std::string)&v83, &v82, Float, Uint, 6, 1u, 1, 0, 0, 2, 0); v21 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v61 = (unsigned int *)&v83[-1].m_caption; do v62 = __ldaxr(v61); while ( __stlxr(v62 - 1, v61) ); } else { v62 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v62 - 1; } if ( v62 <= 0 ) operator delete(v21); } sub_D153B8((int)&v83, "Offset X:"); cocos2d::CCPoint::CCPoint(&v81, -80.0, -33.0); cocos2d::CCPoint::operator+(&v82, &v80, &v81); v86.x = 0.6; v86.y = -100.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x223u, v86, 100.0, v22, v23, (std::string)&v83, &v82, (InputValueType)0, Int, 10, 0, 0, 0, 1, 0, 0); v24 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v69 = (unsigned int *)&v83[-1].m_caption; do v70 = __ldaxr(v69); while ( __stlxr(v70 - 1, v69) ); } else { v70 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v70 - 1; } if ( v70 <= 0 ) operator delete(v24); } sub_D153B8((int)&v83, "Y:"); cocos2d::CCPoint::CCPoint(&v81, 80.0, -33.0); cocos2d::CCPoint::operator+(&v82, &v80, &v81); v87.x = 0.6; v87.y = -100.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x224u, v87, 100.0, v25, v26, (std::string)&v83, &v82, (InputValueType)0, Int, 10, 0, 0, 0, 1, 0, 0); v27 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v51 = (unsigned int *)&v83[-1].m_caption; do v52 = __ldaxr(v51); while ( __stlxr(v52 - 1, v51) ); } else { v52 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v52 - 1; } if ( v52 <= 0 ) operator delete(v27); } sub_D153B8((int)&v83, "OffVar X:"); cocos2d::CCPoint::CCPoint(&v81, -80.0, -66.0); cocos2d::CCPoint::operator+(&v82, &v80, &v81); v88.x = 0.6; v88.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x225u, v88, 100.0, v28, v29, (std::string)&v83, &v82, (InputValueType)0, Int, 10, 0, 0, 0, 1, 0, 0); v30 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v67 = (unsigned int *)&v83[-1].m_caption; do v68 = __ldaxr(v67); while ( __stlxr(v68 - 1, v67) ); } else { v68 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v68 - 1; } if ( v68 <= 0 ) operator delete(v30); } sub_D153B8((int)&v83, "Y:"); cocos2d::CCPoint::CCPoint(&v81, 80.0, -66.0); cocos2d::CCPoint::operator+(&v82, &v80, &v81); v89.x = 0.6; v89.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x226u, v89, 100.0, v31, v32, (std::string)&v83, &v82, (InputValueType)0, Int, 10, 0, 0, 0, 1, 0, 0); v33 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v59 = (unsigned int *)&v83[-1].m_caption; do v60 = __ldaxr(v59); while ( __stlxr(v60 - 1, v59) ); } else { v60 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v60 - 1; } if ( v60 <= 0 ) operator delete(v33); } sub_D153B8((int)&v83, "Rotation:"); cocos2d::CCPoint::CCPoint(&v81, -80.0, -99.0); cocos2d::CCPoint::operator+(&v82, &v80, &v81); v90.x = 0.6; v90.y = -180.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x228u, v90, 180.0, v34, v35, (std::string)&v83, &v82, (InputValueType)0, Float, 10, 0, 0, 0, 1, 0, 0); v36 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v73 = (unsigned int *)&v83[-1].m_caption; do v74 = __ldaxr(v73); while ( __stlxr(v74 - 1, v73) ); } else { v74 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v74 - 1; } if ( v74 <= 0 ) operator delete(v36); } sub_D153B8((int)&v83, "+-"); cocos2d::CCPoint::CCPoint(&v81, 80.0, -99.0); cocos2d::CCPoint::operator+(&v82, &v80, &v81); v91.x = 0.6; v91.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x229u, v91, 180.0, v37, v38, (std::string)&v83, &v82, (InputValueType)0, Float, 10, 0, 0, 0, 1, 0, 0); v39 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v55 = (unsigned int *)&v83[-1].m_caption; do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { v56 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v56 - 1; } if ( v56 <= 0 ) operator delete(v39); } sub_D153B8((int)&v83, "Scale:"); cocos2d::CCPoint::CCPoint(&v81, -80.0, -132.0); cocos2d::CCPoint::operator+(&v82, &v80, &v81); v92.x = 0.6; v92.y = -2.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x22Au, v92, 2.0, v40, v41, (std::string)&v83, &v82, (InputValueType)0, Float, 10, 0, 0, 0, 1, 2, 0); v42 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v71 = (unsigned int *)&v83[-1].m_caption; do v72 = __ldaxr(v71); while ( __stlxr(v72 - 1, v71) ); } else { v72 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v72 - 1; } if ( v72 <= 0 ) operator delete(v42); } sub_D153B8((int)&v83, "+-"); cocos2d::CCPoint::CCPoint(&v81, 80.0, -132.0); cocos2d::CCPoint::operator+(&v82, &v80, &v81); v93.x = 0.6; v93.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x22Bu, v93, 1.0, v43, v44, (std::string)&v83, &v82, (InputValueType)0, Float, 10, 0, 0, 0, 1, 2, 0); v45 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v63 = (unsigned int *)&v83[-1].m_caption; do v64 = __ldaxr(v63); while ( __stlxr(v64 - 1, v63) ); } else { v64 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v64 - 1; } if ( v64 <= 0 ) operator delete(v45); } sub_D153B8((int)&v83, "Match\nRot"); cocos2d::CCPoint::CCPoint( &v82, (float)((float)(a1->m_width * 0.5) + (float)(v78 * 0.5)) - 72.0, 50.0 - (float)((float)(a1->m_height * 0.5) - (float)(v79 * 0.5))); SetupTriggerPopup::createToggleValueControl(a1, 551, 1.0, (__int64)&v83, &v82, 0, 0, 0); v46 = &v83[-1].m_textOffset; if ( &v83[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v75 = (unsigned int *)&v83[-1].m_caption; do v76 = __ldaxr(v75); while ( __stlxr(v76 - 1, v75) ); } else { v76 = (int)v83[-1].m_caption.m_data.m_data; LODWORD(v83[-1].m_caption.m_data.m_data) = v76 - 1; } if ( v76 <= 0 ) operator delete(v46); } SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source