// // SetupAdvFollowEditPhysicsPopup::init from 0x69665c to 0x696e84 (2088 bytes) // // 1 xrefs: // > SetupAdvFollowEditPhysicsPopup::create @ 0x696f06 // // 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:15 +0000 // GameManager *__fastcall SetupAdvFollowEditPhysicsPopup::init( SetupAdvFollowEditPhysicsPopup *this, AdvancedFollowEditObject *a2, cocos2d::CCArray *a3) { cocos2d::CCDirector *v4; // r0 float v5; // r0 int v6; // r11 char *v8; // [sp+34h] [bp-60h] GameManager *v9; // [sp+38h] [bp-5Ch] float v10[2]; // [sp+44h] [bp-50h] BYREF _BYTE v11[8]; // [sp+4Ch] [bp-48h] BYREF _BYTE v12[8]; // [sp+54h] [bp-40h] BYREF _BYTE v13[8]; // [sp+5Ch] [bp-38h] BYREF _BYTE v14[8]; // [sp+64h] [bp-30h] BYREF _BYTE v15[8]; // [sp+6Ch] [bp-28h] BYREF int v16[3]; // [sp+74h] [bp-20h] BYREF int v17; // [sp+80h] [bp-14h] BYREF int v18; // [sp+84h] [bp-10h] int v19; // [sp+88h] [bp-Ch] v9 = SetupTriggerPopup::init(this, a2, a3, 440.0, 310.0, (_BYTE *)&dword_0 + 1, 0.0); if ( v9 ) { SetupTriggerPopup::preSetup(this); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "OK", 2u); SetupTriggerPopup::addCloseButton((int)this, (int)&v17); std::string::~string((int)&v17); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(this); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "Edit AdvFollow Object", 0x15u); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v17); std::string::~string((int)&v17); memset(v16, 0, sizeof(v16)); std::string::__init(v16, "Help", 4u); v17 = 0; v18 = 0; v19 = 0; std::string::__init( &v17, "Lets you change the attributes of an active Advanced Follow trigger.\n" "Target GID is the objects that follow.\n" "X and Y Only limit change to one axis.\n" "Mod X and Y modify movement on their axis.\n" "Speed modifies the speed.\n" "Dir modifies the direction.\n" "View the editor guide for more details.", 0x14Bu); SetupTriggerPopup::addHelpButton((int)this, (int)v16, (int)&v17, 1065353216); std::string::~string((int)&v17); v4 = (cocos2d::CCDirector *)std::string::~string((int)v16); cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v10[0] * 0.5, (float)(v10[1] * 0.5) + 110.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 0.0, -30.0); cocos2d::CCPoint::operator+(v12, v11, v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -50.0, 0.0); cocos2d::CCPoint::operator+(v13, v11, v15); v5 = COERCE_FLOAT((*(int (__fastcall **)(SetupAdvFollowEditPhysicsPopup *, int))(*(_DWORD *)this + 732))(this, 535)); v17 = 0; v18 = 0; v19 = 0; v8 = (char *)this + 440; if ( v5 == 0.0 ) v6 = 1; else v6 = 6; std::string::__init(&v17, "Target GID:", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, -88.0, 0.0); cocos2d::CCPoint::operator+(v15, v12, v14); IDNameInput::create((int)this, (int)v8, v6, 51, (int)&v17, (int)v15, 0.8, 6, 0, 0, 0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "X\nOnly", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 15.0, 0.0); cocos2d::CCPoint::operator+(v15, v12, v14); SetupTriggerPopup::createToggleValueControl((int)this, 306, (int)&v17, (const cocos2d::CCPoint *)v15, 0, 0, 0, 1.0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "Y\nOnly", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 100.0, 0.0); cocos2d::CCPoint::operator+(v15, v12, v14); SetupTriggerPopup::createToggleValueControl((int)this, 307, (int)&v17, (const cocos2d::CCPoint *)v15, 0, 0, 0, 1.0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "Mod X:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, -72.0, -70.2); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 566, (unsigned __int8 *)&v17, (int)v15, 1058642330, 0, 1, 6, 0, -1082130432, 1065353216, 1, 0, 1, 2, 0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 72.0, -70.2); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 567, (unsigned __int8 *)&v17, (int)v15, 1058642330, 0, 1, 6, 0, -1082130432, 1065353216, 1, 0, 1, 2, 0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "Mod Y:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, -72.0, -98.6); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 568, (unsigned __int8 *)&v17, (int)v15, 1058642330, 0, 1, 6, 0, -1082130432, 1065353216, 1, 0, 1, 2, 0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 72.0, -98.6); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 569, (unsigned __int8 *)&v17, (int)v15, 1058642330, 0, 1, 6, 0, -1082130432, 1065353216, 1, 0, 1, 2, 0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "Speed:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, -72.0, -127.0); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 300, (unsigned __int8 *)&v17, (int)v15, 1058642330, 0, 1, 6, 0, 0, 1065353216, 1, 0, 1, 2, 0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 72.0, -127.0); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 301, (unsigned __int8 *)&v17, (int)v15, 1058642330, 0, 1, 6, 0, 0, COERCE_INT(1.0), 1, 0, 1, 2, 0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, &unk_B6B226, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 222.0, -127.0); cocos2d::CCPoint::operator+(v15, v13, v14); IDNameInput::create((int)this, (int)v8, 1, 560, (int)&v17, (int)v15, 0.6, 6, 0, 1, 1); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "Dir:", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, -72.0, -155.4); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 563, (unsigned __int8 *)&v17, (int)v15, 1058642330, 0, 2, 6, 0, -1020002304, 1127481344, 1, 0, 1, 2, 0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 72.0, -155.4); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 564, (unsigned __int8 *)&v17, (int)v15, 1058642330, 0, 2, 6, 0, 0, 1135869952, 1, 0, 1, 2, 0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, &unk_B6B226, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 222.0, -155.4); cocos2d::CCPoint::operator+(v15, v13, v14); IDNameInput::create((int)this, (int)v8, 1, 565, (int)&v17, (int)v15, 0.6, 6, 0, 1, 1); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "Target\nControl ID", 0x11u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, -90.0, -183.8); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createToggleValueControl((int)this, 535, (int)&v17, (const cocos2d::CCPoint *)v15, 0, 2u, 0, 1.0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "Redirect\nDir", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 60.0, -183.8); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createToggleValueControl((int)this, 570, (int)&v17, (const cocos2d::CCPoint *)v15, 0, 2u, 0, 1.0); std::string::~string((int)&v17); SetupTriggerPopup::postSetup(this); } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source