// // SetupSFXPopup::init from 0xb6e64c to 0xb6f5fc (4016 bytes) // // 2 xrefs: // > SetupSFXPopup::create @ 0xb6f88c // > @ 0xcd930 // // 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 13:02:19 +0000 // __int64 __fastcall SetupSFXPopup::init(SetupSFXPopup *this, SFXTriggerGameObject *a2, cocos2d::CCArray *a3, int a4) { unsigned __int8 v6; // w0 unsigned int v7; // w26 int v9; // w24 __int64 v10; // x2 __int64 v11; // x3 __int64 v12; // x4 __int64 v13; // x5 const char *v14; // x6 cocos2d::CCDirector *MultiTriggerItemsDefault; // x0 cocos2d::CCDirector *v16; // x0 int v17; // w0 const char *v18; // x1 __int64 v19; // x24 __int64 v20; // x24 cocos2d::CCNode *v21; // x25 void (__fastcall *v22)(__int64, __int64 *); // x20 float v23; // s0 __int64 v24; // [xsp+E0h] [xbp+B0h] BYREF _BYTE v25[8]; // [xsp+E8h] [xbp+B8h] BYREF _BYTE v26[8]; // [xsp+F0h] [xbp+C0h] BYREF __int64 v27; // [xsp+F8h] [xbp+C8h] BYREF _BYTE v28[8]; // [xsp+100h] [xbp+D0h] BYREF __int64 v29; // [xsp+108h] [xbp+D8h] BYREF __int64 v30; // [xsp+110h] [xbp+E0h] BYREF cocos2d::CCDirector *v31[2]; // [xsp+118h] [xbp+E8h] BYREF void *v32; // [xsp+128h] [xbp+F8h] __int64 v33; // [xsp+130h] [xbp+100h] BYREF __int64 v34; // [xsp+138h] [xbp+108h] void *v35; // [xsp+140h] [xbp+110h] v6 = SetupTriggerPopup::init(this, a2, a3, 380.0, 280.0, 1u, 0.0); v7 = v6; if ( v6 ) { *((_DWORD *)this + 265) = a4; v9 = a4 & 1; SetupTriggerPopup::preSetup(this); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "SFX Trigger", 0xBu); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v33); if ( (v33 & 1) != 0 ) operator delete(v35); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v33, v10, v11, v12, v13, v14); if ( (v33 & 1) != 0 ) operator delete(v35); v31[0] = nullptr; v31[1] = nullptr; v32 = nullptr; std::string::__init((__int64 *)v31, "Help", 4u); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init( &v33, "Lets you start a specified sound effect (browser top right).\n" "Unique ID is used to refer to a specific sound effect in the level while SFXGroup refers to multip" "le.\n" "Start, End, FadeIn, and FadeOut are in milliseconds.\n" "Ignore Volume Test does not ignore sound effects regardless of whether any volume setting is 0.\n" "Page 4 lets you change the volume depending on proximity.", 0x199u); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v31, (char *)&v33, 1.0); if ( (v33 & 1) != 0 ) operator delete(v35); MultiTriggerItemsDefault = (cocos2d::CCDirector *)LOBYTE(v31[0]); if ( ((__int64)v31[0] & 1) != 0 ) { operator delete(v32); if ( v9 ) goto LABEL_11; } else if ( v9 ) { goto LABEL_11; } MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this); LABEL_11: *((_BYTE *)this + 904) = v9 ^ 1; v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault); cocos2d::CCDirector::getWinSize(&v24, v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, *(float *)&v24 * 0.5, *((float *)&v24 + 1) * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, *(float *)&v24 * 0.5, (float)(*((float *)&v24 + 1) * 0.5) + 10.0); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "Speed:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, -91.0, -0.0); cocos2d::CCPoint::operator+(&v30, v26); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 404, (char *)&v33, (__int64)&v30, 0, 2, 6, 0, 0.65, -12.0, 12.0, 0, 0, 1, 2, 0); if ( (v33 & 1) != 0 ) operator delete(v35); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "Pitch:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 91.0, -0.0); cocos2d::CCPoint::operator+(&v30, v26); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 405, (char *)&v33, (__int64)&v30, 0, 2, 6, 0, 0.65, -12.0, 12.0, 0, 0, 1, 2, 0); if ( (v33 & 1) != 0 ) operator delete(v35); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "Volume:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, -91.0, -39.0); cocos2d::CCPoint::operator+(&v30, v26); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 406, (char *)&v33, (__int64)&v30, 0, 1, 6, 0, 0.65, 0.0, 2.0, 0, 0, 1, 2, 0); if ( (v33 & 1) != 0 ) operator delete(v35); SetupTriggerPopup::toggleLimitValue((__int64 **)this, 404, 1); SetupTriggerPopup::toggleLimitValue((__int64 **)this, 405, 1); SetupTriggerPopup::toggleLimitValue((__int64 **)this, 406, 1); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "Reverb", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 21.0, -39.0); cocos2d::CCPoint::operator+(&v30, v26); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x197u, &v33, (const cocos2d::CCPoint *)&v30, 0, 0, 0, 1.0); if ( (v33 & 1) != 0 ) operator delete(v35); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "FFT", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 127.0, -39.0); cocos2d::CCPoint::operator+(&v30, v26); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x19Cu, &v33, (const cocos2d::CCPoint *)&v30, 0, 0, 0, 1.0); if ( (v33 & 1) != 0 ) { operator delete(v35); if ( !v9 ) goto LABEL_21; } else if ( !v9 ) { LABEL_21: v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "Loop", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 21.0, -78.0); cocos2d::CCPoint::operator+(&v30, v26); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x19Du, &v33, (const cocos2d::CCPoint *)&v30, 0, 0, 0, 1.0); if ( (v33 & 1) != 0 ) operator delete(v35); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "Pre\nload", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 127.0, -78.0); cocos2d::CCPoint::operator+(&v30, v26); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1B1u, &v33, (const cocos2d::CCPoint *)&v30, 0, 0, 0, 1.0); if ( (v33 & 1) != 0 ) operator delete(v35); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 94.0, -39.0); cocos2d::CCPoint::operator+(&v30, v26); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "GJ_plus3Btn_001.png", 0x13u); SetupTriggerPopup::createPlusButton((__int64)this, 2u, (const cocos2d::CCPoint *)&v30, &v33, 0, 0, 0.6); if ( (v33 & 1) != 0 ) operator delete(v35); SetupAudioTriggerPopup::addTimeControls((cocos2d::CCArray **)this, 1, 10.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, -50.0, -40.0); cocos2d::CCPoint::operator+(&v27, v25); LABEL_29: v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "MinInterval:", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, (const cocos2d::CCPoint *)&v27); if ( v9 ) v17 = 0; else v17 = 2; SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 434, (char *)&v33, (__int64)&v30, 0, 1, 6, 0, 0.65, 0.0, 1.0, v17, 0, v9, 2, 0); if ( (v33 & 1) != 0 ) { operator delete(v35); if ( v9 ) goto LABEL_34; } else if ( v9 ) { LABEL_34: v19 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_menuBtn_001.png", v18); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v19 + 160LL))(v19, 0.55); v20 = CCMenuItemSpriteExtra::create(v19, 0, (__int64)this, (__int64)SetupSFXPopup::onBrowseSFX, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v20); v21 = *((cocos2d::CCNode **)this + 69); v22 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v28, (float)(*((float *)this + 183) * 0.5) + -22.0, (float)(*((float *)this + 184) * 0.5) + -22.0); cocos2d::CCPoint::operator+(&v29, v25); cocos2d::CCNode::convertToNodeSpace(&v30, v21, (const cocos2d::CCPoint *)&v29); v22(v20, &v30); *((_DWORD *)this + 260) = (int)(*(float (__fastcall **)(SetupSFXPopup *, __int64))(*(_QWORD *)this + 1464LL))( this, 392); SetupSFXPopup::createSFXWidget(this); SetupTriggerPopup::createPageButtons(this, (float)(*((float *)this + 183) * 0.5) + 15.0, 1); v23 = (*(float (__fastcall **)(SetupSFXPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 427); SetupTriggerPopup::goToPage((cocos2d::CCArray **)this, (int)v23, 0); SetupTriggerPopup::postSetup(this); return v7; } v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "Unique ID:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, -50.0, 60.0); cocos2d::CCPoint::operator+(&v30, v25); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 416, (char *)&v33, (__int64)&v30, 1, 3, 10, 1, 0.65, 0.0, 100.0, 2, 0, 0, 2, 0); if ( (v33 & 1) != 0 ) operator delete(v35); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "IsUnique", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 50.0, 60.0); cocos2d::CCPoint::operator+(&v30, v25); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x19Fu, &v33, (const cocos2d::CCPoint *)&v30, 0, 2u, 0, 1.0); if ( (v33 & 1) != 0 ) operator delete(v35); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "SFXGroup:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, -50.0, 0.0); cocos2d::CCPoint::operator+(&v30, v25); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 455, (char *)&v33, (__int64)&v30, 1, 2, 6, 1, 0.65, 0.0, 1000.0, 2, 0, 0, 2, 0); if ( (v33 & 1) != 0 ) operator delete(v35); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "Override", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 50.0, 10.0); cocos2d::CCPoint::operator+(&v30, v25); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1A4u, &v33, (const cocos2d::CCPoint *)&v30, 0, 2u, 0, 1.0); if ( (v33 & 1) != 0 ) operator delete(v35); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "Ignore\nVolume\nTest", 0x12u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 50.0, -40.0); cocos2d::CCPoint::operator+(&v30, v25); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1E9u, &v33, (const cocos2d::CCPoint *)&v30, 0, 2u, 0, 1.0); if ( (v33 & 1) != 0 ) operator delete(v35); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 10.0, 83.0); cocos2d::CCPoint::operator+(&v30, v25); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, &byte_11B8890, 0); SetupTriggerPopup::createPlusButton((__int64)this, 0, (const cocos2d::CCPoint *)&v30, &v33, 2u, 0, 0.8); if ( (v33 & 1) != 0 ) operator delete(v35); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 10.0, 23.0); cocos2d::CCPoint::operator+(&v30, v25); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, &byte_11B8890, 0); SetupTriggerPopup::createPlusButton((__int64)this, 1u, (const cocos2d::CCPoint *)&v30, &v33, 2u, 0, 0.8); if ( (v33 & 1) != 0 ) operator delete(v35); SetupAudioTriggerPopup::addProxVolControls((cocos2d::CCArray **)this, 3u); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "Speed +-", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, -91.0, -0.0); cocos2d::CCPoint::operator+(&v30, v26); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 596, (char *)&v33, (__int64)&v30, 0, 2, 6, 0, 0.65, 0.0, 12.0, 4, 0, 1, 2, 0); if ( (v33 & 1) != 0 ) operator delete(v35); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "Pitch +-", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 91.0, -0.0); cocos2d::CCPoint::operator+(&v30, v26); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 597, (char *)&v33, (__int64)&v30, 0, 2, 6, 0, 0.65, 0.0, 12.0, 4, 0, 1, 2, 0); if ( (v33 & 1) != 0 ) operator delete(v35); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, &unk_1191DD8, 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, -91.0, -39.0); cocos2d::CCPoint::operator+(&v30, v26); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 598, (char *)&v33, (__int64)&v30, 0, 1, 6, 0, 0.65, 0.0, 1.0, 4, 0, 1, 2, 0); if ( (v33 & 1) != 0 ) operator delete(v35); SetupTriggerPopup::toggleLimitValue((__int64 **)this, 596, 1); SetupTriggerPopup::toggleLimitValue((__int64 **)this, 597, 1); SetupTriggerPopup::toggleLimitValue((__int64 **)this, 598, 1); v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, "Pitch\nSteps", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 21.0, -39.0); cocos2d::CCPoint::operator+(&v30, v26); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x257u, &v33, (const cocos2d::CCPoint *)&v30, 0, 4u, 0, 1.0); if ( (v33 & 1) != 0 ) operator delete(v35); goto LABEL_34; } SetupAudioTriggerPopup::addTimeControls((cocos2d::CCArray **)this, 1, 10.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, -91.0, -78.0); cocos2d::CCPoint::operator+(&v27, v26); goto LABEL_29; } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source