//
// SetupInstantCollisionTriggerPopup::init from 0x6260c0 to 0x62640a (842 bytes)
//
// 1 xrefs:
// > SetupInstantCollisionTriggerPopup::create @ 0x6264ce
//
// 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:55:09 +0000
//
int __fastcall SetupInstantCollisionTriggerPopup::init(
SetupInstantCollisionTriggerPopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3)
{
int v4; // r9
cocos2d::CCDirector *v5; // r0
float v6; // s16
float v7; // s20
float v8; // s18
float v9; // s16
float v11[2]; // [sp+24h] [bp-30h] BYREF
_BYTE v12[8]; // [sp+2Ch] [bp-28h] BYREF
int v13[3]; // [sp+34h] [bp-20h] BYREF
int v14; // [sp+40h] [bp-14h] BYREF
int v15; // [sp+44h] [bp-10h]
int v16; // [sp+48h] [bp-Ch]
v4 = SetupTriggerPopup::init(this, a2, a3, 340.0, 280.0, 1, 0.0);
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "Instant Collision", 0x11u);
SetupTriggerPopup::addTitle(this, &v14);
std::string::~string((int)&v14);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &v14);
std::string::~string((int)&v14);
memset(v13, 0, sizeof(v13));
std::string::__init(v13, "Help", 4u);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(
&v14,
"Activates a group when Collision Blocks using BlockA ID and BlockB ID collide or do not collide. The condi"
"tion is only checked when it is hit and never again. Make sure that one of the blocks have Dynamic Block enabled.\n"
"True ID is activated if they collide. False ID is activated if they do not collide.\n"
"P1 and P2 makes collision trigger upon the respective player touching BlockB ID.\n"
"PP triggers when both players collide.",
0x1CFu);
SetupTriggerPopup::addHelpButton(this, v13, &v14, 1065353216);
std::string::~string((int)&v14);
v5 = (cocos2d::CCDirector *)std::string::~string((int)v13);
cocos2d::CCDirector::sharedDirector(v5);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v11);
v14 = 0;
v15 = 0;
v6 = (float)(v11[1] * 0.5) + 70.0;
v16 = 0;
v7 = (float)(v11[0] * 0.5) - 70.0;
v8 = (float)(v11[0] * 0.5) + 70.0;
std::string::__init(&v14, "BlockA ID", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v7, v6);
IDNameInput::create((int)this, (int)this + 440, 3, 80, (int)&v14, (int)v12, 0.7, 6, 0, 0, 0);
std::string::~string((int)&v14);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "BlockB ID", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v8, v6);
IDNameInput::create((int)this, (int)this + 440, 3, 95, (int)&v14, (int)v12, 0.7, 6, 0, 0, 0);
std::string::~string((int)&v14);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "True ID", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v7, v6 - 60.0);
IDNameInput::create((int)this, (int)this + 440, 1, 51, (int)&v14, (int)v12, 0.7, 6, 0, 0, 0);
std::string::~string((int)&v14);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "False ID", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v8, v6 - 60.0);
IDNameInput::create((int)this, (int)this + 440, 1, 71, (int)&v14, (int)v12, 0.7, 6, 0, 0, 0);
std::string::~string((int)&v14);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "P1", 2u);
v9 = (float)(v6 - 120.0) + 10.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (float)(v11[0] * 0.5) - 75.0, v9);
SetupTriggerPopup::createToggleValueControl((int)this, 138, (int)&v14, (int)v12, 0, 0, 0, 1.0);
std::string::~string((int)&v14);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "P2", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v11[0] * 0.5, v9);
SetupTriggerPopup::createToggleValueControl((int)this, 200, (int)&v14, (int)v12, 0, 0, 0, 1.0);
std::string::~string((int)&v14);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "PP", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (float)(v11[0] * 0.5) + 75.0, v9);
SetupTriggerPopup::createToggleValueControl((int)this, 201, (int)&v14, (int)v12, 0, 0, 0, 1.0);
std::string::~string((int)&v14);
SetupTriggerPopup::createMultiTriggerItemsDefault(this);
SetupTriggerPopup::postSetup(this);
}
return v4;
}