// // EditorSoundsSettingsPopup::init from 0x78b760 to 0x78b9d2 (626 bytes) // // 1 xrefs: // > EditorSoundsSettingsPopup::create @ 0x78bb5c // // 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:37 +0000 // GameManager *__fastcall EditorSoundsSettingsPopup::init(EditorSoundsSettingsPopup *this, EditorSoundsLayer *a2) { GameManager *v4; // r0 GameManager *v5; // r8 int v6; // r6 void (__fastcall *v7)(int, _BYTE *); // r10 void (__fastcall *v8)(int, _BYTE *); // r10 const char *v9; // r2 int v10; // r6 void (__fastcall *v11)(int, _BYTE *); // r10 cocos2d::CCMenu *v12; // r0 int v13; // r0 int v14; // r6 void (__fastcall *v15)(int, _BYTE *); // r10 ButtonSprite *v16; // r0 int v17; // r10 ButtonSprite *v18; // r0 int v19; // r9 void (__fastcall *v20)(int, _BYTE *); // r10 const char *v21; // r1 int v22; // r0 int v23; // r6 void (__fastcall *v24)(int, _BYTE *); // r5 float v26; // [sp+10h] [bp-44h] float v27; // [sp+10h] [bp-44h] void (__fastcall *v28)(int, _BYTE *); // [sp+14h] [bp-40h] float v29; // [sp+1Ch] [bp-38h] BYREF float v30; // [sp+20h] [bp-34h] _DWORD (*v31)(EditorSoundsSettingsPopup *__hidden, cocos2d::CCObject *); // [sp+24h] [bp-30h] int v32; // [sp+28h] [bp-2Ch] _DWORD (*v33)(EditorSoundsSettingsPopup *__hidden, cocos2d::CCObject *); // [sp+2Ch] [bp-28h] int v34; // [sp+30h] [bp-24h] int (__fastcall *v35)(EditorSoundsSettingsPopup *, cocos2d::CCObject *); // [sp+34h] [bp-20h] int v36; // [sp+38h] [bp-1Ch] _BYTE v37[16]; // [sp+3Ch] [bp-18h] BYREF v4 = FLAlertLayer::init(this, 150); v5 = v4; if ( v4 ) { *((_DWORD *)this + 131) = a2; *((_BYTE *)this + 468) = 1; cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v29); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v37, 0.0, 0.0, 80.0, 80.0); v6 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v37); v7 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v37, 280.0, 160.0); v7(v6, v37); v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, v29 * 0.5, v30 * 0.5); v8(v6, v37); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v6, -2); v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Editor SFX", "goldFont.fnt", v9); (*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 80))(v10, 1060320051); v11 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v10 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, v29 * 0.5, (float)((float)(v30 * 0.5) + 80.0) - 20.0); v11(v10, v37); v12 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), v10); v13 = cocos2d::CCMenu::create(v12); *((_DWORD *)this + 111) = v13; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v13, 10); v14 = *((_DWORD *)this + 111); v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, v29 * 0.5, v30 * 0.5); v15(v14, v37); v16 = ButtonSprite::create( (ButtonSprite *)"Download used SFX", (const char *)&dword_A8 + 2, 0, 0.55, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(28.0), v26); v31 = EditorSoundsSettingsPopup::onDownloadAll; v32 = 0; v17 = CCMenuItemSpriteExtra::create((int)v16, 0, (int)this, (int)EditorSoundsSettingsPopup::onDownloadAll, 0); v28 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v17 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, 12.0); v28(v17, v37); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v17); v18 = ButtonSprite::create( (ButtonSprite *)"Clear All bindings", (const char *)&dword_A8 + 2, 0, 0.55, 1, "bigFont.fnt", "GJ_button_06.png", COERCE_CONST_CHAR_(28.0), v27); v33 = EditorSoundsSettingsPopup::onClearAll; v34 = 0; v19 = CCMenuItemSpriteExtra::create((int)v18, 0, (int)this, (int)EditorSoundsSettingsPopup::onClearAll, 0); v20 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, -28.0); v20(v19, v37); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v19); v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v21); v35 = EditorSoundsSettingsPopup::onClose; v36 = 0; v23 = CCMenuItemSpriteExtra::create(v22, 0, (int)this, (int)EditorSoundsSettingsPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v23, 1.5); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v23); v24 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v23 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, -130.0, 70.0); v24(v23, v37); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source