// // SetupInteractObjectPopup::init from 0x4f6e38 to 0x4f72e0 (1192 bytes) // // 1 xrefs: // > SetupInteractObjectPopup::create @ 0x4f745e // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool SetupInteractObjectPopup::init(SetupInteractObjectPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { _BOOL4 v4; // r9 cocos2d::CCDirector *v5; // r0 float v6; // s21 float v7; // s16 cocos2d::CCPoint v8; // r2 int v10; // [sp+Ch] [bp-58h] _BYTE v11[4]; // [sp+38h] [bp-2Ch] BYREF cocos2d::CCSize v12; // [sp+3Ch] [bp-28h] BYREF cocos2d::CCPoint v13; // [sp+44h] [bp-20h] BYREF cocos2d::CCPoint v14; // [sp+4Ch] [bp-18h] BYREF cocos2d::CCPoint v15; // [sp+54h] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 340.0, 280.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_776584((int)&v15, "Edit Pickup"); SetupTriggerPopup::addTitle(a1, (std::string)&v15); sub_774008(&v15); sub_776584((int)&v15, "OK"); SetupTriggerPopup::addCloseButton(a1, (std::string)&v15); sub_774008(&v15); sub_776584((int)&v14, "Help"); sub_776584( (int)&v15, "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."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v14, (std::string)&v15, 1.0); sub_774008(&v15); sub_774008(&v14); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v12, v5); v6 = v12.width * 0.5; v7 = (float)(v12.height * 0.5) + 70.0; sub_776584((int)&v14, "Pickup\nItem"); cocos2d::CCPoint::CCPoint(&v15, v6 - 130.0, v7); SetupTriggerPopup::createToggleValueControl((int)a1, 381, (int)&v14, (int)&v15, 0, 0, 0, 1.0); sub_774008(&v14); sub_776584((int)&v14, "ItemID"); cocos2d::CCPoint::CCPoint(&v15, v6, v7); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 80, (int)&v14, (int)&v15, 0.7, 1, 3, 6, 1, nullptr, 100.0, 0, 1, 0, 2, 0); sub_774008(&v14); sub_776584((int)&v14, "Sub\nCount"); cocos2d::CCPoint::CCPoint(&v15, v6 + 85.0, v7); SetupTriggerPopup::createToggleValueControl((int)a1, 78, (int)&v14, (int)&v15, 0, 0, 1, 1.0); sub_774008(&v14); cocos2d::CCPoint::CCPoint(&v13, v6, v7); cocos2d::CCPoint::CCPoint(&v14, 32.0, 22.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); sub_776584((int)v11, (char *)&unk_939830); LODWORD(v8.x) = &v15; v8.y = 0.7; SetupTriggerPopup::createPlusButton(a1, 1, v8, COERCE_FLOAT(v11), 0, 1, v10); sub_774008(v11); sub_776584((int)&v14, "Toggle\nTrigger"); cocos2d::CCPoint::CCPoint(&v15, v6 - 130.0, v7 - 60.0); SetupTriggerPopup::createToggleValueControl((int)a1, 382, (int)&v14, (int)&v15, 0, 0, 0, 1.0); sub_774008(&v14); sub_776584((int)&v14, "Group ID"); cocos2d::CCPoint::CCPoint(&v15, v6, v7 - 60.0); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 51, (int)&v14, (int)&v15, 0.7, 1, 3, 6, 1, nullptr, 100.0, 0, 2, 0, 2, 0); sub_774008(&v14); sub_776584((int)&v14, "Enable\nGroup"); cocos2d::CCPoint::CCPoint(&v15, v6 + 85.0, v7 - 60.0); SetupTriggerPopup::createToggleValueControl((int)a1, 56, (int)&v14, (int)&v15, 0, 0, 2, 1.0); sub_774008(&v14); sub_776584((int)&v14, "Particle"); cocos2d::CCPoint::CCPoint(&v15, (float)(v12.width * 0.5) - 100.0, (float)(v7 - 120.0) - 5.0); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 440, (int)&v14, (int)&v15, 0.7, 1, 3, 6, 1, nullptr, 100.0, 0, 0, 0, 2, 0); sub_774008(&v14); sub_776584((int)&v14, "Points"); cocos2d::CCPoint::CCPoint(&v15, (float)(v12.width * 0.5) + 100.0, (float)(v7 - 120.0) - 5.0); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 383, (int)&v14, (int)&v15, 0.7, 1, 2, 8, 1, nullptr, 100.0, 0, 0, 0, 2, 0); sub_774008(&v14); sub_776584((int)&v14, "No\nAnim"); cocos2d::CCPoint::CCPoint(&v15, v6 - 130.0, v7 - 180.0); SetupTriggerPopup::createToggleValueControl((int)a1, 463, (int)&v14, (int)&v15, 0, 0, 0, 1.0); sub_774008(&v14); SetupTriggerPopup::postSetup(a1); SetupInteractObjectPopup::updateItems(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source