// // LevelListCell::loadFromList from 0x4294c8 to 0x42a35e (3734 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x4340c6 // > LevelBadgePopup::buildCell @ 0x74773e // // 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:48:07 +0000 // int __fastcall LevelListCell::loadFromList(LevelListCell *this, GJLevelList *a2) { cocos2d::CCObject *v4; // r0 const char *v5; // r1 cocos2d::CCSprite *v6; // r0 int v7; // r5 void (__fastcall *v8)(int, _DWORD *); // r8 float v9; // s17 GameStatsManager *v10; // r0 const char *v11; // r1 GameStatsManager *v12; // r0 void (__fastcall *v13)(int, _DWORD *); // r7 int v14; // r10 const char *v15; // r1 int v16; // r10 void (__fastcall *v17)(int, _DWORD *); // r7 int v18; // r11 const char *v19; // r2 cocos2d::CCLabelBMFont *v20; // r0 int v21; // r7 void (__fastcall *v22)(int, _DWORD *); // r11 void (__fastcall *v23)(int, _DWORD *); // r11 int v24; // r10 void (__fastcall *v25)(int, _DWORD *); // r2 int v26; // r3 const char *v27; // r2 int v28; // r7 void (__fastcall *v29)(int, int); // r8 int v30; // r0 cocos2d::CCLabelBMFont *v31; // r0 cocos2d::CCLabelBMFont *v32; // r5 void (__fastcall *v33)(cocos2d::CCLabelBMFont *, _DWORD *); // r7 void (__fastcall *v34)(cocos2d::CCLabelBMFont *, _DWORD *); // r7 const char *v35; // r1 cocos2d::CCString *v36; // r0 cocos2d::CCLabelBMFont *CString; // r0 const char *v38; // r2 int v39; // r7 void (__fastcall *v40)(int, _DWORD *); // r8 float v41; // s17 const cocos2d::CCSize *v42; // r0 void (__fastcall *v43)(int, _DWORD *); // r10 int v44; // r11 char *v45; // r0 char *v46; // r7 ButtonSprite *v47; // r7 cocos2d::CCMenu *v48; // r0 float v49; // s17 void (__fastcall *v50)(cocos2d::CCPoint *, _DWORD *); // r8 float *v51; // r0 const char *v52; // r1 cocos2d::CCString *v53; // r0 cocos2d::CCLabelBMFont *v54; // r7 const char *v55; // r2 cocos2d::CCLabelBMFont *v56; // r7 int v57; // r8 float v58; // s17 float v59; // r0 int v60; // r7 void (__fastcall *v61)(int, _DWORD *); // r8 const char *v62; // r1 int v63; // r7 void (__fastcall *v64)(int, _DWORD *); // r8 float v65; // s17 float *v66; // r0 const char *v67; // r1 float *v68; // r8 void (__fastcall *v69)(float *, _DWORD *); // r3 char v70; // r2 float v71; // s17 void (__fastcall *v72)(float *, _DWORD *); // r9 void (__fastcall *v73)(float *, _DWORD *); // r9 float v74; // s15 float v75; // s15 void (__fastcall *v76)(float *, _DWORD *); // r9 float v77; // s14 float v78; // s15 float v79; // r3 cocos2d::CCString *v80; // r0 cocos2d::CCLabelBMFont *v81; // r0 const char *v82; // r2 int v83; // r9 void (__fastcall *v84)(int, _DWORD *); // r10 int v85; // r11 const char *v86; // r1 __int64 v87; // r0 float v88; // s15 int v89; // r11 void (__fastcall *v90)(int, _DWORD *); // r9 const char *v91; // r1 int v92; // r9 int v93; // r10 cocos2d::CCLabelBMFont *v94; // r0 cocos2d::CCLabelBMFont *v95; // r6 void (__fastcall *v96)(cocos2d::CCLabelBMFont *, _DWORD *); // r10 cocos2d::CCSpriteFrameCache *v97; // r0 void (__fastcall *v98)(int, int); // r8 cocos2d::CCSpriteFrameCache *v99; // r0 const char *v100; // r1 int v101; // r0 void (__fastcall *v102)(int, _DWORD *); // r10 float v103; // s16 float v104; // s17 float v105; // s16 int v106; // r0 const char *v107; // r2 cocos2d::CCLabelBMFont *v108; // r0 cocos2d::CCLabelBMFont *v109; // r6 void (__fastcall *v110)(cocos2d::CCLabelBMFont *, _DWORD *); // r10 int v111; // r10 const char *v112; // r1 int v113; // r6 int v114; // r9 void (__fastcall *v115)(int, _DWORD *); // r10 int v116; // r7 int v117; // r9 const char *v118; // r1 int v119; // r7 int v120; // r10 void (__fastcall *v121)(int, _DWORD *); // r10 float v122; // s16 float v123; // s17 float v124; // s16 int v125; // r0 cocos2d::CCString *v126; // r0 cocos2d::CCLabelBMFont *v127; // r0 const char *v128; // r2 cocos2d::CCLabelBMFont *v129; // r6 void (__fastcall *v130)(cocos2d::CCLabelBMFont *, _DWORD *); // r9 void (__fastcall *v131)(cocos2d::CCLabelBMFont *, _DWORD *); // r9 int v132; // r10 int v133; // r9 void (__fastcall *v134)(int, _DWORD *); // r7 float *v135; // r0 const char *v136; // r2 char *v137; // r0 int v138; // r7 void (__fastcall *v139)(int, _DWORD *); // r10 void (__fastcall *v140)(int, _DWORD *); // r10 int v141; // r9 int v142; // r4 void (__fastcall *v143)(int, _BYTE *); // r7 int v144; // r8 float v145; // s16 float v146; // r0 float v148; // [sp+10h] [bp-B4h] cocos2d::CCPoint *v149; // [sp+14h] [bp-B0h] int hasClaimedListReward; // [sp+18h] [bp-ACh] void (__fastcall *v151)(int, _DWORD *); // [sp+18h] [bp-ACh] cocos2d::CCPoint *v152; // [sp+20h] [bp-A4h] cocos2d::CCPoint *v153; // [sp+20h] [bp-A4h] cocos2d::CCPoint *v154; // [sp+20h] [bp-A4h] cocos2d::CCPoint *v155; // [sp+20h] [bp-A4h] cocos2d::CCPoint *v156; // [sp+20h] [bp-A4h] int v157; // [sp+24h] [bp-A0h] char *v158; // [sp+28h] [bp-9Ch] int v159; // [sp+2Ch] [bp-98h] int v160; // [sp+2Ch] [bp-98h] void (__fastcall *v161)(int, _DWORD *); // [sp+2Ch] [bp-98h] _BYTE v162[4]; // [sp+30h] [bp-94h] BYREF _BYTE v163[8]; // [sp+34h] [bp-90h] BYREF _BYTE v164[8]; // [sp+3Ch] [bp-88h] BYREF _BYTE v165[8]; // [sp+44h] [bp-80h] BYREF _BYTE v166[8]; // [sp+4Ch] [bp-78h] BYREF float v167[2]; // [sp+54h] [bp-70h] BYREF _DWORD v168[2]; // [sp+5Ch] [bp-68h] BYREF char v169; // [sp+64h] [bp-60h] BYREF char v170; // [sp+65h] [bp-5Fh] BYREF cocos2d::CCSprite *v171; // [sp+6Ch] [bp-58h] char v172; // [sp+70h] [bp-54h] BYREF char v173; // [sp+71h] [bp-53h] BYREF cocos2d::CCLabelBMFont *v174; // [sp+78h] [bp-4Ch] int v175[3]; // [sp+7Ch] [bp-48h] BYREF int v176[3]; // [sp+88h] [bp-3Ch] BYREF unsigned __int8 v177; // [sp+94h] [bp-30h] BYREF char v178; // [sp+95h] [bp-2Fh] BYREF cocos2d::CCLabelBMFont *v179; // [sp+9Ch] [bp-28h] char v180; // [sp+A0h] [bp-24h] BYREF char v181; // [sp+A1h] [bp-23h] BYREF cocos2d::CCLabelBMFont *v182; // [sp+A8h] [bp-1Ch] _DWORD v183[4]; // [sp+ACh] [bp-18h] BYREF (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1); v4 = *((cocos2d::CCObject **)this + 105); if ( v4 ) cocos2d::CCObject::release(v4); *((_DWORD *)this + 105) = a2; cocos2d::CCObject::retain(a2); GJLevelList::frameForListDifficulty(&v169, *(_DWORD *)(*((_DWORD *)this + 105) + 292), 0); if ( (v169 & 1) != 0 ) v6 = v171; else v6 = (cocos2d::CCSprite *)&v170; v7 = cocos2d::CCSprite::createWithSpriteFrameName(v6, v5); v8 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v7 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, 26.0, *((float *)this + 101) * 0.5); v8(v7, v183); v9 = 0.0; if ( *((_BYTE *)this + 425) ) v9 = 5.0; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v7, 2); v158 = (char *)GJLevelList::completedLevels(*((GJLevelList **)this + 105)); v10 = (GameStatsManager *)GJLevelList::totalLevels(*((GJLevelList **)this + 105)); v152 = v10; if ( *((int *)a2 + 79) <= 0 || *((int *)a2 + 80) <= 0 ) { v26 = 0; hasClaimedListReward = 0; } else { v12 = (GameStatsManager *)GameStatsManager::sharedState(v10); hasClaimedListReward = GameStatsManager::hasClaimedListReward(v12, *((GJLevelList **)this + 105)); v13 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v7 + 92); v14 = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 96))(v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v168, 0.0, 5.0); cocos2d::CCPoint::operator+(v183, v14, v168); v13(v7, v183); v16 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"diamond_small01_001.png", v15); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v16); v17 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v16 + 92); v18 = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 96))(v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v168, 8.0, -30.0); cocos2d::CCPoint::operator+(v183, v18, v168); v17(v16, v183); GameToolbox::intToString((GameToolbox *)&v172, *(_DWORD *)(*((_DWORD *)this + 105) + 316)); if ( (v172 & 1) != 0 ) v20 = v174; else v20 = (cocos2d::CCLabelBMFont *)&v173; v21 = cocos2d::CCLabelBMFont::create(v20, "bigFont.fnt", v19); std::string::~string((int)&v172); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v21); v22 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, 1.0, 0.5); v22(v21, v183); v23 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 92); v24 = (*(int (__fastcall **)(int))(*(_DWORD *)v16 + 96))(v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v168, -8.0, 0.0); cocos2d::CCPoint::operator+(v183, v24, v168); v23(v21, v183); (*(void (__fastcall **)(int, int))(*(_DWORD *)v21 + 80))(v21, 1053609165); if ( hasClaimedListReward ) { v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 536); LOWORD(v183[0]) = -156; BYTE2(v183[0]) = -1; v25(v21, v183); } else { v152 = *(cocos2d::CCPoint **)(*((_DWORD *)this + 105) + 320); } v26 = 1; } v157 = v26; if ( *(_BYTE *)(*((_DWORD *)this + 105) + 329) ) { v28 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_featuredCoin_001.png", v11); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v28, 1); v29 = *(void (__fastcall **)(int, int))(*(_DWORD *)v28 + 92); v30 = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 96))(v7); v29(v28, v30); } std::string::basic_string(v175, *((_DWORD *)this + 105) + 348); if ( (v175[0] & 1) != 0 ) v31 = (cocos2d::CCLabelBMFont *)v175[2]; else v31 = (cocos2d::CCLabelBMFont *)((char *)v175 + 1); v32 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v31, "bigFont.fnt", v27); std::string::~string((int)v175); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v32); v33 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v32 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, 0.0, 0.5); v33(v32, v183); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v32 + 80))(v32, 1065353216); v34 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v32 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, v9 + 50.0, (float)(*((float *)this + 101) * 0.5) + 30.0); v34(v32, v183); cocos2d::CCLabelBMFont::limitLabelWidth(v32, 190.0, 0.7, 0.0); v35 = *(const char **)(*((_DWORD *)this + 105) + 304); if ( (int)v35 > 0 ) { v36 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Rev. %i", v35); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v36); v39 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v38); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v39); v40 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v39 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, 0.0, 0.5); v40(v39, v183); (*(void (__fastcall **)(int, int))(*(_DWORD *)v39 + 80))(v39, 1053609165); v41 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 84))(v32)); v42 = (const cocos2d::CCSize *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 164))(v32); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v167, v42); v43 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v39 + 92); v44 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 96))(v32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v168, (float)(v41 * v167[0]) + 30.0, -1.0); cocos2d::CCPoint::operator+(v183, v44, v168); v43(v39, v183); } if ( *((_BYTE *)this + 424) ) { if ( *((_BYTE *)this + 425) ) { v45 = "Use"; v46 = "GJ_button_01.png"; } else { v45 = "Add"; v46 = "GJ_button_02.png"; } } else { v45 = "View"; v46 = "GJ_button_01.png"; } v47 = ButtonSprite::create( (ButtonSprite *)v45, (const char *)&word_32, 0, 0.6, 0, "bigFont.fnt", v46, COERCE_CONST_CHAR_(30.0), v148); v167[1] = 0.0; LODWORD(v167[0]) = LevelListCell::onClick; v48 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create((int)v47, 0, (int)this, (int)LevelListCell::onClick, 0); v149 = (cocos2d::CCPoint *)cocos2d::CCMenu::create(v48, nullptr); (*(void (__fastcall **)(_DWORD, cocos2d::CCPoint *, int))(**((_DWORD **)this + 103) + 232))( *((_DWORD *)this + 103), v149, 3); v49 = *((float *)this + 100); v50 = *(void (__fastcall **)(cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v149 + 92); v51 = (float *)(*(int (__fastcall **)(ButtonSprite *))(*(_DWORD *)v47 + 164))(v47); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v183, (float)(v49 - (float)(*v51 * 0.5)) - 9.0, *((float *)this + 101) * 0.5); v50(v149, v183); std::string::basic_string(v176, *((_DWORD *)this + 105) + 336); if ( (v176[0] & 1) != 0 ) v52 = (const char *)v176[2]; else v52 = (char *)v176 + 1; v53 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"By %s", v52); v54 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v53); std::string::~string((int)v176); v56 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v54, "goldFont.fnt", v55); cocos2d::CCLabelBMFont::limitLabelWidth(v56, 140.0, 0.7, 0.0); v57 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 96))(v32); v58 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v56 + 164))(v56) * 0.5; v59 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v56 + 84))(v56); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, (float)(v58 * v59) + 2.0, -21.0); cocos2d::CCPoint::operator+(v163, v57, v183); v168[1] = 0; v168[0] = LevelListCell::onViewProfile; v60 = CCMenuItemSpriteExtra::create((int)v56, 0, (int)this, (int)LevelListCell::onViewProfile, 0); (*(void (__fastcall **)(cocos2d::CCPoint *, int))(*(_DWORD *)v149 + 228))(v149, v60); v61 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v60 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v183, v149); v61(v60, v183); v162[0] = 0; v162[1] = 0; v162[2] = 0; v63 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v62); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v63 + 480))(v63, v162); (*(void (__fastcall **)(int, int))(*(_DWORD *)v63 + 456))(v63, 125); (*(void (__fastcall **)(int, int))(*(_DWORD *)v63 + 72))(v63, 1059313419); (*(void (__fastcall **)(int, int))(*(_DWORD *)v63 + 64))(v63, 1056293520); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v63, 3); v64 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v63 + 92); v65 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 96))(v32); v66 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v63 + 164))(v63); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v183, v65 + (float)((float)(*v66 * 0.48) * 0.5), (float)(*((float *)this + 101) * 0.5) - 12.0); v64(v63, v183); v68 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v67); (*(void (__fastcall **)(float *, int))(*(_DWORD *)v68 + 64))(v68, 1064984117); (*(void (__fastcall **)(float *, int))(*(_DWORD *)v68 + 72))(v68, 1061326684); v69 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v68 + 480); if ( !v157 || hasClaimedListReward ) { LOWORD(v183[0]) = -16816; v70 = -1; } else { LOWORD(v183[0]) = 21759; v70 = 50; } BYTE2(v183[0]) = v70; v69(v68, v183); v71 = v68[86] - (float)(v68[86] * 0.978); (*(void (__fastcall **)(int, float *, int))(*(_DWORD *)v63 + 232))(v63, v68, 1); v72 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v68 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, 0.0, 0.5); v72(v68, v183); v73 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v68 + 92); v74 = *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v63 + 164))(v63) + 4) * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, v71 * 0.5, v74); v73(v68, v183); if ( (int)v152 <= 0 ) v75 = 0.0; else v75 = *(float *)&v152; v76 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v68 + 568); if ( (int)v152 > 0 ) v75 = (float)(int)v158 / (float)SLODWORD(v75); v77 = v68[86]; v78 = v77 * v75; if ( v77 > v78 ) v79 = v78; else v79 = v68[86]; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v183, 0.0, 0.0, v79, v68[87]); v76(v68, v183); v80 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i/%i", v158, v152); v81 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v80); v83 = cocos2d::CCLabelBMFont::create(v81, "bigFont.fnt", v82); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v83, 4); v84 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v83 + 92); v85 = (*(int (__fastcall **)(int))(*(_DWORD *)v63 + 96))(v63); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, 0.0, 0.5); cocos2d::CCPoint::operator+(v183, v85, v166); v84(v83, v183); (*(void (__fastcall **)(int, int))(*(_DWORD *)v83 + 80))(v83, 1053609165); if ( *(_DWORD *)(*((_DWORD *)this + 105) + 408) == 2 ) { v133 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v86); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v133); v134 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v133 + 92); v135 = (float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 96))(v32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, *v135 + 8.0, 14.0); v134(v133, v183); (*(void (__fastcall **)(int, int))(*(_DWORD *)v133 + 80))(v133, 1058642330); if ( *(_BYTE *)(*((_DWORD *)this + 105) + 327) ) v137 = "Uploaded"; else v137 = "Unpublished"; v138 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v137, "bigFont.fnt", v136); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v138); v139 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v138 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, 0.0, 0.5); v139(v138, v183); v140 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v138 + 92); v141 = (*(int (__fastcall **)(int))(*(_DWORD *)v133 + 96))(v133); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, 13.0, 0.0); cocos2d::CCPoint::operator+(v183, v141, v166); v140(v138, v183); (*(void (__fastcall **)(int, int))(*(_DWORD *)v138 + 80))(v138, 1053609165); } else { v87 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))*(_DWORD *)(*(_DWORD *)v32 + 96))(v32); v88 = *(float *)v87; v89 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_downloadsIcon_001.png", (const char *)HIDWORD(v87)); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v89); v90 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v89 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, v88 + 9.0, 14.0); v90(v89, v183); (*(void (__fastcall **)(int, int))(*(_DWORD *)v89 + 80))(v89, 1058642330); v92 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_likesIcon_001.png", v91); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v92); v153 = *(cocos2d::CCPoint **)(*(_DWORD *)v92 + 92); v93 = (*(int (__fastcall **)(int))(*(_DWORD *)v89 + 96))(v89); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, 80.0, 0.0); cocos2d::CCPoint::operator+(v183, v93, v166); ((void (__fastcall *)(int, _DWORD *))v153)(v92, v183); (*(void (__fastcall **)(int, int))(*(_DWORD *)v92 + 80))(v92, 1058642330); GameToolbox::intToShortString((GameToolbox *)&v177, *(_DWORD *)(*((_DWORD *)this + 105) + 284), 0); if ( (v177 & 1) != 0 ) v94 = v179; else v94 = (cocos2d::CCLabelBMFont *)&v178; v95 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v94, "bigFont.fnt", (const char *)(v177 << 31)); std::string::~string((int)&v177); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v95); v96 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v95 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, 0.0, 0.5); v96(v95, v183); v154 = *(cocos2d::CCPoint **)(*(_DWORD *)v95 + 92); v159 = (*(int (__fastcall **)(int))(*(_DWORD *)v89 + 96))(v89); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, 9.0, 0.0); cocos2d::CCPoint::operator+(v183, v159, v166); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD *))v154)(v95, v183); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v95 + 80))(v95, 1053609165); v97 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCLabelBMFont::limitLabelWidth(v95, 45.0, 0.4, 0.0); v155 = *(cocos2d::CCPoint **)(*((_DWORD *)this + 105) + 288); v98 = *(void (__fastcall **)(int, int))(*(_DWORD *)v92 + 580); v99 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v97); if ( (int)v155 < 0 ) v100 = "GJ_dislikesIcon_001.png"; else v100 = "GJ_likesIcon_001.png"; v101 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v99, v100); v98(v92, v101); v102 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v92 + 92); v103 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v95 + 96))(v95); v104 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v95 + 164))(v95); v105 = v103 + (float)(v104 * COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v95 + 84))(v95))); v106 = (*(int (__fastcall **)(int))(*(_DWORD *)v92 + 96))(v92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, v105 + 25.0, *(float *)(v106 + 4)); v102(v92, v183); GameToolbox::intToShortString((GameToolbox *)&v180, (int)v155, 0); if ( (v180 & 1) != 0 ) v108 = v182; else v108 = (cocos2d::CCLabelBMFont *)&v181; v109 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v108, "bigFont.fnt", v107); std::string::~string((int)&v180); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v109); v110 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v109 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, 0.0, 0.5); v110(v109, v183); v156 = *(cocos2d::CCPoint **)(*(_DWORD *)v109 + 92); v160 = (*(int (__fastcall **)(int))(*(_DWORD *)v92 + 96))(v92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, 10.0, 0.0); cocos2d::CCPoint::operator+(v183, v160, v166); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD *))v156)(v109, v183); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v109 + 80))(v109, 1053609165); cocos2d::CCLabelBMFont::limitLabelWidth(v109, 45.0, 0.4, 0.0); v161 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v92 + 92); v111 = (*(int (__fastcall **)(int))(*(_DWORD *)v92 + 96))(v92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, 0.0, 1.0); cocos2d::CCPoint::operator+(v183, v111, v166); v161(v92, v183); if ( v157 && !hasClaimedListReward ) { v114 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"diamond_small01_001.png", v112); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v114, 10); v115 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v114 + 92); v116 = (*(int (__fastcall **)(int))(*(_DWORD *)v63 + 96))(v63); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, 73.0, 0.0); cocos2d::CCPoint::operator+(v183, v116, v166); v115(v114, v183); v117 = GJLevelList::totalLevels(*((GJLevelList **)this + 105)); v119 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_completesIcon_001.png", v118); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v119); v151 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v119 + 92); v120 = (*(int (__fastcall **)(int))(*(_DWORD *)v89 + 96))(v89); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, 80.0, 0.0); cocos2d::CCPoint::operator+(v183, v120, v166); v151(v119, v183); (*(void (__fastcall **)(int, int))(*(_DWORD *)v119 + 80))(v119, 1058642330); v121 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v119 + 92); v122 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v109 + 96))(v109); v123 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v109 + 164))(v109); v124 = v122 + (float)(v123 * COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v109 + 84))(v109))); v125 = (*(int (__fastcall **)(int))(*(_DWORD *)v119 + 96))(v119); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, v124 + 25.0, *(float *)(v125 + 4)); v121(v119, v183); v126 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i/%i", v158, v117); v127 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v126); v129 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v127, "bigFont.fnt", v128); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v129); v130 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v129 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, 0.0, 0.5); v130(v129, v183); v131 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v129 + 92); v132 = (*(int (__fastcall **)(int))(*(_DWORD *)v119 + 96))(v119); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, 10.0, 0.0); cocos2d::CCPoint::operator+(v183, v132, v166); v131(v129, v183); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v129 + 80))(v129, 1053609165); cocos2d::CCLabelBMFont::limitLabelWidth(v129, 45.0, 0.4, 0.0); } } v113 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v112); (*(void (__fastcall **)(int, int))(*(_DWORD *)v113 + 80))(v113, 1059481190); v183[1] = 0; v183[0] = LevelListCell::onListInfo; v142 = CCMenuItemSpriteExtra::create(v113, 0, (int)this, (int)LevelListCell::onListInfo, 0); CCMenuItemSpriteExtra::setSizeMult(v142, 1.2); (*(void (__fastcall **)(cocos2d::CCPoint *, int))(*(_DWORD *)v149 + 228))(v149, v142); v143 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v142 + 92); v144 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 96))(v32); v145 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 164))(v32); v146 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 84))(v32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v164, (float)(v145 * v146) + 15.0, -1.0); cocos2d::CCPoint::operator+(v165, v144, v164); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v166, v149); v143(v142, v166); return std::string::~string((int)&v169); }
GD Web Decomp Icon

GD Web Decomp

Raw Source