// // ThreadDescPopup::buildUI from 0x753ea4 to 0x75463c (1944 bytes) // // 1 xrefs: // > ThreadDescPopup::init @ 0x75468c // // 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:53 +0000 // int __fastcall ThreadDescPopup::buildUI(int a1, int a2, unsigned __int8 *a3, unsigned __int8 *a4) { GameManager *v7; // r0 float v8; // s21 float v9; // s19 float v10; // s21 const char *v11; // r1 int v12; // r10 int v13; // r10 void (__fastcall *v14)(int, _DWORD *); // r11 int v15; // r8 void (__fastcall *v16)(int, _DWORD *); // r11 void (__fastcall *v17)(int, _DWORD *); // r3 void (__fastcall *v18)(int, _DWORD *); // r11 int *v19; // r0 void (__fastcall *v20)(cocos2d::CCPoint *, _DWORD *); // r11 int *v21; // r0 int v22; // r11 EmoteSprite *v23; // r0 CCTextInputNode *v24; // r11 int v25; // r0 int v26; // r8 TextArea *v27; // r6 void (__fastcall *v28)(TextArea *, _DWORD *); // r10 void (__fastcall *v29)(TextArea *, _DWORD *); // r10 unsigned int v30; // r3 int v31; // r6 const char *v32; // r7 size_t v33; // r0 ButtonSprite *v34; // r0 int v35; // r8 const cocos2d::CCPoint *v36; // r10 void (__fastcall *v37)(int, _DWORD *); // r11 float v38; // s16 const char *v39; // r2 int v40; // r8 void (__fastcall *v41)(int, _DWORD *); // r9 void (__fastcall *v42)(int, _DWORD *); // r9 int v43; // r7 void (__fastcall *v44)(int, _DWORD *); // r9 int v45; // r0 int v46; // r11 const cocos2d::CCPoint *v47; // r10 void (__fastcall *v48)(int, _DWORD *); // r9 float *v49; // r0 int v50; // r1 int v51; // r2 int v52; // r3 cocos2d::CCSprite *v53; // r6 int v54; // r5 const cocos2d::CCPoint *v55; // r8 void (__fastcall *v56)(int, int *); // r6 EmoteSprite *v57; // r0 int v58; // r0 _BYTE *v59; // r9 void (__fastcall *v60)(_BYTE *, _DWORD *); // r8 int v61; // r10 int v62; // r3 int v63; // r3 int v64; // r3 void (__fastcall *v65)(_BYTE *, _DWORD *); // r5 char *v67; // [sp+8h] [bp-74h] float v68; // [sp+10h] [bp-6Ch] cocos2d::CCPoint *v70; // [sp+1Ch] [bp-60h] cocos2d::CCPoint *v71; // [sp+1Ch] [bp-60h] int v72; // [sp+24h] [bp-58h] float v73[2]; // [sp+28h] [bp-54h] BYREF _BYTE v74[8]; // [sp+30h] [bp-4Ch] BYREF int v75[6]; // [sp+38h] [bp-44h] BYREF _DWORD v76[2]; // [sp+50h] [bp-2Ch] BYREF int v77; // [sp+58h] [bp-24h] BYREF int v78; // [sp+5Ch] [bp-20h] int v79; // [sp+60h] [bp-1Ch] _DWORD v80[4]; // [sp+64h] [bp-18h] BYREF v7 = SetupTriggerPopup::init((SetupTriggerPopup *)a1, nullptr, nullptr, 340.0, 190.0, (char *)&dword_0 + 1, 0.0); v68 = *(float *)&v7; if ( v7 ) { cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v73); v77 = 0; v78 = 0; v8 = v73[0]; v79 = 0; v9 = v73[1] * 0.5; std::string::__init(&v77, "Description", 0xBu); v10 = v8 * 0.5; SetupTriggerPopup::addTitle(a1, (unsigned __int8 *)&v77); std::string::~string((int)&v77); v12 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v11); (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 80))(v12, 1061997773); v75[2] = 684; v75[3] = 1; v13 = CCMenuItemSpriteExtra::create(v12, 0, a1, 684, 1); CCMenuItemSpriteExtra::setSizeMult(v13, 1.5); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v13); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 92); v70 = *(cocos2d::CCPoint **)(a1 + 444); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v76, (float)(v10 - 170.0) + 8.0, (float)(v9 + 95.0) - 12.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v80, v70); v14(v13, v80); if ( a2 ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v80, 0.0, 0.0, 40.0, 40.0); v15 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v80); v16 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v15 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v80, 300.0, 92.0); v16(v15, v80); v17 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v15 + 480); LOWORD(v80[0]) = 13405; BYTE2(v80[0]) = 31; v17(v15, v80); v18 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, v10, v9 + 8.0); v18(v15, v80); (*(void (__fastcall **)(_DWORD, int, _DWORD))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v15, 0); *(_DWORD *)(a1 + 732) = 1133248512; v19 = CCTextInputNode::create( (CCTextInputNode *)0x43900000, 82.0, "Describe this group chat", "Thonburi", (const char *)&dword_18, nullptr, v67); *(_DWORD *)(a1 + 728) = v19; *((_BYTE *)v19 + 432) = 0; v71 = *(cocos2d::CCPoint **)(a1 + 728); v20 = *(void (__fastcall **)(cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v71 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, v10, v9 + 8.0); v20(v71, v80); v21 = CCTextInputNode::setUnicodeText(*(int **)(a1 + 728), 1); v22 = *(_DWORD *)(a1 + 728); v23 = (EmoteSprite *)(17 * EmoteSprite::maxEmotesComment((EmoteSprite *)v21) + 300); *(_DWORD *)(v22 + 424) = v23; v24 = *(CCTextInputNode **)(a1 + 728); v25 = EmoteSprite::maxEmotesComment(v23); CCTextInputNode::setParseEmotes(v24, v25); *(_DWORD *)(*(_DWORD *)(a1 + 728) + 420) = a1 + 440; LOWORD(v72) = 27843; BYTE2(v72) = 65; CCTextInputNode::setLabelPlaceholderColor(*(_DWORD *)(a1 + 728), v72); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 728), 5); v77 = 0; v78 = 0; v79 = 0; std::string::__init(&v77, &unk_B6B226, 0); v26 = *(_DWORD *)(a1 + 732); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, 0.0, 0.5); v27 = (TextArea *)TextArea::create( (int)&v77, "chatFont.fnt", 1065353216, v26, (const cocos2d::CCPoint *)v80, 1101004800, 1, 0); std::string::~string((int)&v77); *((_BYTE *)v27 + 509) = 1; v28 = *(void (__fastcall **)(TextArea *, _DWORD *))(*(_DWORD *)v27 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, 0.0, 0.5); v28(v27, v80); CCTextInputNode::addTextArea(*(int **)(a1 + 728), v27); v29 = *(void (__fastcall **)(TextArea *, _DWORD *))(*(_DWORD *)v27 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, -(float)(*(float *)(a1 + 732) * 0.5), 0.0); v29(v27, v80); v30 = *a3; if ( (v30 & 1) != 0 ) { if ( !*((_DWORD *)a3 + 1) ) goto LABEL_10; v31 = *(_DWORD *)(a1 + 728); v32 = *((const char **)a3 + 2); } else { if ( !(v30 >> 1) ) goto LABEL_10; v31 = *(_DWORD *)(a1 + 728); v32 = (const char *)(a3 + 1); } v77 = 0; v78 = 0; v79 = 0; v33 = strlen(v32); std::string::__init(&v77, v32, v33); CCTextInputNode::setString(v31, (int)&v77); std::string::~string((int)&v77); LABEL_10: v34 = ButtonSprite::create( (ButtonSprite *)"Save", (const char *)&dword_44 + 2, 0, 0.6, 1, "bigFont.fnt", "GJ_button_01.png", (const char *)0x41E00000, v68); v75[4] = (int)ThreadDescPopup::onSave; v75[5] = 0; v35 = CCMenuItemSpriteExtra::create((int)v34, 0, a1, (int)ThreadDescPopup::onSave, 0); CCMenuItemSpriteExtra::setSizeMult(v35, 1.1); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v35); v36 = *(const cocos2d::CCPoint **)(a1 + 444); v37 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v35 + 92); v38 = (float)(v9 - 95.0) + 24.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v76, v10, v38); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v80, v36); v37(v35, v80); std::string::operator=((unsigned __int8 *)(a1 + 748), a4); v40 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Icon:", "goldFont.fnt", v39); (*(void (__fastcall **)(int, int))(*(_DWORD *)v40 + 80))(v40, 1056964608); v41 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v40 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, 0.0, 0.5); v41(v40, v80); v42 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v40 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, (float)(v10 - 170.0) + 22.0, v38); v42(v40, v80); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v40, 1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v80, 0.0, 0.0, 40.0, 40.0); v43 = cocos2d::extension::CCScale9Sprite::create("GJ_button_04.png", v80); v44 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v43 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v80, 32.0, 32.0); v44(v43, v80); *(_DWORD *)(a1 + 764) = v43; v76[0] = ThreadDescPopup::onPickIcon; v76[1] = 0; v45 = CCMenuItemSpriteExtra::create(v43, 0, a1, (int)ThreadDescPopup::onPickIcon, 0); *(_DWORD *)(a1 + 768) = v45; CCMenuItemSpriteExtra::setSizeMult(v45, 1.2); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))( *(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 768)); v46 = *(_DWORD *)(a1 + 768); v47 = *(const cocos2d::CCPoint **)(a1 + 444); v48 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v46 + 92); v49 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v40 + 164))(v40); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v75, (float)((float)((float)(v10 - 170.0) + 22.0) + (float)(*v49 * 0.5)) + 24.0, v38); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v80, v47); v48(v46, v80); ThreadDescPopup::refreshIconSlot((ThreadDescPopup *)a1); v77 = 0; v78 = 0; v79 = 0; std::string::__init(&v77, "easy", 4u); v53 = EmoteSprite::createWithName((int)&v77, v50, v51, v52); std::string::~string((int)&v77); EmoteSprite::fitToHeight(v53, 18.0, 0.0); v80[0] = ThreadDescPopup::onEmotes; v80[1] = 0; v54 = CCMenuItemSpriteExtra::create((int)v53, 0, a1, (int)ThreadDescPopup::onEmotes, 0); CCMenuItemSpriteExtra::setSizeMult(v54, 1.4); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v54); v55 = *(const cocos2d::CCPoint **)(a1 + 444); v56 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v54 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v74, (float)(v10 + 170.0) - 30.0, v38); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v75, v55); v56(v54, v75); return LODWORD(v68); } v77 = 0; v78 = 0; v79 = 0; std::string::__init(&v77, &unk_B6B226, 0); v57 = (EmoteSprite *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, 0.0, 0.5); v58 = EmoteSprite::maxEmotesComment(v57); v59 = (_BYTE *)TextArea::create( (int)&v77, "chatFont.fnt", 1065353216, 1133248512, (const cocos2d::CCPoint *)v80, 1101004800, 1, v58); std::string::~string((int)&v77); v59[509] = 1; v60 = *(void (__fastcall **)(_BYTE *, _DWORD *))(*(_DWORD *)v59 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, 0.0, 0.5); v60(v59, v80); v61 = *a3; if ( (v61 & 1) != 0 ) v62 = *((_DWORD *)a3 + 1); else v62 = v61 >> 1; if ( v62 ) { std::string::basic_string(&v77, (int)a3); } else { v77 = 0; v78 = 0; v79 = 0; std::string::__init(&v77, "No description", 0xEu); } TextArea::fitString((int)v59, (int)&v77, 280.0, 110.0, 0.35, 0.0); std::string::~string((int)&v77); v63 = *a3; if ( (v63 & 1) != 0 ) v64 = *((_DWORD *)a3 + 1); else v64 = v63 >> 1; if ( !v64 ) { LOWORD(v75[0]) = -26986; BYTE2(v75[0]) = -106; TextArea::colorAllCharactersTo((int)v59, v75[0]); } v65 = *(void (__fastcall **)(_BYTE *, _DWORD *))(*(_DWORD *)v59 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, (float)(v10 - 140.0) - 10.0, v9 - 4.0); v65(v59, v80); (*(void (__fastcall **)(_DWORD, _BYTE *, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v59, 1); } return LODWORD(v68); }
GD Web Decomp Icon

GD Web Decomp

Raw Source