// // FriendPickerPopup::init from 0x749dc8 to 0x74a3e8 (1568 bytes) // // 1 xrefs: // > FriendPickerPopup::create @ 0x74a4c2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:58:45 +0000 // int __fastcall FriendPickerPopup::init( FriendPickerPopup *this, FriendPickerDelegate *a2, int a3, int a4, bool a5, bool a6) { int inited; // r9 float v11; // r2 int v12; // r10 char *v13; // r0 ButtonSprite *v14; // r0 int v15; // r11 float v16; // s15 ButtonSprite *v17; // r0 int v18; // r10 void (__fastcall *v19)(int, _DWORD *); // r11 int v20; // r10 void (__fastcall *v21)(int, _DWORD *); // r6 float v22; // s16 int v23; // r6 void (__fastcall *v24)(int, _DWORD *); // r10 void (__fastcall *v25)(int, _DWORD *); // r3 void (__fastcall *v26)(int, _DWORD *); // r10 int InputNode; // r0 float v28; // r1 int v29; // r6 void (__fastcall *v30)(int, _DWORD *); // r10 const char *v31; // r1 int v32; // r10 int v33; // r10 int (__fastcall *v34)(int, _DWORD *); // r11 GameLevelManager *v35; // r0 const char *v36; // r2 int v37; // r0 int v38; // r10 void (__fastcall *v39)(int, _DWORD *); // r11 int v40; // r10 void (__fastcall *v41)(int, _DWORD *); // r11 const char *v42; // r1 int v43; // r0 int v44; // r0 int v45; // r6 int (__fastcall *v46)(int, _BYTE *); // r7 GameLevelManager *v47; // r0 int v48; // r0 int v49; // r2 int v50; // r3 int v51; // r1 int v52; // r2 int StoredUserList; // r5 GameLevelManager *v54; // r0 GameLevelManager *v55; // r0 int v57; // [sp+0h] [bp-6Ch] float v58; // [sp+10h] [bp-5Ch] float v59; // [sp+10h] [bp-5Ch] void (__fastcall *v60)(int, _DWORD *); // [sp+14h] [bp-58h] _BYTE v61[8]; // [sp+1Ch] [bp-50h] BYREF int (__fastcall *v62)(FriendPickerPopup *, cocos2d::CCObject *); // [sp+24h] [bp-48h] int v63; // [sp+28h] [bp-44h] int (__fastcall *v64)(FriendPickerPopup *, cocos2d::CCObject *); // [sp+2Ch] [bp-40h] int v65; // [sp+30h] [bp-3Ch] _DWORD (*v66)(FriendPickerPopup *__hidden, cocos2d::CCObject *); // [sp+34h] [bp-38h] int v67; // [sp+38h] [bp-34h] int v68[3]; // [sp+3Ch] [bp-30h] BYREF int v69; // [sp+48h] [bp-24h] BYREF int v70; // [sp+4Ch] [bp-20h] int v71; // [sp+50h] [bp-1Ch] _DWORD v72[4]; // [sp+54h] [bp-18h] BYREF v69 = 0; v70 = 0; v71 = 0; std::string::__init(&v69, &unk_B6B226, 0); inited = PagedListPopup::initPaged( (int)this, (cocos2d::CCLabelBMFont *)"Select Users", (unsigned __int8 *)&v69, 340.0, 260.0); std::string::~string((int)&v69); if ( inited ) { *((_DWORD *)this + 151) = a2; *((_BYTE *)this + 621) = a3; *((_BYTE *)this + 623) = a5; *((_BYTE *)this + 622) = a4; *((_BYTE *)this + 624) = a6; if ( a4 ) { v11 = 44.0; v12 = 1; } else { if ( a3 ) { v12 = 1; } else { v12 = 0; v11 = 16.0; } if ( a3 ) v11 = 44.0; } PagedListPopup::createScrollArea(this, 74.0, v11); if ( v12 ) { if ( *((_BYTE *)this + 624) ) v13 = "Add"; else v13 = "Done"; v14 = ButtonSprite::create( (ButtonSprite *)v13, (const char *)&word_32, 0, 0.5, 1, "bigFont.fnt", "GJ_button_01.png", (const char *)0x41C80000, v58); v63 = 0; v62 = FriendPickerPopup::onDone; v15 = CCMenuItemSpriteExtra::create((int)v14, 0, (int)this, (int)FriendPickerPopup::onDone, 0); CCMenuItemSpriteExtra::setSizeMult(v15, 1.2); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v15); v16 = *((float *)this + 130); if ( *((_BYTE *)this + 623) ) v16 = v16 - 36.0; v60 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v72, v16, (float)(*((float *)this + 131) - (float)(*((float *)this + 133) * 0.5)) + 24.0); v60(v15, v72); if ( *((_BYTE *)this + 623) ) { v17 = ButtonSprite::create( (ButtonSprite *)"Clear", (const char *)&word_32, 0, 0.5, 1, "bigFont.fnt", "GJ_button_04.png", (const char *)0x41C80000, v59); v65 = 0; v64 = FriendPickerPopup::onClearAll; v18 = CCMenuItemSpriteExtra::create((int)v17, 0, (int)this, (int)FriendPickerPopup::onClearAll, 0); CCMenuItemSpriteExtra::setSizeMult(v18, 1.2); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v18); v19 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v72, *((float *)this + 130) + 36.0, (float)(*((float *)this + 131) - (float)(*((float *)this + 133) * 0.5)) + 24.0); v19(v18, v72); } } memset(v68, 0, sizeof(v68)); std::string::__init(v68, "Select Users", 0xCu); v69 = 0; v70 = 0; v71 = 0; std::string::__init( &v69, "Users without a checkbox are not your friend, or have turned off messages or invites in their " "Account Settings.\n" "Advisors and Moderators open to all take message requests from anyone.", 0xDEu); v20 = InfoAlertButton::create((char *)v68, (int)&v69, 1061997773); std::string::~string((int)&v69); std::string::~string((int)v68); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v20); v21 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v20 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v72, (float)(*((float *)this + 130) + (float)(*((float *)this + 132) * 0.5)) - 18.0, (float)(*((float *)this + 131) + (float)(*((float *)this + 133) * 0.5)) - 18.0); v21(v20, v72); ScrollableContentLayer::setVirtualRows( *((ScrollableContentLayer **)this + 136), (int)this + 596, 1115684864, 0, 1086324736); v22 = (float)(*((float *)this + 131) + (float)(*((float *)this + 133) * 0.5)) - 52.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v72, 0.0, 0.0, 40.0, 40.0); v23 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v72); v24 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v23 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v72, 200.0, 24.0); v24(v23, v72); v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v23 + 480); LOWORD(v72[0]) = 13405; BYTE2(v72[0]) = 31; v25(v23, v72); v26 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v23 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, *((float *)this + 130), v22); v26(v23, v72); (*(void (__fastcall **)(_DWORD, int, _DWORD))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v23, 0); InputNode = GameToolbox::createInputNode( (GameToolbox *)0x433C0000, 24.0, COERCE_FLOAT("Search"), (const char *)&dword_14, v57); v28 = *((float *)this + 130); *((_DWORD *)this + 161) = InputNode; v29 = InputNode; v30 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)InputNode + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, v28, v22); v30(v29, v72); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 161), 0.6); *(_DWORD *)(*((_DWORD *)this + 161) + 420) = (char *)this + 440; (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 161), 5); v32 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_findBtn_001.png", v31); (*(void (__fastcall **)(int, int))(*(_DWORD *)v32 + 80))(v32, 1058642330); v67 = 0; v66 = FriendPickerPopup::onGlobalSearch; v33 = CCMenuItemSpriteExtra::create(v32, 0, (int)this, (int)FriendPickerPopup::onGlobalSearch, 0); CCMenuItemSpriteExtra::setSizeMult(v33, 1.3); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v33); v34 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, *((float *)this + 130) + 122.0, v22); v35 = (GameLevelManager *)v34(v33, v72); if ( *((_BYTE *)this + 622) ) { v37 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "goldFont.fnt", v36); *((_DWORD *)this + 162) = v37; v38 = v37; v39 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v37 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, 0.0, 0.5); v39(v38, v72); (*(void (__fastcall **)(_DWORD, float))(**((_DWORD **)this + 162) + 80))(*((_DWORD *)this + 162), 0.5); v40 = *((_DWORD *)this + 162); v41 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v40 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v72, (float)(*((float *)this + 130) - (float)(*((float *)this + 132) * 0.5)) + 40.0, (float)(*((float *)this + 131) - (float)(*((float *)this + 133) * 0.5)) + 24.0); v41(v40, v72); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 162), 5); FriendPickerPopup::updateCountLabel(this); v43 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v42); *((_DWORD *)this + 163) = v43; (*(void (__fastcall **)(int, int))(*(_DWORD *)v43 + 80))(v43, 1060320051); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 163) + 456))(*((_DWORD *)this + 163), 140); v44 = *((_DWORD *)this + 163); v72[1] = 0; v72[0] = FriendPickerPopup::onToggleSelectedView; v45 = CCMenuItemSpriteExtra::create(v44, 0, (int)this, (int)FriendPickerPopup::onToggleSelectedView, 0); CCMenuItemSpriteExtra::setSizeMult(v45, 1.3); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v45); v46 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v45 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v61, (float)(*((float *)this + 130) - (float)(*((float *)this + 132) * 0.5)) + 22.0, (float)(*((float *)this + 131) - (float)(*((float *)this + 133) * 0.5)) + 24.0); v35 = (GameLevelManager *)v46(v45, v61); } v47 = (GameLevelManager *)GameLevelManager::sharedState(v35); *((_DWORD *)v47 + 223) = (char *)this + 600; v48 = GameLevelManager::sharedState(v47); StoredUserList = GameLevelManager::getStoredUserList(v48, 0, v49, v50); if ( StoredUserList ) { (*(void (__fastcall **)(FriendPickerPopup *, int, _DWORD))(*(_DWORD *)this + 696))(this, StoredUserList, 0); } else { v54 = (GameLevelManager *)PagedListPopup::showLoading(this, v51, v52); v55 = (GameLevelManager *)GameLevelManager::sharedState(v54); GameLevelManager::getUserList(v55, nullptr); } } return inited; }
GD Web Decomp Icon

GD Web Decomp

Raw Source