// // ProfilePage::loadPageFromUserInfo from 0x100197c74 to 0x100199e04 (8592 bytes) // // 2 xrefs: // > ProfilePage::getUserInfoFinished @ 0x10019c3b4 // > ProfilePage::userInfoChanged @ 0x10019c668 // // 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 ProfilePage::loadPageFromUserInfo(ProfilePage *a1, GJUserScore *a2) { GJUserScore *m_score; // x0 cocos2d::CCDirector *v5; // x0 cocos2d::CCArray *m_buttons; // x0 cocos2d::ccArray *data; // x9 __int64 num; // x8 cocos2d::CCObject **arr; // x21 unsigned __int64 v10; // x22 GJUserScore *v11; // x8 std::string::size_type size; // x20 __int64 v13; // x21 void *v14; // x22 void *v15; // x23 std::string *p_m_tiktokURL; // x8 int v17; // w8 int v18; // w20 _BOOL4 v19; // w21 int m_creatorPoints; // w21 cocos2d::CCNode *v21; // x20 __n128 v22; // q0 float v23; // s13 __n128 v24; // q1 _DWORD *v25; // x0 unsigned int v26; // w8 float v27; // s11 int v28; // w22 __int64 v29; // x21 int v30; // w26 float v31; // s15 int v32; // w25 __int64 v33; // x27 __int64 m_userCoins; // x0 const char *v35; // x0 cocos2d::CCLabelBMFont *v36; // x24 __n128 v37; // q0 __n128 v38; // q1 std::string *p_dst; // x0 cocos2d::CCSprite *v40; // x28 float32x2_t *v41; // x23 __n128 v42; // q0 __n128 v43; // q1 double v44; // d0 CCMenuItemSpriteExtra *v45; // x23 __n128 v46; // q0 __n128 v47; // q1 __n128 v48; // q0 __n128 v49; // q1 double v50; // d0 float v51; // s8 __n128 v52; // q0 __n128 v53; // q1 float v54; // s12 float v55; // s10 float v56; // s15 float v57; // s8 __n128 v58; // q0 __n128 v59; // q1 __int64 v60; // x22 __int64 v61; // x23 __int64 v62; // x24 float v63; // s10 float v64; // s0 cocos2d::CCMenu *m_buttonMenu; // x24 const cocos2d::CCPoint *v66; // x0 GameManager *v67; // x0 GameManager *v68; // x0 IconType v69; // w20 int v70; // w8 int v71; // w25 __int64 v72; // x9 float v73; // s10 int v74; // w23 float v75; // s8 SimplePlayer *v76; // x22 __n128 v77; // q0 __n128 v78; // q1 double v79; // d0 GJUserScore *v80; // x8 char v81; // w9 CCMenuItemSpriteExtra *v82; // x23 __n128 v83; // q0 __n128 v84; // q1 __n128 v85; // q0 __n128 v86; // q1 float v87; // s9 float v88; // s12 float v89; // s10 __n128 v90; // q0 __n128 v91; // q1 __int64 v92; // x20 float v93; // s10 GJUserScore *v94; // x8 std::string *p_m_instagramURL; // x8 GJUserScore *v96; // x8 GJUserScore *v97; // x8 std::string *p_m_twitchURL; // x8 GJUserScore *v99; // x8 std::string *v100; // x8 GJUserScore *v101; // x8 std::string *p_m_twitterURL; // x8 __int128 v103; // krB0_16 __int64 v104; // x25 __int128 v105; // krC0_16 __int128 v106; // krD0_16 __int128 v107; // krE0_16 __int128 v108; // krF0_16 __int64 v109; // x8 std::string *v110; // x0 cocos2d::CCSprite *v111; // x21 CCMenuItemSpriteExtra *v112; // x28 __n128 v113; // q0 cocos2d::CCMenu *v114; // x21 cocos2d::CCLayer *m_mainLayer; // x22 __n128 v116; // q1 GJUserScore *v117; // x8 int m_commentHistoryStatus; // w9 GameManager *v119; // x0 __n128 v120; // q0 __n128 v121; // q1 cocos2d::CCSprite *v122; // x0 CCMenuItemSpriteExtra *v123; // x20 __n128 v124; // q0 cocos2d::CCMenu *v125; // x21 cocos2d::CCLayer *v126; // x22 __n128 v127; // q1 const std::string::value_type *v128; // x20 GJUserScore *v129; // x8 __int64 v130; // x20 GJUserScore *v131; // x8 std::string *v132; // x8 __int64 v133; // x20 GJUserScore *v134; // x8 std::string *v135; // x8 __int64 v136; // x20 std::string *v137; // x0 cocos2d::CCSprite *v138; // x20 __n128 v139; // q0 __n128 v140; // q1 double v141; // d0 GJUserScore *v142; // x8 unsigned int m_globalRank; // w21 const char *v144; // x20 const char *v145; // x9 const char *v146; // x10 const char *v147; // x11 const char *v148; // x12 const char *v149; // x14 const char *v150; // x15 cocos2d::CCSprite *v151; // x20 cocos2d::CCSprite *v152; // x20 __n128 v153; // q0 __n128 v154; // q1 double v155; // d0 cocos2d::CCString *v156; // x0 const char *CString; // x0 cocos2d::CCLabelBMFont *v158; // x20 __n128 v159; // q0 __n128 v160; // q1 double v161; // d0 cocos2d::CCLabelBMFont *m_usernameLabel; // x0 float32x2_t *v163; // x20 __n128 v164; // q0 __n128 v165; // q1 std::string *v166; // x0 int m_modBadge; // w8 const std::string::value_type *v168; // x1 std::string *v169; // x0 cocos2d::CCSprite *v170; // x20 _QWORD *v171; // x0 cocos2d::CCNode *v172; // x20 CCMenuItemSpriteExtra *v173; // x20 float v174; // s9 cocos2d::CCMenu *v175; // x21 float32x2_t *v176; // x22 float v177; // s10 __n128 v178; // q1 __n128 v179; // q0 cocos2d::CCSprite *v180; // x20 CCMenuItemSpriteExtra *v181; // x20 cocos2d::CCMenu *v182; // x21 float32x2_t *v183; // x22 __n128 v184; // q0 __n128 v185; // q1 __int64 v186; // x0 GameLevelManager *v187; // x0 cocos2d::CCArray *v188; // x23 cocos2d::CCSprite *v189; // x0 CCMenuItemSpriteExtra *v190; // x20 cocos2d::CCSprite *v191; // x0 CCMenuItemSpriteExtra *v192; // x20 cocos2d::CCSprite *v193; // x0 CCMenuItemSpriteExtra *v194; // x20 cocos2d::CCSprite *v195; // x0 CCMenuItemSpriteExtra *v196; // x20 __n128 v197; // q0 cocos2d::CCMenu *v198; // x20 cocos2d::CCLayer *v199; // x24 __n128 v200; // q1 int i; // w22 __int64 v202; // x8 cocos2d::CCSprite *v203; // x28 int v204; // w21 float v205; // s10 cocos2d::CCSprite *v206; // x20 cocos2d::CCString *v207; // x0 const char *v208; // x0 cocos2d::CCLabelBMFont *v209; // x21 __n128 v210; // q1 __n128 v211; // q0 double v212; // d0 __n128 v213; // q0 __n128 v214; // q1 cocos2d::CCSprite *v215; // x0 CCMenuItemSpriteExtra *v216; // x20 __n128 v217; // q0 cocos2d::CCMenu *v218; // x21 cocos2d::CCLayer *v219; // x22 __n128 v220; // q1 GameManager *v221; // x0 float v222; // s8 cocos2d::CCArray *v223; // x20 GJAccountManager *v224; // x0 __n128 v225; // q0 __n128 v226; // q1 float v227; // s8 GJUserScore *v228; // x8 int m_messageState; // w9 cocos2d::CCSprite *v230; // x21 CCMenuItemSpriteExtra *v231; // x21 float v232; // s8 int m_friendStatus; // w9 int m_friendReqStatus; // w8 unsigned int v235; // w8 const char *v236; // x0 cocos2d::CCSprite *v237; // x21 CCMenuItemSpriteExtra *v238; // x21 cocos2d::CCSprite *v239; // x21 CCMenuItemSpriteExtra *v240; // x21 __n128 v241; // q0 cocos2d::CCMenu *v242; // x21 cocos2d::CCLayer *v243; // x22 __n128 v244; // q1 cocos2d::CCSprite *v245; // x21 CCMenuItemSpriteExtra *v246; // x21 cocos2d::CCMenu *v247; // x22 cocos2d::CCSprite *v248; // x22 __n128 v249; // q0 __n128 v250; // q1 double v251; // d0 __n128 v252; // q0 __n128 v253; // q1 cocos2d::CCSprite *v254; // x23 CCMenuItemSpriteExtra *v255; // x23 cocos2d::CCMenu *v256; // x20 cocos2d::CCSprite *v257; // x20 __n128 v258; // q0 __n128 v259; // q1 double v260; // d0 GameManager *v261; // x0 __n128 v262; // q0 __n128 v263; // q1 cocos2d::CCSprite *v264; // [xsp+10h] [xbp-180h] float v265; // [xsp+18h] [xbp-178h] cocos2d::CCSprite *v266; // [xsp+18h] [xbp-178h] unsigned int v267; // [xsp+20h] [xbp-170h] cocos2d::CCSprite *v268; // [xsp+20h] [xbp-170h] float32x2_t v269; // [xsp+28h] [xbp-168h] BYREF float32x2_t v270; // [xsp+30h] [xbp-160h] BYREF float32x2_t v271; // [xsp+38h] [xbp-158h] BYREF unsigned __int32 v272; // [xsp+40h] [xbp-150h] BYREF cocos2d::ccColor3B v273; // [xsp+48h] [xbp-148h] BYREF cocos2d::ccColor3B v274; // [xsp+4Ch] [xbp-144h] BYREF __int128 v275; // [xsp+50h] [xbp-140h] BYREF char *v276; // [xsp+60h] [xbp-130h] void *__p[2]; // [xsp+70h] [xbp-120h] BYREF char *v278; // [xsp+80h] [xbp-110h] void *v279[2]; // [xsp+90h] [xbp-100h] BYREF char *v280; // [xsp+A0h] [xbp-F0h] __int128 v281; // [xsp+B0h] [xbp-E0h] BYREF char *longStorage; // [xsp+C0h] [xbp-D0h] std::string __dst; // [xsp+D0h] [xbp-C0h] BYREF float v284; // [xsp+E8h] [xbp-A8h] float v285; // [xsp+ECh] [xbp-A4h] cocos2d::CCSize WinSize; // 0:kr00_8.8 cocos2d::CCPoint v287; // 0:kr10_8.8 cocos2d::CCPoint v288; // 0:kr18_8.8 cocos2d::CCPoint v289; // 0:kr28_8.8 cocos2d::CCPoint v290; // 0:kr38_8.8 cocos2d::CCPoint v291; // 0:kr40_8.8 cocos2d::CCPoint v292; // 0:kr48_8.8 cocos2d::CCPoint v293; // 0:kr70_8.8 cocos2d::CCPoint v294; // 0:kr90_8.8 cocos2d::CCPoint v295; // 0:krA0_8.8 cocos2d::SEL_MenuHandler v296; // 0:x3.16 cocos2d::SEL_MenuHandler v297; // 0:x3.16 cocos2d::SEL_MenuHandler v298; // 0:x3.16 cocos2d::SEL_MenuHandler v299; // 0:x3.16 cocos2d::SEL_MenuHandler v300; // 0:x3.16 cocos2d::SEL_MenuHandler v301; // 0:x3.16 cocos2d::SEL_MenuHandler v302; // 0:x3.16 cocos2d::SEL_MenuHandler v303; // 0:x3.16 cocos2d::SEL_MenuHandler v304; // 0:x3.16 cocos2d::SEL_MenuHandler v305; // 0:x3.16 cocos2d::SEL_MenuHandler v306; // 0:x3.16 cocos2d::SEL_MenuHandler v307; // 0:x3.16 cocos2d::SEL_MenuHandler v308; // 0:x3.16 cocos2d::SEL_MenuHandler v309; // 0:x3.16 cocos2d::SEL_MenuHandler v310; // 0:x3.16 cocos2d::SEL_MenuHandler v311; // 0:x3.16 cocos2d::CCPoint v312; // 0:s1.4,4:s2.4 cocos2d::CCPoint v313; // 0:s1.4,4:s2.4 ((void (__fastcall *)(cocos2d::CCLayer *, float))a1->m_mainLayer->setScaleX)(a1->m_mainLayer, 1.0); ((void (__fastcall *)(cocos2d::CCLayer *, float))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); v262.n128_u32[0] = LODWORD(WinSize.width); v263.n128_u32[0] = LODWORD(WinSize.height); m_buttons = a1->m_buttons; if ( m_buttons ) { data = m_buttons->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; v10 = (unsigned __int64)&arr[num - 1]; do { if ( !*arr ) break; ((void (__fastcall *)(cocos2d::CCObject *, __n128, __n128))(*arr)->__vftable[6].isEqual)(*arr, v262, v263); ++arr; } while ( (unsigned __int64)arr <= v10 ); m_buttons = a1->m_buttons; } } sub_10024A45C(m_buttons); if ( !a2 ) return; a1->m_score = a2; cocos2d::CCObject::retain(a2); v11 = a1->m_score; if ( v11->m_friendReqStatus == 2 ) return; if ( v11->m_youtubeURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(&__dst, (void *)v11->m_youtubeURL.m_data.m_long.capacitym1, v11->m_youtubeURL.m_data.m_long.size); v11 = a1->m_score; } else { __dst = (std::string)v11->m_youtubeURL; } if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) size = HIBYTE(__dst.__r_.__value_.__r.__words[2]); else size = __dst.__r_.__value_.__l.__size_; if ( v11->m_twitterURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(&v281, (void *)v11->m_twitterURL.m_data.m_long.capacitym1, v11->m_twitterURL.m_data.m_long.size); v11 = a1->m_score; } else { v281 = *(_OWORD *)&v11->m_twitterURL.m_data.m_short.sizex2; longStorage = v11->m_twitterURL.m_data.m_long.longStorage; } if ( SHIBYTE(longStorage) >= 0 ) v13 = HIBYTE(longStorage); else v13 = *((_QWORD *)&v281 + 1); if ( v11->m_twitchURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(v279, (void *)v11->m_twitchURL.m_data.m_long.capacitym1, v11->m_twitchURL.m_data.m_long.size); v11 = a1->m_score; } else { *(_OWORD *)v279 = *(_OWORD *)&v11->m_twitchURL.m_data.m_short.sizex2; v280 = v11->m_twitchURL.m_data.m_long.longStorage; } if ( SHIBYTE(v280) >= 0 ) v14 = (void *)HIBYTE(v280); else v14 = v279[1]; if ( v11->m_instagramURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(__p, (void *)v11->m_instagramURL.m_data.m_long.capacitym1, v11->m_instagramURL.m_data.m_long.size); v11 = a1->m_score; } else { *(_OWORD *)__p = *(_OWORD *)&v11->m_instagramURL.m_data.m_short.sizex2; v278 = v11->m_instagramURL.m_data.m_long.longStorage; } if ( SHIBYTE(v278) >= 0 ) v15 = (void *)HIBYTE(v278); else v15 = __p[1]; if ( v11->m_tiktokURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(&v275, (void *)v11->m_tiktokURL.m_data.m_long.capacitym1, v11->m_tiktokURL.m_data.m_long.size); } else { p_m_tiktokURL = &v11->m_tiktokURL; v275 = *(_OWORD *)&p_m_tiktokURL->m_data.m_short.sizex2; v276 = p_m_tiktokURL->m_data.m_long.longStorage; } v17 = size != 0; if ( v13 ) ++v17; if ( v14 ) ++v17; if ( v15 ) v18 = v17 + 1; else v18 = v17; if ( SHIBYTE(v276) < 0 ) { v19 = *((_QWORD *)&v275 + 1) != 0; operator delete((void *)v275); } else { v19 = SHIBYTE(v276) != 0; } if ( SHIBYTE(v278) < 0 ) operator delete(__p[0]); if ( SHIBYTE(v280) < 0 ) operator delete(v279[0]); if ( SHIBYTE(longStorage) < 0 ) operator delete((void *)v281); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v267 = v18 + v19; m_creatorPoints = a1->m_score->m_creatorPoints; v265 = (float)(v285 * 0.5) + 85.0; v21 = cocos2d::CCNode::create(); ((void (__fastcall *)(cocos2d::CCNode *, void *))v21->setContentSize)(v21, &unk_10086BDB8); v22 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCNode *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v21); v23 = 0.0; v22.n128_u32[0] = 0; v24.n128_u32[0] = 0; v25 = sub_100022980(v22, v24, v279); if ( m_creatorPoints <= 0 ) v26 = 60; else v26 = 50; v27 = (float)v26; if ( m_creatorPoints <= 0 ) v28 = 5; else v28 = 6; v29 = sub_10024A15C(v25); v30 = 0; v31 = 0.6; do { memset(&__dst, 0, sizeof(__dst)); if ( v30 > 2 ) { if ( v30 == 3 ) { std::string::assign(&__dst, "GJ_coinsIcon2_001.png"); v32 = 0; v33 = 0; m_userCoins = (unsigned int)a1->m_score->m_userCoins; goto LABEL_78; } if ( v30 != 4 ) { if ( v30 == 5 ) { std::string::assign(&__dst, "GJ_hammerIcon_001.png"); v32 = 0; v33 = 0; m_userCoins = (unsigned int)a1->m_score->m_creatorPoints; goto LABEL_78; } goto LABEL_74; } std::string::assign(&__dst, "GJ_demonIcon_001.png"); m_userCoins = (unsigned int)a1->m_score->m_demons; v33 = 3; } else { if ( !v30 ) { std::string::assign(&__dst, "GJ_starsIcon_001.png"); m_userCoins = (unsigned int)a1->m_score->m_stars; v32 = 1; v33 = 1; goto LABEL_78; } if ( v30 != 1 ) { if ( v30 == 2 ) { std::string::assign(&__dst, "GJ_coinsIcon_001.png"); v32 = 0; v33 = 0; m_userCoins = (unsigned int)a1->m_score->m_secretCoins; goto LABEL_78; } LABEL_74: std::string::assign(&__dst, "GJ_starsIcon_001.png"); v32 = 0; v33 = 0; m_userCoins = 0; goto LABEL_78; } std::string::assign(&__dst, "GJ_moonsIcon_001.png"); m_userCoins = (unsigned int)a1->m_score->m_moons; v33 = 2; } v32 = 1; LABEL_78: GameToolbox::pointsToString(m_userCoins, (__int64)&v281); if ( SHIBYTE(longStorage) >= 0 ) v35 = (const char *)&v281; else v35 = (const char *)v281; v36 = cocos2d::CCLabelBMFont::create_1(v35, "bigFont.fnt"); if ( SHIBYTE(longStorage) < 0 ) operator delete((void *)v281); v37 = ((__n128 (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))v21->addChild_0)(v21, v36, 2); v37.n128_u32[0] = 0; v38.n128_u32[0] = 0.5; sub_100022980(v37, v38, &v281); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v36->setAnchorPoint)(v36, &v281); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v36->setPosition)(v36, v279); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v36->setScale)(v36, v31); cocos2d::CCLabelBMFont::limitLabelWidth(v36, v27, v31, 0.0); sub_10024A2D0(a1->m_buttons, v36); if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_dst = &__dst; else p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0]; v40 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)p_dst); ((void (__fastcall *)(cocos2d::CCSprite *, float))v40->setScale)(v40, 0.9); v41 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v36->getPosition)(v36); ((void (__fastcall *)(__int128 *__return_ptr, cocos2d::CCLabelBMFont *))v36->getScaledContentSize)(&v275, v36); v42.n128_f32[0] = *(float *)&v275 + 14.0; v43.n128_u32[0] = 0; sub_100022980(v42, v43, __p); *(float32x2_t *)&v44 = sub_1000229DC(v41, (float32x2_t *)__p, (float32x2_t *)&v281); if ( v32 ) { v296.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onStatInfo; v296.adj = 0; v45 = CCMenuItemSpriteExtra::create(v40, nullptr, a1, v296); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v45->setTag)(v45, v33); sub_100022988((float *)__p, 30.0, 30.0); v46 = ((__n128 (__fastcall *)(CCMenuItemSpriteExtra *, void **))v45->setContentSize)(v45, __p); v46.n128_u32[0] = 15.0; v47.n128_u32[0] = 15.0; sub_100022980(v46, v47, __p); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v40->setPosition)(v40, __p); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v45); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *))v45->setPosition)(v45, &v281); sub_10024A2D0(a1->m_buttons, v45); v48 = sub_10024A2D0(v29, v45); } else { ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64, double))v21->addChild_0)(v21, v40, 2, v44); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v40->setPosition)(v40, &v281); v48 = sub_10024A2D0(a1->m_buttons, v40); } v48.n128_u32[0] = 20.0; v49.n128_u32[0] = 0; sub_100022980(v48, v49, &v275); sub_1000229DC((float32x2_t *)&v281, (float32x2_t *)&v275, (float32x2_t *)__p); v50 = sub_1000229D0(v279, (double *)__p); v51 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, double))v36->getContentSize)(v36, v50); v54 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v36->getScale)(v36); v55 = v31; if ( v30 ) v56 = 20.0; else v56 = 10.0; if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v23 = v56 + (float)(v23 + (float)((float)(v51 * v54) + 14.0)); ++v30; v31 = v55; } while ( v28 != v30 ); if ( v267 <= 1 ) v57 = 420.0; else v57 = 340.0; if ( v23 <= v57 ) v57 = v23; else ((void (__fastcall *)(cocos2d::CCNode *, float))v21->setScale)(v21, v57 / v23); v52.n128_f32[0] = (float)(v284 * 0.5) - (float)(v57 * 0.5); v53.n128_f32[0] = v265; sub_100022980(v52, v53, &__dst); ((void (__fastcall *)(cocos2d::CCNode *, std::string *))v21->setPosition)(v21, &__dst); if ( (unsigned int)sub_10024A36C(v29) ) { v60 = 0; do { v61 = sub_10024A388(v29, v60); v62 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v61 + 1056LL))(v61); v63 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v62 + 168LL))(v62); v64 = ((float (__fastcall *)(cocos2d::CCNode *))v21->getScale)(v21); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v62 + 160LL))(v62, v63 * v64); m_buttonMenu = a1->m_buttonMenu; v66 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v61 + 192LL))(v61); cocos2d::CCNode::convertToWorldSpace(v21, v66); v287 = cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, (const cocos2d::CCPoint *)&v281); (*(void (__fastcall **)(__int64, std::string *, float, float))(*(_QWORD *)v61 + 184LL))( v61, &__dst, v287.x, v287.y); v60 = (unsigned int)(v60 + 1); } while ( (unsigned int)v60 < (unsigned int)sub_10024A36C(v29) ); } v58.n128_f32[0] = v284 * 0.5; v59.n128_f32[0] = (float)(v285 * 0.5) + 40.0; sub_100022980(v58, v59, __p); v67 = GameManager::sharedState(); v274 = GameManager::colorForIdx(v67, a1->m_score->m_color1); v68 = GameManager::sharedState(); v69 = Cube; v273 = GameManager::colorForIdx(v68, a1->m_score->m_color2); while ( 2 ) { if ( (unsigned int)v69 < Robot ) v70 = 3; else v70 = -3; if ( v69 <= Ufo ) { if ( v69 > Ship ) { v71 = 0; if ( v69 == Ball ) v72 = 624; else v72 = 628; } else if ( v69 ) { v71 = 1; v72 = 620; } else { v71 = 0; v72 = 616; } goto LABEL_122; } if ( v69 > Robot ) { if ( v69 == Spider ) { v71 = 0; v72 = 640; goto LABEL_122; } v71 = 0; v70 = -1; v72 = 644; v73 = 0.9; } else { v71 = 0; if ( v69 == Wave ) v72 = 632; else v72 = 636; LABEL_122: v73 = *(float *)"33s?"; } v74 = *(_DWORD *)((char *)&a1->m_score->__vftable + v72); v75 = (float)v70; v76 = SimplePlayer::create(v74); v77.n128_f32[0] = (float)((float)((float)((float)(unsigned int)v69 * 42.6) + -149.1) + v75) + -1.0; v78.n128_u32[0] = 0; sub_100022980(v77, v78, &v281); *(float32x2_t *)&v79 = sub_1000229DC((float32x2_t *)__p, (float32x2_t *)&v281, (float32x2_t *)&__dst); ((void (__fastcall *)(SimplePlayer *, cocos2d::ccColor3B *, double))v76->setColor)(v76, &v274, v79); SimplePlayer::setSecondColor(v76, &v273); v80 = a1->m_score; v81 = v80->m_special == 2 || v80->m_glowEnabled; v76->m_hasGlowOutline = v81 & 1; SimplePlayer::tryEnableCustomGlowColor(v76, v80->m_color3); SimplePlayer::updatePlayerFrame(v76, v74, v69); SimplePlayer::updateColors(v76); ((void (__fastcall *)(SimplePlayer *, float))v76->setScale)(v76, v73); if ( v71 ) { v297.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::toggleShip; v297.adj = 0; v82 = CCMenuItemSpriteExtra::create(v76, nullptr, a1, v297); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v82->setTag)(v82, 1); sub_100022988((float *)&v281, 30.0, 30.0); v83 = ((__n128 (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *))v82->setContentSize)(v82, &v281); v83.n128_u32[0] = 15.0; v84.n128_u32[0] = 15.0; sub_100022980(v83, v84, &v281); ((void (__fastcall *)(SimplePlayer *, __int128 *))v76->setPosition)(v76, &v281); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v82); v288 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const cocos2d::CCPoint *)&__dst); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *, float, float))v82->setPosition)( v82, &v281, v288.x, v288.y); v76 = (SimplePlayer *)v82; } else { ((void (__fastcall *)(cocos2d::CCLayer *, SimplePlayer *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v76, 10); ((void (__fastcall *)(SimplePlayer *, std::string *))v76->setPosition)(v76, &__dst); } v85 = sub_10024A2D0(a1->m_buttons, v76); if ( ++v69 != Jetpack ) continue; break; } if ( v267 <= 3 ) { v89 = 22.0; v88 = 35.0; v87 = 1.0; } else { v87 = flt_1006393E8[v267 == 4]; v88 = v87 * 35.0; v89 = (float)(v87 + (float)((float)(1.0 - v87) * 0.5)) * 22.0; } v85.n128_f32[0] = (float)((float)(v284 * 0.5) + 220.0) - v89; v86.n128_f32[0] = (float)((float)(v285 * 0.5) + 145.0) - v89; sub_100022980(v85, v86, &v275); v90.n128_f32[0] = v89 + (float)((float)(v284 * 0.5) + -220.0); v91.n128_f32[0] = (float)((float)(v285 * 0.5) + 145.0) - v89; sub_100022980(v90, v91, &v272); v92 = 0; v93 = 0.0; while ( 2 ) { memset(&__dst, 0, sizeof(__dst)); if ( (int)v92 <= 1 ) { if ( (_DWORD)v92 ) { v101 = a1->m_score; if ( v101->m_twitterURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0( &v281, (void *)v101->m_twitterURL.m_data.m_long.capacitym1, v101->m_twitterURL.m_data.m_long.size); } else { p_m_twitterURL = &v101->m_twitterURL; v281 = *(_OWORD *)&p_m_twitterURL->m_data.m_short.sizex2; longStorage = p_m_twitterURL->m_data.m_long.longStorage; } v108 = v281; v104 = HIBYTE(longStorage); std::string::assign(&__dst, "gj_twIcon_001.png"); v103 = v108; } else { v96 = a1->m_score; if ( v96->m_youtubeURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(&v281, (void *)v96->m_youtubeURL.m_data.m_long.capacitym1, v96->m_youtubeURL.m_data.m_long.size); } else { v281 = *(_OWORD *)&v96->m_youtubeURL.m_data.m_short.sizex2; longStorage = v96->m_youtubeURL.m_data.m_long.longStorage; } v107 = v281; v104 = HIBYTE(longStorage); std::string::assign(&__dst, "gj_ytIcon_001.png"); v103 = v107; } } else if ( (_DWORD)v92 == 2 ) { v97 = a1->m_score; if ( v97->m_twitchURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(&v281, (void *)v97->m_twitchURL.m_data.m_long.capacitym1, v97->m_twitchURL.m_data.m_long.size); } else { p_m_twitchURL = &v97->m_twitchURL; v281 = *(_OWORD *)&p_m_twitchURL->m_data.m_short.sizex2; longStorage = p_m_twitchURL->m_data.m_long.longStorage; } v103 = v281; v104 = HIBYTE(longStorage); std::string::assign(&__dst, "gj_twitchIcon_001.png"); } else if ( (_DWORD)v92 == 3 ) { v94 = a1->m_score; if ( v94->m_instagramURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0( &v281, (void *)v94->m_instagramURL.m_data.m_long.capacitym1, v94->m_instagramURL.m_data.m_long.size); } else { p_m_instagramURL = &v94->m_instagramURL; v281 = *(_OWORD *)&p_m_instagramURL->m_data.m_short.sizex2; longStorage = p_m_instagramURL->m_data.m_long.longStorage; } v105 = v281; v104 = HIBYTE(longStorage); std::string::assign(&__dst, "gj_instaIcon_001.png"); v103 = v105; } else { v99 = a1->m_score; if ( v99->m_tiktokURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(&v281, (void *)v99->m_tiktokURL.m_data.m_long.capacitym1, v99->m_tiktokURL.m_data.m_long.size); } else { v100 = &v99->m_tiktokURL; v281 = *(_OWORD *)&v100->m_data.m_short.sizex2; longStorage = v100->m_data.m_long.longStorage; } v106 = v281; v104 = HIBYTE(longStorage); std::string::assign(&__dst, "gj_tiktokIcon_001.png"); v103 = v106; } if ( (v104 & 0x80u) == 0LL ) v109 = v104; else v109 = *((_QWORD *)&v103 + 1); if ( v109 ) { if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v110 = &__dst; else v110 = (std::string *)__dst.__r_.__value_.__r.__words[0]; v111 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v110); ((void (__fastcall *)(cocos2d::CCSprite *, float))v111->setScale)(v111, v87); v298.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onSocialPage; v298.adj = 0; v112 = CCMenuItemSpriteExtra::create(v111, nullptr, a1, v298); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v112->setTag)(v112, v92); v113 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v112); v114 = a1->m_buttonMenu; m_mainLayer = a1->m_mainLayer; v116.n128_f32[0] = -(float)(v93 * v88); v113.n128_u32[0] = 0; sub_100022980(v113, v116, &v269); sub_1000229DC((float32x2_t *)&v275, &v269, &v270); cocos2d::CCNode::convertToWorldSpace(m_mainLayer, (const cocos2d::CCPoint *)&v270); v289 = cocos2d::CCNode::convertToNodeSpace(v114, (const cocos2d::CCPoint *)&v271); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *, float, float))v112->setPosition)( v112, &v281, v289.x, v289.y); sub_10024A2D0(a1->m_buttons, v112); v93 = v93 + 1.0; } if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) { operator delete(__dst.__r_.__value_.__l.__data_); if ( (char)v104 < 0 ) goto LABEL_173; } else { if ( ((char)v104 & 0x80000000) == 0 ) goto LABEL_170; LABEL_173: operator delete((void *)v103); } LABEL_170: v92 = (unsigned int)(v92 + 1); if ( (_DWORD)v92 != 5 ) continue; break; } v117 = a1->m_score; m_commentHistoryStatus = v117->m_commentHistoryStatus; if ( m_commentHistoryStatus == 1 ) { if ( v117->m_friendReqStatus == 1 ) goto LABEL_180; } else if ( m_commentHistoryStatus != 2 ) { goto LABEL_180; } if ( a1->m_ownProfile || (v119 = GameManager::sharedState(), v119->m_hasRP.random - v119->m_hasRP.seed == 2) ) { LABEL_180: v122 = cocos2d::CCSprite::createWithSpriteFrameName("btn_chatHistory_001.png"); v299.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onCommentHistory; v299.adj = 0; v123 = CCMenuItemSpriteExtra::create(v122, nullptr, a1, v299); v124 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v123); v125 = a1->m_buttonMenu; v126 = a1->m_mainLayer; v124.n128_u32[0] = v272; v127.n128_f32[0] = v285 * 0.5; sub_100022980(v124, v127, &v271); cocos2d::CCNode::convertToWorldSpace(v126, (const cocos2d::CCPoint *)&v271); v290 = cocos2d::CCNode::convertToNodeSpace(v125, (const cocos2d::CCPoint *)&v281); ((void (__fastcall *)(CCMenuItemSpriteExtra *, std::string *, float, float))v123->setPosition)( v123, &__dst, v290.x, v290.y); v120 = sub_10024A2D0(a1->m_buttons, v123); } if ( v93 > 0.0 ) { v128 = "GJ_stuffTxt_001.png"; sub_100009900(&__dst, "GJ_stuffTxt_001.png"); if ( v93 > 1.0 ) goto LABEL_205; v129 = a1->m_score; if ( v129->m_youtubeURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(&v281, (void *)v129->m_youtubeURL.m_data.m_long.capacitym1, v129->m_youtubeURL.m_data.m_long.size); } else { v281 = *(_OWORD *)&v129->m_youtubeURL.m_data.m_short.sizex2; longStorage = v129->m_youtubeURL.m_data.m_long.longStorage; } if ( SHIBYTE(longStorage) < 0 ) { v130 = *((_QWORD *)&v281 + 1); operator delete((void *)v281); if ( !v130 ) goto LABEL_190; LABEL_188: v128 = "GJ_youtubeTxt_001.png"; goto LABEL_205; } if ( HIBYTE(longStorage) ) goto LABEL_188; LABEL_190: v131 = a1->m_score; if ( v131->m_twitterURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(&v281, (void *)v131->m_twitterURL.m_data.m_long.capacitym1, v131->m_twitterURL.m_data.m_long.size); } else { v132 = &v131->m_twitterURL; v281 = *(_OWORD *)&v132->m_data.m_short.sizex2; longStorage = v132->m_data.m_long.longStorage; } if ( SHIBYTE(longStorage) < 0 ) { v133 = *((_QWORD *)&v281 + 1); operator delete((void *)v281); if ( !v133 ) goto LABEL_197; LABEL_195: v128 = "GJ_twitterTxt_001.png"; goto LABEL_205; } if ( HIBYTE(longStorage) ) goto LABEL_195; LABEL_197: v134 = a1->m_score; if ( v134->m_twitchURL.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(&v281, (void *)v134->m_twitchURL.m_data.m_long.capacitym1, v134->m_twitchURL.m_data.m_long.size); } else { v135 = &v134->m_twitchURL; v281 = *(_OWORD *)&v135->m_data.m_short.sizex2; longStorage = v135->m_data.m_long.longStorage; } if ( SHIBYTE(longStorage) < 0 ) { v136 = *((_QWORD *)&v281 + 1); operator delete((void *)v281); if ( v136 ) goto LABEL_204; } else { if ( !HIBYTE(longStorage) ) goto LABEL_206; LABEL_204: v128 = "GJ_twitchTxt_001.png"; LABEL_205: std::string::assign(&__dst, v128); } LABEL_206: if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v137 = &__dst; else v137 = (std::string *)__dst.__r_.__value_.__r.__words[0]; v138 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v137); v139 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v138, 2); v139.n128_u32[0] = -1032847360; v140.n128_u32[0] = 0; sub_100022980(v139, v140, &v271); *(float32x2_t *)&v141 = sub_1000229DC((float32x2_t *)&v275, &v271, (float32x2_t *)&v281); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *, double))v138->setPosition)(v138, &v281, v141); v120 = sub_10024A2D0(a1->m_buttons, v138); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); } v142 = a1->m_score; m_globalRank = v142->m_globalRank; if ( (int)m_globalRank >= 1 ) { if ( m_globalRank == 1 ) { v144 = "rankIcon_1_001.png"; } else if ( m_globalRank >= 0xB ) { if ( m_globalRank >= 0x33 ) { v145 = "rankIcon_top200_001.png"; v146 = "rankIcon_top500_001.png"; v147 = "rankIcon_top1000_001.png"; v148 = "rankIcon_top2500_001.png"; v149 = "rankIcon_top5000_001.png"; v150 = "rankIcon_all_001.png"; if ( m_globalRank < 0xC351 ) v150 = "rankIcon_top10000_001.png"; if ( m_globalRank >= 0x2711 ) v149 = v150; if ( m_globalRank >= 0x1389 ) v148 = v149; if ( m_globalRank >= 0x3E9 ) v147 = v148; if ( m_globalRank >= 0x1F5 ) v146 = v147; if ( m_globalRank >= 0xC9 ) v145 = v146; if ( m_globalRank >= 0x65 ) v144 = v145; else v144 = "rankIcon_top100_001.png"; } else { v144 = "rankIcon_top50_001.png"; } } else { v144 = "rankIcon_top10_001.png"; } v120.n128_f32[0] = (float)(v284 * 0.5) + -164.0; v121.n128_f32[0] = (float)(v285 * 0.5) + 123.0; sub_100022980(v120, v121, &__dst); v151 = cocos2d::CCSprite::createWithSpriteFrameName(v144); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v151, 10); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v151->setPosition)(v151, &__dst); sub_10024A2D0(a1->m_buttons, v151); v152 = cocos2d::CCSprite::createWithSpriteFrameName("gj_globalRankTxt_001.png"); v153 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v152, 10); v154.n128_u32[0] = 6.0; v153.n128_u32[0] = 1109393408; sub_100022980(v153, v154, &v271); *(float32x2_t *)&v155 = sub_1000229DC((float32x2_t *)&__dst, &v271, (float32x2_t *)&v281); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *, double))v152->setPosition)(v152, &v281, v155); sub_10024A2D0(a1->m_buttons, v152); v156 = (cocos2d::CCString *)sub_100268F4C("%i", m_globalRank); CString = cocos2d::CCString::getCString(v156); v158 = cocos2d::CCLabelBMFont::create_1(CString, "chatFont.fnt"); v159 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v158, 10); v160.n128_u32[0] = -6.0; v159.n128_u32[0] = 1109393408; sub_100022980(v159, v160, &v271); *(float32x2_t *)&v161 = sub_1000229DC((float32x2_t *)&__dst, &v271, (float32x2_t *)&v281); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *, double))v158->setPosition)(v158, &v281, v161); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v158->setScale)(v158, v31); v120 = sub_10024A2D0(a1->m_buttons, v158); v142 = a1->m_score; } if ( v142->m_modBadge >= 1 ) { v120.n128_f32[0] = (float)(v284 * 0.5) + -180.0; v121.n128_f32[0] = (float)(v285 * 0.5) + 100.0; sub_100022980(v120, v121, &v281); m_usernameLabel = a1->m_usernameLabel; if ( m_usernameLabel ) { cocos2d::CCLabelBMFont::limitLabelWidth(m_usernameLabel, 140.0, 0.9, 0.0); v163 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_usernameLabel->getPosition)(a1->m_usernameLabel); ((void (__fastcall *)(float32x2_t *__return_ptr))a1->m_usernameLabel->getScaledContentSize)(&v270); v164.n128_f32[0] = (float)(v270.f32[0] * -0.5) + -16.0; v165.n128_u32[0] = -1.0; sub_100022980(v164, v165, &v271); sub_1000229DC(v163, &v271, (float32x2_t *)&__dst); sub_1000229D0(&v281, (double *)&__dst); } v166 = (std::string *)sub_100009900(&__dst, "modBadge_01_001.png"); m_modBadge = a1->m_score->m_modBadge; if ( m_modBadge == 2 ) { v168 = "modBadge_02_001.png"; LABEL_241: std::string::assign(v166, v168); } else if ( m_modBadge == 3 ) { v168 = "modBadge_03_001.png"; goto LABEL_241; } if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v169 = &__dst; else v169 = (std::string *)__dst.__r_.__value_.__r.__words[0]; v170 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v169); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v170, 10); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v170->setPosition)(v170, &v281); sub_10024A2D0(a1->m_buttons, v170); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); } v171 = sub_100009900(&__dst, "GJ_infoIcon_001.png"); v172 = (cocos2d::CCNode *)CCSpriteGrayscale::createWithSpriteFrameName(v171); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); ((void (__fastcall *)(cocos2d::CCNode *, float))v172->setScale)(v172, 0.45); v300.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onInfo; v300.adj = 0; v173 = CCMenuItemSpriteExtra::create(v172, nullptr, a1, v300); CCMenuItemSpriteExtra::setSizeMult(v173, 1.5); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v173); v174 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_usernameLabel->getScale)(a1->m_usernameLabel); v175 = a1->m_buttonMenu; v176 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_usernameLabel->getPosition)(a1->m_usernameLabel); v177 = (float)((float)(*(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_usernameLabel->getContentSize)(a1->m_usernameLabel) * 0.5) * v174) + 8.0; v178.n128_f32[0] = (float)((float)(*(float *)(((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_usernameLabel->getContentSize)(a1->m_usernameLabel) + 4) * 0.5) * v174) + -5.0; v179.n128_f32[0] = v177; sub_100022980(v179, v178, &v271); sub_1000229DC(v176, &v271, (float32x2_t *)&v281); v291 = cocos2d::CCNode::convertToNodeSpace(v175, (const cocos2d::CCPoint *)&v281); ((void (__fastcall *)(CCMenuItemSpriteExtra *, std::string *, float, float))v173->setPosition)( v173, &__dst, v291.x, v291.y); sub_10024A2D0(a1->m_buttons, v173); v180 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v180->setScaleY)(v180, 0.8); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v180->setVisible)(v180, 0); v301.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onCopyName; v301.adj = 0; v181 = CCMenuItemSpriteExtra::create(v180, nullptr, a1, v301); v181->m_animationEnabled = 0; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v181); v182 = a1->m_buttonMenu; v183 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_usernameLabel->getPosition)(a1->m_usernameLabel); v184.n128_u32[0] = 0; v185.n128_u32[0] = -2.0; sub_100022980(v184, v185, &v271); sub_1000229DC(v183, &v271, (float32x2_t *)&v281); v292 = cocos2d::CCNode::convertToNodeSpace(v182, (const cocos2d::CCPoint *)&v281); ((void (__fastcall *)(CCMenuItemSpriteExtra *, std::string *, float, float))v181->setPosition)( v181, &__dst, v292.x, v292.y); sub_10024A2D0(a1->m_buttons, v181); if ( a1->m_ownProfile ) { v187 = GameLevelManager::sharedState(); v187->m_commentUploadDelegate = &a1->CommentUploadDelegate; v188 = (cocos2d::CCArray *)sub_10024A15C(v187); v189 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messages_001.png"); v302.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onMessages; v268 = v189; v302.adj = 0; v190 = CCMenuItemSpriteExtra::create(v189, nullptr, a1, v302); CCMenuItemSpriteExtra::setSizeMult(v190, 1.1); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v190); sub_10024A2D0(v188, v190); sub_10024A2D0(a1->m_buttons, v190); v191 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_friends_001.png"); v303.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onFriends; v266 = v191; v303.adj = 0; v192 = CCMenuItemSpriteExtra::create(v191, nullptr, a1, v303); CCMenuItemSpriteExtra::setSizeMult(v192, 1.1); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v192); sub_10024A2D0(v188, v192); sub_10024A2D0(a1->m_buttons, v192); v193 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_requests_001.png"); v304.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onRequests; v264 = v193; v304.adj = 0; v194 = CCMenuItemSpriteExtra::create(v193, nullptr, a1, v304); CCMenuItemSpriteExtra::setSizeMult(v194, 1.1); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v194); sub_10024A2D0(v188, v194); sub_10024A2D0(a1->m_buttons, v194); v195 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_settings_001.png"); v305.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onSettings; v305.adj = 0; v196 = CCMenuItemSpriteExtra::create(v195, nullptr, a1, v305); CCMenuItemSpriteExtra::setSizeMult(v196, 1.1); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v196); sub_10024A2D0(v188, v196); v197 = sub_10024A2D0(a1->m_buttons, v196); v198 = a1->m_buttonMenu; v199 = a1->m_mainLayer; v197.n128_f32[0] = v284 * 0.5; v200.n128_f32[0] = (float)((float)(v285 * 0.5) + -145.0) + 10.0; sub_100022980(v197, v200, &v271); cocos2d::CCNode::convertToWorldSpace(v199, (const cocos2d::CCPoint *)&v271); LODWORD(v312.x) = COERCE_UNSIGNED_INT(cocos2d::CCNode::convertToNodeSpace(v198, (const cocos2d::CCPoint *)&v281).y); GameToolbox::alignItemsHorisontally(v188, 30.0, v312, (bool)&__dst); for ( i = 0; i != 3; ++i ) { if ( i ) { if ( i == 2 ) { v202 = 680; v203 = v264; } else { v202 = 684; v203 = v266; } } else { v202 = 676; v203 = v268; } v204 = *(_DWORD *)((char *)&a1->m_score->__vftable + v202); if ( v204 >= 1 ) { if ( v204 == 1 ) v205 = -0.5; else v205 = 0.0; v206 = cocos2d::CCSprite::createWithSpriteFrameName("d_ball_01_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, void *))v206->setColor)(v206, &unk_1006393F8); ((void (__fastcall *)(cocos2d::CCSprite *, float))v206->setScale)(v206, v31); v207 = (cocos2d::CCString *)sub_100268F4C("%i", v204); v208 = cocos2d::CCString::getCString(v207); v209 = cocos2d::CCLabelBMFont::create_1(v208, "bigFont.fnt"); cocos2d::CCLabelBMFont::limitLabelWidth(v209, 28.0, 0.8, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCLabelBMFont *))v206->addChild)(v206, v209); cocos2d::CCNode::convertToNodeSpace(v206, &stru_10086BDB0); v210.n128_u32[0] = 1.0; v211.n128_f32[0] = v205; sub_100022980(v211, v210, &v271); *(float32x2_t *)&v212 = sub_1000229DC((float32x2_t *)&v281, &v271, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *, double))v209->setPosition)(v209, &__dst, v212); v213 = ((__n128 (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))v203->addChild_0)( v203, v206, 1); v213.n128_u32[0] = 1108869120; v214.n128_u32[0] = 1108869120; sub_100022980(v213, v214, &__dst); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v206->setPosition)(v206, &__dst); } } v215 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_chatBtn_001.png"); v306.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onComment; v306.adj = 0; v216 = CCMenuItemSpriteExtra::create(v215, nullptr, a1, v306); CCMenuItemSpriteExtra::setSizeMult(v216, 1.5); v217 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v216); v217.n128_f32[0] = (float)((float)(v284 * 0.5) + 220.0) + -10.0; v218 = a1->m_buttonMenu; v219 = a1->m_mainLayer; v220.n128_f32[0] = (float)((float)((float)(v285 * 0.5) + -145.0) + 10.0) + 1.0; sub_100022980(v217, v220, &v271); cocos2d::CCNode::convertToWorldSpace(v219, (const cocos2d::CCPoint *)&v271); v293 = cocos2d::CCNode::convertToNodeSpace(v218, (const cocos2d::CCPoint *)&v281); ((void (__fastcall *)(CCMenuItemSpriteExtra *, std::string *, float, float))v216->setPosition)( v216, &__dst, v293.x, v293.y); sub_10024A2D0(a1->m_buttons, v216); v221 = GameManager::sharedState(); if ( GameManager::getGameVariable(v221, "0076") ) { ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v216->setVisible)(v216, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v216->setEnabled)(v216, 0); } return; } if ( a1->m_score->m_friendReqStatus == 2 ) return; v222 = v285; v223 = (cocos2d::CCArray *)sub_10024A15C(v186); v224 = GJAccountManager::sharedState(); if ( v224->m_accountID - v224->m_unkInt1 != a1->m_accountID ) { v227 = v222 * 0.5; v228 = a1->m_score; m_messageState = v228->m_messageState; if ( m_messageState == 1 ) { if ( v228->m_friendReqStatus == 1 ) { LABEL_268: v230 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messages_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v230->setScale)(v230, 0.75); v307.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onSendMessage; v307.adj = 0; v231 = CCMenuItemSpriteExtra::create(v230, nullptr, a1, v307); CCMenuItemSpriteExtra::setSizeMult(v231, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v231); sub_10024A2D0(v223, v231); sub_10024A2D0(a1->m_buttons, v231); v228 = a1->m_score; } } else if ( m_messageState != 2 ) { goto LABEL_268; } v232 = v227 + -123.0; m_friendStatus = v228->m_friendStatus; m_friendReqStatus = v228->m_friendReqStatus; if ( m_friendStatus != 1 || m_friendReqStatus ) { v235 = m_friendReqStatus - 1; if ( v235 > 3 ) v236 = "accountBtn_requests_001.png"; else v236 = off_1007AA000[v235]; v237 = cocos2d::CCSprite::createWithSpriteFrameName(v236); ((void (__fastcall *)(cocos2d::CCSprite *, float))v237->setScale)(v237, 0.75); v308.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onFriend; v308.adj = 0; v238 = CCMenuItemSpriteExtra::create(v237, nullptr, a1, v308); CCMenuItemSpriteExtra::setSizeMult(v238, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v238); sub_10024A2D0(v223, v238); sub_10024A2D0(a1->m_buttons, v238); } v239 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_blocked_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v239->setScale)(v239, 0.75); v309.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onBlockUser; v309.adj = 0; v240 = CCMenuItemSpriteExtra::create(v239, nullptr, a1, v309); CCMenuItemSpriteExtra::setSizeMult(v240, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v240); sub_10024A2D0(v223, v240); v241 = sub_10024A2D0(a1->m_buttons, v240); v242 = a1->m_buttonMenu; v243 = a1->m_mainLayer; v241.n128_f32[0] = v284 * 0.5; v244.n128_f32[0] = v232; sub_100022980(v241, v244, &v271); cocos2d::CCNode::convertToWorldSpace(v243, (const cocos2d::CCPoint *)&v271); LODWORD(v313.x) = COERCE_UNSIGNED_INT(cocos2d::CCNode::convertToNodeSpace(v242, (const cocos2d::CCPoint *)&v281).y); GameToolbox::alignItemsHorisontally(v223, 12.0, v313, (bool)&__dst); } v225.n128_f32[0] = (float)((float)((float)(v284 * 0.5) + 220.0) + -22.0) + -1.0; v226.n128_f32[0] = (float)((float)(v285 * 0.5) + -145.0) + 22.0; sub_100022980(v225, v226, &__dst); v245 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_myLevels_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v245->setScale)(v245, 0.75); v310.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onMyLevels; v310.adj = 0; v246 = CCMenuItemSpriteExtra::create(v245, nullptr, a1, v310); CCMenuItemSpriteExtra::setSizeMult(v246, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v246); sub_10024A2D0(v223, v246); sub_10024A2D0(a1->m_buttons, v246); v247 = a1->m_buttonMenu; cocos2d::CCNode::convertToWorldSpace(a1->m_mainLayer, (const cocos2d::CCPoint *)&__dst); v294 = cocos2d::CCNode::convertToNodeSpace(v247, (const cocos2d::CCPoint *)&v271); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *, float, float))v246->setPosition)( v246, &v281, v294.x, v294.y); v248 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_myLevelsTxt_001.png"); v249 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v248, 2); v249.n128_u32[0] = -1.0; v250.n128_u32[0] = 26.0; sub_100022980(v249, v250, &v271); *(float32x2_t *)&v251 = sub_1000229DC((float32x2_t *)&__dst, &v271, (float32x2_t *)&v281); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *, double))v248->setPosition)(v248, &v281, v251); v252 = sub_10024A2D0(a1->m_buttons, v248); v252.n128_u32[0] = -1037565952; v253.n128_u32[0] = 0; sub_100022980(v252, v253, &v271); sub_1000229DC((float32x2_t *)&__dst, &v271, (float32x2_t *)&v281); v254 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_myLists_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v254->setScale)(v254, 0.75); v311.ptr = (void (__cdecl *)(cocos2d::CCObject *))ProfilePage::onMyLists; v311.adj = 0; v255 = CCMenuItemSpriteExtra::create(v254, nullptr, a1, v311); CCMenuItemSpriteExtra::setSizeMult(v255, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v255); sub_10024A2D0(v223, v255); sub_10024A2D0(a1->m_buttons, v255); v256 = a1->m_buttonMenu; cocos2d::CCNode::convertToWorldSpace(a1->m_mainLayer, (const cocos2d::CCPoint *)&v281); v295 = cocos2d::CCNode::convertToNodeSpace(v256, (const cocos2d::CCPoint *)&v270); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))v255->setPosition)( v255, &v271, v295.x, v295.y); v257 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_myListsTxt_001.png"); v258 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v257, 2); v258.n128_u32[0] = -1036517376; v259.n128_u32[0] = 0; sub_100022980(v258, v259, &v270); *(float32x2_t *)&v260 = sub_1000229DC((float32x2_t *)&v281, &v270, &v271); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v257->setPosition)(v257, &v271, v260); sub_10024A2D0(a1->m_buttons, v257); v261 = GameManager::sharedState(); if ( GameManager::getGameVariable(v261, "0077") ) { ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v246->setVisible)(v246, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v246->setEnabled)(v246, 0); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v248->setVisible)(v248, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v255->setVisible)(v255, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v255->setEnabled)(v255, 0); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v257->setVisible)(v257, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source