// // InvitesPopup::init from 0x74c100 to 0x74c4ea (1002 bytes) // // 1 xrefs: // > InvitesPopup::create @ 0x748578 // // 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:47 +0000 // int __fastcall InvitesPopup::init(InvitesPopup *this) { int inited; // r10 int v3; // r2 int v4; // r3 int v5; // r5 void (__fastcall *v6)(int, _DWORD); // r6 float v7; // r0 ButtonSprite *v8; // r0 int v9; // r0 int v10; // r9 void (__fastcall *v11)(int, _DWORD *); // r11 const char *v12; // r1 float v13; // s17 int v14; // r7 void (__fastcall *v15)(int, _DWORD); // r6 int v16; // r0 __int64 v17; // r0 float v18; // s19 float v19; // s19 float v20; // s16 int v21; // r6 void (__fastcall *v22)(int, _DWORD *); // r9 void (__fastcall *v23)(int, _DWORD *); // r3 void (__fastcall *v24)(int, _DWORD *); // r9 int InputNode; // r0 int v26; // r6 void (__fastcall *v27)(int, _DWORD *); // r9 int v28; // r6 int (__fastcall *v29)(int, _BYTE *); // r7 GameLevelManager *v30; // r0 GameLevelManager *v31; // r0 GameLevelManager *ThreadInvites; // r0 int v33; // r1 int v34; // r2 int v36; // [sp+0h] [bp-30h] float v37; // [sp+10h] [bp-20h] _BYTE v38[8]; // [sp+14h] [bp-1Ch] BYREF _DWORD (__fastcall *v39)(InvitesPopup *__hidden, cocos2d::CCObject *); // [sp+1Ch] [bp-14h] int v40; // [sp+20h] [bp-10h] int v41[3]; // [sp+24h] [bp-Ch] BYREF int v42; // [sp+30h] [bp+0h] BYREF int v43; // [sp+34h] [bp+4h] int v44; // [sp+38h] [bp+8h] _DWORD v45[4]; // [sp+3Ch] [bp+Ch] BYREF v42 = 0; v43 = 0; v44 = 0; std::string::__init(&v42, &unk_B6B226, 0); inited = PagedListPopup::initPaged( (int)this, (cocos2d::CCLabelBMFont *)"Pending", (unsigned __int8 *)&v42, 340.0, 260.0); std::string::~string((int)&v42); if ( inited ) { PagedListPopup::createScrollArea(this, 64.0, 16.0); ScrollableContentLayer::setSectionHeight(*((ScrollableContentLayer **)this + 136), 54.0, v3, v4); v5 = *((_DWORD *)this + 145); if ( v5 ) { v6 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 116); v7 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(*(_DWORD *)v5 + 120))(*((_DWORD *)this + 145))); v6(v5, v7 + 2.0); } v8 = ButtonSprite::create( (ButtonSprite *)"Ignored", (const char *)&dword_38, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", (const char *)0x41B00000, v37); *((_DWORD *)this + 155) = v8; (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v8 + 80))(v8, 1061997773); v9 = *((_DWORD *)this + 155); v39 = InvitesPopup::onToggleIgnored; v40 = 0; v10 = CCMenuItemSpriteExtra::create(v9, 0, (int)this, (int)InvitesPopup::onToggleIgnored, 0); CCMenuItemSpriteExtra::setSizeMult(v10, 1.2); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v10); v11 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v10 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v45, (float)(*((float *)this + 130) + (float)(*((float *)this + 132) * 0.5)) - 36.0, (float)(*((float *)this + 131) + (float)(*((float *)this + 133) * 0.5)) - 17.0); v11(v10, v45); memset(v41, 0, sizeof(v41)); std::string::__init(v41, "Invites", 7u); v42 = 0; v43 = 0; v44 = 0; std::string::__init( &v42, "Message requests and group invites wait here.\n" "Accepting a request opens the conversation, while accepting an invite joins the group chat.\n" "Ignore moves it to the Ignored view. The sender is not told.\n" "Ignored requests and invites can still be accepted later.\n" "Requests and invites expire 14 days after they are sent and are then removed from both views.", 0x16Eu); *((_DWORD *)this + 156) = InfoAlertButton::create((char *)v41, (int)&v42, COERCE_INT(0.5)); std::string::~string((int)&v42); std::string::~string((int)v41); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), *((_DWORD *)this + 156)); InvitesPopup::layoutTitleInfo(this); v13 = (float)(*((float *)this + 131) + (float)(*((float *)this + 133) * 0.5)) - 45.0; v14 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_longBtn07_001.png", v12); v15 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v14 + 80); v16 = (*(int (__fastcall **)(int))(*(_DWORD *)v14 + 164))(v14); v15(v14, 20.8 / *(float *)(v16 + 4)); v17 = ((__int64 (__fastcall *)(int))*(int *)((char *)&dword_A4 + *(_DWORD *)v14))(v14); v18 = *(float *)v17; v19 = v18 * COERCE_FLOAT((*(int (__fastcall **)(int, _DWORD))((char *)&dword_54 + *(_DWORD *)v14))(v14, HIDWORD(v17))); v20 = *((float *)this + 130) - (float)((float)(v19 + 4.0) * 0.5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v45, 0.0, 0.0, 40.0, 40.0); v21 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v45); v22 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v45, 200.0, 24.0); v22(v21, v45); v23 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 480); LOWORD(v45[0]) = 13405; BYTE2(v45[0]) = 31; v23(v21, v45); v24 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v20, v13); v24(v21, v45); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v21, 9); InputNode = GameToolbox::createInputNode( (GameToolbox *)0x433C0000, 24.0, COERCE_FLOAT("Search"), (const char *)&dword_14, v36); *((_DWORD *)this + 157) = InputNode; v26 = InputNode; v27 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)InputNode + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v20, v13); v27(v26, v45); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 157), 0.6); *(_DWORD *)(*((_DWORD *)this + 157) + 420) = (char *)this + 440; (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 157), 10); v45[0] = InvitesPopup::onClearSearch; v45[1] = 0; v28 = CCMenuItemSpriteExtra::create(v14, 0, (int)this, (int)InvitesPopup::onClearSearch, 0); CCMenuItemSpriteExtra::setSizeMult(v28, 1.2); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v28); v29 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v28 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v38, (float)((float)(v20 + 100.0) + 4.0) + (float)(v19 * 0.5), v13 - 1.0); v30 = (GameLevelManager *)v29(v28, v38); v31 = (GameLevelManager *)GameLevelManager::sharedState(v30); ThreadInvites = (GameLevelManager *)GameLevelManager::getThreadInvites(v31); *(_DWORD *)(GameLevelManager::sharedState(ThreadInvites) + 840) = (char *)this + 596; PagedListPopup::showLoading(this, v33, v34); } return inited; }
GD Web Decomp Icon

GD Web Decomp

Raw Source