// // LevelListLayer::updateStatsArt from 0xbab00c to 0xbabe78 (3692 bytes) // // 6 xrefs: // > LevelListLayer::likedItem @ 0xbabf04 // > LevelListLayer::iconSelectClosed @ 0xbabf1c // > LevelListLayer::loadLevelsFinished @ 0xbacb78 // > LevelListLayer::init @ 0xbaf998 // > LevelListLayer::onEnter @ 0xbb101c // > @ 0xbce78 // // 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:52 +0000 // __int64 __fastcall LevelListLayer::updateStatsArt(LevelListLayer *this) { cocos2d::CCArray *v2; // x1 unsigned int *v3; // x2 cocos2d::CCSpriteFrameCache **v4; // x20 void (__fastcall *v5)(cocos2d::CCSpriteFrameCache **, __int64); // x21 cocos2d::CCSpriteFrameCache *v6; // x22 cocos2d::CCLabelBMFont *v7; // x1 __int64 v8; // x0 cocos2d::CCDirector *v9; // x0 cocos2d::CCDirector *v10; // x0 int v11; // w24 __int64 v12; // x0 const char *v13; // x1 GameStatsManager *v14; // x0 GameStatsManager *v15; // x0 unsigned int v16; // w28 bool hasClaimedListReward; // w0 unsigned int v18; // w27 cocos2d::CCObject *v19; // x21 void (__fastcall *v20)(cocos2d::CCObject *, __int64 *); // x25 const char *v21; // x1 float *v22; // x25 void (__fastcall *v23)(float *, __int64 *); // x2 float v24; // s8 void (__fastcall *v25)(float *, __int64 *); // x26 void (__fastcall *v26)(float *, __int64 *); // x26 __int64 v27; // x0 float v28; // s2 float v29; // s0 float v30; // s2 cocos2d::CCString *v31; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v33; // x2 cocos2d::CCObject *v34; // x24 void (__fastcall *v35)(cocos2d::CCObject *, __int64 *); // x25 const char *v36; // x1 float v37; // s10 cocos2d::CCObject *v38; // x24 void (__fastcall *v39)(cocos2d::CCObject *, __int64 *); // x25 const char *v40; // x2 cocos2d::CCLabelBMFont *v41; // x0 cocos2d::CCObject *v42; // x25 const char *v43; // x1 char *v44; // x0 cocos2d::CCObject *v45; // x25 cocos2d::CCObject *v46; // x0 __int64 (__fastcall *v47)(cocos2d::CCObject *); // x1 void (__fastcall *v48)(cocos2d::CCObject *, __int64 *); // x24 __int64 v49; // x1 float v50; // s1 const char *v51; // x2 cocos2d::CCLabelBMFont *v52; // x0 cocos2d::CCObject *v53; // x24 const char *v54; // x1 cocos2d::CCObject *v55; // x21 void (__fastcall *v56)(cocos2d::CCObject *, __int64 *); // x24 __int64 v57; // x25 const char *v58; // x2 cocos2d::CCLabelBMFont *v59; // x0 cocos2d::CCObject *v60; // x23 cocos2d::CCObject *v61; // x0 __int64 (__fastcall *v62)(cocos2d::CCObject *); // x1 void (__fastcall *v63)(cocos2d::CCObject *, __int64 *); // x21 __int64 v64; // x24 __int64 *v66; // x20 __int64 *v67; // x21 __int64 v68; // x0 cocos2d::CCObject *v69; // x24 cocos2d::CCObject *v70; // x0 __int64 (__fastcall *v71)(cocos2d::CCObject *); // x1 void (__fastcall *v72)(cocos2d::CCObject *, __int64 *); // x21 __int64 v73; // x28 const char *v74; // x1 cocos2d::CCObject *v75; // x21 void (__fastcall *v76)(cocos2d::CCObject *, __int64 *); // x24 __int64 v77; // x25 unsigned int v78; // w0 cocos2d::CCString *v79; // x0 cocos2d::CCLabelBMFont *v80; // x0 const char *v81; // x2 cocos2d::CCObject *v82; // x24 void (__fastcall *v83)(cocos2d::CCObject *, __int64 *); // x25 __int64 v84; // x28 cocos2d::CCNode *v85; // x0 __int64 v86; // x25 __int64 (__fastcall *v87)(__int64, __int64 *); // x24 cocos2d::CCNode *v88; // x0 __int64 v89; // x24 void (__fastcall *v90)(__int64, __int64 *); // x28 __int64 v91; // x0 cocos2d::CCSprite *v92; // x28 float v93; // s0 void (__fastcall *v94)(cocos2d::CCSprite *, __int64 *, float); // x3 cocos2d::CCObject *v95; // x25 __int64 v96; // x21 void (__fastcall *v97)(cocos2d::CCObject *, __int64 *); // x21 const char *v98; // x1 __int64 v99; // x21 void (__fastcall *v100)(__int64, __int64 *); // x27 __int64 v101; // x28 const char *v102; // x2 cocos2d::CCLabelBMFont *v103; // x0 __int64 v104; // x23 void (__fastcall *v105)(__int64, __int64 *); // x24 __int64 v106; // x0 __int64 (__fastcall *v107)(__int64); // x1 void (__fastcall *v108)(__int64, __int64 *); // x21 __int64 v109; // x24 void (__fastcall *v110)(float *, __int64 *); // [xsp+80h] [xbp+80h] __int64 v111; // [xsp+80h] [xbp+80h] __int64 v112; // [xsp+80h] [xbp+80h] __int64 v113; // [xsp+80h] [xbp+80h] __int64 v114; // [xsp+80h] [xbp+80h] float v115; // [xsp+80h] [xbp+80h] void (__fastcall *v116)(cocos2d::CCObject *, __int64 *); // [xsp+90h] [xbp+90h] void (__fastcall *v117)(cocos2d::CCObject *, __int64 *); // [xsp+90h] [xbp+90h] unsigned int v118; // [xsp+98h] [xbp+98h] _BYTE v119[8]; // [xsp+A8h] [xbp+A8h] BYREF __int64 v120; // [xsp+B0h] [xbp+B0h] BYREF _BYTE v121[8]; // [xsp+B8h] [xbp+B8h] BYREF __int64 v122[2]; // [xsp+C0h] [xbp+C0h] BYREF __int64 v123[2]; // [xsp+D0h] [xbp+D0h] BYREF cocos2d::CCLabelBMFont *v124; // [xsp+E0h] [xbp+E0h] *((_BYTE *)this + 1008) = 0; v2 = *((cocos2d::CCArray **)this + 122); if ( v2 ) { v3 = *((unsigned int **)v2 + 7); if ( *v3 ) { v66 = *((__int64 **)v3 + 2); v67 = &v66[*v3 - 1]; if ( v66 <= v67 ) { v68 = *v66; if ( *v66 ) { do { ++v66; (*(void (__fastcall **)(__int64))(*(_QWORD *)v68 + 536LL))(v68); if ( v67 < v66 ) break; v68 = *v66; } while ( *v66 ); v2 = *((cocos2d::CCArray **)this + 122); } } } } cocos2d::CCArray::removeAllObjects(v2); v4 = *((cocos2d::CCSpriteFrameCache ***)this + 123); v5 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v4 + 145); v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v4); GJLevelList::frameForListDifficulty(*(_DWORD *)(*((_QWORD *)this + 114) + 360LL), 2, v123); v7 = (cocos2d::CCLabelBMFont *)((char *)v123 + 1); if ( (v123[0] & 1) != 0 ) v7 = v124; v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, (const char *)v7); v5(v4, v8); if ( (v123[0] & 1) != 0 ) operator delete(v124); v9 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 124) + 344LL))( *((_QWORD *)this + 124), *(unsigned __int8 *)(*((_QWORD *)this + 114) + 397LL)); v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize(&v120, v10); v118 = GJLevelList::completedLevels(*((_QWORD *)this + 114)); v11 = GJLevelList::totalLevels(*((GJLevelList **)this + 114)); v12 = *((_QWORD *)this + 114); v13 = (const char *)*(unsigned int *)(v12 + 384); if ( (int)v13 <= 0 || (v14 = (GameStatsManager *)*(unsigned int *)(v12 + 388), (int)v14 <= 0) ) { v18 = 0; v16 = 0; } else { v15 = (GameStatsManager *)GameStatsManager::sharedState(v14); v16 = 1; hasClaimedListReward = GameStatsManager::hasClaimedListReward(v15, *((GJLevelList **)this + 114)); v18 = hasClaimedListReward; if ( !hasClaimedListReward ) v11 = *(_DWORD *)(*((_QWORD *)this + 114) + 388LL); } v119[0] = 0; v119[1] = 0; v119[2] = 0; v19 = (cocos2d::CCObject *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v13); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v19 + 960LL))(v19, v119); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v19 + 912LL))(v19, 125); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v19 + 144LL))(v19, 0.8); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v19 + 128LL))(v19, 0.8); (*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, __int64))(*(_QWORD *)this + 464LL))(this, v19, 3); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 122), v19); v20 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v19 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, *(float *)&v120 * 0.5, 16.0); v20(v19, v122); v22 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v21); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v22 + 128LL))(v22, 0.98); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v22 + 144LL))(v22, 0.76); v23 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v22 + 960LL); if ( v16 <= v18 ) { LOWORD(v122[0]) = -16816; BYTE2(v122[0]) = -1; } else { LOWORD(v122[0]) = 21759; BYTE2(v122[0]) = 50; } v23(v22, v122); (*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v22 + 912LL))(v22, 4294967265LL); v24 = v22[108] - (float)(v22[108] * 0.98); (*(void (__fastcall **)(cocos2d::CCObject *, float *, __int64))(*(_QWORD *)v19 + 464LL))(v19, v22, 1); v25 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v22 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, 0.0, 0.5); v25(v22, v122); v26 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v22 + 184LL); v27 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v19 + 328LL))(v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, v24 * 0.5, *(float *)(v27 + 4) * 0.5); v26(v22, v122); if ( v11 <= 0 ) v28 = 0.0; else v28 = (float)(int)v118 / (float)v11; v29 = v22[108]; v30 = v28 * v29; if ( v29 <= v30 ) v30 = v22[108]; v110 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v22 + 1136LL); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v122, 0.0, 0.0, v30, v22[109]); v110(v22, v122); v31 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", (const char *)v118, (unsigned int)v11); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v31); v34 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v33); (*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, __int64))(*(_QWORD *)this + 464LL))(this, v34, 4); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 122), v34); v35 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v34 + 184LL); v111 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v19 + 192LL))(v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, 1.0); cocos2d::CCPoint::operator+(v122, v111); v35(v34, v122); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v34 + 160LL))(v34, 0.5); if ( *(_DWORD *)(*((_QWORD *)this + 114) + 544LL) != 2 ) { if ( v16 > v18 ) v37 = 45.0; else v37 = 52.0; v38 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_downloadsIcon_001.png", v36); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v38 + 160LL))(v38, 0.8); v39 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v38 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, 26.0, (float)(*((float *)&v120 + 1) * 0.5) + 88.0); v39(v38, v122); (*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, __int64))(*(_QWORD *)this + 464LL))(this, v38, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 122), v38); GameToolbox::intToShortString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 114) + 352LL), 0, v123); v41 = (cocos2d::CCLabelBMFont *)((char *)v123 + 1); if ( (v123[0] & 1) != 0 ) v41 = v124; v42 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v41, "bigFont.fnt", v40); if ( (v123[0] & 1) != 0 ) operator delete(v124); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v42 + 160LL))(v42, 0.4); v116 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v42 + 184LL); v112 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v38 + 192LL))(v38); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, -21.0); cocos2d::CCPoint::operator+(v122, v112); v116(v42, v122); (*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, __int64))(*(_QWORD *)this + 464LL))(this, v42, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 122), v42); if ( (*(_DWORD *)(*((_QWORD *)this + 114) + 356LL) & 0x80000000) != 0 ) v44 = "GJ_dislikesIcon_001.png"; else v44 = "GJ_likesIcon_001.png"; v45 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v44, v43); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v45 + 160LL))(v45, 0.8); v46 = v38; v47 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v38 + 192LL); v48 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v45 + 184LL); v49 = v47(v46); v50 = 0.0; if ( (*(_DWORD *)(*((_QWORD *)this + 114) + 356LL) & 0x80000000) != 0 ) v50 = 4.0; v113 = v49; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, v50 - v37); cocos2d::CCPoint::operator+(v122, v113); v48(v45, v122); (*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, __int64))(*(_QWORD *)this + 464LL))(this, v45, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 122), v45); GameToolbox::intToShortString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 114) + 356LL), 0, v123); v52 = (cocos2d::CCLabelBMFont *)((char *)v123 + 1); if ( (v123[0] & 1) != 0 ) v52 = v124; v53 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v52, "bigFont.fnt", v51); if ( (v123[0] & 1) != 0 ) operator delete(v124); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v53 + 160LL))(v53, 0.4); v117 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v53 + 184LL); v114 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v45 + 192LL))(v45); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, -21.0); cocos2d::CCPoint::operator+(v122, v114); v117(v53, v122); (*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, __int64))(*(_QWORD *)this + 464LL))(this, v53, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 122), v53); if ( v16 ) { if ( v18 ) { v55 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_diamondsIcon_001.png", v54); (*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v55); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 122), v55); v56 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v55 + 184LL); v57 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v45 + 192LL))(v45); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, -v37); cocos2d::CCPoint::operator+(v122, v57); v56(v55, v122); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v55 + 160LL))(v55, 0.9); GameToolbox::intToShortString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 114) + 384LL), 0, v123); if ( (v123[0] & 1) != 0 ) v59 = v124; else v59 = (cocos2d::CCLabelBMFont *)((char *)v123 + 1); v60 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v59, "bigFont.fnt", v58); if ( (v123[0] & 1) != 0 ) operator delete(v124); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v60 + 160LL))(v60, 0.4); v61 = v55; v62 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v55 + 192LL); v63 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v60 + 184LL); v64 = v62(v61); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, -21.0); cocos2d::CCPoint::operator+(v122, v64); v63(v60, v122); (*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, __int64))(*(_QWORD *)this + 464LL))(this, v60, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 122), v60); } else { v69 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"diamond_small01_001.png", v54); (*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, __int64))(*(_QWORD *)this + 464LL))( this, v69, 10); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 122), v69); v70 = v19; v71 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v19 + 192LL); v72 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v69 + 184LL); v73 = v71(v70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 125.0, 0.0); cocos2d::CCPoint::operator+(v122, v73); v72(v69, v122); v75 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_completesIcon_001.png", v74); (*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v75); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 122), v75); v76 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v75 + 184LL); v77 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v45 + 192LL))(v45); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, -v37); cocos2d::CCPoint::operator+(v122, v77); v76(v75, v122); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v75 + 160LL))(v75, 0.8); v78 = GJLevelList::totalLevels(*((GJLevelList **)this + 114)); v79 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", (const char *)v118, v78); v80 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v79); v82 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v80, "bigFont.fnt", v81); (*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v82); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 122), v82); v83 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v82 + 184LL); v84 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v75 + 192LL))(v75); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, -21.0); cocos2d::CCPoint::operator+(v122, v84); v83(v82, v122); v85 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v82 + 160LL))( v82, 0.4); v86 = cocos2d::CCNode::create(v85); v87 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v86 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v122, 50.0, 50.0); v88 = (cocos2d::CCNode *)v87(v86, v122); v89 = cocos2d::CCNode::create(v88); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v89 + 320LL))(v89, &unk_155E8A0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v86 + 456LL))(v86, v89); v90 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v89 + 184LL); v115 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v86 + 328LL))(v86) * 0.5; v91 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v86 + 328LL))(v86); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, v115, *(float *)(v91 + 4) * 0.5); v90(v89, v122); if ( (signed int)v118 >= *(_DWORD *)(*((_QWORD *)this + 114) + 388LL) ) { v92 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_rewardBtn_001.png", (const char *)v118); } else { v123[0] = 0; v123[1] = 0; v124 = nullptr; std::string::__init(v123, "GJ_rewardBtn_001.png", 0x14u); v92 = CCSpriteGrayscale::createWithSpriteFrameName((char *)v123); if ( (v123[0] & 1) != 0 ) operator delete(v124); v93 = CCSpriteWithHue::setEvenLuminance(v92, 1.0); v94 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64 *, float))(*(_QWORD *)v92 + 960LL); LOWORD(v122[0]) = -20561; BYTE2(v122[0]) = -81; v94(v92, v122, v93); } (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v92 + 160LL))(v92, 0.6); (*(void (__fastcall **)(__int64, cocos2d::CCSprite *))(*(_QWORD *)v89 + 456LL))(v89, v92); v95 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v86, 0, (__int64)this, (__int64)LevelListLayer::onClaimReward, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 110) + 456LL))( *((_QWORD *)this + 110), v95); v96 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v75 + 192LL))(v75); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, -54.0); cocos2d::CCPoint::operator+(v122, v96); cocos2d::CCPoint::operator=((char *)this + 1000, v122); v97 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v95 + 184LL); cocos2d::CCNode::convertToNodeSpace( v122, *((cocos2d::CCNode **)this + 110), (LevelListLayer *)((char *)this + 1000)); v97(v95, v122); v99 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"diamond_small01_001.png", v98); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v89 + 456LL))(v89, v99); v100 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v99 + 184LL); v101 = (*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v92 + 192LL))(v92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 8.0, -25.0); cocos2d::CCPoint::operator+(v122, v101); v100(v99, v122); GameToolbox::intToString( (unsigned __int64 *)v123, (GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 114) + 384LL)); v103 = (cocos2d::CCLabelBMFont *)((char *)v123 + 1); if ( (v123[0] & 1) != 0 ) v103 = v124; v104 = cocos2d::CCLabelBMFont::create(v103, "bigFont.fnt", v102); if ( (v123[0] & 1) != 0 ) operator delete(v124); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v89 + 456LL))(v89, v104); v105 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v104 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, 1.0, 0.5); v105(v104, v122); v106 = v99; v107 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v99 + 192LL); v108 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v104 + 184LL); v109 = v107(v106); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, -8.0, 0.0); cocos2d::CCPoint::operator+(v122, v109); v108(v104, v122); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v104 + 160LL))(v104, 0.4); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 122), v95); } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source