// // SetupSpawnParticlePopup::init from 0x578ab8 to 0x57906c (1460 bytes) // // 1 xrefs: // > SetupSpawnParticlePopup::create @ 0x57910a // // 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 SetupSpawnParticlePopup::init(SetupSpawnParticlePopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { _BOOL4 v4; // r11 cocos2d::CCDirector *v5; // r0 _BYTE v7[4]; // [sp+38h] [bp-2Ch] BYREF cocos2d::CCSize v8; // [sp+3Ch] [bp-28h] BYREF cocos2d::CCPoint v9; // [sp+44h] [bp-20h] BYREF cocos2d::CCPoint v10; // [sp+4Ch] [bp-18h] BYREF cocos2d::CCPoint v11; // [sp+54h] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 380.0, 280.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_776584((int)&v11, "Spawn Particles"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v11); sub_776584((int)&v11, "OK"); SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v11); sub_774008(&v11); sub_776584((int)&v10, "Help"); sub_776584( (int)&v11, "Spawns particles given by Particle Group at a target location given by Position Group.\n" "It can be more than one particle object at once.\n" "Offset X and Y offsets the target position.\n" "OffVarX and Y set an area the particles can randomly spawn in.\n" "Match Rot makes the rotation of several particles match."); SetupTriggerPopup::addHelpButton((int)a1, (int)&v10, (int)&v11, 1065353216); sub_774008(&v11); sub_774008(&v10); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v8, v5); cocos2d::CCPoint::CCPoint(&v9, v8.width * 0.5, (float)(v8.height * 0.5) + 80.0); sub_776584((int)v7, "Particle Group"); cocos2d::CCPoint::CCPoint(&v10, -95.0, 0.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 51, (int)v7, &v11, (cocos2d::CCZone *)0x3F19999A, 1, Uint, 6, 1, nullptr, 100.0, 1, 0, 0, 2, 0); sub_774008(v7); sub_776584((int)v7, "Position Group"); cocos2d::CCPoint::CCPoint(&v10, 65.0, 0.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 71, (int)v7, &v11, (cocos2d::CCZone *)0x3F19999A, 1, Uint, 6, 1, nullptr, 100.0, 1, 0, 0, 2, 0); sub_774008(v7); sub_776584((int)v7, "Offset X:"); cocos2d::CCPoint::CCPoint(&v10, -80.0, -33.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 547, (int)v7, &v11, (cocos2d::CCZone *)0x3F19999A, 0, Int, 10, 0, (cocos2d::CCFloat *)0xC2C80000, 100.0, 0, 0, 1, 0, 0); sub_774008(v7); sub_776584((int)v7, "Y:"); cocos2d::CCPoint::CCPoint(&v10, 80.0, -33.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 548, (int)v7, &v11, (cocos2d::CCZone *)0x3F19999A, 0, Int, 10, 0, (cocos2d::CCFloat *)0xC2C80000, 100.0, 0, 0, 1, 0, 0); sub_774008(v7); sub_776584((int)v7, "OffVar X:"); cocos2d::CCPoint::CCPoint(&v10, -80.0, -66.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 549, (int)v7, &v11, (cocos2d::CCZone *)0x3F19999A, 0, Int, 10, 0, nullptr, 100.0, 0, 0, 1, 0, 0); sub_774008(v7); sub_776584((int)v7, "Y:"); cocos2d::CCPoint::CCPoint(&v10, 80.0, -66.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 550, (int)v7, &v11, (cocos2d::CCZone *)0x3F19999A, 0, Int, 10, 0, nullptr, 100.0, 0, 0, 1, 0, 0); sub_774008(v7); sub_776584((int)v7, "Rotation:"); cocos2d::CCPoint::CCPoint(&v10, -80.0, -99.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 552, (int)v7, &v11, (cocos2d::CCZone *)0x3F19999A, 0, Float, 10, 0, (cocos2d::CCFloat *)0xC3340000, 180.0, 0, 0, 1, 0, 0); sub_774008(v7); sub_776584((int)v7, "+-"); cocos2d::CCPoint::CCPoint(&v10, 80.0, -99.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 553, (int)v7, &v11, (cocos2d::CCZone *)0x3F19999A, 0, Float, 10, 0, nullptr, 180.0, 0, 0, 1, 0, 0); sub_774008(v7); sub_776584((int)v7, "Scale:"); cocos2d::CCPoint::CCPoint(&v10, -80.0, -132.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 554, (int)v7, &v11, (cocos2d::CCZone *)0x3F19999A, 0, Float, 10, 0, (cocos2d::CCFloat *)0xC0000000, 2.0, 0, 0, 1, 2, 0); sub_774008(v7); sub_776584((int)v7, "+-"); cocos2d::CCPoint::CCPoint(&v10, 80.0, -132.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 555, (int)v7, &v11, (cocos2d::CCZone *)0x3F19999A, 0, Float, 10, 0, nullptr, 1.0, 0, 0, 1, 2, 0); sub_774008(v7); sub_776584((int)&v10, "Match\nRot"); cocos2d::CCPoint::CCPoint( &v11, (float)((float)(a1->m_width * 0.5) + (float)(v8.width * 0.5)) - 72.0, (float)((float)(v8.height * 0.5) - (float)(a1->m_height * 0.5)) + 50.0); SetupTriggerPopup::createToggleValueControl(a1, 551, (int)&v10, &v11, 0, 0, 0, 1.0); sub_774008(&v10); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source