// // ScrollViewPopup::initPopup from 0x6c9b44 to 0x6c9ede (922 bytes) // // 2 xrefs: // > MusicChangelogPopup::init @ 0x6c0c9e // > SFXChangelogPopup::init @ 0x6c94de // // 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:56:58 +0000 // GameManager *__fastcall ScrollViewPopup::initPopup( cocos2d::CCArray **this, cocos2d::CCArray *a2, cocos2d::CCLabelBMFont *a3, cocos2d::CCLabelBMFont *a4, float a5, float a6) { GameManager *v10; // r9 cocos2d::CCDirector *v11; // r0 int v12; // r6 const char *v13; // r2 int v14; // r6 void (__fastcall *v15)(int, _BYTE *); // r8 cocos2d::CCMenu *v16; // r0 cocos2d::CCArray *v17; // r0 const char *v18; // r1 int v19; // r6 int v20; // r6 void (__fastcall *v21)(int, _BYTE *); // r8 float v22; // s18 float v23; // s16 int v24; // r6 int v25; // r1 int v26; // r2 int v27; // r3 int *v28; // r0 float v29; // r1 float v30; // s15 int *v31; // r6 void (__fastcall *v32)(int *, _BYTE *); // r8 const char *v33; // r2 cocos2d::CCArray *v34; // r0 int v35; // r8 int v36; // r6 void (__fastcall *v37)(int, _BYTE *); // r2 void (__fastcall *v38)(int, _BYTE *); // r10 void (__fastcall *v39)(int, _BYTE *); // r10 float v40; // r1 ScrollableContentLayer *v41; // r0 float v43; // s15 void (__fastcall *v44)(int, _BYTE *); // [sp+Ch] [bp-48h] float v45[2]; // [sp+14h] [bp-40h] BYREF float v46; // [sp+1Ch] [bp-38h] BYREF float v47; // [sp+20h] [bp-34h] _BYTE v48[8]; // [sp+24h] [bp-30h] BYREF float v49[4]; // [sp+2Ch] [bp-28h] BYREF _BYTE v50[16]; // [sp+3Ch] [bp-18h] BYREF v10 = FLAlertLayer::init((FLAlertLayer *)this, 150); if ( v10 ) { v11 = (cocos2d::CCDirector *)(*((int (__fastcall **)(cocos2d::CCArray **, int))*this + 134))(this, 1); *((_BYTE *)this + 468) = 1; if ( a2 ) { *(this + 130) = a2; v11 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a2); } cocos2d::CCDirector::sharedDirector(v11); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v45); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v46, v45[0] * 0.5, v45[1] * 0.5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v50, 0.0, 0.0, 80.0, 80.0); v12 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v50); v44 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v50, a5, a6); v44(v12, v50); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v12 + 92))(v12, &v46); (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 456))(v12, 255); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v12, -1); v14 = cocos2d::CCLabelBMFont::create(a3, "bigFont.fnt", v13); (*(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 80))(v14, 1058642330); v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, v46, (float)((float)(a6 * 0.5) + v47) - 16.0); v15(v14, v50); v16 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v14); *(this + 125) = (cocos2d::CCArray *)-1; v17 = (cocos2d::CCArray *)cocos2d::CCMenu::create(v16); *(this + 111) = v17; (*(void (__fastcall **)(cocos2d::CCArray *, void *))(*(_DWORD *)v17 + 92))(v17, &unk_D2D880); (*(void (__fastcall **)(_DWORD, _DWORD, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), *(this + 111), 10); v19 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v18); (*(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 80))(v19, 1061997773); LODWORD(v49[2]) = ScrollViewPopup::onClose; v49[3] = 0.0; v20 = CCMenuItemSpriteExtra::create(v19, 0, (int)this, (int)ScrollViewPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v20, 1.2); v21 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v20 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v50, (float)(v46 - (float)(a5 * 0.5)) + 6.0, (float)((float)(a6 * 0.5) + v47) - 6.0); v21(v20, v50); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v20); v22 = a5 - 20.0; v23 = (float)(a6 - 36.0) - 14.0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v48, a5 - 20.0, v23); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v49, v46, (float)((float)(v47 - (float)(a6 * 0.5)) + 14.0) + (float)(v23 * 0.5)); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v50, 0.0, 0.0, 40.0, 40.0); v24 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v50); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v24 + 160))(v24, v48); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v24 + 92))(v24, v49); (*(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 456))(v24, 60); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v24, 4); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v50, (const cocos2d::CCSize *)v48); v28 = ScrollableContentLayer::create((const cocos2d::CCSize *)v50, v25, v26, v27); v29 = v49[0] - (float)((float)(a5 - 20.0) * 0.5); v30 = v49[1] - (float)(v23 * 0.5); *(this + 131) = (cocos2d::CCArray *)v28; v31 = v28; v32 = *(void (__fastcall **)(int *, _BYTE *))(*v28 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, v29, v30); v32(v31, v50); (*(void (__fastcall **)(_DWORD, _DWORD, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), *(this + 131), 5); v34 = *(this + 130); v35 = *((_DWORD *)*(this + 131) + 80); if ( v34 && cocos2d::CCArray::count(v34) ) { v43 = COERCE_FLOAT( (*((int (__fastcall **)(cocos2d::CCArray **, int, float, float))*this + 168))( this, v35, COERCE_FLOAT(LODWORD(v22)), COERCE_FLOAT(LODWORD(v23)))); v41 = *(this + 131); if ( v43 >= v23 ) v40 = v43; else v40 = (float)(a6 - 36.0) - 14.0; } else { v36 = cocos2d::CCLabelBMFont::create(a4, "chatFont.fnt", v33); (*(void (__fastcall **)(int, int))(*(_DWORD *)v36 + 80))(v36, 1058642330); v37 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v36 + 536); memset(v50, 180, 3); v37(v36, v50); v38 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v36 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, 0.5, 0.5); v38(v36, v50); v39 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v36 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, v22 * 0.5, -(float)(v23 * 0.5)); v39(v36, v50); (*(void (__fastcall **)(int, int))(*(_DWORD *)v35 + 228))(v35, v36); v40 = (float)(a6 - 36.0) - 14.0; v41 = *(this + 131); } ScrollableContentLayer::setContentHeight(v41, v40); } return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source