//
// CollisionBlockPopup::init from 0x600cf8 to 0x600f0a (530 bytes)
//
// 1 xrefs:
// > CollisionBlockPopup::create @ 0x601128
//
// 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:54:40 +0000
//
int __fastcall CollisionBlockPopup::init(CollisionBlockPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3)
{
int v4; // r8
cocos2d::CCDirector *v5; // r0
float v7; // [sp+24h] [bp-40h] BYREF
float v8; // [sp+28h] [bp-3Ch]
_BYTE v9[8]; // [sp+2Ch] [bp-38h] BYREF
_BYTE v10[8]; // [sp+34h] [bp-30h] BYREF
_BYTE v11[8]; // [sp+3Ch] [bp-28h] BYREF
int v12[3]; // [sp+44h] [bp-20h] BYREF
int v13; // [sp+50h] [bp-14h] BYREF
int v14; // [sp+54h] [bp-10h]
int v15; // [sp+58h] [bp-Ch]
v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 200.0, 1, 0.0);
if ( v4 )
{
v5 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this);
cocos2d::CCDirector::sharedDirector(v5);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v7);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Collision Block Setup", 0x15u);
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,
"Used for Collision and Instant Collision triggers.\n"
"Enable Dynamic Block if you want it to collide with another. Dynamic Blocks check for collisions with othe"
"r nearby collision blocks.",
0xBFu);
SetupTriggerPopup::addHelpButton(this, v12, &v13, 1065353216);
std::string::~string((int)&v13);
std::string::~string((int)v12);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v7 * 0.5, (float)(v8 * 0.5) + 10.0);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Block ID", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (const cocos2d::CCPoint *)v9);
IDNameInput::create((int)this, (int)this + 440, 3, 80, (int)&v13, (int)v11, 1.0, 6, 0, 0, 0);
std::string::~string((int)&v13);
SetupTriggerPopup::setMinSliderValue(this, nullptr, 80);
SetupTriggerPopup::setMaxSliderValue(this, (cocos2d::CCFloat *)0x461C3C00, 80);
SetupTriggerPopup::toggleLimitValue(this, 80, 1);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v10,
(float)((float)(v7 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 20.0,
(float)((float)(v8 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 25.0);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Dynamic\nBlock", 0xDu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (const cocos2d::CCPoint *)v10);
SetupTriggerPopup::createToggleValueControl((int)this, 94, (int)&v13, (int)v11, 0, 0, 0, 1.0);
std::string::~string((int)&v13);
SetupTriggerPopup::postSetup(this);
}
return v4;
}