// // FriendsProfilePage::setupUsersBrowser from 0x8f6a50 to 0x8f6cf4 (676 bytes) // // 4 xrefs: // > FriendsProfilePage::init @ 0x8f7388 // > FriendsProfilePage::getUserListFinished @ 0x8f76d8 // > FriendsProfilePage::forceReloadList @ 0x8f7830 // > @ 0x529c8 // // 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 FriendsProfilePage::setupUsersBrowser(FriendsProfilePage *a1, cocos2d::CCArray *a2, UserListType a3) { cocos2d::CCDirector *v6; // x0 cocos2d::CCTouchDispatcher *v7; // x0 cocos2d::CCDirector *v8; // x0 CustomListView *v9; // x0 GJCommentListLayer *v10; // x0 cocos2d::CCLayer *m_mainLayer; // x2 GJCommentListLayer *m_listLayer; // x24 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 cocos2d::CCLabelBMFont *m_totalFriends; // x19 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x22 unsigned int v16; // w0 cocos2d::CCString *v17; // x0 const char *CString; // x0 GameManager *v19; // x0 int v20; // w19 GameManager *v21; // x0 GameManager *v22; // x0 GameManager *v23; // x0 float v24; // [xsp+68h] [xbp+68h] float v25; // [xsp+6Ch] [xbp+6Ch] cocos2d::CCPoint v26; // [xsp+70h] [xbp+70h] BYREF if ( a1->m_listLayer ) { v6 = cocos2d::CCDirector::sharedDirector(); v7 = v6->getTouchDispatcher(v6); cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, a1->m_listLayer); a1->m_listLayer->removeMeAndCleanup(a1->m_listLayer); a1->m_listLayer = nullptr; } v8 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v8); if ( a2 ) v9 = CustomListView::create(a2, (BoomListType)0, 196.0, 340.0); else v9 = nullptr; v10 = GJCommentListLayer::create(v9, nullptr, (cocos2d::ccColor4B)-12684609, 340.0, 196.0, 0); m_mainLayer = a1->m_mainLayer; a1->m_listLayer = v10; m_mainLayer->addChild(m_mainLayer, v10); m_listLayer = a1->m_listLayer; setPosition = m_listLayer->setPosition; cocos2d::CCPoint::CCPoint( &v26, (float)(v24 - 340.0) * 0.5, (float)((float)((float)(v25 - 196.0) * 0.5) + -10.0) + 5.0); setPosition(m_listLayer, &v26); if ( a2 && !a3 ) { if ( (unsigned int)cocos2d::CCArray::count(a2) ) { m_totalFriends = a1->m_totalFriends; setString = m_totalFriends->setString; v16 = cocos2d::CCArray::count(a2); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Total friends: %i", (const char *)v16); CString = cocos2d::CCString::getCString(v17); setString(m_totalFriends, (const unsigned __int8 *)CString); } else { a1->m_totalFriends->setString(a1->m_totalFriends, (const unsigned __int8 *)" "); } if ( (unsigned int)cocos2d::CCArray::count(a2) ) { v19 = GameManager::sharedState(); GameManager::reportAchievementWithID(v19, "geometry.ach.friends01", 100, 0); v20 = cocos2d::CCArray::count(a2); if ( v20 > 9 ) { v21 = GameManager::sharedState(); GameManager::reportAchievementWithID(v21, "geometry.ach.friends02", 100, 0); if ( v20 > 24 ) { v22 = GameManager::sharedState(); GameManager::reportAchievementWithID(v22, "geometry.ach.friends03", 100, 0); if ( v20 > 49 ) { v23 = GameManager::sharedState(); GameManager::reportAchievementWithID(v23, "geometry.ach.friends04", 100, 0); } } } } } else { a1->m_totalFriends->setString(a1->m_totalFriends, (const unsigned __int8 *)" "); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source