// // ThreadViewPopup::buildMemberButton from 0x74711c to 0x747312 (502 bytes) // // 5 xrefs: // > MemberListPopup::refreshHost @ 0x748312 // > ThreadViewPopup::init @ 0x75c694 // > ThreadViewPopup::threadUpdateFinished @ 0x75da3a // > ThreadViewPopup::threadMessagesFinished @ 0x75e3e6 // > ThreadViewPopup::threadMessagesFinished @ 0x75ed4c // // 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:43 +0000 // int __fastcall ThreadViewPopup::buildMemberButton(int this) { int v1; // r4 int v2; // r3 int v3; // r5 int v4; // r0 const char *v5; // r1 __int16 *v6; // r2 cocos2d::CCString *v7; // r0 cocos2d::CCLabelBMFont *CString; // r0 const char *v9; // r2 cocos2d::CCLabelBMFont *v10; // r7 void (__fastcall *v11)(cocos2d::CCLabelBMFont *, _BYTE *); // r5 float v12; // s16 __int64 v13; // r0 float v14; // s15 int v15; // r5 float v16; // s17 float v17; // r0 float v18; // s16 float v19; // s17 int v20; // r8 void (__fastcall *v21)(int, _BYTE *); // r10 void (__fastcall *v22)(cocos2d::CCLabelBMFont *, _BYTE *); // r10 void (__fastcall *v23)(int, _BYTE *); // r10 int v24; // r0 int v25; // r5 int (__fastcall *v26)(int, _BYTE *); // r7 _BYTE v27[8]; // [sp+14h] [bp-Ch] BYREF v1 = this; v2 = *(_DWORD *)(this + 564); v3 = *(unsigned __int8 *)(v2 + 168); if ( !*(_BYTE *)(v2 + 168) && *(_DWORD *)(this + 444) ) { v4 = *(_DWORD *)(this + 652); if ( v4 ) { (*(void (__fastcall **)(int))(*(_DWORD *)v4 + 260))(v4); *(_DWORD *)(v1 + 652) = v3; *(_DWORD *)(v1 + 648) = v3; } this = ThreadViewPopup::removedView((ThreadViewPopup *)v1); if ( !this ) { v5 = *(const char **)(*(_DWORD *)(v1 + 564) + 116); if ( v5 == (_BYTE *)&dword_0 + 1 ) v6 = (__int16 *)&unk_B6B226; else v6 = &a1i2r3e45s789g[8]; v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i member%s", v5, v6); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v7); v10 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v9); cocos2d::CCLabelBMFont::limitLabelWidth(v10, 70.0, 0.4, 0.2); v11 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v10 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, 0.0, 0.5); v11(v10, v27); v12 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v10 + 164))(v10); v13 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))*(_DWORD *)(*(_DWORD *)v10 + 84))(v10); v14 = *(float *)&v13; v15 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", (const char *)HIDWORD(v13)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 80))(v15, 1051931443); (*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 180))(v15, -1028390912); (*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 456))(v15, 150); v16 = *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v15 + 164))(v15) + 4); v17 = (*(float (__fastcall **)(int))(*(_DWORD *)v15 + 84))(v15); v18 = (float)(v12 * v14) + 10.0; v19 = v18 + (float)((float)(v16 * v17) * 0.5); v20 = cocos2d::CCNode::create((cocos2d::CCNode *)LODWORD(v17)); v21 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v20 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v27, v19, 28.0); v21(v20, v27); v22 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v10 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, 0.0, 14.0); v22(v10, v27); (*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *))(*(_DWORD *)v20 + 228))(v20, v10); v23 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v18, 14.0); v23(v15, v27); (*(void (__fastcall **)(int, int))(*(_DWORD *)v20 + 228))(v20, v15); *(_DWORD *)(v1 + 648) = v10; v24 = CCMenuItemSpriteExtra::create(v20, 0, v1, (int)ThreadViewPopup::onShowMembers, 0); *(_DWORD *)(v1 + 652) = v24; CCMenuItemSpriteExtra::setSizeMult(v24, 1.3); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v1 + 444) + 228))( *(_DWORD *)(v1 + 444), *(_DWORD *)(v1 + 652)); v25 = *(_DWORD *)(v1 + 652); v26 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v25 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v27, *(float *)(v1 + 656) + (float)(v19 * 0.5), *(float *)(v1 + 660)); return v26(v25, v27); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source