// // LevelListCell::loadFromList from 0x61e4ec to 0x61fa84 (5528 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x620470 // > @ 0x2d810 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void LevelListCell::loadFromList(LevelListCell *a1, GJLevelList *a2) { GJLevelList *m_levelList; // x0 DifficultyIconType v5; // w2 cocos2d::CCSprite *v6; // x21 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23 int m_levelsToClaim; // w24 GJLevelList *v9; // x1 cocos2d::CCSprite *v10; // x22 cocos2d::CCSprite *v11; // x0 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v13)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21 __int64 v14; // x0 cocos2d::CCLabelBMFont *v15; // x21 cocos2d::CCArray **v16; // x0 void (__fastcall *v17)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x22 void (__fastcall *v18)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 const char *v19; // x6 const char *m_listRevision; // x1 cocos2d::CCString *v21; // x0 cocos2d::CCLabelBMFont *v22; // x22 void (__fastcall *v23)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x23 float v24; // s9 const cocos2d::CCSize *v25; // x0 void (__fastcall *v26)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 __int64 v27; // x25 char *v28; // x0 const char *v29; // x5 cocos2d::CCNode *v30; // x0 cocos2d::CCNode *v31; // x22 CCMenuItemSpriteExtra *v32; // x0 cocos2d::CCNode *v33; // x26 cocos2d::CCNode *v34; // x0 float m_width; // s10 const cocos2d::CCSize *(__fastcall *getContentSize)(const cocos2d::CCNode *__hidden); // x1 void (__fastcall *v37)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 float *v38; // x0 double v39; // d0 cocos2d::CCString *v40; // x0 char *v41; // x0 cocos2d::CCLabelBMFont *v42; // x22 __int64 v43; // x23 float v44; // s8 float v45; // s0 CCMenuItemSpriteExtra *v46; // x22 void (__fastcall *v47)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 const char *v48; // x1 cocos2d::CCNode *v49; // x22 void (__fastcall *v50)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 const char *v51; // x1 float *v52; // x23 void (__fastcall *v53)(float *, cocos2d::CCRect *); // x2 float v54; // s8 void (__fastcall *v55)(float *, cocos2d::CCRect *); // x25 void (__fastcall *v56)(float *, cocos2d::CCRect *); // x25 __int64 v57; // x0 float v58; // s2 float v59; // s0 float v60; // s2 void (__fastcall *v61)(float *, cocos2d::CCRect *); // x25 cocos2d::CCString *v62; // x0 cocos2d::CCLabelBMFont *v63; // x24 void (__fastcall *v64)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 __int64 v65; // x25 float v66; // s10 cocos2d::CCSprite *v67; // x27 void (__fastcall *v68)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCSprite *v69; // x24 __int64 v70; // x25 cocos2d::CCLabelBMFont *v71; // x25 cocos2d::CCArray **v72; // x0 cocos2d::CCSpriteFrameCache *v73; // x0 cocos2d::CCSpriteFrame *v74; // x0 float x; // s13 float width; // s10 float v77; // s10 __int64 v78; // x0 cocos2d::CCLabelBMFont *v79; // x25 void *v80; // x0 cocos2d::CCSprite *v81; // x22 CCMenuItemSpriteExtra *v82; // x20 void (__fastcall *v83)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 __int64 v84; // x24 float v85; // s8 float v86; // s0 char *p_m_fBrVertexMod; // x28 GameStatsManager *v88; // x0 void (__fastcall *v89)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 __int64 v90; // x22 cocos2d::CCSprite *v91; // x25 void (__fastcall *v92)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 __int64 v93; // x22 cocos2d::CCLabelBMFont *v94; // x22 cocos2d::CCArray **p_m_pTargetArray; // x0 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x26 void (__fastcall *v97)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 __int64 v98; // x25 cocos2d::CCSprite *v99; // x24 __int64 v100; // x22 cocos2d::CCSprite *v101; // x22 cocos2d::CCSprite *v102; // x0 const cocos2d::CCPoint *(__fastcall *v103)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v104)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x27 __int64 v105; // x24 void (__fastcall *v106)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 float v107; // s10 float v108; // s9 float v109; // s9 __int64 v110; // x0 cocos2d::CCString *v111; // x0 cocos2d::CCLabelBMFont *v112; // x24 void (__fastcall *v113)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x25 void (__fastcall *v114)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 __int64 v115; // x22 cocos2d::CCSprite *v116; // x24 void (__fastcall *v117)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22 float *v118; // x0 cocos2d::CCLabelBMFont *v119; // x22 void (__fastcall *v120)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x25 void (__fastcall *v121)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 __int64 v122; // x24 unsigned int *p_m_fTextureTop; // x25 int m_fTextureTop_low; // w0 unsigned int *v125; // x1 int v126; // w2 unsigned int *v127; // x1 int v128; // w2 void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x3 unsigned int *v130; // x1 int v131; // w2 unsigned int *v132; // x1 int v133; // w2 unsigned int *p_m_nExtraKerning; // x1 int m_nExtraKerning; // w2 __int64 v136; // [xsp+98h] [xbp+98h] void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // [xsp+98h] [xbp+98h] void (__fastcall *v138)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+98h] [xbp+98h] __int64 v139; // [xsp+98h] [xbp+98h] __int64 v140; // [xsp+98h] [xbp+98h] GameToolbox *v141; // [xsp+A0h] [xbp+A0h] GameToolbox *v142; // [xsp+A0h] [xbp+A0h] GameToolbox *v143; // [xsp+A0h] [xbp+A0h] unsigned int m_likes; // [xsp+A0h] [xbp+A0h] GameToolbox *v145; // [xsp+A0h] [xbp+A0h] GameToolbox *v146; // [xsp+A0h] [xbp+A0h] GameToolbox *v147; // [xsp+A0h] [xbp+A0h] unsigned int v148; // [xsp+B0h] [xbp+B0h] unsigned int v149; // [xsp+B4h] [xbp+B4h] unsigned int hasClaimedListReward; // [xsp+B8h] [xbp+B8h] char *v151; // [xsp+B8h] [xbp+B8h] _BYTE v152[8]; // [xsp+D0h] [xbp+D0h] BYREF cocos2d::CCSprite *v153; // [xsp+D8h] [xbp+D8h] cocos2d::CCLabelBMFont *v154; // [xsp+E0h] [xbp+E0h] BYREF cocos2d::CCLabelBMFont *v155; // [xsp+E8h] [xbp+E8h] BYREF cocos2d::CCPoint v156; // [xsp+F0h] [xbp+F0h] BYREF char *v157; // [xsp+F8h] [xbp+F8h] BYREF cocos2d::CCLabelBMFont *v158; // [xsp+100h] [xbp+100h] BYREF cocos2d::CCRect v159; // [xsp+108h] [xbp+108h] BYREF cocos2d::CCPoint v160; // 0:kr00_8.8 cocos2d::CCPoint v161; // 0:kr08_8.8 cocos2d::SEL_MenuHandler v162; // 0:x2.16 cocos2d::SEL_MenuHandler v163; // 0:x2.16 cocos2d::SEL_MenuHandler v164; // 0:x2.16 a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1); m_levelList = a1->m_levelList; if ( m_levelList ) cocos2d::CCObject::release(m_levelList); a1->m_levelList = a2; cocos2d::CCObject::retain(a2); GJLevelList::frameForListDifficulty((GJLevelList *)(unsigned int)a1->m_levelList->m_difficulty, 0, v5); v6 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v153); setPosition = v6->setPosition; cocos2d::CCPoint::CCPoint(&v159.origin, 26.0, a1->m_height * 0.5); setPosition(v6, &v159.origin); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, 2); v149 = GJLevelList::completedLevels(a1->m_levelList); m_levelsToClaim = GJLevelList::totalLevels(a1->m_levelList); if ( a2->m_levelsToClaim > 0 && a2->m_diamonds > 0 ) { v88 = GameStatsManager::sharedState(); hasClaimedListReward = GameStatsManager::hasClaimedListReward(v88, a1->m_levelList); v89 = v6->setPosition; v90 = (__int64)v6->getPosition(v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 0.0, 5.0); cocos2d::CCPoint::operator+(&v159, v90, &v158); v89(v6, &v159.origin); v91 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png"); a1->m_mainLayer->addChild(a1->m_mainLayer, v91); v92 = v91->setPosition; v93 = (__int64)v6->getPosition(v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 8.0, -30.0); cocos2d::CCPoint::operator+(&v159, v93, &v158); v92(v91, &v159.origin); GameToolbox::intToString((__int64 *)&v154, (GameToolbox *)(unsigned int)a1->m_levelList->m_diamonds); v94 = cocos2d::CCLabelBMFont::create(); p_m_pTargetArray = &v154[-1].m_pTargetArray; if ( &v154[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 ) { if ( &pthread_create ) { p_m_nExtraKerning = (unsigned int *)&v154[-1].m_nExtraKerning; do m_nExtraKerning = __ldaxr(p_m_nExtraKerning); while ( __stlxr(m_nExtraKerning - 1, p_m_nExtraKerning) ); } else { m_nExtraKerning = v154[-1].m_nExtraKerning; v154[-1].m_nExtraKerning = m_nExtraKerning - 1; } if ( m_nExtraKerning <= 0 ) operator delete(p_m_pTargetArray); } a1->m_mainLayer->addChild(a1->m_mainLayer, v94); setAnchorPoint = v94->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v159.origin, 1.0, 0.5); setAnchorPoint(v94, &v159.origin); v97 = v94->setPosition; v98 = (__int64)v91->getPosition(v91); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, -8.0, 0.0); cocos2d::CCPoint::operator+(&v159, v98, &v158); v97(v94, &v159.origin); v94->setScale(v94, 0.4); if ( hasClaimedListReward ) { setColor = v94->setColor; LOWORD(v159.origin.x) = -156; BYTE2(v159.origin.x) = -1; setColor(v94, (const cocos2d::ccColor3B *)&v159); v9 = a1->m_levelList; v148 = 1; } else { v9 = a1->m_levelList; v148 = 1; m_levelsToClaim = v9->m_levelsToClaim; } } else { v9 = a1->m_levelList; hasClaimedListReward = 0; v148 = 0; } if ( v9->m_featured ) { v10 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_featuredCoin_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v10, 1); v11 = v6; getPosition = v6->getPosition; v13 = v10->setPosition; v14 = (__int64)getPosition(v11); v13(v10, (const cocos2d::CCPoint *)v14); v9 = a1->m_levelList; } sub_D18D28(&v155, &v9->m_listName); v15 = cocos2d::CCLabelBMFont::create(); v16 = &v155[-1].m_pTargetArray; if ( &v155[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 ) { if ( &pthread_create ) { v125 = (unsigned int *)&v155[-1].m_nExtraKerning; do v126 = __ldaxr(v125); while ( __stlxr(v126 - 1, v125) ); } else { v126 = v155[-1].m_nExtraKerning; v155[-1].m_nExtraKerning = v126 - 1; } if ( v126 <= 0 ) operator delete(v16); } a1->m_mainLayer->addChild(a1->m_mainLayer, v15); v17 = v15->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v159.origin, 0.0, 0.5); v17(v15, &v159.origin); v15->setScale(v15, 1.0); v18 = v15->setPosition; cocos2d::CCPoint::CCPoint(&v159.origin, 50.0, (float)(a1->m_height * 0.5) + 30.0); v18(v15, &v159.origin); cocos2d::CCLabelBMFont::limitLabelWidth(v15, 190.0, 0.7, 0.0); m_listRevision = (const char *)(unsigned int)a1->m_levelList->m_listRevision; if ( (int)m_listRevision > 0 ) { v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Rev. %i", m_listRevision); cocos2d::CCString::getCString(v21); v22 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild(a1->m_mainLayer, v22); v23 = v22->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v159.origin, 0.0, 0.5); v23(v22, &v159.origin); v22->setScale(v22, 0.4); v24 = v15->getScale(v15); v25 = v15->getContentSize(v15); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v157, v25); v26 = v22->setPosition; v27 = (__int64)v15->getPosition(v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, (float)(v24 * *(float *)&v157) + 30.0, -1.0); cocos2d::CCPoint::operator+(&v159, v27, &v158); v26(v22, &v159.origin); } if ( a1->m_addingLevel ) { v28 = "Add"; v29 = "GJ_button_02.png"; } else { v28 = "View"; v29 = "GJ_button_01.png"; } v30 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)v28, (const char *)&dword_30 + 2, 0, 0, 0.6, "bigFont.fnt", v29, v19, 30.0); v162.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v31 = v30; v162.adj = (size_t)LevelListCell::onClick; v32 = CCMenuItemSpriteExtra::create(v30, nullptr, v162); v33 = (cocos2d::CCNode *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v32, nullptr); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v33, 3); v34 = v31; m_width = a1->m_width; getContentSize = v31->getContentSize; v37 = v33->setPosition; v38 = (float *)getContentSize(v34); cocos2d::CCPoint::CCPoint(&v159.origin, (float)(m_width - (float)(*v38 * 0.5)) - 9.0, a1->m_height * 0.5); v37(v33, &v159.origin); *(_QWORD *)&v39 = sub_D18D28(&v157, &a1->m_levelList->m_creatorName).n128_u64[0]; v40 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"By %s", v157, v39); cocos2d::CCString::getCString(v40); v41 = v157 - 24; if ( v157 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v127 = (unsigned int *)(v157 - 8); do v128 = __ldaxr(v127); while ( __stlxr(v128 - 1, v127) ); } else { v128 = *((_DWORD *)v157 - 2); *((_DWORD *)v157 - 2) = v128 - 1; } if ( v128 <= 0 ) operator delete(v41); } v42 = cocos2d::CCLabelBMFont::create(); cocos2d::CCLabelBMFont::limitLabelWidth(v42, 140.0, 0.7, 0.0); v43 = (__int64)v15->getPosition(v15); v44 = v42->getContentSize(v42)->width * 0.5; v45 = v42->getScale(v42); cocos2d::CCPoint::CCPoint(&v159.origin, (float)(v44 * v45) + 2.0, -21.0); cocos2d::CCPoint::operator+(&v156, v43, &v159); v163.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v163.adj = (size_t)LevelListCell::onViewProfile; v46 = CCMenuItemSpriteExtra::create(v42, nullptr, v163); v33->addChild(v33, v46); v47 = v46->setPosition; v160 = cocos2d::CCNode::convertToNodeSpace(v33, &v156); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v47)(v46, &v159, v160.x, v160.y); v152[0] = 0; v152[1] = 0; v152[2] = 0; v49 = (cocos2d::CCNode *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v48); ((void (__fastcall *)(cocos2d::CCNode *, _BYTE *))v49->__vftable[1].getTag)(v49, v152); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v49->__vftable[1].~CCNode_0)(v49, 125); v49->setScaleY(v49, 0.64); v49->setScaleX(v49, 0.48); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v49, 3); v50 = v49->setPosition; cocos2d::CCPoint::CCPoint(&v159.origin, (float)(a1->m_width * 0.5) + -45.0, (float)(a1->m_height * 0.5) + -12.0); v50(v49, &v159.origin); v52 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v51); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v52 + 128LL))(v52, 0.978); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v52 + 144LL))(v52, 0.76); v53 = *(void (__fastcall **)(float *, cocos2d::CCRect *))(*(_QWORD *)v52 + 944LL); if ( v148 > hasClaimedListReward ) { LOWORD(v159.origin.x) = 21759; BYTE2(v159.origin.x) = 50; } else { LOWORD(v159.origin.x) = -16816; BYTE2(v159.origin.x) = -1; } v53(v52, &v159); v54 = v52[108] - (float)(v52[108] * 0.978); v49->addChild_0(v49, (cocos2d::CCNode *)v52, 1); v55 = *(void (__fastcall **)(float *, cocos2d::CCRect *))(*(_QWORD *)v52 + 280LL); cocos2d::CCPoint::CCPoint(&v159.origin, 0.0, 0.5); v55(v52, &v159); v56 = *(void (__fastcall **)(float *, cocos2d::CCRect *))(*(_QWORD *)v52 + 184LL); v57 = (__int64)v49->getContentSize(v49); cocos2d::CCPoint::CCPoint(&v159.origin, v54 * 0.5, *(float *)(v57 + 4) * 0.5); v56(v52, &v159); if ( m_levelsToClaim <= 0 ) v58 = 0.0; else v58 = (float)(int)v149 / (float)m_levelsToClaim; v59 = v52[108]; v60 = v58 * v59; if ( v59 <= v60 ) v60 = v52[108]; v61 = *(void (__fastcall **)(float *, cocos2d::CCRect *))(*(_QWORD *)v52 + 1120LL); cocos2d::CCRect::CCRect(&v159, 0.0, 0.0, v60, v52[109]); v61(v52, &v159); v62 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", (const char *)v149, (unsigned int)m_levelsToClaim); cocos2d::CCString::getCString(v62); v63 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v63, 4); v64 = v63->setPosition; v65 = (__int64)v49->getPosition(v49); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 0.0, 0.5); cocos2d::CCPoint::operator+(&v159, v65, &v158); v64(v63, &v159.origin); v63->setScale(v63, 0.4); if ( a1->m_levelList->m_listType == Editor ) { v116 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); a1->m_mainLayer->addChild(a1->m_mainLayer, v116); v117 = v116->setPosition; v118 = (float *)v15->getPosition(v15); cocos2d::CCPoint::CCPoint(&v159.origin, *v118 + 8.0, 14.0); v117(v116, &v159.origin); v116->setScale(v116, 0.6); v119 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild(a1->m_mainLayer, v119); v120 = v119->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v159.origin, 0.0, 0.5); v120(v119, &v159.origin); v121 = v119->setPosition; v122 = (__int64)v116->getPosition(v116); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 13.0, 0.0); cocos2d::CCPoint::operator+(&v159, v122, &v158); v121(v119, &v159.origin); v119->setScale(v119, 0.4); } else { v66 = v15->getPosition(v15)->x + 9.0; v67 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_downloadsIcon_001.png"); a1->m_mainLayer->addChild(a1->m_mainLayer, v67); v68 = v67->setPosition; cocos2d::CCPoint::CCPoint(&v159.origin, v66, 14.0); v68(v67, &v159.origin); v67->setScale(v67, 0.6); v69 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_likesIcon_001.png"); a1->m_mainLayer->addChild(a1->m_mainLayer, v69); v141 = (GameToolbox *)v69->setPosition; v70 = (__int64)v67->getPosition(v67); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 80.0, 0.0); cocos2d::CCPoint::operator+(&v159, v70, &v158); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCRect *))v141)(v69, &v159); v69->setScale(v69, 0.6); GameToolbox::intToShortString((GameToolbox *)(unsigned int)a1->m_levelList->m_downloads, (__int64)&v158); v71 = cocos2d::CCLabelBMFont::create(); v72 = &v158[-1].m_pTargetArray; if ( &v158[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 ) { if ( &pthread_create ) { v130 = (unsigned int *)&v158[-1].m_nExtraKerning; do v131 = __ldaxr(v130); while ( __stlxr(v131 - 1, v130) ); } else { v131 = v158[-1].m_nExtraKerning; v158[-1].m_nExtraKerning = v131 - 1; } if ( v131 <= 0 ) operator delete(v72); } a1->m_mainLayer->addChild(a1->m_mainLayer, v71); v142 = (GameToolbox *)v71->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v159.origin, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCRect *))v142)(v71, &v159); v143 = (GameToolbox *)v71->setPosition; v136 = (__int64)v67->getPosition(v67); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 9.0, 0.0); cocos2d::CCPoint::operator+(&v159, v136, &v158); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCRect *))v143)(v71, &v159); v71->setScale(v71, 0.4); cocos2d::CCLabelBMFont::limitLabelWidth(v71, 45.0, 0.4, 0.0); m_likes = a1->m_levelList->m_likes; setDisplayFrame = v69->setDisplayFrame; v73 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( (m_likes & 0x80000000) != 0 ) v74 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v73, "GJ_dislikesIcon_001.png"); else v74 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v73, "GJ_likesIcon_001.png"); setDisplayFrame(v69, v74); v138 = v69->setPosition; x = v71->getPosition(v71)->x; width = v71->getContentSize(v71)->width; v77 = (float)(x + (float)(width * v71->getScale(v71))) + 25.0; v78 = (__int64)v69->getPosition(v69); cocos2d::CCPoint::CCPoint(&v159.origin, v77, *(float *)(v78 + 4)); v138(v69, &v159.origin); GameToolbox::intToShortString((GameToolbox *)m_likes, (__int64)&v159); v79 = cocos2d::CCLabelBMFont::create(); v80 = (void *)(*(_QWORD *)&v159.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v159.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v132 = (unsigned int *)(*(_QWORD *)&v159.origin - 8LL); do v133 = __ldaxr(v132); while ( __stlxr(v133 - 1, v132) ); } else { v133 = *(_DWORD *)(*(_QWORD *)&v159.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v159.origin - 8LL) = v133 - 1; } if ( v133 <= 0 ) operator delete(v80); } a1->m_mainLayer->addChild(a1->m_mainLayer, v79); v145 = (GameToolbox *)v79->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v159.origin, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCRect *))v145)(v79, &v159); v146 = (GameToolbox *)v79->setPosition; v139 = (__int64)v69->getPosition(v69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 10.0, 0.0); cocos2d::CCPoint::operator+(&v159, v139, &v158); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCRect *))v146)(v79, &v159); v79->setScale(v79, 0.4); cocos2d::CCLabelBMFont::limitLabelWidth(v79, 45.0, 0.4, 0.0); v147 = (GameToolbox *)v69->setPosition; v140 = (__int64)v69->getPosition(v69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 0.0, 1.0); cocos2d::CCPoint::operator+(&v159, v140, &v158); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCRect *))v147)(v69, &v159); if ( v148 > hasClaimedListReward ) { v99 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v99, 10); v151 = (char *)v99->setPosition; v100 = (__int64)v49->getPosition(v49); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 73.0, 0.0); cocos2d::CCPoint::operator+(&v159, v100, &v158); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCRect *))v151)(v99, &v159); LODWORD(v151) = GJLevelList::totalLevels(a1->m_levelList); v101 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); a1->m_mainLayer->addChild(a1->m_mainLayer, v101); v102 = v67; v103 = v67->getPosition; v104 = v101->setPosition; v105 = (__int64)v103(v102); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 80.0, 0.0); cocos2d::CCPoint::operator+(&v159, v105, &v158); v104(v101, &v159.origin); v101->setScale(v101, 0.6); v106 = v101->setPosition; v107 = v79->getPosition(v79)->x; v108 = v79->getContentSize(v79)->width; v109 = (float)(v107 + (float)(v108 * v79->getScale(v79))) + 25.0; v110 = (__int64)v101->getPosition(v101); cocos2d::CCPoint::CCPoint(&v159.origin, v109, *(float *)(v110 + 4)); v106(v101, &v159.origin); v111 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", (const char *)v149, (unsigned int)v151); cocos2d::CCString::getCString(v111); v112 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild(a1->m_mainLayer, v112); v113 = v112->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v159.origin, 0.0, 0.5); v113(v112, &v159.origin); v114 = v112->setPosition; v115 = (__int64)v101->getPosition(v101); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 10.0, 0.0); cocos2d::CCPoint::operator+(&v159, v115, &v158); v114(v112, &v159.origin); v112->setScale(v112, 0.4); cocos2d::CCLabelBMFont::limitLabelWidth(v112, 45.0, 0.4, 0.0); } } v81 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v81->setScale(v81, 0.65); v164.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v164.adj = (size_t)LevelListCell::onListInfo; v82 = CCMenuItemSpriteExtra::create(v81, nullptr, v164); CCMenuItemSpriteExtra::setSizeMult(v82, 1.2); v33->addChild(v33, v82); v83 = v82->setPosition; v84 = (__int64)v15->getPosition(v15); v85 = v15->getContentSize(v15)->width; v86 = v15->getScale(v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, (float)(v85 * v86) + 15.0, -1.0); cocos2d::CCPoint::operator+(&v158, v84, &v157); v161 = cocos2d::CCNode::convertToNodeSpace(v33, (const cocos2d::CCPoint *)&v158); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v83)(v82, &v159, v161.x, v161.y); p_m_fBrVertexMod = (char *)&v153[-1].m_fBrVertexMod; if ( (__int64 *)&v153[-1].m_fBrVertexMod != &qword_124B6B0 ) { if ( &pthread_create ) { p_m_fTextureTop = (unsigned int *)&v153[-1].m_fTextureTop; do m_fTextureTop_low = __ldaxr(p_m_fTextureTop); while ( __stlxr(m_fTextureTop_low - 1, p_m_fTextureTop) ); } else { m_fTextureTop_low = LODWORD(v153[-1].m_fTextureTop); LODWORD(v153[-1].m_fTextureTop) = m_fTextureTop_low - 1; } if ( m_fTextureTop_low <= 0 ) operator delete(p_m_fBrVertexMod); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source