// // CollisionBlockPopup::init from 0xa647b8 to 0xa64b30 (888 bytes) // // 2 xrefs: // > CollisionBlockPopup::create @ 0xa64d54 // > @ 0x4a530 // // 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:00:16 +0000 // __int64 __fastcall CollisionBlockPopup::init(CollisionBlockPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w22 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 __int64 v9; // [xsp+68h] [xbp+58h] BYREF _BYTE v10[8]; // [xsp+70h] [xbp+60h] BYREF _BYTE v11[8]; // [xsp+78h] [xbp+68h] BYREF _BYTE v12[8]; // [xsp+80h] [xbp+70h] BYREF __int64 v13[2]; // [xsp+88h] [xbp+78h] BYREF void *v14; // [xsp+98h] [xbp+88h] __int64 v15; // [xsp+A0h] [xbp+90h] BYREF __int64 v16; // [xsp+A8h] [xbp+98h] void *v17; // [xsp+B0h] [xbp+A0h] v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 200.0, 1, 0.0); v5 = v4; if ( v4 ) { v7 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v9, v8); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Collision Block Setup", 0x15u); SetupTriggerPopup::addTitle(this, &v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v15); if ( (v15 & 1) != 0 ) operator delete(v17); v13[0] = 0; v13[1] = 0; v14 = nullptr; std::string::__init(v13, "Help", 4u); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init( &v15, "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, v13, &v15, 1.0); if ( (v15 & 1) != 0 ) operator delete(v17); if ( (v13[0] & 1) != 0 ) operator delete(v14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, *(float *)&v9 * 0.5, (float)(*((float *)&v9 + 1) * 0.5) + 10.0); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Block ID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (const cocos2d::CCPoint *)v10); IDNameInput::create(this, (char *)this + 544, 3, 80, &v15, v12, 6, 0, 1.0, 0, 0); if ( (v15 & 1) != 0 ) operator delete(v17); SetupTriggerPopup::setMinSliderValue(this, 0.0, 80); SetupTriggerPopup::setMaxSliderValue(this, 9999.0, 80); SetupTriggerPopup::toggleLimitValue(this, 80, 1); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v11, 20.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v9 * 0.5)), 25.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v9 + 1) * 0.5))); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Dynamic\nBlock", 0xDu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (const cocos2d::CCPoint *)v11); SetupTriggerPopup::createToggleValueControl(this, 94, &v15, v12, 0, 0, 0, 1.0); if ( (v15 & 1) != 0 ) operator delete(v17); SetupTriggerPopup::postSetup(this); } return v5; }