// // GJFollowCommandLayer::init from 0xa79fd4 to 0xa7a50c (1336 bytes) // // 2 xrefs: // > GJFollowCommandLayer::create @ 0xa7a740 // > @ 0x48400 // // 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:28 +0000 // __int64 __fastcall GJFollowCommandLayer::init(GJFollowCommandLayer *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w24 cocos2d::CCDirector *MultiTriggerItemsCorner; // x0 cocos2d::CCDirector *v8; // x0 int v9; // [xsp+8h] [xbp-28h] int v10; // [xsp+8h] [xbp-28h] int v11; // [xsp+20h] [xbp-10h] int v12; // [xsp+20h] [xbp-10h] __int64 v13; // [xsp+98h] [xbp+68h] BYREF _BYTE v14[8]; // [xsp+A0h] [xbp+70h] BYREF _BYTE v15[8]; // [xsp+A8h] [xbp+78h] BYREF __int64 v16; // [xsp+B0h] [xbp+80h] BYREF __int64 v17[2]; // [xsp+B8h] [xbp+88h] BYREF void *v18; // [xsp+C8h] [xbp+98h] __int64 v19; // [xsp+D0h] [xbp+A0h] BYREF __int64 v20; // [xsp+D8h] [xbp+A8h] void *v21; // [xsp+E0h] [xbp+B0h] v4 = SetupTriggerPopup::init(this, a2, a3, 430.0, 310.0, 1, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Setup Follow Command", 0x14u); SetupTriggerPopup::addTitle(this, &v19); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v19); if ( (v19 & 1) != 0 ) operator delete(v21); v17[0] = 0; v17[1] = 0; v18 = nullptr; std::string::__init(v17, "Help", 4u); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init( &v19, "Make a group of objects follow a target object.\n" "Target Group ID is the group of objects that follow the object using Follow Group ID. Make sure th" "at this group only contains one object or has a group ID parent.", 0xEAu); SetupTriggerPopup::addHelpButton(this, v17, &v19, 1.0); if ( (v19 & 1) != 0 ) operator delete(v21); if ( (v17[0] & 1) != 0 ) operator delete(v18); MultiTriggerItemsCorner = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsCorner(this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsCorner); cocos2d::CCDirector::getWinSize(&v13, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, *(float *)&v13 * 0.5, *((float *)&v13 + 1) * 0.5); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Move Time:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -110.0, 90.0); cocos2d::CCPoint::operator+(&v16, v14); SetupTriggerPopup::createValueControlAdvanced(this, 10, &v19, &v16, 0, 1, 10, 0, 0.8, 0.0, 10.0, 0, 0, 0, 2, 0); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "X Mod:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -110.0, 30.0); cocos2d::CCPoint::operator+(&v16, v14); LOBYTE(v11) = 0; SetupTriggerPopup::createValueControlAdvanced(this, 72, &v19, &v16, 0, 1, 10, 0, 0.8, -1.0, 1.0, 0, 0, 0, 2, v11); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Y Mod:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -110.0, -30.0); cocos2d::CCPoint::operator+(&v16, v14); LOBYTE(v12) = 0; SetupTriggerPopup::createValueControlAdvanced(this, 73, &v19, &v16, 0, 1, 10, 0, 0.8, -1.0, 1.0, 0, 0, 0, 2, v12); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Target Group ID", 0xFu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 100.0, 60.0); cocos2d::CCPoint::operator+(&v16, v14); LOBYTE(v9) = 0; IDNameInput::create(this, (char *)this + 544, 1, 51, &v19, &v16, 6, 0, 0.8, 0, v9); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Follow Group ID", 0xFu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 100.0, -10.0); cocos2d::CCPoint::operator+(&v16, v14); LOBYTE(v10) = 0; IDNameInput::create(this, (char *)this + 544, 1, 71, &v19, &v16, 6, 0, 0.8, 0, v10); if ( (v19 & 1) != 0 ) operator delete(v21); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source