// // SetupAdvFollowRetargetPopup::init from 0xb481b4 to 0xb48724 (1392 bytes) // // 2 xrefs: // > SetupAdvFollowRetargetPopup::create @ 0xb48960 // > @ 0xb9710 // // 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 SetupAdvFollowRetargetPopup::init( SetupAdvFollowRetargetPopup *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-8h] __int64 v17; // [xsp+78h] [xbp+68h] BYREF _BYTE v18[8]; // [xsp+80h] [xbp+70h] BYREF _BYTE v19[8]; // [xsp+88h] [xbp+78h] BYREF __int64 v20; // [xsp+90h] [xbp+80h] BYREF cocos2d::CCDirector *v21[2]; // [xsp+98h] [xbp+88h] BYREF void *v22; // [xsp+A8h] [xbp+98h] __int64 v23; // [xsp+B0h] [xbp+A0h] BYREF __int64 v24; // [xsp+B8h] [xbp+A8h] void *v25; // [xsp+C0h] [xbp+B0h] v4 = SetupTriggerPopup::init(this, a2, a3, 380.0, 240.0, 1u, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v23, v7, v8, v9, v10, v11); if ( (v23 & 1) != 0 ) operator delete(v25); SetupTriggerPopup::createMultiTriggerItemsDefault(this); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Re-Target AdvFollow Trigger", 0x1Bu); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v23); if ( (v23 & 1) != 0 ) operator delete(v25); v21[0] = nullptr; v21[1] = nullptr; v22 = nullptr; std::string::__init((__int64 *)v21, "Help", 4u); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init( &v23, "Lets you change the target of an active Advanced Follow trigger.\n" "Target GID is the objects that follow Follow GID.\n" "You can also follow the player using P1 and P2 or the center of the screen using C.\n" "View the editor guide for more details. ", 0x117u); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v21, (char *)&v23, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); v12 = (cocos2d::CCDirector *)LOBYTE(v21[0]); if ( ((__int64)v21[0] & 1) != 0 ) operator delete(v22); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize(&v17, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, *(float *)&v17 * 0.5, (float)(*((float *)&v17 + 1) * 0.5) + 30.0); v14 = (*(float (__fastcall **)(SetupAdvFollowRetargetPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 535); v23 = 0; v24 = 0; v25 = nullptr; if ( v14 == 0.0 ) v15 = 1; else v15 = 6; std::string::__init(&v23, "Target GID:", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -88.0, 0.0); cocos2d::CCPoint::operator+(&v20, v18); IDNameInput::create(this, (char *)this + 544, v15, 51, &v23, &v20, 6, 0, 0.8, 0, 0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Follow GID:", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 88.0, 0.0); cocos2d::CCPoint::operator+(&v20, v18); LOBYTE(v16) = 0; IDNameInput::create(this, (char *)this + 544, 1, 71, &v23, &v20, 6, 0, 0.8, 0, v16); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "P1", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 18.0, -56.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x8Au, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 0, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "P2", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 78.0, -56.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0xC8u, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 0, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "C", 1u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 138.0, -56.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0xC9u, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 0, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Target\nControl ID", 0x11u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -120.0, -56.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x217u, &v23, (const cocos2d::CCPoint *)&v20, 0, 2u, 0, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source