// // SetupPickupTriggerPopup::init from 0xa9fcc8 to 0xaa0294 (1484 bytes) // // 2 xrefs: // > SetupPickupTriggerPopup::create @ 0xaa04c8 // > @ 0x85c78 // // 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:48 +0000 // __int64 __fastcall SetupPickupTriggerPopup::init( SetupPickupTriggerPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w25 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 float v9; // s0 int v10; // w26 _BOOL4 v11; // w27 int v12; // [xsp+20h] [xbp-10h] __int64 v13; // [xsp+A8h] [xbp+78h] BYREF _BYTE v14[8]; // [xsp+B0h] [xbp+80h] BYREF _BYTE v15[8]; // [xsp+B8h] [xbp+88h] BYREF __int64 v16; // [xsp+C0h] [xbp+90h] BYREF __int64 v17[2]; // [xsp+C8h] [xbp+98h] BYREF void *v18; // [xsp+D8h] [xbp+A8h] __int64 v19; // [xsp+E0h] [xbp+B0h] BYREF __int64 v20; // [xsp+E8h] [xbp+B8h] void *v21; // [xsp+F0h] [xbp+C0h] v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 250.0, 1, 0.0); v5 = v4; if ( v4 ) { v7 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v13, v8); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Pickup Trigger", 0xEu); 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, "Changes the value of an Item ID by adding Count to the previous value.\n" "Use Multiply or Divide to modify in another way than addition.\n" "Override specifies the exact value to change to instead of modifying the previous value.", 0xFEu); SetupTriggerPopup::addHelpButton(this, v17, &v19, 1.0); if ( (v19 & 1) != 0 ) operator delete(v21); if ( (v17[0] & 1) != 0 ) operator delete(v18); 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, "ItemID", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -50.0, 50.0); cocos2d::CCPoint::operator+(&v16, v14); IDNameInput::create(this, (char *)this + 544, 2, 80, &v19, &v16, 6, 0, 0.8, 0, 0); if ( (v19 & 1) != 0 ) operator delete(v21); v9 = (*(float (__fastcall **)(SetupPickupTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 88); v19 = 0; v10 = (int)v9; v20 = 0; v21 = nullptr; v11 = (int)v9 == 1; std::string::__init(&v19, "Multiply", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 50.0, 70.0); cocos2d::CCPoint::operator+(&v16, v14); SetupTriggerPopup::createCustomToggleValueControl((int)this, 1, v11, 1, (int)&v19, (int)&v16, 0, 0, 0); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Divide", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 50.0, 30.0); cocos2d::CCPoint::operator+(&v16, v14); SetupTriggerPopup::createCustomToggleValueControl((int)this, 2, v10 == 2, 1, (int)&v19, (int)&v16, 0, 0, 0); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Count", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -50.0, -20.0); cocos2d::CCPoint::operator+(&v16, v14); SetupTriggerPopup::createValueControlAdvanced(this, 77, &v19, &v16, 1, 2, 6, 1, 0.8, 0.0, 100.0, 0, 1, 0, 2, 0); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Override", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 50.0, -20.0); cocos2d::CCPoint::operator+(&v16, v14); SetupTriggerPopup::createToggleValueControl(this, 139, &v19, &v16, 0, 0, 1, 1.0); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Modifier:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 0.0, -20.0); cocos2d::CCPoint::operator+(&v16, v14); LOBYTE(v12) = 0; SetupTriggerPopup::createValueControlAdvanced(this, 449, &v19, &v16, 0, 1, 6, 0, 0.8, 0.0, 10.0, 0, 2, 0, 3, v12); if ( (v19 & 1) != 0 ) operator delete(v21); SetupTriggerPopup::createMultiTriggerItemsDefault(this); SetupPickupTriggerPopup::updateState(this); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source