// // ProfilePage::loadPageFromUserInfo from 0x8f9ff8 to 0x8fc9c0 (10696 bytes) // // 3 xrefs: // > ProfilePage::getUserInfoFinished @ 0x8ff0f0 // > ProfilePage::userInfoChanged @ 0x8ff1a4 // > @ 0xa8528 // // 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 ProfilePage::loadPageFromUserInfo(ProfilePage *a1, GJUserScore *a2) { GJUserScore *m_score; // x0 cocos2d::CCDirector *v5; // x0 cocos2d::CCArray *m_buttons; // x1 cocos2d::ccArray *data; // x2 cocos2d::CCObject **arr; // x19 cocos2d::CCObject **v9; // x20 cocos2d::CCObject *v10; // x0 int v11; // w19 __int64 *p_m_fBrVertexMod; // x0 int v13; // w3 void *v14; // x0 void *v15; // x0 char *v16; // x0 void *v17; // x0 float v18; // s13 cocos2d::CCNode *v19; // x24 cocos2d::CCArray *v20; // x0 float v21; // s12 int v22; // w23 float v23; // s14 unsigned int v24; // w25 unsigned __int64 m_moons; // x0 cocos2d::CCLabelBMFont *v26; // x19 char *v27; // x0 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x21 cocos2d::CCSprite *v29; // x22 __int64 v30; // x21 CCMenuItemSpriteExtra *v31; // x21 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x25 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 float v34; // s0 float v35; // s1 float width; // s9 float v37; // s0 long double v38; // q1 char *v39; // x0 cocos2d::CCArray *m_friendReqStatus; // x0 cocos2d::CCArray *v41; // x22 GJAccountManager *v42; // x0 GJUserScore *v43; // x0 int m_messageState; // w1 cocos2d::CCSprite *v45; // x19 CCMenuItemSpriteExtra *v46; // x19 int v47; // w1 const char *v48; // x0 cocos2d::CCSprite *v49; // x19 CCMenuItemSpriteExtra *v50; // x19 cocos2d::CCSprite *v51; // x19 CCMenuItemSpriteExtra *v52; // x19 cocos2d::CCLayer *v53; // x21 cocos2d::CCMenu *v54; // x19 cocos2d::CCSprite *v55; // x19 CCMenuItemSpriteExtra *v56; // x21 cocos2d::CCMenu *v57; // x23 void (__fastcall *v58)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x19 cocos2d::CCSprite *v59; // x23 void (__fastcall *v60)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x19 cocos2d::CCSprite *v61; // x19 CCMenuItemSpriteExtra *v62; // x19 cocos2d::CCMenu *v63; // x24 void (__fastcall *v64)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 cocos2d::CCSprite *v65; // x22 void (__fastcall *v66)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 GameManager *v67; // x0 unsigned int *v68; // x1 int v69; // w2 unsigned int *v70; // x1 int v71; // w2 float v72; // s9 unsigned int v73; // w19 void (__fastcall *v74)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 unsigned int v75; // w1 __int64 v76; // x21 __int64 v77; // x22 void (__fastcall *v78)(__int64, float); // x25 float v79; // s9 float v80; // s0 cocos2d::CCMenu *m_buttonMenu; // x25 void (__fastcall *v82)(__int64, cocos2d::CCSprite **, float, float); // x22 const cocos2d::CCPoint *v83; // x0 float v84; // s9 int v85; // w23 GameManager *v86; // x0 GameManager *v87; // x0 int v88; // w0 IconType v89; // w21 float v90; // s11 int m_playerCube; // w22 SimplePlayer *v92; // x19 GJUserScore *v93; // x0 char v94; // w2 int m_color3; // w1 CCMenuItemSpriteExtra *v96; // x22 void (__fastcall *v97)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x21 void (__fastcall *v98)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21 void (__fastcall *v99)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x19 float v100; // s2 float v101; // s14 float v102; // s13 int v103; // w19 float v104; // s9 void *v105; // x0 const char *v106; // x1 char *v107; // x0 char *v108; // x0 GJUserScore *v109; // x1 int m_commentHistoryStatus; // w0 cocos2d::CCSprite *v111; // x0 CCMenuItemSpriteExtra *v112; // x19 cocos2d::CCLayer *v113; // x23 void (__fastcall *v114)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 cocos2d::CCMenu *v115; // x22 cocos2d::CCSprite *v116; // x19 void (__fastcall *v117)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21 char *v118; // x0 GJUserScore *v119; // x0 int m_globalRank; // w19 const char *v121; // x21 void *v122; // x0 cocos2d::CCSprite *v123; // x22 CCMenuItemSpriteExtra *v124; // x22 unsigned int *v125; // x1 int v126; // w2 char *v127; // x0 void *v128; // x0 cocos2d::CCSprite *v129; // x21 cocos2d::CCSprite *v130; // x21 void (__fastcall *v131)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22 cocos2d::CCString *v132; // x0 cocos2d::CCLabelBMFont *v133; // x19 void (__fastcall *v134)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 cocos2d::CCLabelBMFont *m_usernameLabel; // x0 const cocos2d::CCPoint *v136; // x19 float v137; // s0 float v138; // s1 int m_modBadge; // w0 cocos2d::CCSprite *v140; // x19 char *v141; // x0 CCSpriteGrayscale *v142; // x25 char *v143; // x22 CCMenuItemSpriteExtra *v144; // x19 float v145; // s0 cocos2d::CCMenu *v146; // x22 float v147; // s10 void (__fastcall *v148)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 const cocos2d::CCPoint *v149; // x23 const cocos2d::CCSize *v150; // x0 cocos2d::CCSprite *v151; // x19 CCMenuItemSpriteExtra *v152; // x19 cocos2d::CCMenu *v153; // x0 cocos2d::CCMenu *v154; // x22 void (__fastcall *v155)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 const cocos2d::CCPoint *v156; // x23 float v157; // s12 cocos2d::CCArray *v158; // x0 int v159; // w23 cocos2d::CCArray *v160; // x19 cocos2d::CCSprite *v161; // x21 CCMenuItemSpriteExtra *v162; // x22 CCMenuItemSpriteExtra *v163; // x22 CCMenuItemSpriteExtra *v164; // x24 cocos2d::CCSprite *v165; // x0 CCMenuItemSpriteExtra *v166; // x24 cocos2d::CCLayer *v167; // x25 cocos2d::CCMenu *v168; // x24 GJUserScore *v169; // x1 int m_newFriendCount; // w22 cocos2d::CCSprite *v171; // x27 cocos2d::CCSprite *v172; // x0 CCMenuItemSpriteExtra *v173; // x19 cocos2d::CCLayer *v174; // x23 void (__fastcall *v175)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 cocos2d::CCMenu *v176; // x22 GameManager *v177; // x0 char *v178; // x0 unsigned int *v179; // x1 int v180; // w2 GameManager *v181; // x0 float v182; // s12 cocos2d::CCSprite *v183; // x19 cocos2d::CCString *v184; // x0 cocos2d::CCLabelBMFont *v185; // x22 void (__fastcall *v186)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 void (__fastcall *v187)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22 double v188; // d0 void *v189; // x0 __int64 v190; // x19 __int64 v191; // x19 unsigned int *v192; // x1 int v193; // w2 unsigned int *v194; // x21 int v195; // w0 unsigned int *p_m_fTextureTop; // x1 int m_fTextureTop_low; // w2 unsigned int *v198; // x1 int v199; // w2 unsigned int *v200; // x1 int v201; // w2 unsigned int *v202; // x1 int v203; // w2 unsigned int *v204; // x1 int v205; // w2 unsigned int *v206; // x1 int v207; // w2 unsigned int *v208; // x1 int v209; // w2 unsigned int *v210; // x1 int v211; // w2 unsigned int *v212; // x1 int v213; // w2 unsigned int *v214; // x1 int v215; // w2 unsigned int *v216; // x1 int v217; // w2 unsigned int *v218; // x1 int v219; // w2 __int64 v220; // x19 long double v221; // q0 long double v222; // q1 int v223; // [xsp+B8h] [xbp+B8h] int v224; // [xsp+C0h] [xbp+C0h] cocos2d::CCMenu *v225; // [xsp+C0h] [xbp+C0h] cocos2d::CCSprite *v226; // [xsp+C0h] [xbp+C0h] float v227; // [xsp+D0h] [xbp+D0h] void (__fastcall *v228)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+D0h] [xbp+D0h] cocos2d::CCSprite *v229; // [xsp+D0h] [xbp+D0h] cocos2d::CCArray *v230; // [xsp+E0h] [xbp+E0h] cocos2d::CCLayer *m_mainLayer; // [xsp+E0h] [xbp+E0h] float v232; // [xsp+F0h] [xbp+F0h] cocos2d::CCSprite *v233; // [xsp+F0h] [xbp+F0h] cocos2d::ccColor3B v234; // [xsp+108h] [xbp+108h] BYREF cocos2d::ccColor3B v235; // [xsp+110h] [xbp+110h] BYREF float v236; // [xsp+118h] [xbp+118h] float v237; // [xsp+11Ch] [xbp+11Ch] cocos2d::CCPoint v238; // [xsp+120h] [xbp+120h] BYREF cocos2d::CCPoint v239; // [xsp+128h] [xbp+128h] BYREF cocos2d::CCPoint v240; // [xsp+130h] [xbp+130h] BYREF cocos2d::CCPoint v241; // [xsp+138h] [xbp+138h] BYREF char *v242; // [xsp+140h] [xbp+140h] BYREF const char *v243; // [xsp+148h] [xbp+148h] BYREF __int64 v244; // [xsp+150h] [xbp+150h] BYREF cocos2d::CCSprite *v245; // [xsp+158h] [xbp+158h] BYREF cocos2d::CCPoint v246; // [xsp+160h] [xbp+160h] BYREF cocos2d::CCPoint v247; // [xsp+168h] [xbp+168h] BYREF cocos2d::CCSprite *v248; // [xsp+170h] [xbp+170h] BYREF cocos2d::CCSize WinSize; // 0:kr00_8.8 cocos2d::CCPoint v250; // 0:kr20_8.8 cocos2d::CCPoint v251; // 0:kr30_8.8 cocos2d::CCPoint v252; // 0:kr40_8.8 cocos2d::CCPoint v253; // 0:kr48_8.8 cocos2d::CCPoint v254; // 0:kr58_8.8 cocos2d::CCPoint v255; // 0:kr68_8.8 cocos2d::CCPoint v256; // 0:kr70_8.8 cocos2d::CCPoint v257; // 0:kr78_8.8 cocos2d::CCPoint v258; // 0:kr98_8.8 cocos2d::SEL_MenuHandler v259; // 0:x2.16 cocos2d::SEL_MenuHandler v260; // 0:x2.16 cocos2d::SEL_MenuHandler v261; // 0:x2.16 cocos2d::SEL_MenuHandler v262; // 0:x2.16 cocos2d::SEL_MenuHandler v263; // 0:x2.16 cocos2d::SEL_MenuHandler v264; // 0:x2.16 cocos2d::SEL_MenuHandler v265; // 0:x2.16 cocos2d::SEL_MenuHandler v266; // 0:x2.16 cocos2d::SEL_MenuHandler v267; // 0:x2.16 cocos2d::SEL_MenuHandler v268; // 0:x2.16 cocos2d::SEL_MenuHandler v269; // 0:x2.16 cocos2d::SEL_MenuHandler v270; // 0:x2.16 cocos2d::SEL_MenuHandler v271; // 0:x2.16 cocos2d::SEL_MenuHandler v272; // 0:x2.16 cocos2d::SEL_MenuHandler v273; // 0:x2.16 cocos2d::SEL_MenuHandler v274; // 0:x2.16 cocos2d::CCPoint v275; // 0:s1.4,4:s2.4 cocos2d::CCPoint v276; // 0:s1.4,4:s2.4 a1->m_mainLayer->setScaleX(a1->m_mainLayer, 1.0); a1->m_mainLayer->setScaleY(a1->m_mainLayer, 1.0); m_score = a1->m_score; if ( m_score ) { cocos2d::CCObject::release(m_score); a1->m_score = nullptr; } v5 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v5); *(float *)&v221 = WinSize.width; *(float *)&v222 = WinSize.height; m_buttons = a1->m_buttons; if ( m_buttons ) { data = m_buttons->data; if ( data->num ) { arr = data->arr; v9 = &arr[data->num - 1]; if ( arr <= v9 ) { v10 = *arr; if ( *arr ) { do { ++arr; ((void (__fastcall *)(cocos2d::CCObject *, long double, long double))v10->__vftable[6].isEqual)( v10, v221, v222); if ( v9 < arr ) break; v10 = *arr; } while ( *arr ); m_buttons = a1->m_buttons; } } } } cocos2d::CCArray::removeAllObjects(m_buttons); if ( a2 ) { a1->m_score = a2; cocos2d::CCObject::retain(a2); if ( a1->m_score->m_friendReqStatus != 2 ) { sub_D18D28(&v244); v11 = *(_QWORD *)(v244 - 24) != 0; sub_D18D28(&v245); if ( *(_QWORD *)&v245[-1].m_fBrVertexMod ) ++v11; sub_D18D28(&v246); if ( *(_QWORD *)(*(_QWORD *)&v246 - 24LL) ) ++v11; sub_D18D28(&v247); if ( *(_QWORD *)(*(_QWORD *)&v247 - 24LL) ) ++v11; sub_D18D28(&v248); p_m_fBrVertexMod = (__int64 *)&v248[-1].m_fBrVertexMod; if ( *(_QWORD *)&v248[-1].m_fBrVertexMod ) v13 = v11 + 1; else v13 = v11; v223 = v13; if ( p_m_fBrVertexMod != &qword_124B6B0 ) { if ( &pthread_create ) { p_m_fTextureTop = (unsigned int *)&v248[-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(v248[-1].m_fTextureTop); LODWORD(v248[-1].m_fTextureTop) = m_fTextureTop_low - 1; } if ( m_fTextureTop_low <= 0 ) operator delete(p_m_fBrVertexMod); } v14 = (void *)(*(_QWORD *)&v247 - 24LL); if ( (__int64 *)(*(_QWORD *)&v247 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v198 = (unsigned int *)(*(_QWORD *)&v247 - 8LL); do v199 = __ldaxr(v198); while ( __stlxr(v199 - 1, v198) ); } else { v199 = *(_DWORD *)(*(_QWORD *)&v247 - 8LL); *(_DWORD *)(*(_QWORD *)&v247 - 8LL) = v199 - 1; } if ( v199 <= 0 ) operator delete(v14); } v15 = (void *)(*(_QWORD *)&v246 - 24LL); if ( (__int64 *)(*(_QWORD *)&v246 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v202 = (unsigned int *)(*(_QWORD *)&v246 - 8LL); do v203 = __ldaxr(v202); while ( __stlxr(v203 - 1, v202) ); } else { v203 = *(_DWORD *)(*(_QWORD *)&v246 - 8LL); *(_DWORD *)(*(_QWORD *)&v246 - 8LL) = v203 - 1; } if ( v203 <= 0 ) operator delete(v15); } v16 = (char *)&v245[-1].m_fBrVertexMod; if ( (__int64 *)&v245[-1].m_fBrVertexMod != &qword_124B6B0 ) { if ( &pthread_create ) { v200 = (unsigned int *)&v245[-1].m_fTextureTop; do v201 = __ldaxr(v200); while ( __stlxr(v201 - 1, v200) ); } else { v201 = LODWORD(v245[-1].m_fTextureTop); LODWORD(v245[-1].m_fTextureTop) = v201 - 1; } if ( v201 <= 0 ) operator delete(v16); } v17 = (void *)(v244 - 24); if ( (__int64 *)(v244 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v204 = (unsigned int *)(v244 - 8); do v205 = __ldaxr(v204); while ( __stlxr(v205 - 1, v204) ); } else { v205 = *(_DWORD *)(v244 - 8); *(_DWORD *)(v244 - 8) = v205 - 1; } if ( v205 <= 0 ) operator delete(v17); } v18 = (float)(v237 * 0.5) + 85.0; if ( a1->m_score->m_creatorPoints > 0 ) { v19 = cocos2d::CCNode::create(); v224 = 6; v19->setContentSize(v19, &stru_1243148); a1->m_mainLayer->addChild(a1->m_mainLayer, v19); v20 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint(&v238, 0.0, 0.0); v21 = 50.0; } else { v19 = cocos2d::CCNode::create(); v224 = 5; v19->setContentSize(v19, &stru_1243148); a1->m_mainLayer->addChild(a1->m_mainLayer, v19); v20 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint(&v238, 0.0, 0.0); v21 = 60.0; } v22 = 0; v230 = (cocos2d::CCArray *)cocos2d::CCArray::create(v20); v23 = 0.0; do { while ( 1 ) { v245 = (cocos2d::CCSprite *)&byte_124B6C8; switch ( v22 ) { case 1: sub_D1798C(&v245, "GJ_moonsIcon_001.png", 20); v24 = 2; m_moons = (unsigned int)a1->m_score->m_moons; break; case 2: sub_D1798C(&v245, "GJ_coinsIcon_001.png", 20); v24 = 0; m_moons = (unsigned int)a1->m_score->m_secretCoins; break; case 3: sub_D1798C(&v245, "GJ_coinsIcon2_001.png", 21); v24 = 0; m_moons = (unsigned int)a1->m_score->m_userCoins; break; case 4: sub_D1798C(&v245, "GJ_demonIcon_001.png", 20); v24 = 3; m_moons = (unsigned int)a1->m_score->m_demons; break; case 5: sub_D1798C(&v245, "GJ_hammerIcon_001.png", 21); v24 = 0; m_moons = (unsigned int)a1->m_score->m_creatorPoints; break; default: sub_D1798C(&v245, "GJ_starsIcon_001.png", 20); v24 = 1; m_moons = (unsigned int)a1->m_score->m_stars; break; } GameToolbox::pointsToString((GameToolbox *)m_moons, (__int64 *)&v248); v26 = cocos2d::CCLabelBMFont::create(); v27 = (char *)&v248[-1].m_fBrVertexMod; if ( (__int64 *)&v248[-1].m_fBrVertexMod != &qword_124B6B0 ) { if ( &pthread_create ) { v68 = (unsigned int *)&v248[-1].m_fTextureTop; do v69 = __ldaxr(v68); while ( __stlxr(v69 - 1, v68) ); } else { v69 = LODWORD(v248[-1].m_fTextureTop); LODWORD(v248[-1].m_fTextureTop) = v69 - 1; } if ( v69 <= 0 ) operator delete(v27); } v19->addChild_0(v19, v26, 2); setAnchorPoint = v26->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v248, 0.0, 0.5); setAnchorPoint(v26, (const cocos2d::CCPoint *)&v248); v26->setPosition(v26, &v238); v26->setScale(v26, 0.6); cocos2d::CCLabelBMFont::limitLabelWidth(v26, v21, 0.6, 0.0); cocos2d::CCArray::addObject(a1->m_buttons, v26); v29 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v245); v29->setScale(v29, 0.9); v30 = (__int64)v26->getPosition(v26); ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, cocos2d::CCLabelBMFont *))v26->getScaledContentSize)( &v247, v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v248, v247.x + 14.0, 0.0); cocos2d::CCPoint::operator+(&v246, v30, &v248); if ( v24 ) { v259.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v259.adj = (size_t)ProfilePage::onStatInfo; v31 = CCMenuItemSpriteExtra::create(v29, nullptr, v259); v31->setTag(v31, v24); setContentSize = v31->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v248, 30.0, 30.0); setContentSize(v31, (const cocos2d::CCSize *)&v248); setPosition = v29->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v248, 15.0, 15.0); setPosition(v29, (const cocos2d::CCPoint *)&v248); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v31); v31->setPosition(v31, &v246); cocos2d::CCArray::addObject(a1->m_buttons, v31); cocos2d::CCArray::addObject(v230, v31); } else { v19->addChild_0(v19, v29, 2); v29->setPosition(v29, &v246); cocos2d::CCArray::addObject(a1->m_buttons, v29); } cocos2d::CCPoint::CCPoint(&v247, 20.0, 0.0); cocos2d::CCPoint::operator+(&v248, &v246, &v247); cocos2d::CCPoint::operator=(&v238, v34, v35); width = v26->getContentSize(v26)->width; v37 = v23 + (float)((float)(width * v26->getScale(v26)) + 14.0); v23 = v22 ? v37 + 20.0 : v37 + 10.0; v39 = (char *)&v245[-1].m_fBrVertexMod; if ( (__int64 *)&v245[-1].m_fBrVertexMod != &qword_124B6B0 ) { if ( &pthread_create ) { v70 = (unsigned int *)&v245[-1].m_fTextureTop; do v71 = __ldaxr(v70); while ( __stlxr(v71 - 1, v70) ); } else { v71 = LODWORD(v245[-1].m_fTextureTop); LODWORD(v245[-1].m_fTextureTop) = v71 - 1; } if ( v71 <= 0 ) break; } if ( ++v22 == v224 ) goto LABEL_70; } ++v22; operator delete(v39); } while ( v22 != v224 ); LABEL_70: *(float *)&v38 = v23; if ( v223 <= 1 ) v72 = 420.0; else v72 = 340.0; if ( v72 < v23 ) { ((void (__fastcall *)(cocos2d::CCNode *, float, long double))v19->setScale)(v19, v72 / v23, v38); *(float *)&v38 = v72; } v73 = 0; v74 = v19->setPosition; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v248, -(float)((float)(*(float *)&v38 * 0.5) - (float)(v236 * 0.5)), v18); v74(v19, (const cocos2d::CCPoint *)&v248); while ( v73 < (unsigned int)cocos2d::CCArray::count(v230) ) { v75 = v73++; v76 = cocos2d::CCArray::objectAtIndex(v230, v75); v77 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v76 + 1056LL))(v76); v78 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v77 + 160LL); v79 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v77 + 168LL))(v77); v80 = v19->getScale(v19); v78(v77, v79 * v80); m_buttonMenu = a1->m_buttonMenu; v82 = *(void (__fastcall **)(__int64, cocos2d::CCSprite **, float, float))(*(_QWORD *)v76 + 184LL); v83 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v76 + 192LL))(v76); cocos2d::CCNode::convertToWorldSpace(v19, v83); v252 = cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, &v247); v82(v76, &v248, v252.x, v252.y); } v84 = 3.0; v85 = 0; cocos2d::CCPoint::CCPoint(&v239, v236 * 0.5, (float)(v237 * 0.5) + 40.0); v86 = GameManager::sharedState(); v234 = GameManager::colorForIdx(v86, a1->m_score->m_color1); v87 = GameManager::sharedState(); v235 = GameManager::colorForIdx(v87, a1->m_score->m_color2); LABEL_78: v88 = v85 - 1; if ( (unsigned int)(v85 - 1) > 6 ) { LABEL_79: v89 = Cube; v90 = 0.95; m_playerCube = a1->m_score->m_playerCube; goto LABEL_80; } while ( 1 ) { switch ( v88 ) { case 0: v89 = Ship; v90 = 0.95; m_playerCube = a1->m_score->m_playerShip; break; case 1: v89 = Ball; v90 = 0.95; m_playerCube = a1->m_score->m_playerBall; break; case 2: v89 = Ufo; v90 = 0.95; m_playerCube = a1->m_score->m_playerUfo; break; case 3: v89 = Wave; v90 = 0.95; m_playerCube = a1->m_score->m_playerWave; break; case 4: v89 = Robot; v90 = 0.95; m_playerCube = a1->m_score->m_playerRobot; break; case 5: v89 = Spider; v90 = 0.95; m_playerCube = a1->m_score->m_playerSpider; break; case 6: v89 = Swing; v90 = 0.9; v84 = v84 + 2.0; m_playerCube = a1->m_score->m_playerSwing; break; default: goto LABEL_79; } LABEL_80: v92 = SimplePlayer::create(m_playerCube); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v248, (float)((float)((float)((float)v85 * 42.6) + -149.1) + v84) - 1.0, 0.0); cocos2d::CCPoint::operator+(&v247, &v239, &v248); v92->setColor(v92, &v234); SimplePlayer::setSecondColor(v92, &v235); v93 = a1->m_score; v94 = v93->m_special == 2 || v93->m_glowEnabled; m_color3 = v93->m_color3; v92->m_hasGlowOutline = v94; SimplePlayer::tryEnableCustomGlowColor(v92, m_color3); SimplePlayer::updatePlayerFrame(v92, m_playerCube, v89); SimplePlayer::updateColors(v92); v92->setScale(v92, v90); if ( v89 == Ship ) break; ++v85; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v92, 10); v92->setPosition(v92, &v247); cocos2d::CCArray::addObject(a1->m_buttons, v92); if ( v85 == 8 ) goto LABEL_97; LABEL_84: if ( v85 > 4 ) { v84 = -3.0; goto LABEL_78; } v88 = v85 - 1; v84 = 3.0; } v265.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; ++v85; v265.adj = (size_t)ProfilePage::toggleShip; v96 = CCMenuItemSpriteExtra::create(v92, nullptr, v265); v96->setTag(v96, 1); v97 = v96->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v248, 30.0, 30.0); v97(v96, (const cocos2d::CCSize *)&v248); v98 = v92->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v248, 15.0, 15.0); v98(v92, (const cocos2d::CCPoint *)&v248); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v96); v99 = v96->setPosition; v253 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v247); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCSprite **, float, float))v99)( v96, &v248, v253.x, v253.y); cocos2d::CCArray::addObject(a1->m_buttons, v96); if ( v85 != 8 ) goto LABEL_84; LABEL_97: if ( v223 <= 3 ) { v102 = 35.0; v101 = 1.0; v100 = 22.0; } else if ( v223 == 4 ) { v100 = 20.9; v102 = 31.5; v101 = 0.9; } else { v100 = 19.8; v101 = 0.8; v102 = 28.0; } v103 = 0; v104 = 0.0; v227 = v100; cocos2d::CCPoint::CCPoint( &v240, (float)((float)(v236 * 0.5) + 220.0) - v100, (float)((float)(v237 * 0.5) + 145.0) - v100); cocos2d::CCPoint::CCPoint( &v241, (float)((float)(v236 * 0.5) + -220.0) + v227, (float)((float)(v237 * 0.5) + 145.0) - v227); while ( 2 ) { v242 = &byte_124B6C8; v243 = &byte_124B6C8; switch ( v103 ) { case 1: sub_D18D28(&v245); sub_D163D4(&v242, &v245); v127 = (char *)&v245[-1].m_fBrVertexMod; if ( (__int64 *)&v245[-1].m_fBrVertexMod != &qword_124B6B0 ) { if ( &pthread_create ) { v214 = (unsigned int *)&v245[-1].m_fTextureTop; do v215 = __ldaxr(v214); while ( __stlxr(v215 - 1, v214) ); } else { v215 = LODWORD(v245[-1].m_fTextureTop); LODWORD(v245[-1].m_fTextureTop) = v215 - 1; } if ( v215 <= 0 ) operator delete(v127); } sub_D1798C(&v243, "gj_twIcon_001.png", 17); goto LABEL_104; case 2: sub_D18D28(&v246); sub_D163D4(&v242, &v246); v122 = (void *)(*(_QWORD *)&v246 - 24LL); if ( (__int64 *)(*(_QWORD *)&v246 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v210 = (unsigned int *)(*(_QWORD *)&v246 - 8LL); do v211 = __ldaxr(v210); while ( __stlxr(v211 - 1, v210) ); } else { v211 = *(_DWORD *)(*(_QWORD *)&v246 - 8LL); *(_DWORD *)(*(_QWORD *)&v246 - 8LL) = v211 - 1; } if ( v211 <= 0 ) operator delete(v122); } sub_D1798C(&v243, "gj_twitchIcon_001.png", 21); if ( *((_QWORD *)v242 - 3) ) goto LABEL_131; goto LABEL_105; case 3: sub_D18D28(&v247); sub_D163D4(&v242, &v247); v128 = (void *)(*(_QWORD *)&v247 - 24LL); if ( (__int64 *)(*(_QWORD *)&v247 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v212 = (unsigned int *)(*(_QWORD *)&v247 - 8LL); do v213 = __ldaxr(v212); while ( __stlxr(v213 - 1, v212) ); } else { v213 = *(_DWORD *)(*(_QWORD *)&v247 - 8LL); *(_DWORD *)(*(_QWORD *)&v247 - 8LL) = v213 - 1; } if ( v213 <= 0 ) operator delete(v128); } sub_D1798C(&v243, "gj_instaIcon_001.png", 20); goto LABEL_104; case 4: sub_D18D28(&v248); sub_D163D4(&v242, &v248); v178 = (char *)&v248[-1].m_fBrVertexMod; if ( (__int64 *)&v248[-1].m_fBrVertexMod != &qword_124B6B0 ) { if ( &pthread_create ) { v206 = (unsigned int *)&v248[-1].m_fTextureTop; do v207 = __ldaxr(v206); while ( __stlxr(v207 - 1, v206) ); } else { v207 = LODWORD(v248[-1].m_fTextureTop); LODWORD(v248[-1].m_fTextureTop) = v207 - 1; } if ( v207 <= 0 ) operator delete(v178); } sub_D1798C(&v243, "gj_tiktokIcon_001.png", 21); goto LABEL_104; default: sub_D18D28(&v244); sub_D163D4(&v242, &v244); v105 = (void *)(v244 - 24); if ( (__int64 *)(v244 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v208 = (unsigned int *)(v244 - 8); do v209 = __ldaxr(v208); while ( __stlxr(v209 - 1, v208) ); } else { v209 = *(_DWORD *)(v244 - 8); *(_DWORD *)(v244 - 8) = v209 - 1; } if ( v209 <= 0 ) operator delete(v105); } sub_D1798C(&v243, "gj_ytIcon_001.png", 17); LABEL_104: if ( *((_QWORD *)v242 - 3) ) { LABEL_131: v123 = cocos2d::CCSprite::createWithSpriteFrameName(v243); v123->setScale(v123, v101); v267.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v267.adj = (size_t)ProfilePage::onSocialPage; v124 = CCMenuItemSpriteExtra::create(v123, nullptr, v267); v124->setTag(v124, v103); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v124); v225 = a1->m_buttonMenu; v228 = v124->setPosition; m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v245, 0.0, (float)-v104 * v102); cocos2d::CCPoint::operator+(&v246, &v240, &v245); cocos2d::CCNode::convertToWorldSpace(m_mainLayer, &v246); v255 = cocos2d::CCNode::convertToNodeSpace(v225, &v247); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCSprite **, float, float))v228)( v124, &v248, v255.x, v255.y); cocos2d::CCArray::addObject(a1->m_buttons, v124); v106 = v243; v104 = v104 + 1.0; v107 = (char *)(v243 - 24); if ( v243 - 24 == (const char *)&qword_124B6B0 ) goto LABEL_106; } else { LABEL_105: v106 = v243; v107 = (char *)(v243 - 24); if ( v243 - 24 == (const char *)&qword_124B6B0 ) goto LABEL_106; } if ( &pthread_create ) { v125 = (unsigned int *)(v106 - 8); do v126 = __ldaxr(v125); while ( __stlxr(v126 - 1, v125) ); } else { v126 = *((_DWORD *)v106 - 2); *((_DWORD *)v106 - 2) = v126 - 1; } if ( v126 <= 0 ) operator delete(v107); LABEL_106: v108 = v242 - 24; if ( v242 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v179 = (unsigned int *)(v242 - 8); do v180 = __ldaxr(v179); while ( __stlxr(v180 - 1, v179) ); } else { v180 = *((_DWORD *)v242 - 2); *((_DWORD *)v242 - 2) = v180 - 1; } if ( v180 <= 0 ) operator delete(v108); } if ( ++v103 != 5 ) continue; v109 = a1->m_score; m_commentHistoryStatus = v109->m_commentHistoryStatus; if ( m_commentHistoryStatus != 2 && (m_commentHistoryStatus != 1 || v109->m_friendReqStatus == 1) || a1->m_ownProfile || (v181 = GameManager::sharedState(), v181->m_hasRP.random - v181->m_hasRP.seed == 2) ) { v111 = cocos2d::CCSprite::createWithSpriteFrameName("btn_chatHistory_001.png"); v266.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v266.adj = (size_t)ProfilePage::onCommentHistory; v112 = CCMenuItemSpriteExtra::create(v111, nullptr, v266); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v112); v113 = a1->m_mainLayer; v114 = v112->setPosition; v115 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v246, v241.x, v237 * 0.5); cocos2d::CCNode::convertToWorldSpace(v113, &v246); v254 = cocos2d::CCNode::convertToNodeSpace(v115, &v247); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCSprite **, float, float))v114)( v112, &v248, v254.x, v254.y); cocos2d::CCArray::addObject(a1->m_buttons, v112); } if ( v104 <= 0.0 ) goto LABEL_115; sub_D153B8((int)&v245, "GJ_stuffTxt_001.png"); if ( v104 > 1.0 ) { sub_D1798C(&v245, "GJ_stuffTxt_001.png", 19); goto LABEL_114; } *(_QWORD *)&v188 = sub_D18D28(&v246).n128_u64[0]; v189 = (void *)(*(_QWORD *)&v246 - 24LL); v190 = *(_QWORD *)(*(_QWORD *)&v246 - 24LL); if ( (__int64 *)(*(_QWORD *)&v246 - 24LL) == &qword_124B6B0 ) goto LABEL_186; if ( &pthread_create ) { v192 = (unsigned int *)(*(_QWORD *)&v246 - 8LL); do v193 = __ldaxr(v192); while ( __stlxr(v193 - 1, v192) ); } else { v193 = *(_DWORD *)(*(_QWORD *)&v246 - 8LL); *(_DWORD *)(*(_QWORD *)&v246 - 8LL) = v193 - 1; } if ( v193 > 0 ) { LABEL_186: if ( v190 ) { LABEL_192: sub_D1798C(&v245, "GJ_youtubeTxt_001.png", 21, v188); goto LABEL_114; } } else { operator delete(v189); if ( v190 ) goto LABEL_192; } sub_D18D28(&v247); v191 = *(_QWORD *)(*(_QWORD *)&v247 - 24LL); if ( (__int64 *)(*(_QWORD *)&v247 - 24LL) != &qword_124B6B0 ) sub_8F7E2C((void *)(*(_QWORD *)&v247 - 24LL)); if ( v191 ) { sub_D1798C(&v245, "GJ_twitterTxt_001.png", 21); } else { sub_D18D28(&v248); v220 = *(_QWORD *)&v248[-1].m_fBrVertexMod; if ( (__int64 *)&v248[-1].m_fBrVertexMod != &qword_124B6B0 ) sub_8F7E2C(&v248[-1].m_fBrVertexMod); if ( v220 ) sub_D1798C(&v245, "GJ_twitchTxt_001.png", 20); } LABEL_114: v116 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v245); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v116, 2); v117 = v116->setPosition; cocos2d::CCPoint::CCPoint(&v247, -60.0, 0.0); cocos2d::CCPoint::operator+(&v248, &v240, &v247); v117(v116, (const cocos2d::CCPoint *)&v248); cocos2d::CCArray::addObject(a1->m_buttons, v116); v118 = (char *)&v245[-1].m_fBrVertexMod; if ( (__int64 *)&v245[-1].m_fBrVertexMod != &qword_124B6B0 ) { if ( &pthread_create ) { v218 = (unsigned int *)&v245[-1].m_fTextureTop; do v219 = __ldaxr(v218); while ( __stlxr(v219 - 1, v218) ); } else { v219 = LODWORD(v245[-1].m_fTextureTop); LODWORD(v245[-1].m_fTextureTop) = v219 - 1; } if ( v219 <= 0 ) operator delete(v118); } LABEL_115: v119 = a1->m_score; m_globalRank = v119->m_globalRank; if ( m_globalRank > 0 ) { if ( m_globalRank == 1 ) { v121 = "rankIcon_1_001.png"; } else if ( m_globalRank <= 10 ) { v121 = "rankIcon_top10_001.png"; } else if ( m_globalRank <= 50 ) { v121 = "rankIcon_top50_001.png"; } else if ( m_globalRank <= 100 ) { v121 = "rankIcon_top100_001.png"; } else if ( m_globalRank <= 200 ) { v121 = "rankIcon_top200_001.png"; } else if ( m_globalRank <= 500 ) { v121 = "rankIcon_top500_001.png"; } else if ( m_globalRank <= 1000 ) { v121 = "rankIcon_top1000_001.png"; } else if ( m_globalRank <= 5000 ) { v121 = "rankIcon_top2500_001.png"; } else if ( m_globalRank <= 10000 ) { v121 = "rankIcon_top5000_001.png"; } else if ( m_globalRank <= 50000 ) { v121 = "rankIcon_top10000_001.png"; } else { v121 = "rankIcon_all_001.png"; } cocos2d::CCPoint::CCPoint(&v246, (float)(v236 * 0.5) + -164.0, (float)(v237 * 0.5) + 123.0); v129 = cocos2d::CCSprite::createWithSpriteFrameName(v121); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v129, 10); v129->setPosition(v129, &v246); cocos2d::CCArray::addObject(a1->m_buttons, v129); v130 = cocos2d::CCSprite::createWithSpriteFrameName("gj_globalRankTxt_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v130, 10); v131 = v130->setPosition; cocos2d::CCPoint::CCPoint(&v247, 40.0, 6.0); cocos2d::CCPoint::operator+(&v248, &v246, &v247); v131(v130, (const cocos2d::CCPoint *)&v248); cocos2d::CCArray::addObject(a1->m_buttons, v130); v132 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)m_globalRank); cocos2d::CCString::getCString(v132); v133 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v133, 10); v134 = v133->setPosition; cocos2d::CCPoint::CCPoint(&v247, 40.0, -6.0); cocos2d::CCPoint::operator+(&v248, &v246, &v247); v134(v133, (const cocos2d::CCPoint *)&v248); v133->setScale(v133, 0.6); cocos2d::CCArray::addObject(a1->m_buttons, v133); v119 = a1->m_score; } if ( v119->m_modBadge > 0 ) { cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v245, (float)(v236 * 0.5) + -180.0, (float)(v237 * 0.5) + 100.0); m_usernameLabel = a1->m_usernameLabel; if ( m_usernameLabel ) { cocos2d::CCLabelBMFont::limitLabelWidth(m_usernameLabel, 140.0, 0.9, 0.0); v136 = a1->m_usernameLabel->getPosition(a1->m_usernameLabel); a1->m_usernameLabel->getScaledContentSize(a1->m_usernameLabel); cocos2d::CCPoint::CCPoint(&v247, -16.0 - (float)(v246.x * 0.5), -1.0); cocos2d::CCPoint::operator+(&v248, v136, &v247); cocos2d::CCPoint::operator=(&v245, v137, v138); } sub_D153B8((int)&v248, "modBadge_01_001.png"); m_modBadge = a1->m_score->m_modBadge; if ( m_modBadge == 3 ) { sub_D1798C(&v248, "modBadge_03_001.png", 19); } else if ( m_modBadge == 2 ) { sub_D1798C(&v248, "modBadge_02_001.png", 19); } v140 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v248); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v140, 10); v140->setPosition(v140, (const cocos2d::CCPoint *)&v245); cocos2d::CCArray::addObject(a1->m_buttons, v140); v141 = (char *)&v248[-1].m_fBrVertexMod; if ( (__int64 *)&v248[-1].m_fBrVertexMod != &qword_124B6B0 ) { if ( &pthread_create ) { v216 = (unsigned int *)&v248[-1].m_fTextureTop; do v217 = __ldaxr(v216); while ( __stlxr(v217 - 1, v216) ); } else { v217 = LODWORD(v248[-1].m_fTextureTop); LODWORD(v248[-1].m_fTextureTop) = v217 - 1; } if ( v217 <= 0 ) operator delete(v141); } } sub_D153B8((int)&v248, "GJ_infoIcon_001.png"); v142 = CCSpriteGrayscale::createWithSpriteFrameName((const char **)&v248); v143 = (char *)&v248[-1].m_fBrVertexMod; if ( (__int64 *)&v248[-1].m_fBrVertexMod != &qword_124B6B0 ) { if ( &pthread_create ) { v194 = (unsigned int *)&v248[-1].m_fTextureTop; do v195 = __ldaxr(v194); while ( __stlxr(v195 - 1, v194) ); } else { v195 = LODWORD(v248[-1].m_fTextureTop); LODWORD(v248[-1].m_fTextureTop) = v195 - 1; } if ( v195 <= 0 ) operator delete(v143); } v142->setScale(v142, 0.45); v268.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v268.adj = (size_t)ProfilePage::onInfo; v144 = CCMenuItemSpriteExtra::create(v142, nullptr, v268); CCMenuItemSpriteExtra::setSizeMult(v144, 1.5); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v144); v145 = a1->m_usernameLabel->getScale(a1->m_usernameLabel); v146 = a1->m_buttonMenu; v147 = v145; v148 = v144->setPosition; v149 = a1->m_usernameLabel->getPosition(a1->m_usernameLabel); v232 = (float)(v147 * (float)(a1->m_usernameLabel->getContentSize(a1->m_usernameLabel)->width * 0.5)) + 8.0; v150 = a1->m_usernameLabel->getContentSize(a1->m_usernameLabel); cocos2d::CCPoint::CCPoint(&v246, v232, (float)(v147 * (float)(v150->height * 0.5)) + -5.0); cocos2d::CCPoint::operator+(&v247, v149, &v246); v256 = cocos2d::CCNode::convertToNodeSpace(v146, &v247); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCSprite **, float, float))v148)( v144, &v248, v256.x, v256.y); cocos2d::CCArray::addObject(a1->m_buttons, v144); v151 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); v151->setScaleY(v151, 0.8); v151->setVisible(v151, 0); v269.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v269.adj = (size_t)ProfilePage::onCopyName; v152 = CCMenuItemSpriteExtra::create(v151, nullptr, v269); v153 = a1->m_buttonMenu; v152->m_animationEnabled = 0; v153->addChild(v153, v152); v154 = a1->m_buttonMenu; v155 = v152->setPosition; v156 = a1->m_usernameLabel->getPosition(a1->m_usernameLabel); cocos2d::CCPoint::CCPoint(&v246, 0.0, -2.0); cocos2d::CCPoint::operator+(&v247, v156, &v246); v257 = cocos2d::CCNode::convertToNodeSpace(v154, &v247); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCSprite **, float, float))v155)( v152, &v248, v257.x, v257.y); cocos2d::CCArray::addObject(a1->m_buttons, v152); v157 = v237; if ( a1->m_ownProfile ) { v158 = (cocos2d::CCArray *)GameLevelManager::sharedState(); v159 = 1; v158[11].data = (cocos2d::ccArray *)&a1->CommentUploadDelegate; v160 = (cocos2d::CCArray *)cocos2d::CCArray::create(v158); v161 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messages_001.png"); v270.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v270.adj = (size_t)ProfilePage::onMessages; v162 = CCMenuItemSpriteExtra::create(v161, nullptr, v270); CCMenuItemSpriteExtra::setSizeMult(v162, 1.1); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v162); cocos2d::CCArray::addObject(v160, v162); cocos2d::CCArray::addObject(a1->m_buttons, v162); v229 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_friends_001.png"); v271.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v271.adj = (size_t)ProfilePage::onFriends; v163 = CCMenuItemSpriteExtra::create(v229, nullptr, v271); CCMenuItemSpriteExtra::setSizeMult(v163, 1.1); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v163); cocos2d::CCArray::addObject(v160, v163); cocos2d::CCArray::addObject(a1->m_buttons, v163); v226 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_requests_001.png"); v272.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v272.adj = (size_t)ProfilePage::onRequests; v164 = CCMenuItemSpriteExtra::create(v226, nullptr, v272); CCMenuItemSpriteExtra::setSizeMult(v164, 1.1); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v164); cocos2d::CCArray::addObject(v160, v164); cocos2d::CCArray::addObject(a1->m_buttons, v164); v165 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_settings_001.png"); v273.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v273.adj = (size_t)ProfilePage::onSettings; v166 = CCMenuItemSpriteExtra::create(v165, nullptr, v273); CCMenuItemSpriteExtra::setSizeMult(v166, 1.1); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v166); cocos2d::CCArray::addObject(v160, v166); cocos2d::CCArray::addObject(a1->m_buttons, v166); v167 = a1->m_mainLayer; v168 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v246, v236 * 0.5, (float)((float)(v237 * 0.5) + -145.0) + 10.0); cocos2d::CCNode::convertToWorldSpace(v167, &v246); LODWORD(v276.x) = COERCE_UNSIGNED_INT(cocos2d::CCNode::convertToNodeSpace(v168, &v247).y); GameToolbox::alignItemsHorisontally(v160, 30.0, v276, (bool)&v248); v233 = v161; v169 = a1->m_score; while ( 1 ) { if ( v159 == 2 ) { m_newFriendCount = v169->m_newFriendCount; v171 = v229; if ( m_newFriendCount > 0 ) goto LABEL_175; v159 = 3; } else { if ( v159 == 3 ) { m_newFriendCount = v169->m_friendReqCount; if ( m_newFriendCount <= 0 ) goto LABEL_157; v171 = v226; } else { m_newFriendCount = v169->m_newMsgCount; v171 = v233; if ( m_newFriendCount <= 0 ) goto LABEL_178; } LABEL_175: if ( m_newFriendCount == 1 ) v182 = -0.5; else v182 = 0.0; v183 = cocos2d::CCSprite::createWithSpriteFrameName("d_ball_01_001.png"); v183->setColor(v183, (const cocos2d::ccColor3B *)&unk_EF1320); v183->setScale(v183, 0.6); v184 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)m_newFriendCount); cocos2d::CCString::getCString(v184); v185 = cocos2d::CCLabelBMFont::create(); cocos2d::CCLabelBMFont::limitLabelWidth(v185, 28.0, 0.8, 0.0); v183->addChild(v183, v185); v186 = v185->setPosition; cocos2d::CCNode::convertToNodeSpace(v183, &stru_1243140); cocos2d::CCPoint::CCPoint(&v247, v182, 1.0); cocos2d::CCPoint::operator+(&v248, &v246, &v247); v186(v185, (const cocos2d::CCPoint *)&v248); v171->addChild_0(v171, v183, 1); v187 = v183->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v248, 38.0, 38.0); v187(v183, (const cocos2d::CCPoint *)&v248); LABEL_178: if ( v159 == 3 ) { LABEL_157: v172 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_chatBtn_001.png"); v274.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v274.adj = (size_t)ProfilePage::onComment; v173 = CCMenuItemSpriteExtra::create(v172, nullptr, v274); CCMenuItemSpriteExtra::setSizeMult(v173, 1.5); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v173); v174 = a1->m_mainLayer; v175 = v173->setPosition; v176 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint( &v246, (float)((float)(v236 * 0.5) + 220.0) - 10.0, (float)((float)((float)(v237 * 0.5) + -145.0) + 10.0) + 1.0); cocos2d::CCNode::convertToWorldSpace(v174, &v246); v258 = cocos2d::CCNode::convertToNodeSpace(v176, &v247); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCSprite **, float, float))v175)( v173, &v248, v258.x, v258.y); cocos2d::CCArray::addObject(a1->m_buttons, v173); v177 = GameManager::sharedState(); if ( GameManager::getGameVariable(v177, "0076") ) { v173->setVisible(v173, 0); v173->setEnabled(v173, 0); } return; } v169 = a1->m_score; ++v159; } } } m_friendReqStatus = (cocos2d::CCArray *)(unsigned int)a1->m_score->m_friendReqStatus; if ( (_DWORD)m_friendReqStatus != 2 ) { v41 = (cocos2d::CCArray *)cocos2d::CCArray::create(m_friendReqStatus); v42 = GJAccountManager::sharedState(); if ( v42->m_accountID - v42->m_unkInt1 != a1->m_accountID ) { v43 = a1->m_score; m_messageState = v43->m_messageState; if ( m_messageState == 2 ) { v47 = v43->m_friendReqStatus; } else if ( m_messageState != 1 || (v47 = v43->m_friendReqStatus, v47 == 1) ) { v45 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messages_001.png"); v45->setScale(v45, 0.75); v260.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v260.adj = (size_t)ProfilePage::onSendMessage; v46 = CCMenuItemSpriteExtra::create(v45, nullptr, v260); CCMenuItemSpriteExtra::setSizeMult(v46, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v46); cocos2d::CCArray::addObject(v41, v46); cocos2d::CCArray::addObject(a1->m_buttons, v46); v43 = a1->m_score; v47 = v43->m_friendReqStatus; } if ( v43->m_friendStatus != 1 || v47 ) { switch ( v47 ) { case 3: v48 = "accountBtn_pendingRequest_001.png"; break; case 4: v48 = "accountBtn_pending_001.png"; break; case 1: v48 = "accountBtn_removeFriend_001.png"; break; default: v48 = "accountBtn_requests_001.png"; break; } v49 = cocos2d::CCSprite::createWithSpriteFrameName(v48); v49->setScale(v49, 0.75); v261.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v261.adj = (size_t)ProfilePage::onFriend; v50 = CCMenuItemSpriteExtra::create(v49, nullptr, v261); CCMenuItemSpriteExtra::setSizeMult(v50, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v50); cocos2d::CCArray::addObject(v41, v50); cocos2d::CCArray::addObject(a1->m_buttons, v50); } v51 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_blocked_001.png"); v51->setScale(v51, 0.75); v262.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v262.adj = (size_t)ProfilePage::onBlockUser; v52 = CCMenuItemSpriteExtra::create(v51, nullptr, v262); CCMenuItemSpriteExtra::setSizeMult(v52, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v52); cocos2d::CCArray::addObject(v41, v52); cocos2d::CCArray::addObject(a1->m_buttons, v52); v53 = a1->m_mainLayer; v54 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v246, v236 * 0.5, (float)(v157 * 0.5) + -123.0); cocos2d::CCNode::convertToWorldSpace(v53, &v246); LODWORD(v275.x) = COERCE_UNSIGNED_INT(cocos2d::CCNode::convertToNodeSpace(v54, &v247).y); GameToolbox::alignItemsHorisontally(v41, 12.0, v275, (bool)&v248); } cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v245, (float)((float)((float)(v236 * 0.5) + 220.0) - 22.0) - 1.0, (float)((float)(v237 * 0.5) + -145.0) + 22.0); v55 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_myLevels_001.png"); v55->setScale(v55, 0.75); v263.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v263.adj = (size_t)ProfilePage::onMyLevels; v56 = CCMenuItemSpriteExtra::create(v55, nullptr, v263); CCMenuItemSpriteExtra::setSizeMult(v56, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v56); cocos2d::CCArray::addObject(v41, v56); cocos2d::CCArray::addObject(a1->m_buttons, v56); v57 = a1->m_buttonMenu; v58 = v56->setPosition; cocos2d::CCNode::convertToWorldSpace(a1->m_mainLayer, (const cocos2d::CCPoint *)&v245); v250 = cocos2d::CCNode::convertToNodeSpace(v57, &v247); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCSprite **, float, float))v58)( v56, &v248, v250.x, v250.y); v59 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_myLevelsTxt_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v59, 2); v60 = v59->setPosition; cocos2d::CCPoint::CCPoint(&v247, -1.0, 26.0); cocos2d::CCPoint::operator+(&v248, &v245, &v247); v60(v59, (const cocos2d::CCPoint *)&v248); cocos2d::CCArray::addObject(a1->m_buttons, v59); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v248, -42.0, 0.0); cocos2d::CCPoint::operator+(&v246, &v245, &v248); v61 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_myLists_001.png"); v61->setScale(v61, 0.75); v264.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v264.adj = (size_t)ProfilePage::onMyLists; v62 = CCMenuItemSpriteExtra::create(v61, nullptr, v264); CCMenuItemSpriteExtra::setSizeMult(v62, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v62); cocos2d::CCArray::addObject(v41, v62); cocos2d::CCArray::addObject(a1->m_buttons, v62); v63 = a1->m_buttonMenu; v64 = v62->setPosition; cocos2d::CCNode::convertToWorldSpace(a1->m_mainLayer, &v246); v251 = cocos2d::CCNode::convertToNodeSpace(v63, &v247); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCSprite **, float, float))v64)( v62, &v248, v251.x, v251.y); v65 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_myListsTxt_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v65, 2); v66 = v65->setPosition; cocos2d::CCPoint::CCPoint(&v247, -46.0, 0.0); cocos2d::CCPoint::operator+(&v248, &v246, &v247); v66(v65, (const cocos2d::CCPoint *)&v248); cocos2d::CCArray::addObject(a1->m_buttons, v65); v67 = GameManager::sharedState(); if ( GameManager::getGameVariable(v67, "0077") ) { v56->setVisible(v56, 0); v56->setEnabled(v56, 0); v59->setVisible(v59, 0); v62->setVisible(v62, 0); v62->setEnabled(v62, 0); v65->setVisible(v65, 0); } } break; } break; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source