// // NewThreadPopup::init from 0x756154 to 0x75702a (3798 bytes) // // 1 xrefs: // > NewThreadPopup::create @ 0x757158 // // 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:55 +0000 // int __fastcall NewThreadPopup::init(int a1, int a2, unsigned __int8 *a3, unsigned __int8 *a4) { int v8; // r3 cocos2d::CCDirector *v9; // r0 cocos2d::CCLayer *v10; // r0 int v11; // r0 int v12; // r3 int v13; // r11 const char *v14; // r2 int v15; // r0 void (__fastcall *v16)(int, _DWORD *); // r11 cocos2d::CCArray *v17; // r0 unsigned int v18; // r3 int v19; // r6 cocos2d::CCString *v20; // r0 cocos2d::CCDictionary **v21; // r0 char *v22; // r1 cocos2d::CCLabelBMFont *CString; // r0 const char *v24; // r2 cocos2d::CCLabelBMFont *v25; // r11 void (__fastcall *v26)(cocos2d::CCLabelBMFont *, _DWORD *); // r6 cocos2d::CCMenu *v27; // r0 cocos2d::CCObject *v28; // r0 const char *v29; // r2 int v30; // r6 void (__fastcall *v31)(int, _DWORD *); // r11 void (__fastcall *v32)(int, _DWORD *); // r11 int v33; // r6 void (__fastcall *v34)(int, _DWORD *); // r11 void (__fastcall *v35)(int, _DWORD *); // r3 void (__fastcall *v36)(int, _DWORD *); // r11 const char *v37; // r2 int v38; // r0 int v39; // r11 void (__fastcall *v40)(int, _DWORD *); // r6 int v41; // r11 void (__fastcall *v42)(int, _DWORD *); // r6 int v43; // r0 const char *v44; // r1 int v45; // r6 int v46; // r0 int v47; // r3 int v48; // r6 void (__fastcall *v49)(int, _DWORD *); // r11 void (__fastcall *v50)(int, _DWORD *); // r11 int v51; // r11 int v52; // r11 bool v53; // r2 int v54; // r0 int v55; // r0 int v56; // r11 bool v57; // r2 int v58; // r0 int v59; // r0 int v60; // r11 void (__fastcall *v61)(int, _DWORD *); // r9 int v62; // r11 int v63; // r0 void (__fastcall *v64)(int, _DWORD *); // r11 int v65; // r11 float v66; // s17 int v67; // r10 void (__fastcall *v68)(int, _DWORD *); // r11 void (__fastcall *v69)(int, _DWORD *); // r3 void (__fastcall *v70)(int, _DWORD *); // r11 int InputNode; // r0 float v72; // r1 int v73; // r11 void (__fastcall *v74)(int, _DWORD *); // r10 int v75; // r10 unsigned int v76; // r3 int v77; // r3 const char *v78; // r11 size_t v79; // r0 const char *v80; // r2 int v81; // r0 int v82; // r11 void (__fastcall *v83)(int, _DWORD *); // r6 int v84; // r11 void (__fastcall *v85)(int, _DWORD *); // r6 int v86; // r2 int v87; // r2 float v88; // s17 int v89; // r6 void (__fastcall *v90)(int, _DWORD *); // r8 void (__fastcall *v91)(int, _DWORD *); // r3 void (__fastcall *v92)(int, _DWORD *); // r8 int *v93; // r0 float v94; // r1 int v95; // r8 void (__fastcall *v96)(int, _DWORD *); // r11 int *v97; // r0 int v98; // r8 EmoteSprite *v99; // r0 CCTextInputNode *v100; // r8 int v101; // r0 float v102; // s15 TextArea *v103; // r6 int v104; // r3 const char *v105; // r2 int v106; // r0 int v107; // r6 void (__fastcall *v108)(int, _DWORD *); // r11 int v109; // r6 void (__fastcall *v110)(int, _DWORD *); // r11 ButtonSprite *v111; // r0 int v112; // r0 int v113; // r10 void (__fastcall *v114)(int, _DWORD *); // r11 const char *v115; // r1 int v116; // r10 int v117; // r0 int v118; // r10 void (__fastcall *v119)(int, _DWORD *); // r11 int v120; // r1 int v121; // r2 int v122; // r3 cocos2d::CCSprite *v123; // r5 int v124; // r6 void (__fastcall *v125)(int, _BYTE *); // r7 char *v127; // [sp+0h] [bp-B4h] char *v128; // [sp+8h] [bp-ACh] float v129; // [sp+10h] [bp-A4h] int v130; // [sp+14h] [bp-A0h] void (__fastcall *v131)(int, _DWORD *); // [sp+1Ch] [bp-98h] int v132; // [sp+1Ch] [bp-98h] void (__fastcall *v133)(int, _DWORD *); // [sp+1Ch] [bp-98h] void (__fastcall *v134)(int, _DWORD *); // [sp+1Ch] [bp-98h] void (__fastcall *v135)(int, _DWORD *); // [sp+1Ch] [bp-98h] int v136; // [sp+1Ch] [bp-98h] void (__fastcall *v137)(int, _DWORD *); // [sp+1Ch] [bp-98h] int v138; // [sp+1Ch] [bp-98h] int v139; // [sp+24h] [bp-90h] float v140[2]; // [sp+28h] [bp-8Ch] BYREF float v141; // [sp+30h] [bp-84h] BYREF float v142; // [sp+34h] [bp-80h] _BYTE v143[8]; // [sp+38h] [bp-7Ch] BYREF int (__fastcall *v144)(int, cocos2d::CCObject *); // [sp+40h] [bp-74h] int v145; // [sp+44h] [bp-70h] int (__fastcall *v146)(NewThreadPopup *, cocos2d::CCObject *); // [sp+48h] [bp-6Ch] int v147; // [sp+4Ch] [bp-68h] _DWORD (*v148)(NewThreadPopup *__hidden, cocos2d::CCObject *); // [sp+50h] [bp-64h] int v149; // [sp+54h] [bp-60h] _DWORD (*v150)(NewThreadPopup *__hidden, cocos2d::CCObject *); // [sp+58h] [bp-5Ch] int v151; // [sp+5Ch] [bp-58h] int (__fastcall *v152)(int, cocos2d::CCObject *); // [sp+60h] [bp-54h] int v153; // [sp+64h] [bp-50h] int (__fastcall *v154)(int, cocos2d::CCObject *); // [sp+68h] [bp-4Ch] int v155; // [sp+6Ch] [bp-48h] int (__fastcall *v156)(int, cocos2d::CCObject *); // [sp+70h] [bp-44h] int v157; // [sp+74h] [bp-40h] char v158; // [sp+78h] [bp-3Ch] BYREF char v159; // [sp+79h] [bp-3Bh] BYREF char *v160; // [sp+80h] [bp-34h] int v161[3]; // [sp+84h] [bp-30h] BYREF int v162; // [sp+90h] [bp-24h] BYREF int v163; // [sp+94h] [bp-20h] int v164; // [sp+98h] [bp-1Ch] _DWORD v165[4]; // [sp+9Ch] [bp-18h] BYREF v165[0] = -1778384896; v130 = cocos2d::CCLayerColor::initWithColor(a1, v165); if ( !v130 ) return v130; *(_DWORD *)(a1 + 536) = a2; std::string::operator=((unsigned __int8 *)(a1 + 540), a4); (*(void (__fastcall **)(int, int))(*(_DWORD *)a1 + 584))(a1, 150); FLAlertLayer::incrementForcePrio((cocos2d::CCObject *)a1); v8 = *(_DWORD *)a1; *(_BYTE *)(a1 + 468) = 1; (*(void (__fastcall **)(int, int))(v8 + 500))(a1, 1); v9 = (cocos2d::CCDirector *)(*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 536))(a1, 1); cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v140); v10 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v141, v140[0] * 0.5, v140[1] * 0.5); v11 = cocos2d::CCLayer::create(v10); v12 = *(_DWORD *)a1; *(_DWORD *)(a1 + 460) = v11; (*(void (__fastcall **)(int, int))(v12 + 228))(a1, v11); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v165, 0.0, 0.0, 80.0, 80.0); v13 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v165); v131 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v165, 420.0, 230.0); v131(v13, v165); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v13 + 92))(v13, &v141); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v13, -2); v15 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"New Message", "goldFont.fnt", v14); *(_DWORD *)(a1 + 568) = v15; (*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 80))(v15, 1060320051); v132 = *(_DWORD *)(a1 + 568); v16 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v132 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, v141, (float)(v142 + 115.0) - 16.0); v16(v132, v165); v17 = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 460) + 228))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 568)); if ( *(int *)(a1 + 536) <= 0 ) { v28 = (cocos2d::CCObject *)cocos2d::CCArray::create(v17); *(_DWORD *)(a1 + 552) = v28; cocos2d::CCObject::retain(v28); v30 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"To:", "goldFont.fnt", v29); v31 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v30 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, 0.0, 0.5); v31(v30, v165); (*(void (__fastcall **)(int, float))(*(_DWORD *)v30 + 80))(v30, 0.5); v32 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v30 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, (float)(v141 - 210.0) + 30.0, (float)(v142 + 115.0) - 45.0); v32(v30, v165); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), v30); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v165, 0.0, 0.0, 40.0, 40.0); v33 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v165); v34 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v165, 320.0, 24.0); v34(v33, v165); v35 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 480); LOWORD(v165[0]) = 13405; BYTE2(v165[0]) = 31; v35(v33, v165); v36 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, v141 + 20.0, (float)(v142 + 115.0) - 45.0); v36(v33, v165); (*(void (__fastcall **)(_DWORD, int, _DWORD))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v33, 0); v38 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Select user", "bigFont.fnt", v37); *(_DWORD *)(a1 + 620) = v38; v39 = v38; v40 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v38 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, 0.0, 0.5); v40(v39, v165); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 620) + 80))(*(_DWORD *)(a1 + 620), 1055286886); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 620) + 512))(*(_DWORD *)(a1 + 620), 120); v41 = *(_DWORD *)(a1 + 620); v42 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v41 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v165, (float)((float)(v141 + 20.0) - 160.0) + 8.0, (float)(v142 + 115.0) - 45.0); v42(v41, v165); v27 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 620), 5); goto LABEL_18; } v18 = *(unsigned __int8 *)(a1 + 540); v19 = v18 & 1; if ( (v18 & 1) == 0 ) { if ( v18 >> 1 ) { v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"To: %s", (const char *)(a1 + 541)); goto LABEL_14; } LABEL_8: v21 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v17); GameLevelManager::tryGetUsername((GameLevelManager *)&v158, v21, *(_DWORD *)(a1 + 536)); if ( (v158 & 1) != 0 ) { v22 = v160; v19 = v130; } else { v22 = &v159; } if ( (v158 & 1) == 0 ) v19 = v130; v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"To: %s", v22); goto LABEL_14; } if ( !*(_DWORD *)(a1 + 544) ) goto LABEL_8; v19 = 0; v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"To: %s", *(const char **)(a1 + 548)); LABEL_14: CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v20); v25 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v24); if ( v19 ) std::string::~string((int)&v158); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v25 + 80))(v25, 1056964608); cocos2d::CCLabelBMFont::limitLabelWidth(v25, 360.0, 0.5, 0.2); v26 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v25 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, v141, (float)(v142 + 115.0) - 36.0); v26(v25, v165); v27 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**(_DWORD **)(a1 + 460) + 228))( *(_DWORD *)(a1 + 460), v25); LABEL_18: v43 = cocos2d::CCMenu::create(v27); *(_DWORD *)(a1 + 444) = v43; (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v43, 10); (*(void (__fastcall **)(_DWORD, void *))(**(_DWORD **)(a1 + 444) + 92))(*(_DWORD *)(a1 + 444), &unk_D2DF00); *(_DWORD *)(a1 + 500) = -1; if ( *(int *)(a1 + 536) <= 0 ) { v45 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v44); (*(void (__fastcall **)(int, int))(*(_DWORD *)v45 + 64))(v45, 1084926635); (*(void (__fastcall **)(int, int))(*(_DWORD *)v45 + 72))(v45, 1053609165); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v45 + 172))(v45, 0); v145 = 0; v144 = NewThreadPopup::onOpenPicker; v46 = CCMenuItemSpriteExtra::create(v45, 0, a1, (int)NewThreadPopup::onOpenPicker, 0); v47 = *(_DWORD *)v46; v48 = v46; *(_BYTE *)(v46 + 320) = 0; v49 = *(void (__fastcall **)(int, _DWORD *))(v47 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v165, 320.0, 24.0); v49(v48, v165); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v48); v50 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v48 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, v141 + 20.0, (float)(v142 + 115.0) - 45.0); v50(v48, v165); } v51 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v44); (*(void (__fastcall **)(int, int))(*(_DWORD *)v51 + 80))(v51, 1061997773); v147 = 0; v146 = NewThreadPopup::onClose; v52 = CCMenuItemSpriteExtra::create(v51, 0, a1, (int)NewThreadPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v52, 1.5); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v52); v133 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v52 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, (float)(v141 - 210.0) + 8.0, (float)(v142 + 115.0) - 8.0); v133(v52, v165); v54 = GameToolbox::createOnOffSprite((GameToolbox *)"threadBtn_dm_001.png", nullptr, v53); *(_DWORD *)(a1 + 572) = v54; (*(void (__fastcall **)(int, int))(*(_DWORD *)v54 + 80))(v54, 1063675494); v55 = *(_DWORD *)(a1 + 572); v149 = 0; v148 = NewThreadPopup::onToggleMode; v56 = CCMenuItemSpriteExtra::create(v55, 0, a1, (int)NewThreadPopup::onToggleMode, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v56 + 36))(v56, 0); CCMenuItemSpriteExtra::setSizeMult(v56, 1.2); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v56); v134 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v56 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, (float)(v141 - 210.0) + 30.0, (float)(v142 - 115.0) + 22.0); v134(v56, v165); v58 = GameToolbox::createOnOffSprite((GameToolbox *)"threadBtn_groupOn_001.png", nullptr, v57); *(_DWORD *)(a1 + 576) = v58; (*(void (__fastcall **)(int, int))(*(_DWORD *)v58 + 80))(v58, 1063675494); v59 = *(_DWORD *)(a1 + 576); v150 = NewThreadPopup::onToggleMode; v151 = 0; v60 = CCMenuItemSpriteExtra::create(v59, 0, a1, (int)NewThreadPopup::onToggleMode, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v60 + 36))(v60, 1); CCMenuItemSpriteExtra::setSizeMult(v60, 1.2); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v60); v61 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v60 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, (float)(v141 - 210.0) + 68.0, (float)(v142 - 115.0) + 22.0); v61(v60, v165); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v165, 0.0, 0.0, 40.0, 40.0); v62 = cocos2d::extension::CCScale9Sprite::create("GJ_button_04.png", v165); v135 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v62 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v165, 29.0, 29.0); v135(v62, v165); (*(void (__fastcall **)(int, int))(*(_DWORD *)v62 + 80))(v62, 1063675494); *(_DWORD *)(a1 + 592) = v62; v153 = 0; v152 = NewThreadPopup::onPickIcon; v63 = CCMenuItemSpriteExtra::create(v62, 0, a1, (int)NewThreadPopup::onPickIcon, 0); *(_DWORD *)(a1 + 596) = v63; CCMenuItemSpriteExtra::setSizeMult(v63, 1.2); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 596)); v136 = *(_DWORD *)(a1 + 596); v64 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v136 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, (float)(v141 - 210.0) + 106.0, (float)(v142 - 115.0) + 22.0); v64(v136, v165); NewThreadPopup::refreshIconSlot((NewThreadPopup *)a1); memset(v161, 0, sizeof(v161)); std::string::__init(v161, "Messages", 8u); v162 = 0; v163 = 0; v164 = 0; std::string::__init( &v162, "Direct Message: Private chat with another user. Friends are instant, non-friends get a message request.\n" "Group Chat: Up to 10 users. The users you pick get an invite and join when they accept.", 0xCFu); v65 = InfoAlertButton::create((char *)v161, (int)&v162, 1056964608); std::string::~string((int)&v162); std::string::~string((int)v161); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v65); v137 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v65 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, v141 - 135.0, (float)(v142 + 115.0) - 16.0); v137(v65, v165); v66 = (float)(v142 + 115.0) - 78.0; *(float *)(a1 + 612) = v66; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v165, 0.0, 0.0, 40.0, 40.0); v67 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v165); v68 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v67 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v165, 360.0, 26.0); v68(v67, v165); v69 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v67 + 480); LOWORD(v165[0]) = 13405; BYTE2(v165[0]) = 31; v69(v67, v165); v70 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v67 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, v141, v66); v70(v67, v165); (*(void (__fastcall **)(_DWORD, int, _DWORD))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v67, 0); *(_DWORD *)(a1 + 604) = v67; InputNode = GameToolbox::createInputNode( (GameToolbox *)0x439F0000, 26.0, COERCE_FLOAT("Group name"), (const char *)&dword_14, (int)v127); v72 = v141 - 15.0; *(_DWORD *)(a1 + 632) = InputNode; v73 = InputNode; v74 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)InputNode + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, v72, v66); v74(v73, v165); v75 = *(_DWORD *)(a1 + 632); v162 = 0; v163 = 0; v164 = 0; std::string::__init( &v162, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~", 0x61u); CCTextInputNode::setAllowedChars(v75, (unsigned __int8 *)&v162); std::string::~string((int)&v162); *(_DWORD *)(*(_DWORD *)(a1 + 632) + 420) = a1 + 440; v76 = *a3; if ( (v76 & 1) != 0 ) { if ( !*((_DWORD *)a3 + 1) ) goto LABEL_27; v77 = *(_DWORD *)(a1 + 632); v78 = *((const char **)a3 + 2); } else { if ( !(v76 >> 1) ) goto LABEL_27; v77 = *(_DWORD *)(a1 + 632); v78 = (const char *)(a3 + 1); } v138 = v77; v162 = 0; v163 = 0; v164 = 0; v79 = strlen(v78); std::string::__init(&v162, v78, v79); CCTextInputNode::setString(v138, (int)&v162); std::string::~string((int)&v162); LABEL_27: (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 632), 5); v81 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"64", "chatFont.fnt", v80); *(_DWORD *)(a1 + 624) = v81; v82 = v81; v83 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v81 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, 1.0, 0.5); v83(v82, v165); v84 = *(_DWORD *)(a1 + 624); v85 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v84 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, (float)(v141 + 180.0) - 10.0, v66); v85(v84, v165); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 624), 6); v86 = *a3; if ( (v86 & 1) != 0 ) v87 = *((_DWORD *)a3 + 1); else v87 = v86 >> 1; NewThreadPopup::updateCharCount((NewThreadPopup *)a1, *(cocos2d::CCLabelBMFont **)(a1 + 624), v87, 20); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v165, 0.0, 0.0, 80.0, 80.0); v88 = (float)(v66 - 21.0) - 45.0; v89 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v165); v90 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v89 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v165, 360.0, 90.0); v90(v89, v165); v91 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v89 + 480); LOWORD(v165[0]) = 13405; BYTE2(v165[0]) = 31; v91(v89, v165); v92 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v89 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, v141, v88); v92(v89, v165); (*(void (__fastcall **)(_DWORD, int, _DWORD))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v89, 0); *(_DWORD *)(a1 + 608) = v89; *(float *)(a1 + 616) = v88; v93 = CCTextInputNode::create( (CCTextInputNode *)0x43AE0000, 80.0, "Message", "Thonburi", (const char *)&dword_18, nullptr, v128); v94 = v141; *(_DWORD *)(a1 + 636) = v93; *((_BYTE *)v93 + 432) = 0; v95 = *(_DWORD *)(a1 + 636); v96 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v95 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, v94, v88); v96(v95, v165); v97 = CCTextInputNode::setUnicodeText(*(int **)(a1 + 636), 1); v98 = *(_DWORD *)(a1 + 636); v99 = (EmoteSprite *)(17 * EmoteSprite::maxEmotesMessage((EmoteSprite *)v97) + 500); *(_DWORD *)(v98 + 424) = v99; v100 = *(CCTextInputNode **)(a1 + 636); v101 = EmoteSprite::maxEmotesMessage(v99); CCTextInputNode::setParseEmotes(v100, v101); CCTextInputNode::setAllowNewlines(*(_DWORD *)(a1 + 636), 1); *(_DWORD *)(*(_DWORD *)(a1 + 636) + 420) = a1 + 440; LOWORD(v139) = 27843; BYTE2(v139) = 65; CCTextInputNode::setLabelPlaceholderColor(*(_DWORD *)(a1 + 636), v139); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 636), 5); v162 = 0; *(_DWORD *)(a1 + 640) = 1134886912; v163 = 0; v164 = 0; std::string::__init(&v162, &unk_B6B226, 0); v102 = *(float *)(a1 + 640); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, 0.0, 1.0); v103 = (TextArea *)TextArea::create( (int)&v162, "chatFont.fnt", 1065353216, COERCE_INT(v102 / 0.75), (const cocos2d::CCPoint *)v165, 1101004800, 1, 0); std::string::~string((int)&v162); v104 = *(_DWORD *)v103; *((_BYTE *)v103 + 509) = 1; (*(void (__fastcall **)(TextArea *, int))(v104 + 80))(v103, 1061158912); CCTextInputNode::addTextArea(*(int **)(a1 + 636), v103); CCTextInputNode::enableTextScroll(*(float **)(a1 + 636)); v106 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"500", "chatFont.fnt", v105); *(_DWORD *)(a1 + 628) = v106; v107 = v106; v108 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v106 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, 1.0, 0.5); v108(v107, v165); v109 = *(_DWORD *)(a1 + 628); v110 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v109 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, (float)(v141 + 210.0) - 10.0, (float)(v142 + 115.0) - 14.0); v110(v109, v165); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 628), 6); NewThreadPopup::updateCharCount((NewThreadPopup *)a1, *(cocos2d::CCLabelBMFont **)(a1 + 628), 0, 500); v111 = ButtonSprite::create( (ButtonSprite *)"Send", (const char *)&dword_50, 0, 0.6, 1, "bigFont.fnt", "GJ_button_01.png", (const char *)0x41E00000, v129); v155 = 0; v154 = NewThreadPopup::onSend; v112 = CCMenuItemSpriteExtra::create((int)v111, 0, a1, (int)NewThreadPopup::onSend, 0); *(_DWORD *)(a1 + 560) = v112; CCMenuItemSpriteExtra::setSizeMult(v112, 1.1); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 560)); v113 = *(_DWORD *)(a1 + 560); v114 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v113 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, v141, (float)(v142 - 115.0) + 22.0); v114(v113, v165); v116 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plusBtn_001.png", v115); (*(void (__fastcall **)(int, int))(*(_DWORD *)v116 + 80))(v116, 1056964608); v157 = 0; v156 = NewThreadPopup::onShareLevel; v117 = CCMenuItemSpriteExtra::create(v116, 0, a1, (int)NewThreadPopup::onShareLevel, 0); *(_DWORD *)(a1 + 600) = v117; CCMenuItemSpriteExtra::setSizeMult(v117, 1.3); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 600)); v118 = *(_DWORD *)(a1 + 600); v119 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v118 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, (float)(v141 + 210.0) - 24.0, (float)(v142 - 115.0) + 22.0); v119(v118, v165); v162 = 0; v163 = 0; v164 = 0; std::string::__init(&v162, "easy", 4u); v123 = EmoteSprite::createWithName((int)&v162, v120, v121, v122); std::string::~string((int)&v162); EmoteSprite::fitToHeight(v123, 18.0, 0.0); v165[1] = 0; v165[0] = NewThreadPopup::onEmotes; v124 = CCMenuItemSpriteExtra::create((int)v123, 0, a1, (int)NewThreadPopup::onEmotes, 0); CCMenuItemSpriteExtra::setSizeMult(v124, 1.4); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v124); v125 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v124 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v143, (float)(v141 + 210.0) - 57.0, (float)(v142 - 115.0) + 22.0); v125(v124, v143); NewThreadPopup::applyMode((NewThreadPopup *)a1); return v130; }
GD Web Decomp Icon

GD Web Decomp

Raw Source