// // SetupAreaMoveTriggerPopup::init from 0xb3f0e4 to 0xb3fd2c (3144 bytes) // // 2 xrefs: // > SetupAreaMoveTriggerPopup::create @ 0xb3ff90 // > @ 0xd5e68 // // 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:50 +0000 // __int64 __fastcall SetupAreaMoveTriggerPopup::init( cocos2d::CCDictionary **this, EnterEffectObject *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 *MultiTriggerItemsDefaultHorizontal; // x0 cocos2d::CCDirector *v13; // x0 __int64 v14; // x0 long double v15; // q0 __int64 v16; // [xsp+B8h] [xbp+88h] BYREF _BYTE v17[8]; // [xsp+C0h] [xbp+90h] BYREF _BYTE v18[8]; // [xsp+C8h] [xbp+98h] BYREF __int64 v19; // [xsp+D0h] [xbp+A0h] BYREF __int64 v20[2]; // [xsp+D8h] [xbp+A8h] BYREF void *v21; // [xsp+E8h] [xbp+B8h] __int64 v22; // [xsp+F0h] [xbp+C0h] BYREF __int64 v23; // [xsp+F8h] [xbp+C8h] void *v24; // [xsp+100h] [xbp+D0h] v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 420.0, 280.0, 1u, 0.0); v5 = v4; if ( v4 ) { (*((void (__fastcall **)(cocos2d::CCDictionary **))*this + 170))(this); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "Area Move Trigger", 0x11u); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v22); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v22, v7, v8, v9, v10, v11); if ( (v22 & 1) != 0 ) operator delete(v24); v20[0] = 0; v20[1] = 0; v21 = nullptr; std::string::__init(v20, "Help", 4u); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init( &v22, "Moves objects using Target Group ID within an area around Center Group ID. The area can be specifi" "ed by the arrow buttons and Length (for size).\n" "You can specify how much the objects in the area move depending on how close they are to the center.\n" "DEAP: Dont Edit Area Parent.\n" "Check the other pages for more settings.", 0x15Bu); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v20, (char *)&v22, 1.0); if ( (v22 & 1) != 0 ) operator delete(v24); if ( (v20[0] & 1) != 0 ) operator delete(v21); MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal((SetupTriggerPopup *)this); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefaultHorizontal); cocos2d::CCDirector::getWinSize(&v16, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, *(float *)&v16 * 0.5, (float)(*((float *)&v16 + 1) * 0.5) + 95.0); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "Length", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, -75.0, 0.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 222, (char *)&v22, (__int64)&v19, 0, 2, 6, 0, 0.65, 0.0, 100.0, 0, 0, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 75.0, 0.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 223, (char *)&v22, (__int64)&v19, 0, 2, 6, 0, 0.65, 0.0, 100.0, 0, 0, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "Offset", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, -75.0, -25.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 220, (char *)&v22, (__int64)&v19, 0, 2, 6, 0, 0.65, -100.0, 100.0, 0, 0, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 75.0, -25.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 221, (char *)&v22, (__int64)&v19, 0, 2, 6, 0, 0.65, -100.0, 100.0, 0, 0, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "MoveDist", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, -75.0, -50.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 218, (char *)&v22, (__int64)&v19, 0, 2, 6, 0, 0.65, 0.0, 100.0, 0, 1, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 75.0, -50.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 219, (char *)&v22, (__int64)&v19, 0, 2, 6, 0, 0.65, 0.0, 100.0, 0, 1, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "MoveAngle", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, -75.0, -75.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 231, (char *)&v22, (__int64)&v19, 0, 2, 6, 0, 0.65, -180.0, 180.0, 0, 1, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 75.0, -75.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 232, (char *)&v22, (__int64)&v19, 0, 2, 6, 0, 0.65, 0.0, 360.0, 0, 1, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "XY\nMode", 7u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v19, (float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v16 * 0.5)) - 58.0, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v16 + 1) * 0.5)) - 20.0); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0xF1u, &v22, (const cocos2d::CCPoint *)&v19, 0, 0, 0, 1.0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "RFade", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 75.0, -100.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 288, (char *)&v22, (__int64)&v19, 0, 1, 6, 0, 0.65, 0.0, 60.0, 0, 1, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "Relative", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, -91.0, -110.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x11Fu, &v22, (const cocos2d::CCPoint *)&v19, 0, 0, 1, 1.0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "MoveX", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, -75.0, -50.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 237, (char *)&v22, (__int64)&v19, 0, 2, 6, 0, 0.65, 0.0, 100.0, 0, 2, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 75.0, -50.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 238, (char *)&v22, (__int64)&v19, 0, 2, 6, 0, 0.65, 0.0, 100.0, 0, 2, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "MoveY", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, -75.0, -75.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 239, (char *)&v22, (__int64)&v19, 0, 2, 6, 0, 0.65, 0.0, 200.0, 0, 2, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 75.0, -75.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( this, 240, (char *)&v22, (__int64)&v19, 0, 2, 6, 0, 0.65, 0.0, 200.0, 0, 2, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); SetupAreaMoveTriggerPopup::addAreaDefaultControls(this, 3006); (*((void (__fastcall **)(cocos2d::CCDictionary **))*this + 179))(this); SetupTriggerPopup::createPageButtons((SetupTriggerPopup *)this, (float)(*((float *)this + 183) * 0.5) + 15.0, 1); SetupTriggerPopup::goToPage(this, 0, 0); v14 = cocos2d::CCDictionary::objectForKey(*(this + 104), 241); if ( v14 ) { if ( *(float *)(v14 + 56) == 0.0 ) LODWORD(v15) = 0; else LODWORD(v15) = 1.0; (*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, long double))*this + 182))(this, 241, v15); *((_BYTE *)this + 744) = 0; } else { (*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*this + 169))(this, 1, 0); (*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*this + 169))(this, 2, 0); *((_BYTE *)this + 744) = 0; } } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source