// // SetupSpawnParticlePopup::init from 0xb73660 to 0xb73f6c (2316 bytes) // // 2 xrefs: // > SetupSpawnParticlePopup::create @ 0xb741c8 // > @ 0xe4ee0 // // 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 13:02:22 +0000 // __int64 __fastcall SetupSpawnParticlePopup::init( SetupSpawnParticlePopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w25 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 cocos2d::CCDirector *MultiTriggerItemsDefault; // x0 cocos2d::CCDirector *v13; // x0 int v14; // [xsp+8h] [xbp-28h] __int64 v15; // [xsp+B8h] [xbp+88h] BYREF _BYTE v16[8]; // [xsp+C0h] [xbp+90h] BYREF _BYTE v17[8]; // [xsp+C8h] [xbp+98h] BYREF __int64 v18; // [xsp+D0h] [xbp+A0h] BYREF __int64 v19[2]; // [xsp+D8h] [xbp+A8h] BYREF void *v20; // [xsp+E8h] [xbp+B8h] __int64 v21; // [xsp+F0h] [xbp+C0h] BYREF __int64 v22; // [xsp+F8h] [xbp+C8h] void *v23; // [xsp+100h] [xbp+D0h] v4 = SetupTriggerPopup::init(this, a2, a3, 380.0, 280.0, 1u, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Spawn Particles", 0xFu); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v21); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v21, v7, v8, v9, v10, v11); if ( (v21 & 1) != 0 ) operator delete(v23); v19[0] = 0; v19[1] = 0; v20 = nullptr; std::string::__init(v19, "Help", 4u); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init( &v21, "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.", 0x15Bu); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v19, (char *)&v21, 1.0); if ( (v21 & 1) != 0 ) operator delete(v23); if ( (v19[0] & 1) != 0 ) operator delete(v20); MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault); cocos2d::CCDirector::getWinSize(&v15, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, *(float *)&v15 * 0.5, (float)(*((float *)&v15 + 1) * 0.5) + 80.0); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Particle Group", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -95.0, 0.0); cocos2d::CCPoint::operator+(&v18, v16); IDNameInput::create(this, (char *)this + 544, 1, 51, &v21, &v18, 6, 0, 0.6, 1, 0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Position Group", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 65.0, 0.0); cocos2d::CCPoint::operator+(&v18, v16); LOBYTE(v14) = 0; IDNameInput::create(this, (char *)this + 544, 1, 71, &v21, &v18, 6, 0, 0.6, 1, v14); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Offset X:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -80.0, -33.0); cocos2d::CCPoint::operator+(&v18, v16); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 547, (char *)&v21, (__int64)&v18, 0, 2, 10, 0, 0.6, -100.0, 100.0, 0, 0, 1, 0, 0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Y:", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 80.0, -33.0); cocos2d::CCPoint::operator+(&v18, v16); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 548, (char *)&v21, (__int64)&v18, 0, 2, 10, 0, 0.6, -100.0, 100.0, 0, 0, 1, 0, 0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "OffVar X:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -80.0, -66.0); cocos2d::CCPoint::operator+(&v18, v16); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 549, (char *)&v21, (__int64)&v18, 0, 2, 10, 0, 0.6, 0.0, 100.0, 0, 0, 1, 0, 0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Y:", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 80.0, -66.0); cocos2d::CCPoint::operator+(&v18, v16); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 550, (char *)&v21, (__int64)&v18, 0, 2, 10, 0, 0.6, 0.0, 100.0, 0, 0, 1, 0, 0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Rotation:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -80.0, -99.0); cocos2d::CCPoint::operator+(&v18, v16); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 552, (char *)&v21, (__int64)&v18, 0, 1, 10, 0, 0.6, -180.0, 180.0, 0, 0, 1, 0, 0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 80.0, -99.0); cocos2d::CCPoint::operator+(&v18, v16); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 553, (char *)&v21, (__int64)&v18, 0, 1, 10, 0, 0.6, 0.0, 180.0, 0, 0, 1, 0, 0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Scale:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -80.0, -132.0); cocos2d::CCPoint::operator+(&v18, v16); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 554, (char *)&v21, (__int64)&v18, 0, 1, 10, 0, 0.6, -2.0, 2.0, 0, 0, 1, 2, 0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 80.0, -132.0); cocos2d::CCPoint::operator+(&v18, v16); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 555, (char *)&v21, (__int64)&v18, 0, 1, 10, 0, 0.6, 0.0, 1.0, 0, 0, 1, 2, 0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Match\nRot", 9u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v18, (float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v15 * 0.5)) - 72.0, 50.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v15 + 1) * 0.5))); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x227u, &v21, (const cocos2d::CCPoint *)&v18, 0, 0, 0, 1.0); if ( (v21 & 1) != 0 ) operator delete(v23); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source