// // SetupInteractObjectPopup::init from 0x6270b0 to 0x627514 (1124 bytes) // // 1 xrefs: // > SetupInteractObjectPopup::create @ 0x627710 // // 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:10 +0000 // int __fastcall SetupInteractObjectPopup::init( SetupInteractObjectPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { int v4; // r9 cocos2d::CCDirector *v5; // r0 float v6; // s18 float v7; // s16 float v9[2]; // [sp+34h] [bp-30h] BYREF _BYTE v10[8]; // [sp+3Ch] [bp-28h] BYREF int v11[3]; // [sp+44h] [bp-20h] BYREF int v12; // [sp+50h] [bp-14h] BYREF int v13; // [sp+54h] [bp-10h] int v14; // [sp+58h] [bp-Ch] v4 = SetupTriggerPopup::init(this, a2, a3, 340.0, 280.0, 1, 0.0); if ( v4 ) { SetupTriggerPopup::preSetup(this); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Edit Pickup", 0xBu); 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, "Sets the object to be a pickup collectable for ItemID.\n" "Points is how much it increases the count of that ItemID.\n" "Toggle Trigger lets you toggle or spawn a specific group when collected.\n" "Particle lets you refer to a custom particles to spawn when collected.\n" "No Anim disables the animation upon collection.", 0x160u); SetupTriggerPopup::addHelpButton(this, v11, &v12, 1065353216); std::string::~string((int)&v12); v5 = (cocos2d::CCDirector *)std::string::~string((int)v11); cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v9); v12 = 0; v13 = 0; v14 = 0; v6 = v9[0] * 0.5; v7 = (float)(v9[1] * 0.5) + 70.0; std::string::__init(&v12, "Pickup\nItem", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v6 - 130.0, v7); SetupTriggerPopup::createToggleValueControl((int)this, 381, (int)&v12, (int)v10, 0, 0, 0, 1.0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "ItemID", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v6, v7); IDNameInput::create((int)this, (int)this + 440, 2, 80, (int)&v12, (int)v10, 0.7, 6, 1, 0, 0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Sub\nCount", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v6 + 85.0, v7); SetupTriggerPopup::createToggleValueControl((int)this, 78, (int)&v12, (int)v10, 0, 0, 1, 1.0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Toggle\nTrigger", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v6 - 130.0, v7 - 60.0); SetupTriggerPopup::createToggleValueControl((int)this, 382, (int)&v12, (int)v10, 0, 0, 0, 1.0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Group ID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v6, v7 - 60.0); IDNameInput::create((int)this, (int)this + 440, 1, 51, (int)&v12, (int)v10, 0.7, 6, 2, 0, 0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Enable\nGroup", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v6 + 85.0, v7 - 60.0); SetupTriggerPopup::createToggleValueControl((int)this, 56, (int)&v12, (int)v10, 0, 0, 2, 1.0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Particle", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (float)(v9[0] * 0.5) - 100.0, (float)(v7 - 120.0) - 5.0); SetupTriggerPopup::createValueControlAdvanced( this, 440, &v12, v10, 1060320051, 1, 3, 6, 1, 0, 1120403456, 0, 0, 0, 2, 0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Points", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (float)(v9[0] * 0.5) + 100.0, (float)(v7 - 120.0) - 5.0); SetupTriggerPopup::createValueControlAdvanced( this, 383, &v12, v10, 1060320051, 1, 2, 8, 1, 0, 1120403456, 0, 0, 0, 2, 0); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "No\nAnim", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v6 - 130.0, v7 - 180.0); SetupTriggerPopup::createToggleValueControl((int)this, 463, (int)&v12, (int)v10, 0, 0, 0, 1.0); std::string::~string((int)&v12); SetupTriggerPopup::postSetup(this); SetupInteractObjectPopup::updateItems(this); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source