// // LevelListCell::loadFromList from 0x100245550 to 0x100246889 (4921 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x1002423a2 // // 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 __fastcall LevelListCell::loadFromList(LevelListCell *a1, GJLevelList *a2) { GJLevelList *m_levelList; // rdi const char *v4; // rdi cocos2d::CCSprite *v5; // r14 __int64 v6; // xmm0_8 int v7; // eax bool v8; // zf GameStatsManager *v9; // rax bool hasClaimedListReward; // r15 __int64 v11; // r12 cocos2d::CCSprite *v12; // r12 __int64 v13; // r13 const char *v14; // rdi cocos2d::CCLabelBMFont *v15; // r13 __int64 v16; // r12 char v17; // r13 GJLevelList *v18; // rax std::string *p_m_listName; // rax cocos2d::CCSprite *v20; // r15 __int64 v21; // rax const char *v22; // rdi cocos2d::CCLabelBMFont *v23; // r14 cocos2d::CCLabelBMFont *v24; // r14 cocos2d::CCString *v25; // rax const char *CString; // rax cocos2d::CCLabelBMFont *v27; // r14 cocos2d::CCLabelBMFont *v28; // r15 __int64 v29; // rsi __int64 v30; // r12 const char *v31; // rdi const char *v32; // r9 ButtonSprite *v33; // r14 unsigned int v34; // eax int v35; // edx int v36; // ecx int v37; // r8d int v38; // r9d const cocos2d::CCPoint *v39; // r15 float *v40; // rax double v41; // xmm0_8 GJLevelList *v42; // rax std::string *p_m_creatorName; // rax cocos2d::CCString *v44; // rax const char *v45; // r14 cocos2d::CCLabelBMFont *v46; // r14 __int64 v47; // r12 float v48; // xmm0_4 CCMenuItemSpriteExtra *v49; // rax const cocos2d::CCPoint *v50; // r15 CCMenuItemSpriteExtra *v51; // r14 cocos2d::CCSprite *v52; // r14 cocos2d::CCSprite *v53; // r12 int v54; // r15d __int64 v55; // rax float v56; // xmm2_4 cocos2d::CCString *v57; // rax const char *v58; // rax cocos2d::CCLabelBMFont *v59; // r12 __int64 v60; // r15 cocos2d::CCSprite *v61; // r14 float *v62; // rax const char *v63; // rdi cocos2d::CCLabelBMFont *v64; // r12 __int64 v65; // r14 cocos2d::CCSprite *v66; // r15 cocos2d::CCSprite *v67; // r12 __int64 v68; // r13 const char *v69; // rdi cocos2d::CCLabelBMFont *v70; // r13 __int64 v71; // r15 int m_likes; // r15d cocos2d::CCSpriteFrameCache *v73; // rax const char *v74; // rsi cocos2d::CCSpriteFrame *v75; // rax __int64 v76; // rax const char *v77; // rdi cocos2d::CCLabelBMFont *v78; // r13 __int64 v79; // r15 __int64 v80; // r15 cocos2d::CCSprite *v81; // r12 __int64 v82; // r14 cocos2d::CCSprite *v83; // r14 __int64 v84; // r15 __int64 v85; // rax cocos2d::CCString *v86; // rax const char *v87; // rax cocos2d::CCLabelBMFont *v88; // r12 __int64 v89; // r14 cocos2d::CCSprite *v90; // r14 CCMenuItemSpriteExtra *v91; // rbx cocos2d::CCLabelBMFont *v92; // r15 __int64 v93; // r14 float v94; // xmm0_4 char v95; // [rsp+0h] [rbp-B0h] char v96; // [rsp+0h] [rbp-B0h] char v97; // [rsp+0h] [rbp-B0h] _BYTE v98[8]; // [rsp+8h] [rbp-A8h] BYREF char v99; // [rsp+10h] [rbp-A0h] BYREF char v100; // [rsp+11h] [rbp-9Fh] BYREF void *v101; // [rsp+20h] [rbp-90h] float v102; // [rsp+28h] [rbp-88h] float v103; // [rsp+2Ch] [rbp-84h] const cocos2d::CCPoint *v104; // [rsp+30h] [rbp-80h] __int16 v105; // [rsp+38h] [rbp-78h] BYREF char v106; // [rsp+3Ah] [rbp-76h] _BYTE v107[8]; // [rsp+3Ch] [rbp-74h] BYREF float v108; // [rsp+44h] [rbp-6Ch] cocos2d::CCLabelBMFont *v109; // [rsp+48h] [rbp-68h] float v110; // [rsp+54h] [rbp-5Ch] cocos2d::CCSprite *v111; // [rsp+58h] [rbp-58h] float m_width; // [rsp+64h] [rbp-4Ch] _BYTE v113[8]; // [rsp+68h] [rbp-48h] BYREF __int128 v114; // [rsp+70h] [rbp-40h] BYREF void *__p; // [rsp+80h] [rbp-30h] double v116; // 0:xmm0_8.8 double v117; // 0:xmm0_8.8 ((void (__fastcall *)(cocos2d::CCLayer *, __int64))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(&v99, (unsigned int)a1->m_levelList->m_difficulty, 0); if ( (v99 & 1) != 0 ) v4 = (const char *)v101; else v4 = &v100; v5 = cocos2d::CCSprite::createWithSpriteFrameName(v4); v6 = 1104150528; sub_10028CBE0(&v114, 26.0, a1->m_height * 0.5); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v5->setPosition)(v5, &v114); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v5, 2); v110 = COERCE_FLOAT(GJLevelList::completedLevels(a1->m_levelList)); v7 = GJLevelList::totalLevels(a1->m_levelList); v8 = a2->m_diamonds > 0 && a2->m_levelsToClaim > 0; LOBYTE(v108) = a2->m_diamonds <= 0 || a2->m_levelsToClaim <= 0; LODWORD(v111) = v7; if ( v8 ) { v9 = GameStatsManager::sharedState(); hasClaimedListReward = GameStatsManager::hasClaimedListReward(v9, a1->m_levelList); v11 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v5->getPosition)(v5); sub_10028CBE0(v107, 0.0, 5.0); sub_10028CCE0(&v114, v11); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v5->setPosition)(v5, &v114); v12 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v12); v13 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v5->getPosition)(v5); sub_10028CBE0(v107, 8.0, -30.0); sub_10028CCE0(&v114, v13); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v12->setPosition)(v12, &v114); GameToolbox::intToString(&v114, (unsigned int)a1->m_levelList->m_diamonds); if ( (v114 & 1) != 0 ) v14 = (const char *)__p; else v14 = (char *)&v114 + 1; v15 = cocos2d::CCLabelBMFont::create_3(v14, "bigFont.fnt"); if ( (v114 & 1) != 0 ) operator delete(__p); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v15); sub_10028CBE0(&v114, 1.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v15->setAnchorPoint)(v15, &v114); v16 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v12->getPosition)(v12); sub_10028CBE0(v107, -8.0, 0.0); sub_10028CCE0(&v114, v16); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v15->setPosition)(v15, &v114); v6 = 1053609165; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v15->setScale)(v15, 0.40000001); if ( hasClaimedListReward ) { BYTE2(v114) = -1; LOWORD(v114) = -156; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v15->setColor)(v15, &v114); v17 = 1; v18 = a1->m_levelList; if ( !v18->m_featured ) goto LABEL_14; LABEL_18: v20 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_featuredCoin_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v20, 1); v21 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v5->getPosition)(v5); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v20->setPosition)(v20, v21); v18 = a1->m_levelList; if ( (v18->m_listName.m_data.m_short.sizex2 & 1) == 0 ) goto LABEL_15; goto LABEL_19; } LODWORD(v111) = a1->m_levelList->m_levelsToClaim; } v17 = 0; v18 = a1->m_levelList; if ( v18->m_featured ) goto LABEL_18; LABEL_14: if ( (v18->m_listName.m_data.m_short.sizex2 & 1) == 0 ) { LABEL_15: p_m_listName = &v18->m_listName; __p = p_m_listName->m_data.m_long.longStorage; v114 = *(_OWORD *)&p_m_listName->m_data.m_short.sizex2; goto LABEL_20; } LABEL_19: sub_100006B70(&v114, v18->m_listName.m_data.m_long.longStorage, v18->m_listName.m_data.m_long.size, *(double *)&v6); LABEL_20: if ( (v114 & 1) != 0 ) v22 = (const char *)__p; else v22 = (char *)&v114 + 1; v109 = cocos2d::CCLabelBMFont::create_3(v22, "bigFont.fnt"); if ( (v114 & 1) != 0 ) operator delete(__p); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v109); sub_10028CBE0(&v114, 0.0, 0.5); v23 = v109; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v109->setAnchorPoint)(v109, &v114); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v23->setScale)(v23, 1.0); sub_10028CBE0(&v114, 50.0, (float)(a1->m_height * 0.5) + 30.0); v24 = v109; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v109->setPosition)(v109, &v114); cocos2d::CCLabelBMFont::limitLabelWidth(v24, 190.0, 0.69999999, 0.0); if ( a1->m_levelList->m_listRevision > 0 ) { v25 = (cocos2d::CCString *)sub_1007AB580("Rev. %i", v95); CString = cocos2d::CCString::getCString(v25); v27 = cocos2d::CCLabelBMFont::create_3(CString, "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v27); sub_10028CBE0(&v114, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v27->setAnchorPoint)(v27, &v114); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v27->setScale)(v27, 0.40000001); v28 = v109; LODWORD(v104) = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v109->getScale)(v109); v29 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v28->getContentSize)(v28); sub_10028CFC0(&v114, v29); v30 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v109->getPosition)(v109); sub_10028CBE0(v113, (float)(*(float *)&v104 * *(float *)&v114) + 30.0, -1.0); sub_10028CCE0(v107, v30); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v27->setPosition)(v27, v107); } v31 = "View"; if ( a1->m_addingLevel ) v31 = "Add"; v32 = "GJ_button_01.png"; if ( a1->m_addingLevel ) v32 = "GJ_button_02.png"; v33 = ButtonSprite::create_1(v31, 50, 0, 0.60000002, 0, "bigFont.fnt", v32, 30.0); v34 = (unsigned int)CCMenuItemSpriteExtra::create( v33, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelListCell::onClick); v39 = (const cocos2d::CCPoint *)sub_100792C50(v34, 0, v35, v36, v37, v38); ((void (__fastcall *)(cocos2d::CCLayer *, const cocos2d::CCPoint *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v39, 3); v104 = v39; m_width = a1->m_width; v40 = (float *)((__int64 (__fastcall *)(ButtonSprite *))v33->getContentSize)(v33); *(_QWORD *)&v41 = LODWORD(m_width); *(float *)&v41 = (float)(m_width - (float)(*v40 * 0.5)) + -9.0; sub_10028CBE0(&v114, *(float *)&v41, a1->m_height * 0.5); (*(void (__fastcall **)(const cocos2d::CCPoint *, __int128 *))(*(_QWORD *)v104 + 184LL))(v104, &v114); v42 = a1->m_levelList; if ( (v42->m_creatorName.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70(&v114, v42->m_creatorName.m_data.m_long.longStorage, v42->m_creatorName.m_data.m_long.size, v41); } else { p_m_creatorName = &v42->m_creatorName; __p = p_m_creatorName->m_data.m_long.longStorage; v114 = *(_OWORD *)&p_m_creatorName->m_data.m_short.sizex2; } v44 = (cocos2d::CCString *)sub_1007AB580("By %s", v95); v45 = cocos2d::CCString::getCString(v44); if ( (v114 & 1) != 0 ) operator delete(__p); v46 = cocos2d::CCLabelBMFont::create_3(v45, "goldFont.fnt"); cocos2d::CCLabelBMFont::limitLabelWidth(v46, 140.0, 0.69999999, 0.0); v47 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v109->getPosition)(v109); m_width = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v46->getContentSize)(v46); v48 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v46->getScale)(v46); sub_10028CBE0(&v114, (float)((float)(m_width * 0.5) * v48) + 2.0, -21.0); sub_10028CCE0(v107, v47); v49 = CCMenuItemSpriteExtra::create( v46, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelListCell::onViewProfile); v50 = v104; v51 = v49; (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v104 + 440LL))(v104, v49); *(cocos2d::CCPoint *)&v116 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v114, v50); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *, double))v51->setPosition)(v51, &v114, v116); v106 = 0; v105 = 0; v52 = cocos2d::CCSprite::create_1("GJ_progressBar_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v52->setColor)(v52, &v105); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v52->setOpacity)(v52, 125); ((void (__fastcall *)(cocos2d::CCSprite *, float))v52->setScaleY)(v52, 0.64000005); ((void (__fastcall *)(cocos2d::CCSprite *, float))v52->setScaleX)(v52, 0.48000002); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v52, 3); sub_10028CBE0(&v114, (float)(a1->m_width * 0.5) + -45.0, (float)(0.5 * a1->m_height) + -12.0); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v52->setPosition)(v52, &v114); v53 = cocos2d::CCSprite::create_1("GJ_progressBar_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v53->setScaleX)(v53, 0.97799999); ((void (__fastcall *)(cocos2d::CCSprite *, float))v53->setScaleY)(v53, 0.75999999); LOBYTE(v108) |= v17; if ( LOBYTE(v108) ) { BYTE2(v114) = -1; LOWORD(v114) = -16816; } else { BYTE2(v114) = 50; LOWORD(v114) = 21759; } ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v53->setColor)(v53, &v114); v54 = (int)v111; *(float *)&v111 = v53->m_obRect.size.width; ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))v52->addChild_0)(v52, v53, 1); sub_10028CBE0(&v114, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v53->setAnchorPoint)(v53, &v114); v55 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v52->getContentSize)(v52); sub_10028CBE0( &v114, (float)((float)(-0.97799999 * *(float *)&v111) + *(float *)&v111) * 0.5, 0.5 * *(float *)(v55 + 4)); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v53->setPosition)(v53, &v114); if ( v54 <= 0 ) v56 = 0.0; else v56 = (float)SLODWORD(v110) / (float)v54; sub_10028CC00( &v114, 0.0, 0.0, fminf(v56 * v53->m_obRect.size.width, v53->m_obRect.size.width), v53->m_obRect.size.height); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v53->setTextureRect)(v53, &v114); v57 = (cocos2d::CCString *)sub_1007AB580("%i/%i", v96); v58 = cocos2d::CCString::getCString(v57); v59 = cocos2d::CCLabelBMFont::create_3(v58, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v59, 4); v60 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v52->getPosition)(v52); sub_10028CBE0(v113, 0.0, 0.5); sub_10028CCE0(&v114, v60); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v59->setPosition)(v59, &v114); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v59->setScale)(v59, 0.40000001); if ( a1->m_levelList->m_listType == Editor ) { v61 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v61); v62 = (float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v109->getPosition)(v109); sub_10028CBE0(&v114, *v62 + 8.0, 14.0); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v61->setPosition)(v61, &v114); ((void (__fastcall *)(cocos2d::CCSprite *, float))v61->setScale)(v61, 0.60000002); v63 = "Unpublished"; if ( a1->m_levelList->m_uploaded ) v63 = "Uploaded"; v64 = cocos2d::CCLabelBMFont::create_3(v63, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v64); sub_10028CBE0(&v114, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v64->setAnchorPoint)(v64, &v114); v65 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v61->getPosition)(v61); sub_10028CBE0(v113, 13.0, 0.0); sub_10028CCE0(&v114, v65); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v64->setPosition)(v64, &v114); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v64->setScale)(v64, 0.40000001); } else { m_width = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v109->getPosition)(v109); v111 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_downloadsIcon_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v111); sub_10028CBE0(&v114, m_width + 9.0, 14.0); v66 = v111; ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v111->setPosition)(v111, &v114); ((void (__fastcall *)(cocos2d::CCSprite *, float))v66->setScale)(v66, 0.60000002); v67 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_likesIcon_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v67); v68 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v111->getPosition)(v111); sub_10028CBE0(v113, 80.0, 0.0); sub_10028CCE0(&v114, v68); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v67->setPosition)(v67, &v114); ((void (__fastcall *)(cocos2d::CCSprite *, float))v67->setScale)(v67, 0.60000002); GameToolbox::intToShortString(&v114, (unsigned int)a1->m_levelList->m_downloads); if ( (v114 & 1) != 0 ) v69 = (const char *)__p; else v69 = (char *)&v114 + 1; v70 = cocos2d::CCLabelBMFont::create_3(v69, "bigFont.fnt"); if ( (v114 & 1) != 0 ) operator delete(__p); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v70); sub_10028CBE0(&v114, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v70->setAnchorPoint)(v70, &v114); v71 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v111->getPosition)(v111); sub_10028CBE0(v113, 9.0, 0.0); sub_10028CCE0(&v114, v71); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v70->setPosition)(v70, &v114); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v70->setScale)(v70, 0.40000001); cocos2d::CCLabelBMFont::limitLabelWidth(v70, 45.0, 0.40000001, 0.0); m_likes = a1->m_levelList->m_likes; v73 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( m_likes < 0 ) v74 = "GJ_dislikesIcon_001.png"; else v74 = "GJ_likesIcon_001.png"; v75 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v73, v74); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))v67->setDisplayFrame)(v67, v75); m_width = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v70->getPosition)(v70); v102 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v70->getContentSize)(v70); v103 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v70->getScale)(v70); v76 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v67->getPosition)(v67); sub_10028CBE0(&v114, (float)((float)(v102 * v103) + m_width) + 25.0, *(float *)(v76 + 4)); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v67->setPosition)(v67, &v114); GameToolbox::intToShortString(&v114, (unsigned int)m_likes); if ( (v114 & 1) != 0 ) v77 = (const char *)__p; else v77 = (char *)&v114 + 1; v78 = cocos2d::CCLabelBMFont::create_3(v77, "bigFont.fnt"); if ( (v114 & 1) != 0 ) operator delete(__p); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v78); sub_10028CBE0(&v114, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v78->setAnchorPoint)(v78, &v114); v79 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v67->getPosition)(v67); sub_10028CBE0(v113, 10.0, 0.0); sub_10028CCE0(&v114, v79); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v78->setPosition)(v78, &v114); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v78->setScale)(v78, 0.40000001); cocos2d::CCLabelBMFont::limitLabelWidth(v78, 45.0, 0.40000001, 0.0); v80 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v67->getPosition)(v67); sub_10028CBE0(v113, 0.0, 1.0); sub_10028CCE0(&v114, v80); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v67->setPosition)(v67, &v114); if ( !LOBYTE(v108) ) { v81 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v81, 10); v82 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v52->getPosition)(v52); sub_10028CBE0(v113, 73.0, 0.0); sub_10028CCE0(&v114, v82); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v81->setPosition)(v81, &v114); GJLevelList::totalLevels(a1->m_levelList); v83 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v83); v84 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v111->getPosition)(v111); sub_10028CBE0(v113, 80.0, 0.0); sub_10028CCE0(&v114, v84); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v83->setPosition)(v83, &v114); ((void (__fastcall *)(cocos2d::CCSprite *, float))v83->setScale)(v83, 0.60000002); LODWORD(v111) = *(_DWORD *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v78->getPosition)(v78); v108 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v78->getContentSize)(v78); m_width = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v78->getScale)(v78); v85 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v83->getPosition)(v83); sub_10028CBE0(&v114, (float)((float)(v108 * m_width) + *(float *)&v111) + 25.0, *(float *)(v85 + 4)); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v83->setPosition)(v83, &v114); v86 = (cocos2d::CCString *)sub_1007AB580("%i/%i", v97); v87 = cocos2d::CCString::getCString(v86); v88 = cocos2d::CCLabelBMFont::create_3(v87, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, v88); sub_10028CBE0(&v114, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v88->setAnchorPoint)(v88, &v114); v89 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v83->getPosition)(v83); sub_10028CBE0(v113, 10.0, 0.0); sub_10028CCE0(&v114, v89); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v88->setPosition)(v88, &v114); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v88->setScale)(v88, 0.40000001); cocos2d::CCLabelBMFont::limitLabelWidth(v88, 45.0, 0.40000001, 0.0); } } v90 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v90->setScale)(v90, 0.64999998); v91 = CCMenuItemSpriteExtra::create( v90, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelListCell::onListInfo); CCMenuItemSpriteExtra::setSizeMult(v91, 1.2); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v104 + 440LL))(v104, v91); v92 = v109; v93 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v109->getPosition)(v109); v110 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v92->getContentSize)(v92); v94 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v92->getScale)(v92); sub_10028CBE0(v98, (float)(v110 * v94) + 15.0, -1.0); sub_10028CCE0(v113, v93); *(cocos2d::CCPoint *)&v117 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v114, v104); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *, double))v91->setPosition)(v91, &v114, v117); if ( (v99 & 1) != 0 ) operator delete(v101); }
GD Web Decomp Icon

GD Web Decomp

Raw Source