// // SetupAdvFollowEditPhysicsPopup::init from 0xb47378 to 0xb47ed4 (2908 bytes) // // 2 xrefs: // > SetupAdvFollowEditPhysicsPopup::create @ 0xb48140 // > @ 0xa21c0 // // 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:01:54 +0000 // __int64 __fastcall SetupAdvFollowEditPhysicsPopup::init( SetupAdvFollowEditPhysicsPopup *this, AdvancedFollowEditObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w25 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 cocos2d::CCDirector *v12; // x0 cocos2d::CCDirector *v13; // x0 float v14; // s0 unsigned int v15; // w26 int v16; // [xsp+8h] [xbp-28h] int v17; // [xsp+8h] [xbp-28h] __int64 v18; // [xsp+C8h] [xbp+98h] BYREF _BYTE v19[8]; // [xsp+D0h] [xbp+A0h] BYREF __int64 v20; // [xsp+D8h] [xbp+A8h] BYREF __int64 v21; // [xsp+E0h] [xbp+B0h] BYREF _BYTE v22[8]; // [xsp+E8h] [xbp+B8h] BYREF __int64 v23; // [xsp+F0h] [xbp+C0h] BYREF cocos2d::CCDirector *v24[2]; // [xsp+F8h] [xbp+C8h] BYREF void *v25; // [xsp+108h] [xbp+D8h] __int64 v26; // [xsp+110h] [xbp+E0h] BYREF __int64 v27; // [xsp+118h] [xbp+E8h] void *v28; // [xsp+120h] [xbp+F0h] v4 = SetupTriggerPopup::init(this, a2, a3, 440.0, 310.0, 1u, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v26, v7, v8, v9, v10, v11); if ( (v26 & 1) != 0 ) operator delete(v28); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(this); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "Edit AdvFollow Object", 0x15u); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v26); if ( (v26 & 1) != 0 ) operator delete(v28); v24[0] = nullptr; v24[1] = nullptr; v25 = nullptr; std::string::__init((__int64 *)v24, "Help", 4u); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init( &v26, "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((__int64)this, (char *)v24, (char *)&v26, 1.0); if ( (v26 & 1) != 0 ) operator delete(v28); v12 = (cocos2d::CCDirector *)LOBYTE(v24[0]); if ( ((__int64)v24[0] & 1) != 0 ) operator delete(v25); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize(&v18, v13); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v19, *(float *)&v18 * 0.5, (float)(*((float *)&v18 + 1) * 0.5) + 110.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, 0.0, -30.0); cocos2d::CCPoint::operator+(&v20, v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, -50.0, 0.0); cocos2d::CCPoint::operator+(&v21, v19); v14 = (*(float (__fastcall **)(SetupAdvFollowEditPhysicsPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 535); v26 = 0; v27 = 0; v28 = nullptr; if ( v14 == 0.0 ) v15 = 1; else v15 = 6; std::string::__init(&v26, "Target GID:", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, -88.0, 0.0); cocos2d::CCPoint::operator+(&v23, &v20); IDNameInput::create(this, (char *)this + 544, v15, 51, &v26, &v23, 6, 0, 0.8, 0, 0); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "X\nOnly", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 15.0, 0.0); cocos2d::CCPoint::operator+(&v23, &v20); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x132u, &v26, (const cocos2d::CCPoint *)&v23, 0, 0, 0, 1.0); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "Y\nOnly", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 100.0, 0.0); cocos2d::CCPoint::operator+(&v23, &v20); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x133u, &v26, (const cocos2d::CCPoint *)&v23, 0, 0, 0, 1.0); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "Mod X:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, -72.0, -70.2); cocos2d::CCPoint::operator+(&v23, &v21); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 566, (char *)&v26, (__int64)&v23, 0, 1, 6, 0, 0.6, -1.0, 1.0, 1, 0, 1, 2, 0); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 72.0, -70.2); cocos2d::CCPoint::operator+(&v23, &v21); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 567, (char *)&v26, (__int64)&v23, 0, 1, 6, 0, 0.6, -1.0, 1.0, 1, 0, 1, 2, 0); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "Mod Y:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, -72.0, -98.6); cocos2d::CCPoint::operator+(&v23, &v21); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 568, (char *)&v26, (__int64)&v23, 0, 1, 6, 0, 0.6, -1.0, 1.0, 1, 0, 1, 2, 0); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 72.0, -98.6); cocos2d::CCPoint::operator+(&v23, &v21); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 569, (char *)&v26, (__int64)&v23, 0, 1, 6, 0, 0.6, -1.0, 1.0, 1, 0, 1, 2, 0); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "Speed:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, -72.0, -127.0); cocos2d::CCPoint::operator+(&v23, &v21); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 300, (char *)&v26, (__int64)&v23, 0, 1, 6, 0, 0.6, 0.0, 1.0, 1, 0, 1, 2, 0); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 72.0, -127.0); cocos2d::CCPoint::operator+(&v23, &v21); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 301, (char *)&v26, (__int64)&v23, 0, 1, 6, 0, 0.6, 0.0, 1.0, 1, 0, 1, 2, 0); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, &byte_11B8890, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 222.0, -127.0); cocos2d::CCPoint::operator+(&v23, &v21); LOBYTE(v16) = 1; IDNameInput::create(this, (char *)this + 544, 1, 560, &v26, &v23, 6, 0, 0.6, 1, v16); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "Dir:", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, -72.0, -155.4); cocos2d::CCPoint::operator+(&v23, &v21); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 563, (char *)&v26, (__int64)&v23, 0, 2, 6, 0, 0.6, -180.0, 180.0, 1, 0, 1, 2, 0); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 72.0, -155.4); cocos2d::CCPoint::operator+(&v23, &v21); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 564, (char *)&v26, (__int64)&v23, 0, 2, 6, 0, 0.6, 0.0, 360.0, 1, 0, 1, 2, 0); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, &byte_11B8890, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 222.0, -155.4); cocos2d::CCPoint::operator+(&v23, &v21); LOBYTE(v17) = 1; IDNameInput::create(this, (char *)this + 544, 1, 565, &v26, &v23, 6, 0, 0.6, 1, v17); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "Target\nControl ID", 0x11u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, -90.0, -183.8); cocos2d::CCPoint::operator+(&v23, &v21); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x217u, &v26, (const cocos2d::CCPoint *)&v23, 0, 2u, 0, 1.0); if ( (v26 & 1) != 0 ) operator delete(v28); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, "Redirect\nDir", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 60.0, -183.8); cocos2d::CCPoint::operator+(&v23, &v21); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x23Au, &v26, (const cocos2d::CCPoint *)&v23, 0, 2u, 0, 1.0); if ( (v26 & 1) != 0 ) operator delete(v28); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source