// // LevelBadgePopup::buildCell from 0x747660 to 0x7477da (378 bytes) // // 1 xrefs: // > LevelBadgePopup::loadLevelsFinished @ 0x74eef6 // // 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:58:43 +0000 // int __fastcall LevelBadgePopup::buildCell(LevelBadgePopup *this, cocos2d::CCObject *a2) { int v4; // r0 int v5; // r0 float v6; // s19 float v7; // s18 float v8; // s20 int v9; // r5 void (__fastcall *v10)(int, _BYTE *); // r8 void (__fastcall *v11)(int, _BYTE *); // r8 cocos2d::CCDirector *v12; // r0 int v13; // r0 cocos2d::CCTouchDispatcher *v14; // r0 float v15; // r2 int v16; // r8 LevelListCell *v17; // r5 int v18; // r2 int v19; // r2 void (__fastcall *v20)(LevelListCell *, _BYTE *); // r8 float v22[2]; // [sp+Ch] [bp-20h] BYREF _BYTE v23[16]; // [sp+14h] [bp-18h] BYREF cocos2d::CCDirector::sharedDirector(this); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v22); if ( *((_BYTE *)this + 528) ) v4 = 25; else v4 = 4; *(float *)&v5 = COERCE_FLOAT(CustomListView::getCellHeight(v4)); v6 = v22[0] * 0.5; v7 = v22[1] * 0.5; v8 = *(float *)&v5; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v23, 0.0, 0.0, 80.0, 80.0); v9 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v23); v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v23, 370.0, v8 + 14.0); v10(v9, v23); v11 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, v6, v7); v11(v9, v23); v12 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v9, 1); v13 = cocos2d::CCDirector::sharedDirector(v12); v14 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v13 + 80))(v13); cocos2d::CCTouchDispatcher::registerForcePrio(v14, this, 2, 0); v16 = *((unsigned __int8 *)this + 528); if ( *((_BYTE *)this + 528) ) { v17 = LevelListCell::create((LevelListCell *)0x43B20000, v8, v15); LevelListCell::loadFromList(v17, a2); LevelListCell::updateBGColor(v17, 0, v18); } else { v17 = LevelCell::create((LevelCell *)0x43B20000, v8, v15); LevelCell::loadFromLevel(v17, a2); LevelCell::updateBGColor(v17, v16, v19); } v20 = *(void (__fastcall **)(LevelListCell *, _BYTE *))(*(_DWORD *)v17 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, v6 - 178.0, v7 - (float)(v8 * 0.5)); v20(v17, v23); (*(void (__fastcall **)(_DWORD, LevelListCell *, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v17, 2); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v23, v6 - 185.0, v7 - (float)((float)(v8 + 14.0) * 0.5), 370.0, v8 + 14.0); return cocos2d::CCRect::operator=((char *)this + 532, v23); }
GD Web Decomp Icon

GD Web Decomp

Raw Source