// // SetupAreaTintTriggerPopup::init from 0xb41cac to 0xb425a8 (2300 bytes) // // 2 xrefs: // > SetupAreaTintTriggerPopup::create @ 0xb42800 // > @ 0xa29a0 // // 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:51 +0000 // __int64 __fastcall SetupAreaTintTriggerPopup::init( cocos2d::CCObject **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 const char *v14; // x1 __int64 v15; // x0 __int64 v16; // x0 __int64 v17; // x27 cocos2d::CCNode *v18; // x28 void (__fastcall *v19)(__int64, __int64 *); // x26 void (__fastcall *v20)(cocos2d::CCObject **, __int64, bool); // x20 float v21; // s0 void (__fastcall *v22)(cocos2d::CCObject **, __int64, bool); // x20 float v23; // s0 __int64 v24; // [xsp+D0h] [xbp+A0h] BYREF _BYTE v25[8]; // [xsp+D8h] [xbp+A8h] BYREF _BYTE v26[8]; // [xsp+E0h] [xbp+B0h] BYREF __int64 v27; // [xsp+E8h] [xbp+B8h] BYREF __int64 v28; // [xsp+F0h] [xbp+C0h] BYREF __int64 v29[2]; // [xsp+F8h] [xbp+C8h] BYREF void *v30; // [xsp+108h] [xbp+D8h] __int64 v31; // [xsp+110h] [xbp+E0h] BYREF __int64 v32; // [xsp+118h] [xbp+E8h] void *v33; // [xsp+120h] [xbp+F0h] v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 420.0, 280.0, 1u, 0.0); v5 = v4; if ( v4 ) { (*((void (__fastcall **)(cocos2d::CCObject **))*this + 170))(this); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "Area Tint Trigger", 0x11u); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v31); if ( (v31 & 1) != 0 ) operator delete(v33); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v31, v7, v8, v9, v10, v11); if ( (v31 & 1) != 0 ) operator delete(v33); v29[0] = 0; v29[1] = 0; v30 = nullptr; std::string::__init(v29, "Help", 4u); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init( &v31, "Tints 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 tint depending on how close they are to the center.\n" "Check the other pages for more settings.", 0x136u); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v29, (char *)&v31, 1.0); if ( (v31 & 1) != 0 ) operator delete(v33); if ( (v29[0] & 1) != 0 ) operator delete(v30); MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal((SetupTriggerPopup *)this); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefaultHorizontal); cocos2d::CCDirector::getWinSize(&v24, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, *(float *)&v24 * 0.5, (float)(*((float *)&v24 + 1) * 0.5) + 95.0); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "Length", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, -75.0, 0.0); cocos2d::CCPoint::operator+(&v28, v25); SetupTriggerPopup::createValueControlAdvanced( this, 222, (char *)&v31, (__int64)&v28, 0, 2, 6, 0, 0.65, 0.0, 100.0, 0, 0, 1, 2, 0); if ( (v31 & 1) != 0 ) operator delete(v33); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, 75.0, 0.0); cocos2d::CCPoint::operator+(&v28, v25); SetupTriggerPopup::createValueControlAdvanced( this, 223, (char *)&v31, (__int64)&v28, 0, 2, 6, 0, 0.65, 0.0, 100.0, 0, 0, 1, 2, 0); if ( (v31 & 1) != 0 ) operator delete(v33); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "Offset", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, -75.0, -25.0); cocos2d::CCPoint::operator+(&v28, v25); SetupTriggerPopup::createValueControlAdvanced( this, 220, (char *)&v31, (__int64)&v28, 0, 2, 6, 0, 0.65, -100.0, 100.0, 0, 0, 1, 2, 0); if ( (v31 & 1) != 0 ) operator delete(v33); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, 75.0, -25.0); cocos2d::CCPoint::operator+(&v28, v25); SetupTriggerPopup::createValueControlAdvanced( this, 221, (char *)&v31, (__int64)&v28, 0, 2, 6, 0, 0.65, -100.0, 100.0, 0, 0, 1, 2, 0); if ( (v31 & 1) != 0 ) operator delete(v33); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "Color Channel:", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, -75.0, -75.0); cocos2d::CCPoint::operator+(&v28, v25); SetupTriggerPopup::createValueControlAdvanced( this, 260, (char *)&v31, (__int64)&v28, 1, 3, 6, 1, 0.65, 0.0, 100.0, 0, 1, 0, 2, 0); if ( (v31 & 1) != 0 ) operator delete(v33); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "Tint", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, 75.0, -75.0); cocos2d::CCPoint::operator+(&v28, v25); SetupTriggerPopup::createValueControlAdvanced( this, 265, (char *)&v31, (__int64)&v28, 0, 1, 6, 0, 0.65, 0.0, 1.0, 0, 1, 1, 2, 0); if ( (v31 & 1) != 0 ) operator delete(v33); v15 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_hsvBtn_001.png", v14); v16 = CCMenuItemSpriteExtra::create(v15, 0, (__int64)this, (__int64)SetupAreaTintTriggerPopup::onHSV, 0); *(this + 130) = (cocos2d::CCObject *)v16; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v16); v17 = (__int64)*(this + 130); v18 = *(this + 69); v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 0.0, -75.0); cocos2d::CCPoint::operator+(&v27, v25); cocos2d::CCNode::convertToNodeSpace(&v28, v18, (const cocos2d::CCPoint *)&v27); v19(v17, &v28); SetupTriggerPopup::addObjectToGroup(this, *(this + 130), 2u); SetupTriggerPopup::addObjectToPage(this, *(this + 130), 0); SetupAreaTintTriggerPopup::updateHSVButton((SetupAreaTintTriggerPopup *)this); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "Main\nOnly", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, -140.0, -125.0); cocos2d::CCPoint::operator+(&v28, v25); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x41u, &v31, (const cocos2d::CCPoint *)&v28, 0, 0, 0, 1.0); if ( (v31 & 1) != 0 ) operator delete(v33); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "Secondary\nOnly", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, -20.0, -125.0); cocos2d::CCPoint::operator+(&v28, v25); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x42u, &v31, (const cocos2d::CCPoint *)&v28, 0, 0, 0, 1.0); if ( (v31 & 1) != 0 ) operator delete(v33); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "HSV", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, 100.0, -125.0); cocos2d::CCPoint::operator+(&v28, v25); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x116u, &v31, (const cocos2d::CCPoint *)&v28, 0, 0, 0, 1.0); if ( (v31 & 1) != 0 ) operator delete(v33); SetupAreaMoveTriggerPopup::addAreaDefaultControls(this, 3010); (*((void (__fastcall **)(cocos2d::CCObject **))*this + 179))(this); SetupTriggerPopup::createPageButtons((SetupTriggerPopup *)this, (float)(*((float *)this + 183) * 0.5) + 15.0, 1); v20 = *((void (__fastcall **)(cocos2d::CCObject **, __int64, bool))*this + 169); v21 = (*((float (__fastcall **)(cocos2d::CCObject **, __int64))*this + 183))(this, 278); v20(this, 1, v21 == 0.0); v22 = *((void (__fastcall **)(cocos2d::CCObject **, __int64, bool))*this + 169); v23 = (*((float (__fastcall **)(cocos2d::CCObject **, __int64))*this + 183))(this, 278); v22(this, 2, v23 != 0.0); SetupTriggerPopup::goToPage(this, 0, 0); *((_BYTE *)this + 744) = 0; } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source