// // LevelListCell::loadFromList from 0x1400becb0 to 0x1400c00d7 (5159 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x1400ab7fa // > @ 0x1406c7ec0 // // 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 // // Hidden C++ exception states: #wind=5 void LevelListCell::loadFromList(LevelListCell *a1, GJLevelList *a2) { GJLevelList *v2; // rdi GJLevelList *m_levelList; // rcx unsigned int m_difficulty; // edx cocos2d::CCString *v6; // rax const char *CString; // rax size_t v8; // r8 void **v9; // rcx struct cocos2d::CCSprite *v10; // rsi cocos2d::CCSprite_vtbl *v11; // rbx const cocos2d::CCPoint *v12; // rax signed __int64 v13; // r12 bool hasClaimedListReward; // r13 GameStatsManager *v15; // rcx __int64 v16; // rax struct cocos2d::CCSprite *v17; // r15 __int64 v18; // rax const char *v19; // rax struct cocos2d::CCLabelBMFont *v20; // rdi cocos2d::CCLabelBMFont_vtbl *v21; // rbx const cocos2d::CCPoint *v22; // rax __int64 v23; // rax struct cocos2d::CCSprite *v24; // rdi cocos2d::CCSprite_vtbl *v25; // rbx __int64 v26; // rax const char *v27; // rcx struct cocos2d::CCLabelBMFont *v28; // r15 cocos2d::CCLabelBMFont_vtbl *v29; // rbx const cocos2d::CCPoint *v30; // rax cocos2d::CCLabelBMFont_vtbl *v31; // rbx const cocos2d::CCPoint *v32; // rax int m_listRevision; // edx cocos2d::CCString *v34; // rax const char *v35; // rax struct cocos2d::CCLabelBMFont *v36; // rdi cocos2d::CCLabelBMFont_vtbl *v37; // rbx const cocos2d::CCPoint *v38; // rax double v39; // xmm0_8 float v40; // xmm6_4 const struct cocos2d::CCSize *v41; // rax __int64 v42; // rax bool m_addingLevel; // al const char *v44; // rdx const char *v45; // rcx ButtonSprite *v46; // rbx CCMenuItemSpriteExtra *v47; // rax struct cocos2d::CCMenu *v48; // rsi cocos2d::CCMenu_vtbl *v49; // rdi float v50; // xmm6_4 float width; // xmm0_4 const cocos2d::CCPoint *v52; // rax const char *origin; // rdx cocos2d::CCString *v54; // rax const char *v55; // rbx cocos2d::CCLabelBMFont *v56; // rdi float v57; // xmm6_4 double v58; // xmm0_8 __int64 v59; // rax CCMenuItemSpriteExtra *v60; // rdi CCMenuItemSpriteExtra_vtbl *v61; // rbx struct cocos2d::CCPoint v62; // rax struct cocos2d::CCSprite *v63; // rsi __int64 v64; // rdx cocos2d::CCSprite_vtbl *v65; // rbx const cocos2d::CCPoint *v66; // rax struct cocos2d::CCSprite *v67; // rdi float v68; // xmm6_4 cocos2d::CCSprite_vtbl *v69; // rbx const cocos2d::CCPoint *v70; // rax cocos2d::CCSprite_vtbl *v71; // rbx __int64 v72; // rax const cocos2d::CCPoint *v73; // rax float v74; // xmm1_4 float x; // r13d float v76; // xmm3_4 cocos2d::CCSprite_vtbl *v77; // rbx const cocos2d::CCRect *v78; // rax cocos2d::CCString *v79; // rax const char *v80; // rax struct cocos2d::CCLabelBMFont *v81; // rdi __int64 v82; // rax float v83; // xmm6_4 struct cocos2d::CCSprite *v84; // r13 cocos2d::CCSprite_vtbl *v85; // rbx const cocos2d::CCPoint *v86; // rax struct cocos2d::CCSprite *v87; // rdi __int64 v88; // rax const char *v89; // rax struct cocos2d::CCLabelBMFont *v90; // rsi cocos2d::CCLabelBMFont_vtbl *v91; // rbx const cocos2d::CCPoint *v92; // rax __int64 v93; // rax int m_likes; // r12d cocos2d::CCSprite_vtbl *v95; // rbx cocos2d::CCSpriteFrameCache *v96; // rcx const char *v97; // rdx struct cocos2d::CCSpriteFrame *v98; // rax cocos2d::CCSprite_vtbl *v99; // rbx float y; // xmm8_4 float v101; // xmm6_4 double v102; // xmm0_8 float v103; // xmm7_4 const cocos2d::CCPoint *v104; // rax const char *v105; // rax struct cocos2d::CCLabelBMFont *v106; // r12 cocos2d::CCLabelBMFont_vtbl *v107; // rbx const cocos2d::CCPoint *v108; // rax __int64 v109; // rax __int64 v110; // rax struct cocos2d::CCSprite *v111; // rdi __int64 v112; // rax signed __int64 v113; // rdi struct cocos2d::CCSprite *v114; // rsi __int64 v115; // rax cocos2d::CCSprite_vtbl *v116; // rbx float v117; // xmm8_4 float v118; // xmm6_4 double v119; // xmm0_8 float v120; // xmm7_4 const cocos2d::CCPoint *v121; // rax cocos2d::CCString *v122; // rax const char *v123; // rax struct cocos2d::CCLabelBMFont *v124; // rdi cocos2d::CCLabelBMFont_vtbl *v125; // rbx const cocos2d::CCPoint *v126; // rax __int64 v127; // rax struct cocos2d::CCSprite *v128; // rsi cocos2d::CCSprite_vtbl *v129; // rbx float *v130; // rax const cocos2d::CCPoint *v131; // rax const char *v132; // rcx struct cocos2d::CCLabelBMFont *v133; // rdi cocos2d::CCLabelBMFont_vtbl *v134; // rbx const cocos2d::CCPoint *v135; // rax __int64 v136; // rax struct cocos2d::CCSprite *v137; // rbx CCMenuItemSpriteExtra *v138; // rdi cocos2d::CCNode *v139; // rsi float *v140; // rbx double v141; // xmm0_8 __int64 v142; // rax CCMenuItemSpriteExtra_vtbl *v143; // rbx struct cocos2d::CCPoint v144; // rax void *v145; // rcx __int16 v146; // [rsp+48h] [rbp-C0h] BYREF char v147; // [rsp+4Ah] [rbp-BEh] char v148; // [rsp+4Ch] [rbp-BCh] cocos2d::CCPoint v149; // [rsp+50h] [rbp-B8h] BYREF __int64 v150; // [rsp+58h] [rbp-B0h] cocos2d::CCNode *v151; // [rsp+60h] [rbp-A8h] BYREF _QWORD *v152; // [rsp+68h] [rbp-A0h] BYREF cocos2d::CCPoint v153; // [rsp+70h] [rbp-98h] BYREF __int16 v154; // [rsp+78h] [rbp-90h] BYREF char v155; // [rsp+7Ah] [rbp-8Eh] cocos2d::CCPoint v156; // [rsp+7Ch] [rbp-8Ch] BYREF char v157[8]; // [rsp+88h] [rbp-80h] BYREF void *Block[2]; // [rsp+90h] [rbp-78h] BYREF __int64 v159; // [rsp+A0h] [rbp-68h] unsigned __int64 v160; // [rsp+A8h] [rbp-60h] cocos2d::CCRect v161; // [rsp+B0h] [rbp-58h] BYREF unsigned __int64 v162; // [rsp+C8h] [rbp-40h] _QWORD v163[4]; // [rsp+D0h] [rbp-38h] BYREF _QWORD v164[4]; // [rsp+F0h] [rbp-18h] BYREF v2 = a2; LOBYTE(a2) = 1; a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, (bool)a2); m_levelList = a1->m_levelList; if ( m_levelList ) cocos2d::CCObject::release(m_levelList); a1->m_levelList = v2; cocos2d::CCObject::retain(v2); m_difficulty = a1->m_levelList->m_difficulty; if ( m_difficulty ) { if ( m_difficulty <= 0xA ) { if ( m_difficulty == 6 || m_difficulty == 7 ) { ++m_difficulty; } else if ( m_difficulty == 8 ) { m_difficulty = 6; } } else { m_difficulty = 0; } v6 = cocos2d::CCString::createWithFormat("difficulty_%02d_btn_001.png", m_difficulty); CString = cocos2d::CCString::getCString(v6); *(_OWORD *)Block = 0; v159 = 0; v160 = 0; v8 = -1; do ++v8; while ( CString[v8] ); sub_14003A930(Block, CString, v8); } else { *(_OWORD *)Block = 0; Block[0] = sub_14003AA10(0x20u); v159 = 27; v160 = 31; strcpy((char *)Block[0], "difficulty_auto_btn_001.png"); } v9 = Block; if ( v160 > 0xF ) v9 = (void **)Block[0]; v10 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v9); v11 = v10->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, 26.0, a1->m_height * 0.5); v11->setPosition_0(v10, v12); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v10, 2); LODWORD(v156.x) = GJLevelList::completedLevels(a1->m_levelList); v13 = a1->m_levelList->m_levels._Mypair._Myval2._Mylast - a1->m_levelList->m_levels._Mypair._Myval2._Myfirst; v148 = 0; hasClaimedListReward = 0; LOBYTE(v150) = 0; if ( v2->m_diamonds > 0 && v2->m_levelsToClaim > 0 ) { v148 = 1; v15 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v151 = (cocos2d::CCNode *)operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v151); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v15 = (GameStatsManager *)qword_1406C2EE8; } hasClaimedListReward = GameStatsManager::hasClaimedListReward(v15, a1->m_levelList); LOBYTE(v150) = hasClaimedListReward; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, 0.0, 5.0); v16 = (__int64)v10->getPosition_0(v10); cocos2d::CCPoint::operator+(v16, &v152); v10->setPosition_0(v10, (const cocos2d::CCPoint *)&v152); v17 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v17); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, 8.0, -30.0); v18 = (__int64)v10->getPosition_0(v10); cocos2d::CCPoint::operator+(v18, &v152); v17->setPosition_0(v17, (const cocos2d::CCPoint *)&v152); v19 = (const char *)GameToolbox::intToString(v163, a1->m_levelList->m_diamonds); if ( *((_QWORD *)v19 + 3) > 0xFu ) v19 = *(const char **)v19; v20 = cocos2d::CCLabelBMFont::create(v19, (const char *)&qword_14052A4D8); sub_14003A830((__int64)v163); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v20); v21 = v20->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, 1.0, 0.5); v21->setAnchorPoint(v20, v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, -8.0, 0.0); v23 = (__int64)v17->getPosition_0(v17); cocos2d::CCPoint::operator+(v23, &v152); v20->setPosition_0(v20, (const cocos2d::CCPoint *)&v152); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v20->setScale_0)(v20); if ( hasClaimedListReward ) { v146 = -156; v147 = -1; v20->setColor(&v20->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v146); } else { LODWORD(v13) = a1->m_levelList->m_levelsToClaim; } } if ( a1->m_levelList->m_featured ) { v24 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_featuredCoin_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v24, 1); v25 = v24->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v26 = (__int64)v10->getPosition_0(v10); v25->setPosition_0(v24, (const cocos2d::CCPoint *)v26); } sub_14003BDB0((__int64)v163, (__int64)&a1->m_levelList->m_listName); v27 = (const char *)v163; if ( v163[3] > 0xFu ) v27 = (const char *)v163[0]; v28 = cocos2d::CCLabelBMFont::create(v27, (const char *)&qword_14052A4D8); sub_14003A830((__int64)v163); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v28); v29 = v28->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, 0.0, 0.5); v29->setAnchorPoint(v28, v30); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v28->setScale_0)(v28); v31 = v28->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, 50.0, (float)(a1->m_height * 0.5) + 30.0); v31->setPosition_0(v28, v32); cocos2d::CCLabelBMFont::limitLabelWidth(v28, 190.0, 0.69999999, 0.0); m_listRevision = a1->m_levelList->m_listRevision; if ( m_listRevision > 0 ) { v34 = cocos2d::CCString::createWithFormat("Rev. %i", m_listRevision); v35 = cocos2d::CCString::getCString(v34); v36 = cocos2d::CCLabelBMFont::create(v35, "goldFont.fnt"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v36); v37 = v36->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, 0.0, 0.5); v37->setAnchorPoint(v36, v38); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v36->setScale_0)(v36); v39 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v28->getScale)(v28); v40 = *(float *)&v39; v41 = v28->getContentSize(v28); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v152, v41); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, (float)(*(float *)&v152 * v40) + 30.0, -1.0); v42 = (__int64)v28->getPosition_0(v28); cocos2d::CCPoint::operator+(v42, &v149); v36->setPosition_0(v36, &v149); } m_addingLevel = a1->m_addingLevel; v44 = "GJ_button_01.png"; if ( m_addingLevel ) v44 = "GJ_button_02.png"; v45 = "View"; if ( m_addingLevel ) v45 = "Add"; v46 = ButtonSprite::create_1(v45, 50, 0, 0.60000002, 0, (const char *)&qword_14052A4D8, v44, 30.0); v47 = CCMenuItemSpriteExtra::create(v46, nullptr, a1, (cocos2d::SEL_MenuHandler *)LevelListCell::onClick); v48 = cocos2d::CCMenu::create(v47, 0); v151 = v48; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v48, 3); v49 = v48->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v50 = a1->m_height * 0.5; width = v46->getContentSize(v46)->width; cocos2d::CCPoint::CCPoint(&v149, (float)(a1->m_width - (float)(width * 0.5)) - 9.0, v50); v49->setPosition_0(v48, v52); sub_14003BDB0((__int64)&v161, (__int64)&a1->m_levelList->m_creatorName); origin = (const char *)&v161; if ( v162 > 0xF ) origin = (const char *)v161.origin; v54 = cocos2d::CCString::createWithFormat("By %s", origin); v55 = cocos2d::CCString::getCString(v54); sub_14003A830((__int64)&v161); v56 = cocos2d::CCLabelBMFont::create(v55, "goldFont.fnt"); cocos2d::CCLabelBMFont::limitLabelWidth(v56, 140.0, 0.69999999, 0.0); v57 = v56->getContentSize(v56)->width * 0.5; v58 = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v56->getScale)(v56); cocos2d::CCPoint::CCPoint(&v149, (float)(*(float *)&v58 * v57) + 2.0, -21.0); v59 = (__int64)v28->getPosition_0(v28); cocos2d::CCPoint::operator+(v59, v157); v60 = CCMenuItemSpriteExtra::create(v56, nullptr, a1, (cocos2d::SEL_MenuHandler *)LevelListCell::onViewProfile); v48->addChild_1(v48, v60); v61 = v60->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v62 = cocos2d::CCNode::convertToNodeSpace(v48, &v149); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v61->setPosition_0)(v60, v62); v154 = 0; v155 = 0; v63 = cocos2d::CCSprite::create("GJ_progressBar_001.png"); v152 = &v63->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v63->setColor(&v63->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v154); LOBYTE(v64) = 125; v63->setOpacity(&v63->cocos2d::CCRGBAProtocol, v64); ((void (__fastcall *)(struct cocos2d::CCSprite *))v63->setScaleY)(v63); ((void (__fastcall *)(struct cocos2d::CCSprite *))v63->setScaleX)(v63); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v63, 3); v65 = v63->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v149, (float)(a1->m_width * 0.5) - 45.0, (float)(a1->m_height * 0.5) - 12.0); v65->setPosition_0(v63, v66); v67 = cocos2d::CCSprite::create("GJ_progressBar_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v67->setScaleX)(v67); ((void (__fastcall *)(struct cocos2d::CCSprite *))v67->setScaleY)(v67); if ( !v148 || hasClaimedListReward ) { v146 = -16816; v147 = -1; } else { v146 = 21759; v147 = 50; } v67->setColor(&v67->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v146); v68 = v67->m_obRect.size.width - (float)(v67->m_obRect.size.width * 0.97799999); v63->addChild_0(v63, v67, 1); v69 = v67->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v149, 0.0, 0.5); v69->setAnchorPoint(v67, v70); v71 = v67->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v72 = (__int64)v63->getContentSize(v63); cocos2d::CCPoint::CCPoint(&v149, v68 * 0.5, *(float *)(v72 + 4) * 0.5); v71->setPosition_0(v67, v73); v74 = 0.0; x = v156.x; if ( (int)v13 > 0 ) v74 = (float)SLODWORD(v156.x) / (float)(int)v13; v76 = v67->m_obRect.size.width; if ( (float)(v74 * v76) <= v76 ) v76 = v76 * v74; v77 = v67->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCRect::CCRect(&v161, 0.0, 0.0, v76, v67->m_obRect.size.height); v77->setTextureRect_0(v67, v78); v79 = cocos2d::CCString::createWithFormat("%i/%i", x, v13); v80 = cocos2d::CCString::getCString(v79); v81 = cocos2d::CCLabelBMFont::create(v80, (const char *)&qword_14052A4D8); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v81, 4); cocos2d::CCPoint::CCPoint(&v153, 0.0, 0.5); v82 = (__int64)v63->getPosition_0(v63); cocos2d::CCPoint::operator+(v82, &v149); v81->setPosition_0(v81, &v149); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v81->setScale_0)(v81); if ( a1->m_levelList->m_listType == Editor ) { v128 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v128); v129 = v128->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v130 = (float *)v28->getPosition_0(v28); cocos2d::CCPoint::CCPoint(&v161.origin, *v130 + 8.0, 14.0); v129->setPosition_0(v128, v131); ((void (__fastcall *)(struct cocos2d::CCSprite *))v128->setScale_0)(v128); v132 = "Uploaded"; if ( !a1->m_levelList->m_uploaded ) v132 = "Unpublished"; v133 = cocos2d::CCLabelBMFont::create(v132, (const char *)&qword_14052A4D8); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v133); v134 = v133->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v153, 0.0, 0.5); v134->setAnchorPoint(v133, v135); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v152, 13.0, 0.0); v136 = (__int64)v128->getPosition_0(v128); cocos2d::CCPoint::operator+(v136, &v149); v133->setPosition_0(v133, &v149); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v133->setScale_0)(v133); } else { v83 = v28->getPosition_0(v28)->x + 9.0; v84 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_downloadsIcon_001.png"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v84); v85 = v84->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v153, v83, 14.0); v85->setPosition_0(v84, v86); ((void (__fastcall *)(struct cocos2d::CCSprite *))v84->setScale_0)(v84); v87 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_likesIcon_001.png"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v87); cocos2d::CCPoint::CCPoint(&v153, 80.0, 0.0); v88 = (__int64)v84->getPosition_0(v84); cocos2d::CCPoint::operator+(v88, &v149); v87->setPosition_0(v87, &v149); ((void (__fastcall *)(struct cocos2d::CCSprite *))v87->setScale_0)(v87); v89 = (const char *)GameToolbox::intToShortString(&v161, a1->m_levelList->m_downloads); if ( *((_QWORD *)v89 + 3) > 0xFu ) v89 = *(const char **)v89; v90 = cocos2d::CCLabelBMFont::create(v89, (const char *)&qword_14052A4D8); sub_14003A830((__int64)&v161); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v90); v91 = v90->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v153, 0.0, 0.5); v91->setAnchorPoint(v90, v92); cocos2d::CCPoint::CCPoint(&v153, 9.0, 0.0); v93 = (__int64)v84->getPosition_0(v84); cocos2d::CCPoint::operator+(v93, &v149); v90->setPosition_0(v90, &v149); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v90->setScale_0)(v90); cocos2d::CCLabelBMFont::limitLabelWidth(v90, 45.0, 0.40000001, 0.0); m_likes = a1->m_levelList->m_likes; v95 = v87->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v96 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v97 = "GJ_likesIcon_001.png"; if ( m_likes < 0 ) v97 = "GJ_dislikesIcon_001.png"; v98 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v96, v97); v95->setDisplayFrame(v87, v98); v99 = v87->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; y = v87->getPosition_0(v87)->y; v101 = v90->getContentSize(v90)->width; v102 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v90->getScale)(v90); v103 = (float)((float)(*(float *)&v102 * v101) + v90->getPosition_0(v90)->x) + 25.0; cocos2d::CCPoint::CCPoint(&v153, v103, y); v99->setPosition_0(v87, v104); v105 = (const char *)GameToolbox::intToShortString(v164, m_likes); if ( *((_QWORD *)v105 + 3) > 0xFu ) v105 = *(const char **)v105; v106 = cocos2d::CCLabelBMFont::create(v105, (const char *)&qword_14052A4D8); sub_14003A830((__int64)v164); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v106); v107 = v106->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v153, 0.0, 0.5); v107->setAnchorPoint(v106, v108); cocos2d::CCPoint::CCPoint(&v153, 10.0, 0.0); v109 = (__int64)v87->getPosition_0(v87); cocos2d::CCPoint::operator+(v109, &v149); v106->setPosition_0(v106, &v149); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v106->setScale_0)(v106); cocos2d::CCLabelBMFont::limitLabelWidth(v106, 45.0, 0.40000001, 0.0); cocos2d::CCPoint::CCPoint(&v161.origin, 0.0, 1.0); v110 = (__int64)v87->getPosition_0(v87); cocos2d::CCPoint::operator+(v110, &v149); v87->setPosition_0(v87, &v149); if ( v148 && !(_BYTE)v150 ) { v111 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v111, 10); cocos2d::CCPoint::CCPoint(&v161.origin, 73.0, 0.0); v112 = (*(__int64 (__fastcall **)(_QWORD *))(*v152 + 200LL))(v152); cocos2d::CCPoint::operator+(v112, &v149); v111->setPosition_0(v111, &v149); v113 = a1->m_levelList->m_levels._Mypair._Myval2._Mylast - a1->m_levelList->m_levels._Mypair._Myval2._Myfirst; v114 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v114); cocos2d::CCPoint::CCPoint(&v153, 80.0, 0.0); v115 = (__int64)v84->getPosition_0(v84); cocos2d::CCPoint::operator+(v115, &v149); v114->setPosition_0(v114, &v149); ((void (__fastcall *)(struct cocos2d::CCSprite *))v114->setScale_0)(v114); v116 = v114->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v117 = v114->getPosition_0(v114)->y; v118 = v106->getContentSize(v106)->width; v119 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v106->getScale)(v106); v120 = (float)((float)(*(float *)&v119 * v118) + v106->getPosition_0(v106)->x) + 25.0; cocos2d::CCPoint::CCPoint(&v161.origin, v120, v117); v116->setPosition_0(v114, v121); v122 = cocos2d::CCString::createWithFormat("%i/%i", v156.x, v113); v123 = cocos2d::CCString::getCString(v122); v124 = cocos2d::CCLabelBMFont::create(v123, (const char *)&qword_14052A4D8); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v124); v125 = v124->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v152, 0.0, 0.5); v125->setAnchorPoint(v124, v126); cocos2d::CCPoint::CCPoint(&v156, 10.0, 0.0); v127 = (__int64)v114->getPosition_0(v114); cocos2d::CCPoint::operator+(v127, &v149); v124->setPosition_0(v124, &v149); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v124->setScale_0)(v124); cocos2d::CCLabelBMFont::limitLabelWidth(v124, 45.0, 0.40000001, 0.0); } } v137 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v137->setScale_0)(v137); v138 = CCMenuItemSpriteExtra::create(v137, nullptr, a1, (cocos2d::SEL_MenuHandler *)LevelListCell::onListInfo); HIDWORD(v138->m_pfnSelector.adj) = 1067030938; v139 = v151; v151->addChild_1(v151, v138); v140 = (float *)v28->getContentSize(v28); v141 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v28->getScale)(v28); cocos2d::CCPoint::CCPoint(&v161.origin, (float)(*(float *)&v141 * *v140) + 15.0, -1.0); v142 = (__int64)v28->getPosition_0(v28); cocos2d::CCPoint::operator+(v142, &v151); v143 = v138->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v144 = cocos2d::CCNode::convertToNodeSpace(v139, &v153); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v143->setPosition_0)(v138, v144); if ( v160 > 0xF ) { v145 = Block[0]; if ( v160 + 1 >= 0x1000 ) { v145 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v145 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v145); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source