// // SetupPickupTriggerPopup::init from 0x628820 to 0x628bfe (990 bytes) // // 1 xrefs: // > SetupPickupTriggerPopup::create @ 0x628df4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:55:11 +0000 // int __fastcall SetupPickupTriggerPopup::init(SetupPickupTriggerPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { int v4; // r11 cocos2d::CCDirector *v5; // r0 float v7[2]; // [sp+3Ch] [bp-40h] BYREF _BYTE v8[8]; // [sp+44h] [bp-38h] BYREF _BYTE v9[8]; // [sp+4Ch] [bp-30h] BYREF _BYTE v10[8]; // [sp+54h] [bp-28h] BYREF int v11[3]; // [sp+5Ch] [bp-20h] BYREF int v12; // [sp+68h] [bp-14h] BYREF int v13; // [sp+6Ch] [bp-10h] int v14; // [sp+70h] [bp-Ch] v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 250.0, 1, 0.0); if ( v4 ) { v5 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this); cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Pickup Trigger", 0xEu); SetupTriggerPopup::addTitle(this, &v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v12); std::string::~string((int)&v12); memset(v11, 0, sizeof(v11)); std::string::__init(v11, "Help", 4u); v12 = 0; v13 = 0; v14 = 0; std::string::__init( &v12, "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, v11, &v12, 1065353216); std::string::~string((int)&v12); std::string::~string((int)v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v7[0] * 0.5, v7[1] * 0.5); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "ItemID", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -50.0, 50.0); cocos2d::CCPoint::operator+(v10, v8, v9); IDNameInput::create((int)this, (int)this + 440, 2, 80, (int)&v12, (int)v10, 0.8, 6, 0, 0, 0); std::string::~string((int)&v12); (*(void (__fastcall **)(SetupPickupTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 88); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Multiply", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 50.0, 70.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createCustomToggleValueControl(this); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Divide", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 50.0, 30.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createCustomToggleValueControl(this); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Count", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -50.0, -20.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createValueControlAdvanced( this, 77, &v12, v10, 1061997773, 1, 2, 6, 1, 0, 1120403456, 0, 1, 0, 2, 0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Override", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 50.0, -20.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createToggleValueControl((int)this, 139, (int)&v12, (int)v10, 0, 0, 1, 1.0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Modifier:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 0.0, -20.0); cocos2d::CCPoint::operator+(v10, v8, v9); SetupTriggerPopup::createValueControlAdvanced( this, 449, &v12, v10, 1061997773, 0, 1, 6, 0, 0, 1092616192, 0, 2, 0, 3, 0); std::string::~string((int)&v12); SetupTriggerPopup::createMultiTriggerItemsDefault(this); SetupPickupTriggerPopup::updateState(this); SetupTriggerPopup::postSetup(this); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source