// // ScrollViewPopup::initPopup from 0xb98d98 to 0xb992bc (1316 bytes) // // 3 xrefs: // > MusicChangelogPopup::init @ 0xb893f8 // > SFXChangelogPopup::init @ 0xb98584 // > @ 0xb2e58 // // 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:42 +0000 // __int64 __fastcall ScrollViewPopup::initPopup( ScrollableContentLayer **this, cocos2d::CCArray *a2, cocos2d::CCLabelBMFont *a3, cocos2d::CCLabelBMFont *a4, float a5, float a6) { unsigned __int8 v12; // w0 unsigned int v13; // w22 cocos2d::CCDirector *v15; // x0 cocos2d::CCDirector *v16; // x0 __int64 v17; // x24 const char *v18; // x2 __int64 v19; // x24 void (__fastcall *v20)(__int64, _BYTE *); // x25 __int64 v21; // x0 const char *v22; // x1 __int64 v23; // x24 __int64 v24; // x24 void (__fastcall *v25)(__int64, _BYTE *); // x25 float v26; // s13 float v27; // s9 __int64 v28; // x24 __int64 v29; // x24 float v30; // s1 void (__fastcall *v31)(__int64, _BYTE *); // x25 const char *v32; // x2 cocos2d::CCArray *v33; // x0 __int64 v34; // x24 __int64 v35; // x23 void (__fastcall *v36)(__int64, _BYTE *); // x3 void (__fastcall *v37)(__int64, _BYTE *); // x25 void (__fastcall *v38)(__int64, _BYTE *); // x25 float v39; // s0 void (__fastcall *v40)(__int64, _BYTE *); // [xsp+98h] [xbp+98h] __int64 v41; // [xsp+A8h] [xbp+A8h] BYREF float v42; // [xsp+B0h] [xbp+B0h] BYREF float v43; // [xsp+B4h] [xbp+B4h] _BYTE v44[8]; // [xsp+B8h] [xbp+B8h] BYREF float v45[2]; // [xsp+C0h] [xbp+C0h] BYREF _BYTE v46[16]; // [xsp+C8h] [xbp+C8h] BYREF v12 = FLAlertLayer::init((FLAlertLayer *)this, 150); v13 = v12; if ( v12 ) { (*((void (__fastcall **)(ScrollableContentLayer **, __int64))*this + 134))(this, 1); v15 = (cocos2d::CCDirector *)(&dword_0 + 1); *((_BYTE *)this + 596) = 1; if ( a2 ) { *(this + 83) = a2; v15 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a2); } v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v15); cocos2d::CCDirector::getWinSize(&v41, v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v42, *(float *)&v41 * 0.5, *((float *)&v41 + 1) * 0.5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v46, 0.0, 0.0, 80.0, 80.0); v17 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v46); v40 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v17 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v46, a5, a6); v40(v17, v46); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v17 + 184LL))(v17, &v42); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 912LL))(v17, 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))( *(this + 73), v17, 0xFFFFFFFFLL); v19 = cocos2d::CCLabelBMFont::create(a3, "bigFont.fnt", v18); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v19 + 160LL))(v19, 0.6); v20 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v19 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, v42, (float)(v43 + (float)(a6 * 0.5)) - 16.0); v20(v19, v46); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v19); *((_DWORD *)this + 160) = -1; v21 = cocos2d::CCMenu::create((cocos2d::CCMenu *)0xFFFFFFFFLL); *(this + 69) = (ScrollableContentLayer *)v21; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v21 + 184LL))(v21, &unk_155E780); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), *(this + 69), 10); v23 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v22); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v23 + 160LL))(v23, 0.8); v24 = CCMenuItemSpriteExtra::create(v23, 0, (__int64)this, (__int64)ScrollViewPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v24, 1.2); v25 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v24 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v46, (float)(v42 - (float)(a5 * 0.5)) + 6.0, (float)(v43 + (float)(a6 * 0.5)) - 6.0); v25(v24, v46); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v24); v26 = a5 - 20.0; v27 = (float)(a6 - 36.0) - 14.0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v44, v26, v27); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v45, v42, (float)((float)(v43 - (float)(a6 * 0.5)) + 14.0) + (float)(v27 * 0.5)); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v46, 0.0, 0.0, 40.0, 40.0); v28 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v46); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v28 + 320LL))(v28, v44); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v28 + 184LL))(v28, v45); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v28 + 912LL))(v28, 60); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v28, 4); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v46, (const cocos2d::CCSize *)v44); v29 = ScrollableContentLayer::create((const cocos2d::CCSize *)v46); v30 = v45[1]; *(this + 84) = (ScrollableContentLayer *)v29; v31 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v29 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, v45[0] - (float)(v26 * 0.5), v30 - (float)(v27 * 0.5)); v31(v29, v46); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), *(this + 84), 5); v33 = *(this + 83); v34 = *((_QWORD *)*(this + 84) + 52); if ( v33 && (unsigned int)cocos2d::CCArray::count(v33) ) { v39 = (*((float (__fastcall **)(ScrollableContentLayer **, __int64, float, float))*this + 168))( this, v34, v26, v27); if ( v27 > v39 ) v39 = (float)(a6 - 36.0) - 14.0; ScrollableContentLayer::setContentHeight(*(this + 84), v39); } else { v35 = cocos2d::CCLabelBMFont::create(a4, "chatFont.fnt", v32); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v35 + 160LL))(v35, 0.6); v36 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v35 + 1072LL); memset(v46, 180, 3); v36(v35, v46); v37 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v35 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, 0.5, 0.5); v37(v35, v46); v38 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v35 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, v26 * 0.5, (float)-v27 * 0.5); v38(v35, v46); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v34 + 456LL))(v34, v35); ScrollableContentLayer::setContentHeight(*(this + 84), v27); } } return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source