// // SetupSpawnPopup::init from 0xa43644 to 0xa440ac (2664 bytes) // // 2 xrefs: // > SetupSpawnPopup::create @ 0xa44328 // > @ 0xb2228 // // 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 12:59:58 +0000 // __int64 __fastcall SetupSpawnPopup::init(cocos2d::CCNode **this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w25 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 cocos2d::CCArray *v9; // x0 cocos2d::CCObject *v10; // x0 const char *v11; // x1 ButtonSprite *v12; // x0 __int64 v13; // x0 cocos2d::CCObject *v14; // x21 cocos2d::CCNode *v15; // x28 void (__fastcall *v16)(cocos2d::CCObject *, __int64 *); // x27 const char *v17; // x1 ButtonSprite *v18; // x0 __int64 v19; // x0 cocos2d::CCObject *v20; // x21 cocos2d::CCNode *v21; // x28 void (__fastcall *v22)(cocos2d::CCObject *, __int64 *); // x27 GameManager *v23; // x0 const char *v24; // x6 cocos2d::CCObject *v25; // x21 void (__fastcall *v26)(cocos2d::CCObject *, __int64 *); // x22 __int64 v27; // x21 cocos2d::CCObject *v28; // x21 cocos2d::CCNode *v29; // x27 void (__fastcall *v30)(cocos2d::CCObject *, __int64 *); // x26 int v31; // [xsp+8h] [xbp-28h] int v32; // [xsp+8h] [xbp-28h] int v33; // [xsp+20h] [xbp-10h] __int64 v34; // [xsp+B0h] [xbp+80h] BYREF _BYTE v35[8]; // [xsp+B8h] [xbp+88h] BYREF _BYTE v36[8]; // [xsp+C0h] [xbp+90h] BYREF _BYTE v37[8]; // [xsp+C8h] [xbp+98h] BYREF __int64 v38; // [xsp+D0h] [xbp+A0h] BYREF __int64 v39[2]; // [xsp+D8h] [xbp+A8h] BYREF cocos2d::CCDirector *v40[2]; // [xsp+E8h] [xbp+B8h] BYREF void *v41; // [xsp+F8h] [xbp+C8h] __int64 v42; // [xsp+100h] [xbp+D0h] BYREF __int64 v43; // [xsp+108h] [xbp+D8h] void *v44; // [xsp+110h] [xbp+E0h] v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 380.0, 280.0, 1, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, "Spawn Group", 0xBu); SetupTriggerPopup::addTitle(this, &v42); if ( (v42 & 1) != 0 ) operator delete(v44); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v42); if ( (v42 & 1) != 0 ) operator delete(v44); v40[0] = nullptr; v40[1] = nullptr; v41 = nullptr; std::string::__init((__int64 *)v40, "Help", 4u); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init( &v42, "Activates other triggers simultaneously regardless of X position. These triggers need to use Group ID and " "have Spawn Trigger enabled.\n" "Preview Disable disables activation while not playtesting in editor.\n" "Spawn Ordered spawns the triggers in order from left to right.\n" "Use remapping (page 2) to copy a Spawn setup to another group.", 0x168u); SetupTriggerPopup::addHelpButton(this, v40, &v42, 1.0); if ( (v42 & 1) != 0 ) operator delete(v44); v7 = (cocos2d::CCDirector *)LOBYTE(v40[0]); if ( ((__int64)v40[0] & 1) != 0 ) operator delete(v41); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v34, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, *(float *)&v34 * 0.5, *((float *)&v34 + 1) * 0.5); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, "Group ID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, -50.0, 50.0); cocos2d::CCPoint::operator+(v39, v35); IDNameInput::create(this, this + 68, 1, 51, &v42, v39, 6, 0, 0.9, 0, 0); if ( (v42 & 1) != 0 ) operator delete(v44); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, "Delay:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, -85.0, -35.0); cocos2d::CCPoint::operator+(v39, v35); SetupTriggerPopup::createValueControlAdvanced(this, 63, &v42, v39, 0, 1, 10, 0, 0.7, 0.0, 1.0, 0, 0, 1, 5, 0); if ( (v42 & 1) != 0 ) operator delete(v44); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 80.0, -35.0); cocos2d::CCPoint::operator+(v39, v35); LOBYTE(v33) = 0; SetupTriggerPopup::createValueControlAdvanced(this, 556, &v42, v39, 0, 1, 10, 0, 0.7, 0.0, 1.0, 0, 0, 1, 5, v33); if ( (v42 & 1) != 0 ) operator delete(v44); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, "Preview\nDisable", 0xFu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 50.0, 85.0); cocos2d::CCPoint::operator+(v39, v35); SetupTriggerPopup::createToggleValueControl(this, 102, &v42, v39, 0, 0, 0, 1.0); if ( (v42 & 1) != 0 ) operator delete(v44); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, "Spawn\nOrdered", 0xDu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 50.0, 50.0); cocos2d::CCPoint::operator+(v39, v35); SetupTriggerPopup::createToggleValueControl(this, 441, &v42, v39, 0, 0, 0, 1.0); if ( (v42 & 1) != 0 ) operator delete(v44); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, "Reset\nRemap", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 50.0, 15.0); cocos2d::CCPoint::operator+(v39, v35); SetupTriggerPopup::createToggleValueControl(this, 581, &v42, v39, 0, 0, 0, 1.0); if ( (v42 & 1) != 0 ) operator delete(v44); v9 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v36, *(float *)&v34 * 0.5, *((float *)&v34 + 1) * 0.5); v10 = (cocos2d::CCObject *)cocos2d::CCArray::create(v9); *(this + 127) = v10; cocos2d::CCObject::retain(v10); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, "OriginalID:", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, -100.0, 65.0); cocos2d::CCPoint::operator+(v39, v36); LOBYTE(v31) = 0; IDNameInput::create(this, this + 68, 1, 0xFFFFFFFFLL, &v42, v39, 6, 0, 0.7, 1, v31); if ( (v42 & 1) != 0 ) operator delete(v44); v42 = 0; v43 = 0; v44 = nullptr; std::string::__init(&v42, "NewID:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 20.0, 65.0); cocos2d::CCPoint::operator+(v39, v36); LOBYTE(v32) = 0; IDNameInput::create(this, this + 68, 1, 4294967294LL, &v42, v39, 6, 0, 0.7, 1, v32); if ( (v42 & 1) != 0 ) operator delete(v44); v12 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_addCBtn_001.png", v11); v13 = ButtonSprite::create( v12, (cocos2d::CCSprite *)&qword_20, 0, (char)&dword_0 + 1, 32.0, 1.0, (cocos2d::CCSprite *)"GJ_button_01.png", (const char *)&dword_0 + 1, 0.0); v14 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v13, 0, (__int64)this, (__int64)SetupSpawnPopup::onAddRemap, 0); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v14 + 160LL))(v14, 0.6); *((_DWORD *)v14 + 101) = 1058642330; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v14); v15 = *(this + 69); v16 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v14 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 120.0, 65.0); cocos2d::CCPoint::operator+(&v38, v36); cocos2d::CCNode::convertToNodeSpace(v39, v15, (const cocos2d::CCPoint *)&v38); v16(v14, v39); SetupTriggerPopup::addObjectToPage((SetupTriggerPopup *)this, v14, 1); v18 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_delCBtn_001.png", v17); v19 = ButtonSprite::create( v18, (cocos2d::CCSprite *)&qword_20, 0, (char)&dword_0 + 1, 32.0, 1.0, (cocos2d::CCSprite *)"GJ_button_06.png", (const char *)&dword_0 + 1, 0.0); v20 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v19, 0, (__int64)this, (__int64)SetupSpawnPopup::onDeleteRemap, 0); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v20 + 160LL))(v20, 0.6); *((_DWORD *)v20 + 101) = 1058642330; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v20); v21 = *(this + 69); v22 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v20 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 150.0, 65.0); cocos2d::CCPoint::operator+(&v38, v36); cocos2d::CCNode::convertToNodeSpace(v39, v21, (const cocos2d::CCPoint *)&v38); v22(v20, v39); v23 = (GameManager *)SetupTriggerPopup::addObjectToPage((SetupTriggerPopup *)this, v20, 1); if ( *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v23) + 552) + 14920LL) ) { v27 = ButtonSprite::create( (ButtonSprite *)"Paste", (const char *)&off_18 + 6, 0, 1, 0.5, "goldFont.fnt", "GJ_button_04.png", v24, 30.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v27 + 160LL))(v27, 0.8); v28 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v27, 0, (__int64)this, (__int64)SetupSpawnPopup::onPasteRemap, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v28); v29 = *(this + 69); v30 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v28 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v38, (float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v34 * 0.5)) - 25.0, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v34 + 1) * 0.5)) - 20.0); cocos2d::CCNode::convertToNodeSpace(v39, v29, (const cocos2d::CCPoint *)&v38); v30(v28, v39); SetupTriggerPopup::addObjectToPage((SetupTriggerPopup *)this, v28, 1); } cocos2d::CCRect::CCRect((cocos2d::CCRect *)v39, 0.0, 0.0, 80.0, 80.0); v25 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02_001.png", v39); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v25 + 912LL))(v25, 50); v26 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v25 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v39, 360.0, 90.0); v26(v25, v39); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(*(_QWORD *)*(this + 73) + 464LL))( *(this + 73), v25, 0xFFFFFFFFLL); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v25 + 184LL))(v25, v36); SetupTriggerPopup::addObjectToPage((SetupTriggerPopup *)this, v25, 1); SetupSpawnPopup::updateRemapButtons(this, 0.0); SetupTriggerPopup::createMultiTriggerItemsDefault((SetupTriggerPopup *)this); SetupTriggerPopup::createPageButtons((SetupTriggerPopup *)this, (float)(*((float *)this + 183) * 0.5) + 15.0, 1); SetupTriggerPopup::goToPage((SetupTriggerPopup *)this, 0, 0); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source