// // EditorSFXActionConfigLayer::init from 0x77c57c to 0x77ca34 (1208 bytes) // // 1 xrefs: // > EditorSFXActionConfigLayer::create @ 0x77cc60 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:59:24 +0000 // GameManager *__fastcall EditorSFXActionConfigLayer::init( EditorSFXManager **this, EditorSFXManager *a2, EditorSoundsLayer *a3) { GameManager *v6; // r9 int v7; // r1 const char *v8; // r0 const char *v9; // r5 size_t v10; // r0 cocos2d::CCDirector *v11; // r0 const char *v12; // r1 int v13; // r5 int v14; // r5 const cocos2d::CCPoint *v15; // r11 void (__fastcall *v16)(int, _DWORD *); // r10 const char *v17; // r1 int v18; // r10 int v19; // r10 void (__fastcall *v20)(int, _DWORD *); // r11 float v21; // s17 float v22; // s18 float v23; // s19 int v24; // r1 int v25; // r2 int v26; // r3 int *v27; // r0 float v28; // s18 int *v29; // r8 void (__fastcall *v30)(int *, _DWORD *); // r10 ScrollableContentLayer *v31; // r8 cocos2d::CCMenu *v32; // r0 EditorSFXManager *v33; // r0 ButtonSprite *v34; // r0 int v35; // r11 const char *v36; // r1 ButtonSprite *v37; // r0 ButtonSprite *v38; // r0 int v39; // r0 int v40; // r5 const cocos2d::CCPoint *v41; // r11 void (__fastcall *v42)(int, _BYTE *); // r10 float v44; // [sp+10h] [bp-6Ch] float v45; // [sp+14h] [bp-68h] cocos2d::CCPoint *v46; // [sp+18h] [bp-64h] cocos2d::CCPoint *v47; // [sp+18h] [bp-64h] cocos2d::CCPoint *v48; // [sp+1Ch] [bp-60h] _BYTE v49[4]; // [sp+24h] [bp-58h] BYREF float v50; // [sp+28h] [bp-54h] BYREF float v51; // [sp+2Ch] [bp-50h] float v52; // [sp+30h] [bp-4Ch] BYREF float v53; // [sp+34h] [bp-48h] _BYTE v54[8]; // [sp+38h] [bp-44h] BYREF _BYTE v55[8]; // [sp+40h] [bp-3Ch] BYREF int v56; // [sp+48h] [bp-34h] int v57; // [sp+4Ch] [bp-30h] int (__fastcall *v58)(EditorSFXSettingsPopup **, cocos2d::CCObject *); // [sp+50h] [bp-2Ch] int v59; // [sp+54h] [bp-28h] _DWORD v60[2]; // [sp+58h] [bp-24h] BYREF _DWORD v61[2]; // [sp+60h] [bp-1Ch] BYREF int v62[3]; // [sp+68h] [bp-14h] BYREF v6 = SetupTriggerPopup::init((SetupTriggerPopup *)this, nullptr, nullptr, 400.0, 280.0, &byte_7, 0.0); if ( v6 ) { *(this + 181) = a3; *((_BYTE *)this + 652) = 1; *((_BYTE *)this + 468) = 1; *(this + 179) = a2; SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); qmemcpy(v49, "PWi", 3); SetupTriggerPopup::setCustomBGColor((int)this, (int)v49); v8 = (const char *)EditorSFXManager::actionToString(*(this + 179), v7); memset(v62, 0, sizeof(v62)); v9 = v8; v10 = strlen(v8); std::string::__init(v62, v9, v10); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)v62); v11 = (cocos2d::CCDirector *)std::string::~string((int)v62); cocos2d::CCDirector::sharedDirector(v11); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v50); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v52, v50 * 0.5, v51 * 0.5); v13 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v12); (*(void (__fastcall **)(int, int))(*(_DWORD *)v13 + 80))(v13, 1060320051); v56 = 684; v57 = 1; v14 = CCMenuItemSpriteExtra::create(v13, 0, (int)this, 684, 1); CCMenuItemSpriteExtra::setSizeMult(v14, 1.2); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v14); v15 = *(this + 111); v16 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v60, v52 - (float)(*((float *)this + 139) * 0.5), v53 + (float)(*((float *)this + 140) * 0.5)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v61, v15); v16(v14, v61); v18 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn_001.png", v17); (*(void (__fastcall **)(int, float))(*(_DWORD *)v18 + 80))(v18, 0.5); v58 = EditorSFXActionConfigLayer::onOpenSettings; v59 = 0; v19 = CCMenuItemSpriteExtra::create(v18, 0, (int)this, (int)EditorSFXActionConfigLayer::onOpenSettings, 0); CCMenuItemSpriteExtra::setSizeMult(v19, 1.2); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v19); v20 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v19 + 92); v46 = *(this + 111); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v60, (float)(v52 + (float)(*((float *)this + 139) * 0.5)) - 20.0, (float)(v53 + (float)(*((float *)this + 140) * 0.5)) - 20.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v61, v46); v20(v19, v61); v21 = (float)(v53 - (float)(*((float *)this + 140) * 0.5)) + 20.0; v22 = *((float *)this + 139) - 30.0; v23 = (float)(v51 * 0.5) - 100.0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v61, v22, (float)((float)(v51 * 0.5) + 96.0) - v23); v27 = ScrollableContentLayer::create((const cocos2d::CCSize *)v61, v24, v25, v26); v28 = (float)(v50 * 0.5) - (float)(v22 * 0.5); *(this + 182) = (EditorSFXManager *)v27; v29 = v27; v30 = *(void (__fastcall **)(int *, _DWORD *))(*v27 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, v28, v23); v30(v29, v61); v31 = *(this + 182); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 2.0, 0.0); ScrollableContentLayer::setThumbOffset(v31, (int)v61); v32 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, _DWORD, int))(*(_DWORD *)*(this + 115) + 232))( *(this + 115), *(this + 182), 5); v33 = (EditorSFXManager *)cocos2d::CCMenu::create(v32); *(this + 183) = v33; (*(void (__fastcall **)(EditorSFXManager *, void *))(*(_DWORD *)v33 + 148))(v33, &unk_D2E278); (*(void (__fastcall **)(_DWORD, void *))(*(_DWORD *)*(this + 183) + 160))(*(this + 183), &unk_D2E280); (*(void (__fastcall **)(_DWORD, void *))(*(_DWORD *)*(this + 183) + 92))(*(this + 183), &unk_D2E278); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)*(this + 182) + 80) + 232))( *((_DWORD *)*(this + 182) + 80), *(this + 183), 2); v34 = ButtonSprite::create( (ButtonSprite *)"+ Add Sound", (const char *)&dword_50, 0, 0.5, 1, "bigFont.fnt", "GJ_button_01.png", (const char *)0x41D00000, v44); v60[0] = EditorSFXActionConfigLayer::onAddSound; v60[1] = 0; v35 = CCMenuItemSpriteExtra::create((int)v34, 0, (int)this, (int)EditorSFXActionConfigLayer::onAddSound, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v35); v47 = *(cocos2d::CCPoint **)(*(_DWORD *)v35 + 92); v48 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, (float)(v52 - (float)(*((float *)this + 139) * 0.5)) + 60.0, v21); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v61, v48); ((void (__fastcall *)(int, _DWORD *))v47)(v35, v61); v37 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"shuffleIcon_001.png", v36); v38 = ButtonSprite::create( v37, (cocos2d::CCSprite *)((char *)&dword_20 + 2), 0, 36.0, 1.0, 1, "GJ_button_04.png", nullptr, 0.0, v45); *(this + 180) = v38; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)v38 + 135) + 80))(*((_DWORD *)v38 + 135), 1072064102); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 180) + 80))(*(this + 180), 1058642330); v39 = (int)*(this + 180); v61[0] = EditorSFXActionConfigLayer::onToggleMode; v61[1] = 0; v40 = CCMenuItemSpriteExtra::create(v39, 0, (int)this, (int)EditorSFXActionConfigLayer::onToggleMode, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v40 + 36))(v40, -54); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v40); v41 = *(this + 111); v42 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v40 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, (float)(v52 + (float)(*((float *)this + 139) * 0.5)) - 25.0, v21); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v55, v41); v42(v40, v55); EditorSFXActionConfigLayer::refreshModeButtons((EditorSFXActionConfigLayer *)this); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); EditorSFXActionConfigLayer::refreshRows((EditorSFXActionConfigLayer *)this); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source