//
// SetupCollisionStateTriggerPopup::init from 0x6266e4 to 0x6268a4 (448 bytes)
//
// 1 xrefs:
// > SetupCollisionStateTriggerPopup::create @ 0x62694a
//
// 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 SetupCollisionStateTriggerPopup::init(
SetupCollisionStateTriggerPopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3)
{
int v4; // r8
cocos2d::CCDirector *v5; // r0
float v6; // s16
float v7; // s17
float v8; // s16
float v10[2]; // [sp+24h] [bp-30h] BYREF
_BYTE v11[8]; // [sp+2Ch] [bp-28h] BYREF
int v12[3]; // [sp+34h] [bp-20h] BYREF
int v13; // [sp+40h] [bp-14h] BYREF
int v14; // [sp+44h] [bp-10h]
int v15; // [sp+48h] [bp-Ch]
v4 = SetupTriggerPopup::init(this, a2, a3, 340.0, 200.0, 1, 0.0);
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Collision State", 0xFu);
SetupTriggerPopup::addTitle(this, &v13);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &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,
"Activates a group when the player collides with the hitbox.\n"
"State On is activated upon entering.\n"
"State Off is activated upon exiting.",
0x95u);
SetupTriggerPopup::addHelpButton(this, v12, &v13, 1065353216);
std::string::~string((int)&v13);
v5 = (cocos2d::CCDirector *)std::string::~string((int)v12);
cocos2d::CCDirector::sharedDirector(v5);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v10);
v13 = 0;
v14 = 0;
v6 = (float)(v10[1] * 0.5) + 70.0;
v15 = 0;
v7 = v10[0] * 0.5;
std::string::__init(&v13, "State On", 8u);
v8 = v6 - 60.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v7 - 70.0, v8);
IDNameInput::create((int)this, (int)this + 440, 1, 51, (int)&v13, (int)v11, 0.7, 6, 0, 0, 0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "State Off", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v7 + 70.0, v8);
IDNameInput::create((int)this, (int)this + 440, 1, 71, (int)&v13, (int)v11, 0.7, 6, 0, 0, 0);
std::string::~string((int)&v13);
SetupTriggerPopup::postSetup(this);
}
return v4;
}