// // FriendsProfilePage::init from 0x8f6cfc to 0x8f73a0 (1700 bytes) // // 2 xrefs: // > FriendsProfilePage::create @ 0x8f74bc // > @ 0x2d828 // // 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 // bool FriendsProfilePage::init(FriendsProfilePage *a1, UserListType a2) { char v4; // w22 cocos2d::CCDirector *v6; // x0 cocos2d::CCNode *v7; // x23 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x24 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 float v10; // s8 cocos2d::CCLabelBMFont *v11; // x23 void (__fastcall *v12)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCLabelBMFont *v13; // x25 cocos2d::CCLabelBMFont *v14; // x0 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v16)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 __int64 v17; // x26 cocos2d::CCLabelBMFont *v18; // x0 cocos2d::CCLabelBMFont *m_totalFriends; // x23 void (__fastcall *v20)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCSprite *v21; // x0 CCMenuItemSpriteExtra *v22; // x23 cocos2d::CCMenu *v23; // x23 void (__fastcall *v24)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCLabelBMFont *v25; // x0 cocos2d::CCLabelBMFont *m_noInternet; // x23 void (__fastcall *v27)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 LoadingCircle *v28; // x0 LoadingCircle *m_circle; // x0 cocos2d::CCSprite *m_sprite; // x23 void (__fastcall *v31)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCSprite *v32; // x0 CCMenuItemSpriteExtra *v33; // x0 CCMenuItemSpriteExtra *m_refreshBtn; // x23 cocos2d::CCMenu *v35; // x26 void (__fastcall *v36)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 GameLevelManager *v37; // x0 cocos2d::CCArray *StoredUserList; // x1 cocos2d::CCSprite *v39; // x0 CCMenuItemSpriteExtra *v40; // x23 cocos2d::CCMenu *m_buttonMenu; // x27 void (__fastcall *v42)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 GameLevelManager *v43; // x0 float v44; // [xsp+98h] [xbp+98h] float v45; // [xsp+9Ch] [xbp+9Ch] __int64 v46; // [xsp+A0h] [xbp+A0h] BYREF cocos2d::CCRect v47; // [xsp+A8h] [xbp+A8h] BYREF cocos2d::CCPoint v48; // 0:kr08_8.8 cocos2d::CCPoint v49; // 0:kr10_8.8 cocos2d::SEL_MenuHandler v50; // 0:x2.16 cocos2d::SEL_MenuHandler v51; // 0:x2.16 cocos2d::SEL_MenuHandler v52; // 0:x2.16 cocos2d::CCRect v53; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 v4 = FLAlertLayer::init(a1, 0x96u); if ( v4 ) { a1->m_type = a2; a1->m_noElasticity = (unsigned __int8)&dword_0 + 1; v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v6); cocos2d::CCRect::CCRect(&v47, 0.0, 0.0, 80.0, 80.0); v7 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"GJ_square01.png", (const char *)&v47, v53); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v7->__vftable[1].~CCNode_0)(v7, 0xFFFFFFFFLL); setContentSize = v7->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v47, 440.0, 290.0); setContentSize(v7, (const cocos2d::CCSize *)&v47); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, -1); setPosition = v7->setPosition; cocos2d::CCPoint::CCPoint(&v47.origin, v44 * 0.5, v45 * 0.5); setPosition(v7, &v47.origin); if ( a1->m_type == Blocked ) v10 = -20.0; else v10 = -17.0; v11 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v11, 20); v12 = v11->setPosition; cocos2d::CCPoint::CCPoint(&v47.origin, v44 * 0.5, (float)((float)(v45 * 0.5) + 145.0) + v10); v12(v11, &v47.origin); cocos2d::CCLabelBMFont::limitLabelWidth(v11, 185.0, 0.8, 0.0); if ( a1->m_type != Blocked ) { v13 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v13, 10); v14 = v11; getPosition = v11->getPosition; v16 = v13->setPosition; v17 = (__int64)getPosition(v14); cocos2d::CCPoint::CCPoint(&v47.origin, 0.0, -21.0); cocos2d::CCPoint::operator+(&v46, v17, &v47); v16(v13, (const cocos2d::CCPoint *)&v46); v13->setScale(v13, 0.6); } v18 = cocos2d::CCLabelBMFont::create(); a1->m_totalFriends = v18; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v18, 10); m_totalFriends = a1->m_totalFriends; v20 = m_totalFriends->setPosition; cocos2d::CCPoint::CCPoint(&v47.origin, v44 * 0.5, (float)((float)(v45 * 0.5) + -145.0) + 25.0); v20(m_totalFriends, &v47.origin); a1->m_totalFriends->setScale(a1->m_totalFriends, 0.7); v21 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_backBtn_001.png"); v50.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v50.adj = (size_t)FriendsProfilePage::onClose; v22 = CCMenuItemSpriteExtra::create(v21, nullptr, v50); CCMenuItemSpriteExtra::setSizeMult(v22, 1.6); v23 = (cocos2d::CCMenu *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v22, nullptr); a1->m_buttonMenu = v23; v24 = v23->setPosition; cocos2d::CCPoint::CCPoint( &v47.origin, (float)((float)(v44 * 0.5) + -220.0) + 10.0, (float)((float)(v45 * 0.5) + 145.0) - 10.0); v24(v23, &v47.origin); a1->m_mainLayer->addChild_0(a1->m_mainLayer, a1->m_buttonMenu, 10); if ( !a1->m_type ) { v39 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_blocked_001.png"); v52.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v52.adj = (size_t)FriendsProfilePage::onBlocked; v40 = CCMenuItemSpriteExtra::create(v39, nullptr, v52); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v40); m_buttonMenu = a1->m_buttonMenu; v42 = v40->setPosition; cocos2d::CCPoint::CCPoint( &v47.origin, (float)((float)(v44 * 0.5) + 220.0) - 10.0, (float)((float)(v45 * 0.5) + 145.0) - 10.0); v49 = cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, &v47.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64 *, float, float))v42)(v40, &v46, v49.x, v49.y); } v25 = cocos2d::CCLabelBMFont::create(); a1->m_noInternet = v25; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v25, 10); m_noInternet = a1->m_noInternet; v27 = m_noInternet->setPosition; cocos2d::CCPoint::CCPoint(&v47.origin, v44 * 0.5, v45 * 0.5); v27(m_noInternet, &v47.origin); a1->m_noInternet->setScale(a1->m_noInternet, 0.6); a1->m_noInternet->setVisible(a1->m_noInternet, 0); v28 = LoadingCircle::create(); a1->m_circle = v28; v28->m_parentLayer = a1->m_mainLayer; m_circle = a1->m_circle; m_circle->m_fade = 0; cocos2d::CCObject::retain(m_circle); LoadingCircle::show(a1->m_circle); a1->m_circle->setVisible(a1->m_circle, 0); m_sprite = a1->m_circle->m_sprite; v31 = m_sprite->setPosition; cocos2d::CCPoint::CCPoint(&v47.origin, v44 * 0.5, v45 * 0.5); v31(m_sprite, &v47.origin); v32 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); v51.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v51.adj = (size_t)FriendsProfilePage::onUpdate; v33 = CCMenuItemSpriteExtra::create(v32, nullptr, v51); a1->m_refreshBtn = v33; CCMenuItemSpriteExtra::setSizeMult(v33, 1.5); a1->m_buttonMenu->addChild(a1->m_buttonMenu, a1->m_refreshBtn); m_refreshBtn = a1->m_refreshBtn; v35 = a1->m_buttonMenu; v36 = m_refreshBtn->setPosition; cocos2d::CCPoint::CCPoint( &v47.origin, (float)((float)(v44 * 0.5) + 220.0) - 10.0, (float)((float)((float)(v45 * 0.5) + -145.0) + 10.0) + 1.0); v48 = cocos2d::CCNode::convertToNodeSpace(v35, &v47.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64 *, float, float))v36)(m_refreshBtn, &v46, v48.x, v48.y); a1->m_refreshBtn->setVisible(a1->m_refreshBtn, 0); GameLevelManager::sharedState()->m_userListDelegate = &a1->UserListDelegate; v37 = GameLevelManager::sharedState(); StoredUserList = GameLevelManager::getStoredUserList(v37, a1->m_type); if ( StoredUserList ) { a1->getUserListFinished(a1, StoredUserList, a1->m_type); } else { a1->m_circle->setVisible(a1->m_circle, 1); FriendsProfilePage::setupUsersBrowser(a1, nullptr, a1->m_type); v43 = GameLevelManager::sharedState(); GameLevelManager::getUserList(v43, a1->m_type); } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source