//
// SetupSpawnParticlePopup::init from 0x6b3e84 to 0x6b44ec (1640 bytes)
//
// 1 xrefs:
// > SetupSpawnParticlePopup::create @ 0x6b4596
//
// 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:56:41 +0000
//
GameManager *__fastcall SetupSpawnParticlePopup::init(
SetupSpawnParticlePopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3)
{
GameManager *v4; // r10
cocos2d::CCDirector *MultiTriggerItemsDefault; // r0
float v7; // [sp+3Ch] [bp-40h] BYREF
float v8; // [sp+40h] [bp-3Ch]
_BYTE v9[8]; // [sp+44h] [bp-38h] BYREF
_BYTE v10[8]; // [sp+4Ch] [bp-30h] BYREF
_BYTE v11[8]; // [sp+54h] [bp-28h] BYREF
int v12[3]; // [sp+5Ch] [bp-20h] BYREF
int v13; // [sp+68h] [bp-14h] BYREF
int v14; // [sp+6Ch] [bp-10h]
int v15; // [sp+70h] [bp-Ch]
v4 = SetupTriggerPopup::init(this, a2, a3, 380.0, 280.0, (_BYTE *)&dword_0 + 1, 0.0);
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Spawn Particles", 0xFu);
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v13);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "OK", 2u);
SetupTriggerPopup::addCloseButton((int)this, (int)&v13);
std::string::~string((int)&v13);
memset(v12, 0, sizeof(v12));
std::string::__init(v12, "Help", 4u);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(
&v13,
"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((int)this, (int)v12, (int)&v13, 1065353216);
std::string::~string((int)&v13);
std::string::~string((int)v12);
MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this);
cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v7 * 0.5, (float)(v8 * 0.5) + 80.0);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Particle Group", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -95.0, 0.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
IDNameInput::create((int)this, (int)this + 440, 1, 51, (int)&v13, (int)v11, 0.6, 6, 0, 1, 0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Position Group", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 65.0, 0.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
IDNameInput::create((int)this, (int)this + 440, 1, 71, (int)&v13, (int)v11, 0.6, 6, 0, 1, 0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Offset X:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -80.0, -33.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
547,
(unsigned __int8 *)&v13,
(int)v11,
1058642330,
0,
2,
10,
0,
-1027080192,
1120403456,
0,
0,
1,
0,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Y:", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 80.0, -33.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
548,
(unsigned __int8 *)&v13,
(int)v11,
1058642330,
0,
2,
10,
0,
-1027080192,
1120403456,
0,
0,
1,
0,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "OffVar X:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -80.0, -66.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
549,
(unsigned __int8 *)&v13,
(int)v11,
1058642330,
0,
2,
10,
0,
0,
1120403456,
0,
0,
1,
0,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Y:", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 80.0, -66.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
550,
(unsigned __int8 *)&v13,
(int)v11,
1058642330,
0,
2,
10,
0,
0,
1120403456,
0,
0,
1,
0,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Rotation:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -80.0, -99.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
552,
(unsigned __int8 *)&v13,
(int)v11,
1058642330,
0,
1,
10,
0,
-1020002304,
1127481344,
0,
0,
1,
0,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 80.0, -99.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
553,
(unsigned __int8 *)&v13,
(int)v11,
1058642330,
0,
1,
10,
0,
0,
1127481344,
0,
0,
1,
0,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Scale:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -80.0, -132.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
554,
(unsigned __int8 *)&v13,
(int)v11,
1058642330,
0,
1,
10,
0,
-1073741824,
0x40000000,
0,
0,
1,
2,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 80.0, -132.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
555,
(unsigned __int8 *)&v13,
(int)v11,
1058642330,
0,
1,
10,
0,
0,
1065353216,
0,
0,
1,
2,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Match\nRot", 9u);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v11,
(float)((float)(*((float *)this + 139) * 0.5) + (float)(v7 * 0.5)) - 72.0,
(float)((float)(v8 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 50.0);
SetupTriggerPopup::createToggleValueControl((int)this, 551, (int)&v13, (const cocos2d::CCPoint *)v11, 0, 0, 0, 1.0);
std::string::~string((int)&v13);
SetupTriggerPopup::postSetup(this);
}
return v4;
}