// // ProfilePage::loadPageFromUserInfo from 0x4c507c to 0x4c6996 (6426 bytes) // // 2 xrefs: // > ProfilePage::getUserInfoFinished @ 0x4c8030 // > ProfilePage::userInfoChanged @ 0x4c8096 // // 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; // r0 cocos2d::CCDirector *v5; // r0 cocos2d::CCArray *m_buttons; // r3 cocos2d::ccArray *data; // r2 cocos2d::CCObject **arr; // r5 cocos2d::CCObject **v9; // r4 int v10; // r0 int v11; // t1 int v12; // r4 int v13; // r5 cocos2d::CCPoint *v14; // r3 cocos2d::CCPoint *v15; // r9 float v16; // s18 _BOOL4 v17; // r4 float v18; // s20 float v19; // s16 cocos2d::CCNode *v20; // r5 cocos2d::CCArray *v21; // r0 int v22; // r3 int v23; // r8 unsigned int m_moons; // r1 cocos2d::CCLabelBMFont *v25; // r4 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCSprite *v27; // r6 CCMenuItemSpriteExtra *v28; // r7 cocos2d::CCArray *v29; // r0 cocos2d::CCObject *v30; // r1 int v31; // r2 bool v32; // r3 float width; // s21 float v34; // s16 float v35; // s15 float v36; // s17 void (__fastcall *v37)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r4 unsigned int v38; // r4 int v39; // r0 int v40; // r9 int v41; // r8 void (__fastcall *v42)(int, _DWORD); // r7 float v43; // s16 float v44; // r0 cocos2d::CCMenu *m_buttonMenu; // r8 void (__fastcall *v46)(int, cocos2d::CCPoint *); // r7 const cocos2d::CCPoint *v47; // r0 int v48; // r8 float v49; // s17 GameManager *v50; // r0 int v51; // r0 GameManager *v52; // r0 GJUserScore *v53; // r3 int m_playerShip; // r7 IconType v55; // r6 int v56; // r9 SimplePlayer *v57; // r5 GJUserScore *v58; // r3 int m_color3; // r1 char v60; // r2 CCMenuItemSpriteExtra *v61; // r7 void (__fastcall *v62)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r9 void (__fastcall *v63)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 void (__fastcall *v64)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r5 cocos2d::CCArray *v65; // r0 cocos2d::CCObject *v66; // r1 float v67; // s23 float v68; // s19 float v69; // s17 int v70; // r8 float v71; // s20 char *v72; // r1 cocos2d::CCSprite *v73; // r5 CCMenuItemSpriteExtra *v74; // r5 GJUserScore *v75; // r3 int m_commentHistoryStatus; // r2 GameManager *v77; // r0 char *v78; // r1 cocos2d::CCSprite *v79; // r7 int v80; // r8 int v81; // r7 int v82; // r7 void (__fastcall *v83)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 const char *m_globalRank; // r5 const char *v85; // r6 cocos2d::CCSprite *v86; // r6 cocos2d::CCSprite *v87; // r7 void (__fastcall *v88)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCString *v89; // r0 cocos2d::CCLabelBMFont *v90; // r5 void (__fastcall *v91)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCLabelBMFont *m_usernameLabel; // r0 const cocos2d::CCPoint *v93; // r7 int v94; // r2 bool v95; // r3 int m_modBadge; // r3 char *v97; // r1 cocos2d::CCSprite *v98; // r7 CCSpriteGrayscale *v99; // r6 CCMenuItemSpriteExtra *v100; // r8 int v101; // r0 float v102; // s20 const cocos2d::CCPoint *v103; // r9 float v104; // s15 const cocos2d::CCSize *v105; // r0 cocos2d::CCSprite *v106; // r8 CCMenuItemSpriteExtra *v107; // r8 const cocos2d::CCPoint *v108; // r9 cocos2d::CCArray *v109; // r0 float height; // s19 cocos2d::CCArray *v111; // r9 GJAccountManager *v112; // r0 GJUserScore *v113; // r3 int m_messageState; // r2 cocos2d::CCSprite *v115; // r4 CCMenuItemSpriteExtra *v116; // r4 GJUserScore *v117; // r3 int m_friendStatus; // r2 int m_friendReqStatus; // r3 const char *v120; // r0 cocos2d::CCSprite *v121; // r4 CCMenuItemSpriteExtra *v122; // r4 cocos2d::CCSprite *v123; // r5 CCMenuItemSpriteExtra *v124; // r5 cocos2d::CCLayer *v125; // r5 cocos2d::CCMenu *v126; // r8 cocos2d::CCSprite *v127; // r5 CCMenuItemSpriteExtra *v128; // r7 cocos2d::CCSprite *v129; // r6 CCMenuItemSpriteExtra *v130; // r6 cocos2d::CCMenu *v131; // r10 void (__fastcall *v132)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCSprite *v133; // r9 void (__fastcall *v134)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10 GameManager *v135; // r0 cocos2d::CCArray *v136; // r0 cocos2d::CCArray *v137; // r6 CCMenuItemSpriteExtra *v138; // r7 CCMenuItemSpriteExtra *v139; // r7 CCMenuItemSpriteExtra *v140; // r7 cocos2d::CCSprite *v141; // r0 CCMenuItemSpriteExtra *v142; // r7 cocos2d::CCLayer *v143; // r9 int v144; // r5 const char *v145; // r12 GJUserScore *v146; // r3 const char *m_newFriendCount; // r6 cocos2d::CCSprite *v148; // r7 cocos2d::CCSprite *v149; // r0 CCMenuItemSpriteExtra *v150; // r4 cocos2d::CCLayer *v151; // r10 cocos2d::CCMenu *v152; // r9 void (__fastcall *v153)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 GameManager *v154; // r0 float v155; // s20 cocos2d::CCSprite *v156; // r4 cocos2d::CCString *v157; // r0 cocos2d::CCLabelBMFont *v158; // r8 void (__fastcall *v159)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCSprite *v160; // r0 CCMenuItemSpriteExtra *v161; // r5 cocos2d::CCLayer *v162; // r6 cocos2d::CCMenu *v163; // r8 void (__fastcall *v164)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCPoint *v165; // [sp+8h] [bp-ECh] cocos2d::CCPoint *v166; // [sp+8h] [bp-ECh] cocos2d::CCMenu *v167; // [sp+8h] [bp-ECh] cocos2d::CCSprite *v168; // [sp+8h] [bp-ECh] cocos2d::CCSprite *v169; // [sp+8h] [bp-ECh] cocos2d::CCPoint *v170; // [sp+Ch] [bp-E8h] cocos2d::CCPoint *v171; // [sp+Ch] [bp-E8h] cocos2d::CCMenu *v172; // [sp+Ch] [bp-E8h] cocos2d::CCMenu *v173; // [sp+Ch] [bp-E8h] cocos2d::CCPoint *v174; // [sp+Ch] [bp-E8h] cocos2d::CCPoint *v175; // [sp+Ch] [bp-E8h] cocos2d::CCSprite *v176; // [sp+Ch] [bp-E8h] cocos2d::CCArray *v177; // [sp+10h] [bp-E4h] cocos2d::CCMenu *v178; // [sp+10h] [bp-E4h] cocos2d::CCSprite *v179; // [sp+10h] [bp-E4h] cocos2d::CCPoint *v180; // [sp+14h] [bp-E0h] cocos2d::CCLayer *m_mainLayer; // [sp+14h] [bp-E0h] cocos2d::CCMenu *v182; // [sp+14h] [bp-E0h] cocos2d::CCPoint *v183; // [sp+14h] [bp-E0h] int v184; // [sp+18h] [bp-DCh] void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // [sp+18h] [bp-DCh] void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+18h] [bp-DCh] char *v187; // [sp+30h] [bp-C4h] __int16 v188; // [sp+3Ch] [bp-B8h] BYREF char v189; // [sp+3Eh] [bp-B6h] cocos2d::ccColor3B v190; // [sp+40h] [bp-B4h] BYREF cocos2d::CCSize v191; // [sp+44h] [bp-B0h] BYREF cocos2d::CCPoint v192; // [sp+4Ch] [bp-A8h] BYREF cocos2d::CCPoint v193; // [sp+54h] [bp-A0h] BYREF cocos2d::CCPoint v194; // [sp+5Ch] [bp-98h] BYREF cocos2d::CCPoint v195; // [sp+64h] [bp-90h] BYREF void (*v196)(ProfilePage *, cocos2d::CCObject *); // [sp+6Ch] [bp-88h] int v197; // [sp+70h] [bp-84h] void (*v198)(ProfilePage *, cocos2d::CCObject *); // [sp+74h] [bp-80h] int v199; // [sp+78h] [bp-7Ch] void (*v200)(ProfilePage *, cocos2d::CCObject *); // [sp+7Ch] [bp-78h] int v201; // [sp+80h] [bp-74h] void (*v202)(ProfilePage *, cocos2d::CCObject *); // [sp+84h] [bp-70h] int v203; // [sp+88h] [bp-6Ch] void (*v204)(ProfilePage *, cocos2d::CCObject *); // [sp+8Ch] [bp-68h] int v205; // [sp+90h] [bp-64h] void (*v206)(ProfilePage *, cocos2d::CCObject *); // [sp+94h] [bp-60h] int v207; // [sp+98h] [bp-5Ch] void (*v208)(ProfilePage *, cocos2d::CCObject *); // [sp+9Ch] [bp-58h] int v209; // [sp+A0h] [bp-54h] void (*v210)(ProfilePage *, cocos2d::CCObject *); // [sp+A4h] [bp-50h] int v211; // [sp+A8h] [bp-4Ch] cocos2d::CCPoint v212; // [sp+ACh] [bp-48h] BYREF cocos2d::CCPoint v213; // [sp+B4h] [bp-40h] BYREF cocos2d::CCPoint v214; // [sp+BCh] [bp-38h] BYREF _DWORD v215[2]; // [sp+C4h] [bp-30h] BYREF cocos2d::CCPoint v216; // [sp+CCh] [bp-28h] BYREF cocos2d::CCPoint v217; // [sp+D4h] [bp-20h] BYREF cocos2d::CCPoint v218; // [sp+DCh] [bp-18h] BYREF cocos2d::CCPoint v219; // [sp+E4h] [bp-10h] BYREF ((void (__fastcall *)(cocos2d::CCLayer *, int))a1->m_mainLayer->setScaleX)(a1->m_mainLayer, 1065353216); ((void (__fastcall *)(cocos2d::CCLayer *, int))a1->m_mainLayer->setScaleY)(a1->m_mainLayer, 1065353216); m_score = a1->m_score; if ( m_score ) { cocos2d::CCObject::release(m_score); a1->m_score = nullptr; } v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v191, v5); m_buttons = a1->m_buttons; if ( m_buttons ) { data = m_buttons->data; if ( data->num ) { arr = data->arr; v9 = &arr[data->num] + 0x3FFFFFFF; while ( arr <= v9 ) { v11 = (int)*arr++; v10 = v11; if ( !v11 ) break; (*(void (__fastcall **)(int))(*(_DWORD *)v10 + 252))(v10); } } } cocos2d::CCArray::removeAllObjects(a1->m_buttons); if ( a2 ) { a1->m_score = a2; cocos2d::CCObject::retain(a2); if ( a1->m_score->m_friendReqStatus != 2 ) { sub_775C20(v215); v12 = *(_DWORD *)(v215[0] - 12) != 0; sub_775C20(&v216); if ( *(_DWORD *)(LODWORD(v216.x) - 12) ) ++v12; sub_775C20(&v217); if ( *(_DWORD *)(LODWORD(v217.x) - 12) ) ++v12; sub_775C20(&v218); if ( *(_DWORD *)(LODWORD(v218.x) - 12) ) v13 = v12 + 1; else v13 = v12; sub_775C20(&v219); v14 = (cocos2d::CCPoint *)v13; if ( *(_DWORD *)(LODWORD(v219.x) - 12) ) v14 = (cocos2d::CCPoint *)(v13 + 1); v170 = v14; sub_774008(&v219); sub_774008(&v218); sub_774008(&v217); sub_774008(&v216); sub_774008(v215); v15 = nullptr; v16 = 60.0; v17 = a1->m_score->m_creatorPoints > 0; v18 = (float)(v191.height * 0.5) + 85.0; if ( a1->m_score->m_creatorPoints > 0 ) v16 = 50.0; v19 = 0.0; v20 = cocos2d::CCNode::create(); v20->setContentSize(v20, &stru_AC6C1C); a1->m_mainLayer->addChild(a1->m_mainLayer, v20); v21 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint(&v192, 0.0, 0.0); if ( v17 ) v22 = 6; else v22 = 5; v180 = (cocos2d::CCPoint *)v22; v177 = (cocos2d::CCArray *)cocos2d::CCArray::create(v21); do { LODWORD(v216.x) = &unk_ACDDA8; switch ( (unsigned int)v15 ) { case 1u: sub_7753D4((int)&v216, "GJ_moonsIcon_001.png"); v23 = 2; m_moons = a1->m_score->m_moons; break; case 2u: sub_7753D4((int)&v216, "GJ_coinsIcon_001.png"); m_moons = a1->m_score->m_secretCoins; goto LABEL_34; case 3u: sub_7753D4((int)&v216, "GJ_coinsIcon2_001.png"); m_moons = a1->m_score->m_userCoins; goto LABEL_34; case 4u: sub_7753D4((int)&v216, "GJ_demonIcon_001.png"); v23 = 3; m_moons = a1->m_score->m_demons; break; case 5u: sub_7753D4((int)&v216, "GJ_hammerIcon_001.png"); m_moons = a1->m_score->m_creatorPoints; LABEL_34: v23 = 0; break; default: sub_7753D4((int)&v216, "GJ_starsIcon_001.png"); v23 = 1; m_moons = a1->m_score->m_stars; break; } GameToolbox::pointsToString((GameToolbox *)&v219, m_moons); v25 = cocos2d::CCLabelBMFont::create(); sub_774008(&v219); v20->addChild_0(v20, v25, 2); setAnchorPoint = v25->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v219, 0.0, 0.5); setAnchorPoint(v25, &v219); v25->setPosition(v25, &v192); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v25->setScale)(v25, 1058642330); cocos2d::CCLabelBMFont::limitLabelWidth(v25, v16, 0.6, 0.0); cocos2d::CCArray::addObject(a1->m_buttons, v25); v27 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)LODWORD(v216.x)); ((void (__fastcall *)(cocos2d::CCSprite *, int))v27->setScale)(v27, 1063675494); v184 = (int)v25->getPosition(v25); v25->getScaledContentSize((cocos2d::CCSize *)&v218, v25); cocos2d::CCPoint::CCPoint(&v219, v218.x + 14.0, 0.0); cocos2d::CCPoint::operator+(&v217, v184, &v219); if ( v23 ) { v197 = 0; v196 = ProfilePage::onStatInfo; v28 = CCMenuItemSpriteExtra::create( v27, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onStatInfo, (unsigned int)a1)); v28->setTag(v28, v23); setContentSize = v28->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v219, 30.0, 30.0); setContentSize(v28, (const cocos2d::CCSize *)&v219); setPosition = v27->setPosition; cocos2d::CCPoint::CCPoint(&v219, 15.0, 15.0); setPosition(v27, &v219); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v28); v28->setPosition(v28, &v217); cocos2d::CCArray::addObject(a1->m_buttons, v28); v29 = v177; v30 = v28; } else { v20->addChild_0(v20, v27, 2); v27->setPosition(v27, &v217); v29 = a1->m_buttons; v30 = v27; } cocos2d::CCArray::addObject(v29, v30); cocos2d::CCPoint::CCPoint(&v218, 20.0, 0.0); cocos2d::CCPoint::operator+(&v219, &v217, &v218); cocos2d::CCPoint::operator=((PlayerObject *)&v192, COERCE_FLOAT(&v219), v31, v32); width = v25->getContentSize(v25)->width; v34 = v19 + (float)((float)(width * v25->getScale(v25)) + 14.0); if ( v15 ) v35 = 20.0; else v35 = 10.0; v15 = (cocos2d::CCPoint *)((char *)v15 + 1); v19 = v34 + v35; sub_774008(&v216); } while ( v15 != v180 ); v36 = 420.0; if ( (int)v170 >= 2 ) v36 = 340.0; if ( v19 > v36 ) { ((void (__fastcall *)(cocos2d::CCNode *, _DWORD))v20->setScale)(v20, v36 / v19); v19 = v36; } v37 = v20->setPosition; cocos2d::CCPoint::CCPoint(&v219, (float)(v191.width * 0.5) - (float)(v19 * 0.5), v18); v37(v20, &v219); v38 = 0; while ( v38 < cocos2d::CCArray::count(v177) ) { v39 = cocos2d::CCArray::objectAtIndex(v177, v38++); v40 = v39; v41 = (*(int (__fastcall **)(int))(*(_DWORD *)v39 + 528))(v39); v42 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v41 + 80); v43 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v41 + 84))(v41)); v44 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCNode *))v20->getScale)(v20)); v42(v41, v43 * v44); m_buttonMenu = a1->m_buttonMenu; v46 = *(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v40 + 92); v47 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v40 + 96))(v40); cocos2d::CCNode::convertToWorldSpace(&v218, v20, v47); cocos2d::CCNode::convertToNodeSpace(&v219, m_buttonMenu, &v218); v46(v40, &v219); } v48 = 0; v49 = 3.0; cocos2d::CCPoint::CCPoint(&v193, v191.width * 0.5, (float)(v191.height * 0.5) + 40.0); v50 = GameManager::sharedState(); *(cocos2d::ccColor3B *)&v51 = GameManager::colorForIdx(v50, a1->m_score->m_color1); v188 = v51; v189 = BYTE2(v51); v52 = GameManager::sharedState(); v190 = GameManager::colorForIdx(v52, a1->m_score->m_color2); while ( 1 ) { v53 = a1->m_score; switch ( v48 ) { case 1: m_playerShip = v53->m_playerShip; v55 = Ship; v56 = 1064514355; break; case 2: m_playerShip = v53->m_playerBall; v55 = Ball; v56 = 1064514355; break; case 3: m_playerShip = v53->m_playerUfo; v55 = Ufo; v56 = 1064514355; break; case 4: m_playerShip = v53->m_playerWave; v55 = Wave; v56 = 1064514355; break; case 5: m_playerShip = v53->m_playerRobot; v55 = Robot; v56 = 1064514355; break; case 6: m_playerShip = v53->m_playerSpider; v55 = Spider; v56 = 1064514355; break; case 7: m_playerShip = v53->m_playerSwing; v56 = 1063675494; v55 = Swing; v49 = v49 + 2.0; break; default: m_playerShip = v53->m_playerCube; v55 = Cube; v56 = 1064514355; break; } v57 = SimplePlayer::create(m_playerShip); cocos2d::CCPoint::CCPoint(&v219, (float)((float)((float)((float)v48 * 42.6) - 149.1) + v49) - 1.0, 0.0); cocos2d::CCPoint::operator+(&v218, &v193, &v219); v57->setColor(v57, (const cocos2d::ccColor3B *)&v188); SimplePlayer::setSecondColor(v57, &v190); v58 = a1->m_score; m_color3 = v58->m_color3; v60 = v58->m_special == 2 || v58->m_glowEnabled; v57->m_hasGlowOutline = v60; SimplePlayer::tryEnableCustomGlowColor(v57, m_color3); SimplePlayer::updatePlayerFrame(v57, m_playerShip, v55); SimplePlayer::updateColors(v57); ((void (__fastcall *)(SimplePlayer *, int))v57->setScale)(v57, v56); if ( v55 == Ship ) { v199 = 0; v198 = ProfilePage::toggleShip; v61 = CCMenuItemSpriteExtra::create( v57, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::toggleShip, (unsigned int)a1)); v61->setTag(v61, 1); v62 = v61->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v219, 30.0, 30.0); v62(v61, (const cocos2d::CCSize *)&v219); v63 = v57->setPosition; cocos2d::CCPoint::CCPoint(&v219, 15.0, 15.0); v63(v57, &v219); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v61); v64 = v61->setPosition; cocos2d::CCNode::convertToNodeSpace(&v219, a1->m_buttonMenu, &v218); v64(v61, &v219); v65 = a1->m_buttons; v66 = v61; } else { a1->m_mainLayer->addChild_0(a1->m_mainLayer, v57, 10); v57->setPosition(v57, &v218); v65 = a1->m_buttons; v66 = v57; } ++v48; cocos2d::CCArray::addObject(v65, v66); if ( v48 == 8 ) break; v49 = -3.0; if ( v48 < 5 ) v49 = 3.0; } v67 = 35.0; if ( (int)v170 <= 3 ) { v68 = 1.0; v69 = 22.0; } else { v68 = 0.9; if ( v170 != (cocos2d::CCPoint *)byte_4 ) v68 = 0.8; v67 = v68 * 35.0; v69 = (float)(v68 + (float)((float)(1.0 - v68) * 0.5)) * 22.0; } v70 = 0; v71 = 0.0; cocos2d::CCPoint::CCPoint( &v194, (float)((float)(v191.width * 0.5) + 220.0) - v69, (float)((float)(v191.height * 0.5) + 145.0) - v69); cocos2d::CCPoint::CCPoint( &v195, (float)((float)(v191.width * 0.5) - 220.0) + v69, (float)((float)(v191.height * 0.5) + 145.0) - v69); do { LODWORD(v213.x) = &unk_ACDDA8; LODWORD(v214.x) = &unk_ACDDA8; switch ( v70 ) { case 1: sub_775C20(&v216); sub_774794(&v213, &v216); sub_774008(&v216); v72 = "gj_twIcon_001.png"; break; case 2: sub_775C20(&v217); sub_774794(&v213, &v217); sub_774008(&v217); v72 = "gj_twitchIcon_001.png"; break; case 3: sub_775C20(&v218); sub_774794(&v213, &v218); sub_774008(&v218); v72 = "gj_instaIcon_001.png"; break; case 4: sub_775C20(&v219); sub_774794(&v213, &v219); sub_774008(&v219); v72 = "gj_tiktokIcon_001.png"; break; default: sub_775C20(v215); sub_774794(&v213, v215); sub_774008(v215); v72 = "gj_ytIcon_001.png"; break; } sub_7753D4((int)&v214, v72); if ( *(_DWORD *)(LODWORD(v213.x) - 12) ) { v73 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)LODWORD(v214.x)); v73->setScale(v73, COERCE_FLOAT(LODWORD(v68))); v201 = 0; v200 = ProfilePage::onSocialPage; v74 = CCMenuItemSpriteExtra::create( v73, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onSocialPage, (unsigned int)a1)); v74->setTag(v74, v70); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v74); v171 = (cocos2d::CCPoint *)v74->setPosition; v178 = a1->m_buttonMenu; m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v216, 0.0, -(float)(v71 * v67)); cocos2d::CCPoint::operator+(&v217, &v194, &v216); cocos2d::CCNode::convertToWorldSpace(&v218, m_mainLayer, &v217); cocos2d::CCNode::convertToNodeSpace(&v219, v178, &v218); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v171)(v74, &v219); cocos2d::CCArray::addObject(a1->m_buttons, v74); v71 = v71 + 1.0; } ++v70; sub_774008(&v214); sub_774008(&v213); } while ( v70 != 5 ); v75 = a1->m_score; m_commentHistoryStatus = v75->m_commentHistoryStatus; if ( m_commentHistoryStatus != 2 && (m_commentHistoryStatus != 1 || v75->m_friendReqStatus == 1) || a1->m_ownProfile || (v77 = GameManager::sharedState(), v77->m_hasRP.random - v77->m_hasRP.seed == 2) ) { v160 = cocos2d::CCSprite::createWithSpriteFrameName("btn_chatHistory_001.png"); v203 = 0; v202 = ProfilePage::onCommentHistory; v161 = CCMenuItemSpriteExtra::create( v160, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onCommentHistory, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v161); v162 = a1->m_mainLayer; v163 = a1->m_buttonMenu; v164 = v161->setPosition; cocos2d::CCPoint::CCPoint(&v217, v195.x, v191.height * 0.5); cocos2d::CCNode::convertToWorldSpace(&v218, v162, &v217); cocos2d::CCNode::convertToNodeSpace(&v219, v163, &v218); v164(v161, &v219); cocos2d::CCArray::addObject(a1->m_buttons, v161); } if ( v71 <= 0.0 ) { LABEL_102: m_globalRank = (const char *)a1->m_score->m_globalRank; if ( (int)m_globalRank > 0 ) { if ( m_globalRank == (_BYTE *)&dword_0 + 1 ) { v85 = "rankIcon_1_001.png"; } else if ( (int)m_globalRank <= 10 ) { v85 = "rankIcon_top10_001.png"; } else if ( (int)m_globalRank <= 50 ) { v85 = "rankIcon_top50_001.png"; } else if ( (int)m_globalRank <= 100 ) { v85 = "rankIcon_top100_001.png"; } else if ( (int)m_globalRank <= 200 ) { v85 = "rankIcon_top200_001.png"; } else if ( (int)m_globalRank <= 500 ) { v85 = "rankIcon_top500_001.png"; } else if ( (int)m_globalRank <= 1000 ) { v85 = "rankIcon_top1000_001.png"; } else if ( (int)m_globalRank <= 5000 ) { v85 = "rankIcon_top2500_001.png"; } else if ( (int)m_globalRank <= 10000 ) { v85 = "rankIcon_top5000_001.png"; } else if ( (int)m_globalRank <= 50000 ) { v85 = "rankIcon_top10000_001.png"; } else { v85 = "rankIcon_all_001.png"; } cocos2d::CCPoint::CCPoint(&v217, (float)(v191.width * 0.5) - 164.0, (float)(v191.height * 0.5) + 123.0); v86 = cocos2d::CCSprite::createWithSpriteFrameName(v85); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v86, 10); v86->setPosition(v86, &v217); cocos2d::CCArray::addObject(a1->m_buttons, v86); v87 = cocos2d::CCSprite::createWithSpriteFrameName("gj_globalRankTxt_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v87, 10); v88 = v87->setPosition; cocos2d::CCPoint::CCPoint(&v218, 40.0, 6.0); cocos2d::CCPoint::operator+(&v219, &v217, &v218); v88(v87, &v219); cocos2d::CCArray::addObject(a1->m_buttons, v87); v89 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", m_globalRank); cocos2d::CCString::getCString(v89); v90 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v90, 10); v91 = v90->setPosition; cocos2d::CCPoint::CCPoint(&v218, 40.0, -6.0); cocos2d::CCPoint::operator+(&v219, &v217, &v218); v91(v90, &v219); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v90->setScale)(v90, 1058642330); cocos2d::CCArray::addObject(a1->m_buttons, v90); } if ( a1->m_score->m_modBadge <= 0 ) goto LABEL_134; cocos2d::CCPoint::CCPoint(&v216, (float)(v191.width * 0.5) - 180.0, (float)(v191.height * 0.5) + 100.0); m_usernameLabel = a1->m_usernameLabel; if ( m_usernameLabel ) { cocos2d::CCLabelBMFont::limitLabelWidth(m_usernameLabel, 140.0, 0.9, 0.0); v93 = a1->m_usernameLabel->getPosition(a1->m_usernameLabel); ((void (__fastcall *)(cocos2d::CCPoint *))a1->m_usernameLabel->getScaledContentSize)(&v217); cocos2d::CCPoint::CCPoint(&v218, (float)-(float)(v217.x * 0.5) - 16.0, -1.0); cocos2d::CCPoint::operator+(&v219, v93, &v218); cocos2d::CCPoint::operator=((PlayerObject *)&v216, COERCE_FLOAT(&v219), v94, v95); } sub_776584((int)&v219, "modBadge_01_001.png"); m_modBadge = a1->m_score->m_modBadge; if ( m_modBadge == 3 ) { v97 = "modBadge_03_001.png"; } else { if ( m_modBadge != 2 ) goto LABEL_131; v97 = "modBadge_02_001.png"; } sub_7753D4((int)&v219, v97); LABEL_131: v98 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)LODWORD(v219.x)); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v98, 10); v98->setPosition(v98, &v216); cocos2d::CCArray::addObject(a1->m_buttons, v98); sub_774008(&v219); LABEL_134: sub_776584((int)&v219, "GJ_infoIcon_001.png"); v99 = CCSpriteGrayscale::createWithSpriteFrameName((const char **)&v219); sub_774008(&v219); ((void (__fastcall *)(CCSpriteGrayscale *, int))v99->setScale)(v99, 1055286886); v205 = 0; v204 = ProfilePage::onInfo; v100 = CCMenuItemSpriteExtra::create( v99, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onInfo, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v100, 1.5); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v100); *(float *)&v101 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_usernameLabel->getScale)(a1->m_usernameLabel)); v165 = (cocos2d::CCPoint *)v100->setPosition; v172 = a1->m_buttonMenu; v102 = *(float *)&v101; v103 = a1->m_usernameLabel->getPosition(a1->m_usernameLabel); v104 = a1->m_usernameLabel->getContentSize(a1->m_usernameLabel)->width; v105 = a1->m_usernameLabel->getContentSize(a1->m_usernameLabel); cocos2d::CCPoint::CCPoint( &v217, (float)((float)(v104 * 0.5) * v102) + 8.0, (float)((float)(v105->height * 0.5) * v102) - 5.0); cocos2d::CCPoint::operator+(&v218, v103, &v217); cocos2d::CCNode::convertToNodeSpace(&v219, v172, &v218); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v165)(v100, &v219); cocos2d::CCArray::addObject(a1->m_buttons, v100); v106 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v106->setScaleY)(v106, 1061997773); v106->setVisible(v106, 0); v207 = 0; v206 = ProfilePage::onCopyName; v107 = CCMenuItemSpriteExtra::create( v106, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onCopyName, (unsigned int)a1)); v107->m_animationEnabled = 0; a1->m_buttonMenu->addChild(a1->m_buttonMenu, v107); v166 = (cocos2d::CCPoint *)v107->setPosition; v173 = a1->m_buttonMenu; v108 = a1->m_usernameLabel->getPosition(a1->m_usernameLabel); cocos2d::CCPoint::CCPoint(&v217, 0.0, -2.0); cocos2d::CCPoint::operator+(&v218, v108, &v217); cocos2d::CCNode::convertToNodeSpace(&v219, v173, &v218); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v166)(v107, &v219); v109 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(a1->m_buttons, v107); height = v191.height; if ( !a1->m_ownProfile ) { if ( a1->m_score->m_friendReqStatus != 2 ) { v111 = (cocos2d::CCArray *)cocos2d::CCArray::create(v109); v112 = GJAccountManager::sharedState(); if ( v112->m_accountID - v112->m_unkInt1 != a1->m_accountID ) { v113 = a1->m_score; m_messageState = v113->m_messageState; if ( m_messageState != 2 && (m_messageState != 1 || v113->m_friendReqStatus == 1) ) { v115 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messages_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v115->setScale)(v115, 1061158912); v209 = 0; v208 = ProfilePage::onSendMessage; v116 = CCMenuItemSpriteExtra::create( v115, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onSendMessage, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v116, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v116); cocos2d::CCArray::addObject(v111, v116); cocos2d::CCArray::addObject(a1->m_buttons, v116); } v117 = a1->m_score; m_friendStatus = v117->m_friendStatus; m_friendReqStatus = v117->m_friendReqStatus; if ( m_friendStatus != 1 || m_friendReqStatus ) { switch ( m_friendReqStatus ) { case 3: v120 = "accountBtn_pendingRequest_001.png"; break; case 4: v120 = "accountBtn_pending_001.png"; break; case 1: v120 = "accountBtn_removeFriend_001.png"; break; default: v120 = "accountBtn_requests_001.png"; break; } v121 = cocos2d::CCSprite::createWithSpriteFrameName(v120); ((void (__fastcall *)(cocos2d::CCSprite *, int))v121->setScale)(v121, 1061158912); v211 = 0; v210 = ProfilePage::onFriend; v122 = CCMenuItemSpriteExtra::create( v121, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onFriend, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v122, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v122); cocos2d::CCArray::addObject(v111, v122); cocos2d::CCArray::addObject(a1->m_buttons, v122); } v123 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_blocked_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v123->setScale)(v123, 1061158912); v212.y = 0.0; LODWORD(v212.x) = ProfilePage::onBlockUser; v124 = CCMenuItemSpriteExtra::create( v123, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onBlockUser, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v124, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v124); cocos2d::CCArray::addObject(v111, v124); cocos2d::CCArray::addObject(a1->m_buttons, v124); v125 = a1->m_mainLayer; v126 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v217, v191.width * 0.5, (float)(height * 0.5) - 123.0); cocos2d::CCNode::convertToWorldSpace(&v218, v125, &v217); cocos2d::CCNode::convertToNodeSpace(&v219, v126, &v218); GameToolbox::alignItemsHorisontally(v111, 12.0, (cocos2d::CCPoint)(unsigned int)&v219, 0); } cocos2d::CCPoint::CCPoint( &v216, (float)((float)((float)(v191.width * 0.5) + 220.0) - 22.0) - 1.0, (float)((float)(v191.height * 0.5) - 145.0) + 22.0); v127 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_myLevels_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v127->setScale)(v127, 1061158912); v213.y = 0.0; LODWORD(v213.x) = ProfilePage::onMyLevels; v128 = CCMenuItemSpriteExtra::create( v127, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onMyLevels, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v128, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v128); cocos2d::CCArray::addObject(v111, v128); cocos2d::CCArray::addObject(a1->m_buttons, v128); v174 = (cocos2d::CCPoint *)v128->setPosition; v167 = a1->m_buttonMenu; cocos2d::CCNode::convertToWorldSpace(&v218, a1->m_mainLayer, &v216); cocos2d::CCNode::convertToNodeSpace(&v219, v167, &v218); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v174)(v128, &v219); v168 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_myLevelsTxt_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v168, 2); v175 = (cocos2d::CCPoint *)v168->setPosition; cocos2d::CCPoint::CCPoint(&v218, -1.0, 26.0); cocos2d::CCPoint::operator+(&v219, &v216, &v218); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCPoint *))v175)(v168, &v219); cocos2d::CCArray::addObject(a1->m_buttons, v168); cocos2d::CCPoint::CCPoint(&v219, -42.0, 0.0); cocos2d::CCPoint::operator+(&v217, &v216, &v219); v129 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_myLists_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v129->setScale)(v129, 1061158912); v214.y = 0.0; LODWORD(v214.x) = ProfilePage::onMyLists; v130 = CCMenuItemSpriteExtra::create( v129, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onMyLists, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v130, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v130); cocos2d::CCArray::addObject(v111, v130); cocos2d::CCArray::addObject(a1->m_buttons, v130); v131 = a1->m_buttonMenu; v132 = v130->setPosition; cocos2d::CCNode::convertToWorldSpace(&v218, a1->m_mainLayer, &v217); cocos2d::CCNode::convertToNodeSpace(&v219, v131, &v218); v132(v130, &v219); v133 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_myListsTxt_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v133, 2); v134 = v133->setPosition; cocos2d::CCPoint::CCPoint(&v218, -46.0, 0.0); cocos2d::CCPoint::operator+(&v219, &v217, &v218); v134(v133, &v219); cocos2d::CCArray::addObject(a1->m_buttons, v133); v135 = GameManager::sharedState(); if ( GameManager::getGameVariable(v135, "0077") ) { v128->setVisible(v128, 0); v128->setEnabled(v128, 0); v168->setVisible(v168, 0); v130->setVisible(v130, 0); v130->setEnabled(v130, 0); v133->setVisible(v133, 0); } } return; } v136 = (cocos2d::CCArray *)GameLevelManager::sharedState(); v136[9].__vftable = (cocos2d::CCArray_vtbl *)&a1->CommentUploadDelegate; v137 = (cocos2d::CCArray *)cocos2d::CCArray::create(v136); v169 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messages_001.png"); v215[1] = 0; v215[0] = ProfilePage::onMessages; v138 = CCMenuItemSpriteExtra::create( v169, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onMessages, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v138, 1.1); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v138); cocos2d::CCArray::addObject(v137, v138); cocos2d::CCArray::addObject(a1->m_buttons, v138); v176 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_friends_001.png"); v216.y = 0.0; LODWORD(v216.x) = ProfilePage::onFriends; v139 = CCMenuItemSpriteExtra::create( v176, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onFriends, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v139, 1.1); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v139); cocos2d::CCArray::addObject(v137, v139); cocos2d::CCArray::addObject(a1->m_buttons, v139); v179 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_requests_001.png"); v217.y = 0.0; LODWORD(v217.x) = ProfilePage::onRequests; v140 = CCMenuItemSpriteExtra::create( v179, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onRequests, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v140, 1.1); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v140); cocos2d::CCArray::addObject(v137, v140); cocos2d::CCArray::addObject(a1->m_buttons, v140); v141 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_settings_001.png"); v218.y = 0.0; LODWORD(v218.x) = ProfilePage::onSettings; v142 = CCMenuItemSpriteExtra::create( v141, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onSettings, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v142, 1.1); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v142); cocos2d::CCArray::addObject(v137, v142); cocos2d::CCArray::addObject(a1->m_buttons, v142); v143 = a1->m_mainLayer; v182 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v213, v191.width * 0.5, (float)((float)(v191.height * 0.5) - 145.0) + 10.0); cocos2d::CCNode::convertToWorldSpace(&v214, v143, &v213); cocos2d::CCNode::convertToNodeSpace(&v219, v182, &v214); v144 = 1; GameToolbox::alignItemsHorisontally(v137, 30.0, (cocos2d::CCPoint)(unsigned int)&v219, 0); v145 = "d_ball_01_001.png"; while ( 1 ) { v146 = a1->m_score; if ( v144 == 2 ) { m_newFriendCount = (const char *)v146->m_newFriendCount; if ( (int)m_newFriendCount <= 0 ) goto LABEL_156; v148 = v176; } else if ( v144 == 3 ) { m_newFriendCount = (const char *)v146->m_friendReqCount; if ( (int)m_newFriendCount <= 0 ) goto LABEL_158; v148 = v179; } else { m_newFriendCount = (const char *)v146->m_newMsgCount; if ( (int)m_newFriendCount <= 0 ) goto LABEL_165; v148 = v169; } v155 = -0.5; v187 = (char *)v145; if ( m_newFriendCount != (_BYTE *)&dword_0 + 1 ) v155 = 0.0; v156 = cocos2d::CCSprite::createWithSpriteFrameName(v145); v156->setColor(v156, &stru_9AC55C); ((void (__fastcall *)(cocos2d::CCSprite *, int))v156->setScale)(v156, 1058642330); v157 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", m_newFriendCount); cocos2d::CCString::getCString(v157); v158 = cocos2d::CCLabelBMFont::create(); cocos2d::CCLabelBMFont::limitLabelWidth(v158, 28.0, 0.8, 0.0); v156->addChild(v156, v158); v183 = (cocos2d::CCPoint *)v158->setPosition; cocos2d::CCNode::convertToNodeSpace(&v213, v156, &stru_AC6C24); cocos2d::CCPoint::CCPoint(&v214, v155, 1.0); cocos2d::CCPoint::operator+(&v219, &v213, &v214); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCPoint *))v183)(v158, &v219); v148->addChild_0(v148, v156, 1); v159 = v156->setPosition; cocos2d::CCPoint::CCPoint(&v219, 38.0, 38.0); v159(v156, &v219); v145 = v187; LABEL_165: if ( v144 == 3 ) { LABEL_158: v149 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_chatBtn_001.png"); v219.y = 0.0; LODWORD(v219.x) = ProfilePage::onComment; v150 = CCMenuItemSpriteExtra::create( v149, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ProfilePage::onComment, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v150, 1.5); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v150); v151 = a1->m_mainLayer; v152 = a1->m_buttonMenu; v153 = v150->setPosition; cocos2d::CCPoint::CCPoint( &v212, (float)((float)(v191.width * 0.5) + 220.0) - 10.0, (float)((float)((float)(v191.height * 0.5) - 145.0) + 10.0) + 1.0); cocos2d::CCNode::convertToWorldSpace(&v213, v151, &v212); cocos2d::CCNode::convertToNodeSpace(&v214, v152, &v213); v153(v150, &v214); cocos2d::CCArray::addObject(a1->m_buttons, v150); v154 = GameManager::sharedState(); if ( GameManager::getGameVariable(v154, "0076") ) { v150->setVisible(v150, 0); v150->setEnabled(v150, 0); } return; } LABEL_156: ++v144; } } sub_776584((int)&v216, "GJ_stuffTxt_001.png"); if ( v71 <= 1.0 ) { sub_775C20(&v217); v80 = *(_DWORD *)(LODWORD(v217.x) - 12); sub_774008(&v217); if ( v80 ) { v78 = "GJ_youtubeTxt_001.png"; } else { sub_775C20(&v218); v81 = *(_DWORD *)(LODWORD(v218.x) - 12); sub_774008(&v218); if ( v81 ) { v78 = "GJ_twitterTxt_001.png"; } else { sub_775C20(&v219); v82 = *(_DWORD *)(LODWORD(v219.x) - 12); sub_774008(&v219); if ( !v82 ) goto LABEL_95; v78 = "GJ_twitchTxt_001.png"; } } } else { v78 = "GJ_stuffTxt_001.png"; } sub_7753D4((int)&v216, v78); LABEL_95: v79 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)LODWORD(v216.x)); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v79, 2); v83 = v79->setPosition; cocos2d::CCPoint::CCPoint(&v218, -60.0, 0.0); cocos2d::CCPoint::operator+(&v219, &v194, &v218); v83(v79, &v219); cocos2d::CCArray::addObject(a1->m_buttons, v79); sub_774008(&v216); goto LABEL_102; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source