// // LevelListCell::loadFromList from 0x100103970 to 0x100104c54 (4836 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x100100f58 // // 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; // x0 void **v5; // x0 cocos2d::CCSprite *v6; // x21 __n128 v7; // q1 __n128 v8; // q0 int v9; // w20 int m_levelsToClaim; // w23 bool v11; // cc char v12; // w27 char v13; // w28 GameStatsManager *v14; // x0 _BOOL4 hasClaimedListReward; // w22 float32x2_t *v16; // x24 __n128 v17; // q0 __n128 v18; // q1 double v19; // d0 cocos2d::CCSprite *v20; // x24 float32x2_t *v21; // x25 __n128 v22; // q0 __n128 v23; // q1 double v24; // d0 void **v25; // x0 cocos2d::CCLabelBMFont *v26; // x25 __n128 v27; // q0 __n128 v28; // q1 float32x2_t *v29; // x24 __n128 v30; // q0 __n128 v31; // q1 double v32; // d0 GJLevelList *v33; // x8 cocos2d::CCSprite *v34; // x22 __int64 v35; // x0 std::string *p_m_listName; // x8 void **v37; // x0 cocos2d::CCLabelBMFont *v38; // x21 __n128 v39; // q0 __n128 v40; // q1 __n128 v41; // q0 __n128 v42; // q1 cocos2d::CCString *v43; // x0 const char *CString; // x0 cocos2d::CCLabelBMFont *v45; // x22 __n128 v46; // q0 __n128 v47; // q1 float v48; // s8 double *v49; // x0 double v50; // d0 float32x2_t *v51; // x24 __n128 v52; // q0 __n128 v53; // q1 double v54; // d0 const char *v55; // x0 const char *v56; // x5 ButtonSprite *v57; // x24 CCMenuItemSpriteExtra *v58; // x0 cocos2d::CCNode *v59; // x22 float m_width; // s10 __n128 v61; // q0 __n128 v62; // q1 GJLevelList *v63; // x8 void **v64; // x8 cocos2d::CCString *v65; // x0 const char *v66; // x24 cocos2d::CCLabelBMFont *v67; // x24 float32x2_t *v68; // x25 float v69; // s9 __n128 v70; // q0 __n128 v71; // q1 CCMenuItemSpriteExtra *v72; // x24 cocos2d::CCSprite *v73; // x24 __n128 v74; // q0 __n128 v75; // q1 cocos2d::CCSprite *v76; // x25 char v77; // w28 float width; // s9 __n128 v79; // q0 __n128 v80; // q1 __int64 v81; // x0 __n128 v82; // q0 __n128 v83; // q1 float v84; // s0 float v85; // s1 float v86; // s0 float v87; // s2 cocos2d::CCString *v88; // x0 const char *v89; // x0 cocos2d::CCLabelBMFont *v90; // x23 float32x2_t *v91; // x25 __n128 v92; // q0 __n128 v93; // q1 double v94; // d0 cocos2d::CCSprite *v95; // x20 __n128 v96; // q0 __n128 v97; // q1 const char *v98; // x0 cocos2d::CCLabelBMFont *v99; // x23 __n128 v100; // q0 __n128 v101; // q1 float32x2_t *v102; // x20 __n128 v103; // q0 __n128 v104; // q1 double v105; // d0 float v106; // s10 cocos2d::CCSprite *v107; // x23 __n128 v108; // q0 __n128 v109; // q1 cocos2d::CCSprite *v110; // x25 float32x2_t *v111; // x26 __n128 v112; // q0 __n128 v113; // q1 double v114; // d0 void **v115; // x0 cocos2d::CCLabelBMFont *v116; // x26 __n128 v117; // q0 __n128 v118; // q1 float32x2_t *v119; // x27 __n128 v120; // q0 __n128 v121; // q1 double v122; // d0 __int64 m_likes; // x27 cocos2d::CCSpriteFrameCache *v124; // x0 const char *v125; // x1 cocos2d::CCSpriteFrame *v126; // x0 float v127; // s11 float v128; // s12 float v129; // s10 __int64 v130; // x0 __n128 v131; // q0 __n128 v132; // q1 void **v133; // x0 cocos2d::CCLabelBMFont *v134; // x26 __n128 v135; // q0 __n128 v136; // q1 float32x2_t *v137; // x27 __n128 v138; // q0 __n128 v139; // q1 double v140; // d0 float32x2_t *v141; // x27 __n128 v142; // q0 __n128 v143; // q1 double v144; // d0 cocos2d::CCSprite *v145; // x25 float32x2_t *v146; // x24 __n128 v147; // q0 __n128 v148; // q1 double v149; // d0 cocos2d::CCSprite *v150; // x24 float32x2_t *v151; // x23 __n128 v152; // q0 __n128 v153; // q1 double v154; // d0 float v155; // s10 float v156; // s11 float v157; // s8 __int64 v158; // x0 __n128 v159; // q0 __n128 v160; // q1 cocos2d::CCString *v161; // x0 const char *v162; // x0 cocos2d::CCLabelBMFont *v163; // x20 __n128 v164; // q0 __n128 v165; // q1 float32x2_t *v166; // x23 __n128 v167; // q0 __n128 v168; // q1 double v169; // d0 cocos2d::CCSprite *v170; // x20 CCMenuItemSpriteExtra *v171; // x19 float32x2_t *v172; // x20 float v173; // s8 __n128 v174; // q0 __n128 v175; // q1 float32x2_t v176; // [xsp+1Ch] [xbp-D4h] BYREF __int16 v177; // [xsp+24h] [xbp-CCh] BYREF char v178; // [xsp+26h] [xbp-CAh] float32x2_t v179; // [xsp+28h] [xbp-C8h] BYREF void *__p[2]; // [xsp+30h] [xbp-C0h] BYREF char *longStorage; // [xsp+40h] [xbp-B0h] float32x2_t v182; // [xsp+48h] [xbp-A8h] BYREF void *v183[2]; // [xsp+50h] [xbp-A0h] BYREF char v184; // [xsp+67h] [xbp-89h] cocos2d::CCPoint v185; // 0:kr00_8.8 cocos2d::CCPoint v186; // 0:kr08_8.8 cocos2d::SEL_MenuHandler v187; // 0:x3.16 cocos2d::SEL_MenuHandler v188; // 0:x3.16 cocos2d::SEL_MenuHandler v189; // 0:x3.16 ((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(a1->m_levelList->m_difficulty, 0, v183); if ( v184 >= 0 ) v5 = v183; else v5 = (void **)v183[0]; v6 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v5); v7.n128_f32[0] = a1->m_height * 0.5; v8.n128_u32[0] = 26.0; sub_100022980(v8, v7, __p); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v6->setPosition)(v6, __p); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v6, 2); v9 = GJLevelList::completedLevels(a1->m_levelList); m_levelsToClaim = GJLevelList::totalLevels(a1->m_levelList); v11 = a2->m_diamonds < 1 || a2->m_levelsToClaim < 1; v12 = v11; if ( v11 ) { v13 = 0; } else { v14 = GameStatsManager::sharedState(); hasClaimedListReward = GameStatsManager::hasClaimedListReward(v14, a1->m_levelList); v16 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v6->getPosition)(v6); v17.n128_u32[0] = 0; v18.n128_u32[0] = 5.0; sub_100022980(v17, v18, &v182); *(float32x2_t *)&v19 = sub_1000229DC(v16, &v182, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCSprite *, void **, double))v6->setPosition)(v6, __p, v19); v20 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v20); v21 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v6->getPosition)(v6); v22.n128_u32[0] = 8.0; v23.n128_u32[0] = -30.0; sub_100022980(v22, v23, &v182); *(float32x2_t *)&v24 = sub_1000229DC(v21, &v182, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCSprite *, void **, double))v20->setPosition)(v20, __p, v24); GameToolbox::intToString((unsigned int)a1->m_levelList->m_diamonds, __p); if ( SHIBYTE(longStorage) >= 0 ) v25 = __p; else v25 = (void **)__p[0]; v26 = cocos2d::CCLabelBMFont::create_1((const char *)v25, "bigFont.fnt"); if ( SHIBYTE(longStorage) < 0 ) operator delete(__p[0]); v27 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, v26); v27.n128_u32[0] = 1.0; v28.n128_u32[0] = 0.5; sub_100022980(v27, v28, __p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v26->setAnchorPoint)(v26, __p); v29 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v20->getPosition)(v20); v30.n128_u32[0] = -8.0; v31.n128_u32[0] = 0; sub_100022980(v30, v31, &v182); *(float32x2_t *)&v32 = sub_1000229DC(v29, &v182, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v26->setPosition)(v26, __p, v32); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v26->setScale)(v26, 0.4); if ( hasClaimedListReward ) { BYTE2(__p[0]) = -1; LOWORD(__p[0]) = -156; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v26->setColor)(v26, __p); v13 = 1; } else { v13 = 0; m_levelsToClaim = a1->m_levelList->m_levelsToClaim; } } v33 = a1->m_levelList; if ( v33->m_featured ) { v34 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_featuredCoin_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v34, 1); v35 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v6->getPosition)(v6); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v34->setPosition)(v34, v35); v33 = a1->m_levelList; } if ( v33->m_listName.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(__p, (void *)v33->m_listName.m_data.m_long.capacitym1, v33->m_listName.m_data.m_long.size); } else { p_m_listName = &v33->m_listName; *(_OWORD *)__p = *(_OWORD *)&p_m_listName->m_data.m_short.sizex2; longStorage = p_m_listName->m_data.m_long.longStorage; } if ( SHIBYTE(longStorage) >= 0 ) v37 = __p; else v37 = (void **)__p[0]; v38 = cocos2d::CCLabelBMFont::create_1((const char *)v37, "bigFont.fnt"); if ( SHIBYTE(longStorage) < 0 ) operator delete(__p[0]); v39 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, v38); v39.n128_u32[0] = 0; v40.n128_u32[0] = 0.5; sub_100022980(v39, v40, __p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v38->setAnchorPoint)(v38, __p); v41 = ((__n128 (__fastcall *)(cocos2d::CCLabelBMFont *, float))v38->setScale)(v38, 1.0); v42.n128_f32[0] = (float)(a1->m_height * 0.5) + 30.0; v41.n128_u32[0] = 1112014848; sub_100022980(v41, v42, __p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v38->setPosition)(v38, __p); cocos2d::CCLabelBMFont::limitLabelWidth(v38, 190.0, 0.7, 0.0); if ( a1->m_levelList->m_listRevision >= 1 ) { v43 = (cocos2d::CCString *)sub_100268F4C("Rev. %i", a1->m_levelList->m_listRevision); CString = cocos2d::CCString::getCString(v43); v45 = cocos2d::CCLabelBMFont::create_1(CString, "goldFont.fnt"); v46 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, v45); v46.n128_u32[0] = 0; v47.n128_u32[0] = 0.5; sub_100022980(v46, v47, __p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v45->setAnchorPoint)(v45, __p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v45->setScale)(v45, 0.4); v48 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v38->getScale)(v38); v49 = (double *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v38->getContentSize)(v38); v50 = sub_100022AFC(__p, v49); v51 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, double))v38->getPosition)(v38, v50); v52.n128_f32[0] = (float)(*(float *)__p * v48) + 30.0; v53.n128_u32[0] = -1.0; sub_100022980(v52, v53, &v179); *(float32x2_t *)&v54 = sub_1000229DC(v51, &v179, &v182); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *, double))v45->setPosition)(v45, &v182, v54); } if ( a1->m_addingLevel ) v55 = "Add"; else v55 = "View"; if ( a1->m_addingLevel ) v56 = "GJ_button_02.png"; else v56 = "GJ_button_01.png"; v57 = ButtonSprite::create_1(v55, 50, 0, 0.6, 0, "bigFont.fnt", v56, 30.0); v187.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelListCell::onClick; v187.adj = 0; v58 = CCMenuItemSpriteExtra::create(v57, nullptr, a1, v187); v59 = (cocos2d::CCNode *)sub_1001D7ED0(v58); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCNode *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v59, 3); m_width = a1->m_width; v61.n128_f32[0] = (float)(m_width - (float)(*(float *)((__int64 (__fastcall *)(ButtonSprite *))v57->getContentSize)(v57) * 0.5)) + -9.0; v62.n128_f32[0] = a1->m_height * 0.5; sub_100022980(v61, v62, __p); ((void (__fastcall *)(cocos2d::CCNode *, void **))v59->setPosition)(v59, __p); v63 = a1->m_levelList; if ( v63->m_creatorName.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(__p, (void *)v63->m_creatorName.m_data.m_long.capacitym1, v63->m_creatorName.m_data.m_long.size); } else { *(_OWORD *)__p = *(_OWORD *)&v63->m_creatorName.m_data.m_short.sizex2; longStorage = v63->m_creatorName.m_data.m_long.longStorage; } v64 = __p; if ( SHIBYTE(longStorage) < 0 ) v64 = (void **)__p[0]; v65 = (cocos2d::CCString *)sub_100268F4C("By %s", (const char *)v64); v66 = cocos2d::CCString::getCString(v65); if ( SHIBYTE(longStorage) < 0 ) operator delete(__p[0]); v67 = cocos2d::CCLabelBMFont::create_1(v66, "goldFont.fnt"); cocos2d::CCLabelBMFont::limitLabelWidth(v67, 140.0, 0.7, 0.0); v68 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v38->getPosition)(v38); v69 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v67->getContentSize)(v67); v70.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v67->getScale)(v67); v70.n128_f32[0] = (float)((float)(v69 * 0.5) * v70.n128_f32[0]) + 2.0; v71.n128_u32[0] = -21.0; sub_100022980(v70, v71, __p); sub_1000229DC(v68, (float32x2_t *)__p, &v182); v188.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelListCell::onViewProfile; v188.adj = 0; v72 = CCMenuItemSpriteExtra::create(v67, nullptr, a1, v188); ((void (__fastcall *)(cocos2d::CCNode *, CCMenuItemSpriteExtra *))v59->addChild)(v59, v72); v185 = cocos2d::CCNode::convertToNodeSpace(v59, (const cocos2d::CCPoint *)&v182); ((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, float, float))v72->setPosition)(v72, __p, v185.x, v185.y); v178 = 0; v177 = 0; v73 = cocos2d::CCSprite::create("GJ_progressBar_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v73->setColor)(v73, &v177); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v73->setOpacity)(v73, 125); ((void (__fastcall *)(cocos2d::CCSprite *, float))v73->setScaleY)(v73, 0.64); ((void (__fastcall *)(cocos2d::CCSprite *, float))v73->setScaleX)(v73, 0.48); v74 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v73, 3); v74.n128_f32[0] = (float)(a1->m_width * 0.5) + -45.0; v75.n128_f32[0] = (float)(a1->m_height * 0.5) + -12.0; sub_100022980(v74, v75, __p); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v73->setPosition)(v73, __p); v76 = cocos2d::CCSprite::create("GJ_progressBar_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v76->setScaleX)(v76, 0.978); ((void (__fastcall *)(cocos2d::CCSprite *, float))v76->setScaleY)(v76, 0.76); v77 = v12 | v13; if ( (v77 & 1) != 0 ) { BYTE2(__p[0]) = -1; LOWORD(__p[0]) = -16816; } else { BYTE2(__p[0]) = 50; LOWORD(__p[0]) = 21759; } ((void (__fastcall *)(cocos2d::CCSprite *, void **))v76->setColor)(v76, __p); width = v76->m_obRect.size.width; v79 = ((__n128 (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))v73->addChild_0)(v73, v76, 1); v79.n128_u32[0] = 0; v80.n128_u32[0] = 0.5; sub_100022980(v79, v80, __p); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v76->setAnchorPoint)(v76, __p); v81 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v73->getContentSize)(v73); v82.n128_f32[0] = (float)(width + (float)(width * -0.978)) * 0.5; v83.n128_f32[0] = *(float *)(v81 + 4) * 0.5; sub_100022980(v82, v83, __p); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v76->setPosition)(v76, __p); if ( m_levelsToClaim < 1 ) v84 = 0.0; else v84 = (float)v9 / (float)(unsigned int)m_levelsToClaim; v85 = v76->m_obRect.size.width; v86 = v84 * v85; if ( v85 <= v86 ) v87 = v76->m_obRect.size.width; else v87 = v86; sub_100022990((float *)__p, 0.0, 0.0, v87, v76->m_obRect.size.height); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v76->setTextureRect)(v76, __p); v88 = (cocos2d::CCString *)sub_100268F4C("%i/%i", v9, m_levelsToClaim); v89 = cocos2d::CCString::getCString(v88); v90 = cocos2d::CCLabelBMFont::create_1(v89, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v90, 4); v91 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v73->getPosition)(v73); v92.n128_u32[0] = 0; v93.n128_u32[0] = 0.5; sub_100022980(v92, v93, &v179); *(float32x2_t *)&v94 = sub_1000229DC(v91, &v179, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v90->setPosition)(v90, __p, v94); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v90->setScale)(v90, 0.4); if ( a1->m_levelList->m_listType == Editor ) { v95 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v95); v96.n128_f32[0] = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v38->getPosition)(v38) + 8.0; v97.n128_u32[0] = 14.0; sub_100022980(v96, v97, __p); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v95->setPosition)(v95, __p); ((void (__fastcall *)(cocos2d::CCSprite *, float))v95->setScale)(v95, 0.6); if ( a1->m_levelList->m_uploaded ) v98 = "Uploaded"; else v98 = "Unpublished"; v99 = cocos2d::CCLabelBMFont::create_1(v98, "bigFont.fnt"); v100 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, v99); v100.n128_u32[0] = 0; v101.n128_u32[0] = 0.5; sub_100022980(v100, v101, __p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v99->setAnchorPoint)(v99, __p); v102 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v95->getPosition)(v95); v103.n128_u32[0] = 13.0; v104.n128_u32[0] = 0; sub_100022980(v103, v104, &v179); *(float32x2_t *)&v105 = sub_1000229DC(v102, &v179, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v99->setPosition)(v99, __p, v105); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v99->setScale)(v99, 0.4); } else { v106 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v38->getPosition)(v38); v107 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_downloadsIcon_001.png"); v108 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->m_mainLayer->addChild)( a1->m_mainLayer, v107); v108.n128_f32[0] = v106 + 9.0; v109.n128_u32[0] = 14.0; sub_100022980(v108, v109, __p); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v107->setPosition)(v107, __p); ((void (__fastcall *)(cocos2d::CCSprite *, float))v107->setScale)(v107, 0.6); v110 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_likesIcon_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v110); v111 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v107->getPosition)(v107); v112.n128_u32[0] = 1117782016; v113.n128_u32[0] = 0; sub_100022980(v112, v113, &v179); *(float32x2_t *)&v114 = sub_1000229DC(v111, &v179, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCSprite *, void **, double))v110->setPosition)(v110, __p, v114); ((void (__fastcall *)(cocos2d::CCSprite *, float))v110->setScale)(v110, 0.6); GameToolbox::intToShortString((unsigned int)a1->m_levelList->m_downloads, __p); if ( SHIBYTE(longStorage) >= 0 ) v115 = __p; else v115 = (void **)__p[0]; v116 = cocos2d::CCLabelBMFont::create_1((const char *)v115, "bigFont.fnt"); if ( SHIBYTE(longStorage) < 0 ) operator delete(__p[0]); v117 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, v116); v117.n128_u32[0] = 0; v118.n128_u32[0] = 0.5; sub_100022980(v117, v118, __p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v116->setAnchorPoint)(v116, __p); v119 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v107->getPosition)(v107); v120.n128_u32[0] = 9.0; v121.n128_u32[0] = 0; sub_100022980(v120, v121, &v179); *(float32x2_t *)&v122 = sub_1000229DC(v119, &v179, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v116->setPosition)(v116, __p, v122); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v116->setScale)(v116, 0.4); cocos2d::CCLabelBMFont::limitLabelWidth(v116, 45.0, 0.4, 0.0); m_likes = (unsigned int)a1->m_levelList->m_likes; v124 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( (m_likes & 0x80000000) != 0 ) v125 = "GJ_dislikesIcon_001.png"; else v125 = "GJ_likesIcon_001.png"; v126 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v124, v125); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))v110->setDisplayFrame)(v110, v126); v127 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v116->getPosition)(v116); v128 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v116->getContentSize)(v116); v129 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v116->getScale)(v116); v130 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v110->getPosition)(v110); v131.n128_f32[0] = (float)(v127 + (float)(v128 * v129)) + 25.0; v132.n128_u32[0] = *(_DWORD *)(v130 + 4); sub_100022980(v131, v132, __p); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v110->setPosition)(v110, __p); GameToolbox::intToShortString(m_likes, __p); if ( SHIBYTE(longStorage) >= 0 ) v133 = __p; else v133 = (void **)__p[0]; v134 = cocos2d::CCLabelBMFont::create_1((const char *)v133, "bigFont.fnt"); if ( SHIBYTE(longStorage) < 0 ) operator delete(__p[0]); v135 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, v134); v135.n128_u32[0] = 0; v136.n128_u32[0] = 0.5; sub_100022980(v135, v136, __p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v134->setAnchorPoint)(v134, __p); v137 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v110->getPosition)(v110); v138.n128_u32[0] = 10.0; v139.n128_u32[0] = 0; sub_100022980(v138, v139, &v179); *(float32x2_t *)&v140 = sub_1000229DC(v137, &v179, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v134->setPosition)(v134, __p, v140); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v134->setScale)(v134, 0.4); cocos2d::CCLabelBMFont::limitLabelWidth(v134, 45.0, 0.4, 0.0); v141 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v110->getPosition)(v110); v142.n128_u32[0] = 0; v143.n128_u32[0] = 1.0; sub_100022980(v142, v143, &v179); *(float32x2_t *)&v144 = sub_1000229DC(v141, &v179, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCSprite *, void **, double))v110->setPosition)(v110, __p, v144); if ( (v77 & 1) == 0 ) { v145 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v145, 10); v146 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v73->getPosition)(v73); v147.n128_u32[0] = 1116864512; v148.n128_u32[0] = 0; sub_100022980(v147, v148, &v179); *(float32x2_t *)&v149 = sub_1000229DC(v146, &v179, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCSprite *, void **, double))v145->setPosition)(v145, __p, v149); LODWORD(v145) = GJLevelList::totalLevels(a1->m_levelList); v150 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v150); v151 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v107->getPosition)(v107); v152.n128_u32[0] = 1117782016; v153.n128_u32[0] = 0; sub_100022980(v152, v153, &v179); *(float32x2_t *)&v154 = sub_1000229DC(v151, &v179, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCSprite *, void **, double))v150->setPosition)(v150, __p, v154); ((void (__fastcall *)(cocos2d::CCSprite *, float))v150->setScale)(v150, 0.6); v155 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v134->getPosition)(v134); v156 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v134->getContentSize)(v134); v157 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v134->getScale)(v134); v158 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v150->getPosition)(v150); v159.n128_f32[0] = (float)(v155 + (float)(v156 * v157)) + 25.0; v160.n128_u32[0] = *(_DWORD *)(v158 + 4); sub_100022980(v159, v160, __p); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v150->setPosition)(v150, __p); v161 = (cocos2d::CCString *)sub_100268F4C("%i/%i", v9, (_DWORD)v145); v162 = cocos2d::CCString::getCString(v161); v163 = cocos2d::CCLabelBMFont::create_1(v162, "bigFont.fnt"); v164 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, v163); v164.n128_u32[0] = 0; v165.n128_u32[0] = 0.5; sub_100022980(v164, v165, __p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v163->setAnchorPoint)(v163, __p); v166 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v150->getPosition)(v150); v167.n128_u32[0] = 10.0; v168.n128_u32[0] = 0; sub_100022980(v167, v168, &v179); *(float32x2_t *)&v169 = sub_1000229DC(v166, &v179, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v163->setPosition)(v163, __p, v169); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v163->setScale)(v163, 0.4); cocos2d::CCLabelBMFont::limitLabelWidth(v163, 45.0, 0.4, 0.0); } } v170 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v170->setScale)(v170, 0.65); v189.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelListCell::onListInfo; v189.adj = 0; v171 = CCMenuItemSpriteExtra::create(v170, nullptr, a1, v189); CCMenuItemSpriteExtra::setSizeMult(v171, 1.2); ((void (__fastcall *)(cocos2d::CCNode *, CCMenuItemSpriteExtra *))v59->addChild)(v59, v171); v172 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v38->getPosition)(v38); v173 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v38->getContentSize)(v38); v174.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v38->getScale)(v38); v174.n128_f32[0] = (float)(v173 * v174.n128_f32[0]) + 15.0; v175.n128_u32[0] = -1.0; sub_100022980(v174, v175, &v176); sub_1000229DC(v172, &v176, &v179); v186 = cocos2d::CCNode::convertToNodeSpace(v59, (const cocos2d::CCPoint *)&v179); ((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, float, float))v171->setPosition)(v171, __p, v186.x, v186.y); if ( v184 < 0 ) operator delete(v183[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source