// // EditorSFXActionConfigLayer::init from 0xcbea04 to 0xcbefcc (1480 bytes) // // 2 xrefs: // > EditorSFXActionConfigLayer::create @ 0xcbf230 // > @ 0xa3b10 // // 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:06:16 +0000 // __int64 __fastcall EditorSFXActionConfigLayer::init(EditorSFXActionConfigLayer *this, int a2, EditorSoundsLayer *a3) { unsigned __int8 v6; // w0 unsigned int v7; // w23 int v9; // w1 const char *v10; // x0 size_t v11; // x0 cocos2d::CCDirector *v12; // x0 cocos2d::CCDirector *v13; // x0 const char *v14; // x1 __int64 v15; // x20 __int64 v16; // x24 cocos2d::CCNode *v17; // x26 void (__fastcall *v18)(__int64, __int64 *); // x25 const char *v19; // x1 __int64 v20; // x24 __int64 v21; // x24 cocos2d::CCNode *v22; // x26 void (__fastcall *v23)(__int64, __int64 *); // x25 float v24; // s11 float v25; // s10 float v26; // s9 __int64 v27; // x24 void (__fastcall *v28)(__int64, __int64 *); // x25 ScrollableContentLayer *v29; // x24 cocos2d::CCMenu *v30; // x0 __int64 v31; // x0 const char *v32; // x6 __int64 v33; // x0 __int64 v34; // x24 cocos2d::CCNode *v35; // x26 void (__fastcall *v36)(__int64, __int64 *); // x25 const char *v37; // x1 ButtonSprite *v38; // x0 __int64 v39; // x0 __int64 v40; // x24 cocos2d::CCNode *v41; // x26 void (__fastcall *v42)(__int64, __int64 *); // x25 char *v43; // [xsp+88h] [xbp+88h] _BYTE v44[8]; // [xsp+98h] [xbp+98h] BYREF __int64 v45; // [xsp+A0h] [xbp+A0h] BYREF float v46; // [xsp+A8h] [xbp+A8h] BYREF float v47; // [xsp+ACh] [xbp+ACh] _BYTE v48[8]; // [xsp+B0h] [xbp+B0h] BYREF __int64 v49; // [xsp+B8h] [xbp+B8h] BYREF cocos2d::CCDirector *v50[2]; // [xsp+C0h] [xbp+C0h] BYREF void *v51; // [xsp+D0h] [xbp+D0h] v6 = SetupTriggerPopup::init(this, nullptr, nullptr, 400.0, 280.0, 7u, 0.0); v7 = v6; if ( v6 ) { *((_DWORD *)this + 256) = a2; *((_BYTE *)this + 904) = 1; *((_BYTE *)this + 596) = 1; *((_QWORD *)this + 130) = a3; SetupTriggerPopup::preSetup(this); qmemcpy(v44, "PWi", 3); SetupTriggerPopup::setCustomBGColor((__int64)this, (__int64)v44); v10 = (const char *)EditorSFXManager::actionToString((EditorSFXManager *)*((unsigned int *)this + 256), v9); v50[0] = nullptr; v43 = (char *)v10; v50[1] = nullptr; v51 = nullptr; v11 = strlen(v10); std::string::__init((__int64 *)v50, v43, v11); SetupTriggerPopup::addTitle((__int64)this, (__int64)v50); v12 = (cocos2d::CCDirector *)LOBYTE(v50[0]); if ( ((__int64)v50[0] & 1) != 0 ) operator delete(v51); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize(&v45, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v46, *(float *)&v45 * 0.5, *((float *)&v45 + 1) * 0.5); v15 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v14); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v15 + 160LL))(v15, 0.7); v16 = CCMenuItemSpriteExtra::create(v15, 0, (__int64)this, 1368, 1); CCMenuItemSpriteExtra::setSizeMult(v16, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v16); v17 = *((cocos2d::CCNode **)this + 69); v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v48, v46 - (float)(*((float *)this + 183) * 0.5), v47 + (float)(*((float *)this + 184) * 0.5)); cocos2d::CCNode::convertToNodeSpace(&v49, v17, (const cocos2d::CCPoint *)v48); v18(v16, &v49); v20 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn_001.png", v19); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 160LL))(v20, 0.5); v21 = CCMenuItemSpriteExtra::create(v20, 0, (__int64)this, (__int64)EditorSFXActionConfigLayer::onOpenSettings, 0); CCMenuItemSpriteExtra::setSizeMult(v21, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v21); v22 = *((cocos2d::CCNode **)this + 69); v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v21 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v48, (float)(v46 + (float)(*((float *)this + 183) * 0.5)) - 20.0, (float)(v47 + (float)(*((float *)this + 184) * 0.5)) - 20.0); cocos2d::CCNode::convertToNodeSpace(&v49, v22, (const cocos2d::CCPoint *)v48); v23(v21, &v49); v24 = (float)(*((float *)&v45 + 1) * 0.5) + -100.0; v25 = *((float *)this + 183) - 30.0; v26 = (float)(v47 - (float)(*((float *)this + 184) * 0.5)) + 20.0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v49, v25, (float)((float)(*((float *)&v45 + 1) * 0.5) + 96.0) - v24); v27 = ScrollableContentLayer::create((const cocos2d::CCSize *)&v49); *((_QWORD *)this + 131) = v27; v28 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v49, -(float)((float)(v25 * 0.5) - (float)(*(float *)&v45 * 0.5)), v24); v28(v27, &v49); v29 = *((ScrollableContentLayer **)this + 131); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, 2.0, 0.0); ScrollableContentLayer::setThumbOffset(v29, (__int64)&v49); v30 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 131), 5); v31 = cocos2d::CCMenu::create(v30); *((_QWORD *)this + 132) = v31; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v31 + 296LL))(v31, &unk_155F198); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 132) + 320LL))(*((_QWORD *)this + 132), &unk_155F1A0); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 132) + 184LL))(*((_QWORD *)this + 132), &unk_155F198); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(*((_QWORD *)this + 131) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 131) + 416LL), *((_QWORD *)this + 132), 2); v33 = ButtonSprite::create( (ButtonSprite *)"+ Add Sound", (const char *)off_50, 0, 1, 0.5, "bigFont.fnt", "GJ_button_01.png", v32, 26.0); v34 = CCMenuItemSpriteExtra::create(v33, 0, (__int64)this, (__int64)EditorSFXActionConfigLayer::onAddSound, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v34); v35 = *((cocos2d::CCNode **)this + 69); v36 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v34 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, (float)(v46 - (float)(*((float *)this + 183) * 0.5)) + 60.0, v26); cocos2d::CCNode::convertToNodeSpace(&v49, v35, (const cocos2d::CCPoint *)v48); v36(v34, &v49); v38 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"shuffleIcon_001.png", v37); v39 = ButtonSprite::create( v38, (cocos2d::CCSprite *)((char *)&qword_20 + 2), 0, 1, 36.0, 1.0, (cocos2d::CCSprite *)"GJ_button_04.png", nullptr, 0.0); *((_QWORD *)this + 129) = v39; (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v39 + 632) + 160LL))(*(_QWORD *)(v39 + 632), 1.8); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 129) + 160LL))(*((_QWORD *)this + 129), 0.6); v40 = CCMenuItemSpriteExtra::create( *((_QWORD *)this + 129), 0, (__int64)this, (__int64)EditorSFXActionConfigLayer::onToggleMode, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v40 + 72LL))(v40, 4294967242LL); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v40); v41 = *((cocos2d::CCNode **)this + 69); v42 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, (float)(v46 + (float)(*((float *)this + 183) * 0.5)) - 25.0, v26); cocos2d::CCNode::convertToNodeSpace(&v49, v41, (const cocos2d::CCPoint *)v48); v42(v40, &v49); EditorSFXActionConfigLayer::refreshModeButtons(this); SetupTriggerPopup::postSetup(this); EditorSFXActionConfigLayer::refreshRows(this); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source