// // LevelStatsInfoPopup::init from 0xcf97e8 to 0xcf9c24 (1084 bytes) // // 2 xrefs: // > LevelStatsInfoPopup::create @ 0xcf9d98 // > @ 0x4de18 // // 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:50 +0000 // __int64 __fastcall LevelStatsInfoPopup::init(LevelStatsInfoPopup *this, GJGameLevel *a2) { cocos2d::CCDirector *v4; // x0 unsigned int v5; // w22 cocos2d::CCDirector *v7; // x0 __int64 v8; // x25 const char *v9; // x2 __int64 v10; // x0 __int64 v11; // x24 void (__fastcall *v12)(__int64, _BYTE *); // x25 float v13; // s8 __int64 v14; // x24 void (__fastcall *v15)(__int64, _BYTE *); // x26 __int64 v16; // x23 void (__fastcall *v17)(__int64, _BYTE *); // x24 cocos2d::CCMenu *v18; // x0 __int64 v19; // x0 bool v20; // w4 __int64 v21; // x5 const char *v22; // x6 __int64 v23; // x0 __int64 v24; // x0 const char *v25; // x1 __int64 v26; // x23 __int64 v27; // x0 const char *v28; // x1 cocos2d::CCSprite *v29; // x20 __int64 v30; // x0 __int64 v31; // [xsp+70h] [xbp+70h] BYREF _BYTE v32[8]; // [xsp+78h] [xbp+78h] BYREF _BYTE v33[16]; // [xsp+80h] [xbp+80h] BYREF __int64 v34[2]; // [xsp+90h] [xbp+90h] BYREF void *v35; // [xsp+A0h] [xbp+A0h] v4 = (cocos2d::CCDirector *)(unsigned __int8)FLAlertLayer::init(this, 150); v5 = (unsigned __int8)v4; if ( (_BYTE)v4 ) { *((_QWORD *)this + 83) = a2; v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize(&v31, v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, *(float *)&v31 * 0.5, *((float *)&v31 + 1) * 0.5); *((_DWORD *)this + 182) = 1136525312; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v33, 0.0, 0.0, 94.0, 94.0); v8 = cocos2d::extension::CCScale9Sprite::create("square01_001.png", v33); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL))(v8, v32); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v8); *((_QWORD *)this + 90) = v8; v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Level Stats", "goldFont.fnt", v9); *((_QWORD *)this + 86) = v10; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 0.9); v11 = *((_QWORD *)this + 86); v12 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v11 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.5, 1.0); v12(v11, v33); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 86), 3); v13 = *((float *)this + 182) - 60.0; LevelStatsInfoPopup::buildStatsText(this, v34); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.5, 0.5); v14 = TextArea::create((char *)v34, "chatFont.fnt", (const cocos2d::CCPoint *)v33, 0, 0, 1.0, v13, 20.0); *((_QWORD *)this + 84) = v14; if ( (v34[0] & 1) != 0 ) { operator delete(v35); v14 = *((_QWORD *)this + 84); } v15 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v14 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.5, 0.5); v15(v14, v33); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 84), 3); LevelStatsInfoPopup::buildInfoText(this, v34); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.5, 0.5); v16 = TextArea::create((char *)v34, "chatFont.fnt", (const cocos2d::CCPoint *)v33, 0, 0, 1.0, v13, 20.0); *((_QWORD *)this + 85) = v16; if ( (v34[0] & 1) != 0 ) { operator delete(v35); v16 = *((_QWORD *)this + 85); } v17 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v16 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.5, 0.5); v17(v16, v33); v18 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 85), 3); v19 = cocos2d::CCMenu::create(v18); *((_QWORD *)this + 69) = v19; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v19, 5); v23 = ButtonSprite::create((ButtonSprite *)"OK", (const char *)&qword_58 + 2, 0, 0, 1.0, v20, v21, v22); v24 = CCMenuItemSpriteExtra::create(v23, 0, (__int64)this, (__int64)LevelStatsInfoPopup::onClose, 0); *((_QWORD *)this + 89) = v24; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v24); v26 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v25); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v26 + 160LL))(v26, 0.9); v27 = CCMenuItemSpriteExtra::create(v26, 0, (__int64)this, (__int64)LevelStatsInfoPopup::onPrevPage, 0); *((_QWORD *)this + 87) = v27; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v27); v29 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v28); cocos2d::CCSprite::setFlipX(v29, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v29 + 160LL))(v29, 0.9); v30 = CCMenuItemSpriteExtra::create((__int64)v29, 0, (__int64)this, (__int64)LevelStatsInfoPopup::onNextPage, 0); *((_QWORD *)this + 88) = v30; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v30); LevelStatsInfoPopup::updatePage(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source