// // NewThreadPopup::init from 0xc7d6a0 to 0xc7e9dc (4924 bytes) // // 2 xrefs: // > NewThreadPopup::create @ 0xc7ec44 // > @ 0xdc0c0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:05:37 +0000 // __int64 __fastcall NewThreadPopup::init(__int64 a1, int a2, unsigned __int8 *a3, __int64 a4) { unsigned __int8 v7; // w0 int v8; // w22 unsigned int v9; // w25 const void *v10; // x1 size_t v11; // x2 cocos2d::CCDirector *v12; // x0 cocos2d::CCDirector *v13; // x0 cocos2d::CCLayer *v14; // x0 __int64 v15; // x0 __int64 v16; // x27 const char *v17; // x2 __int64 v18; // x0 __int64 v19; // x27 void (__fastcall *v20)(__int64, char *); // x28 cocos2d::CCArray *v21; // x0 GameLevelManager *v22; // x0 const char *v23; // x1 cocos2d::CCString *v24; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v26; // x2 cocos2d::CCLabelBMFont *v27; // x21 void (__fastcall *v28)(cocos2d::CCLabelBMFont *, char *); // x22 cocos2d::CCMenu *v29; // x0 __int64 v30; // x0 int v31; // w0 __int64 v32; // x1 __int64 v33; // x22 __int64 v34; // x22 void (__fastcall *v35)(__int64, char *); // x28 __int64 v36; // x0 __int64 v37; // x22 void (__fastcall *v38)(__int64, char *); // x28 __int64 v39; // x0 __int64 v40; // x22 void (__fastcall *v41)(__int64, char *); // x27 __int64 v42; // x22 void (__fastcall *v43)(__int64, char *); // x27 __int64 v44; // x0 __int64 v45; // x22 void (__fastcall *v46)(__int64, char *); // x27 __int64 v47; // x22 void (__fastcall *v48)(__int64, char *); // x26 float v49; // s9 __int64 v50; // x22 void (__fastcall *v51)(__int64, char *); // x26 void (__fastcall *v52)(__int64, char *); // x2 void (__fastcall *v53)(__int64, char *); // x26 int v54; // w2 __int64 v55; // x3 const char *v56; // x4 __int64 InputNode; // x22 float v58; // s2 void (__fastcall *v59)(__int64, char *); // x26 __int64 v60; // x22 int v61; // w1 _QWORD *v62; // x22 const char *v63; // x1 size_t v64; // x0 const char *v65; // x2 __int64 v66; // x27 void (__fastcall *v67)(__int64, char *); // x28 __int64 v68; // x27 void (__fastcall *v69)(__int64, char *); // x28 __int64 v70; // x2 float v71; // s9 __int64 v72; // x24 void (__fastcall *v73)(__int64, char *); // x27 void (__fastcall *v74)(__int64, char *); // x2 void (__fastcall *v75)(__int64, char *); // x27 const char *v76; // x4 __int64 v77; // x0 __int64 v78; // x24 void (__fastcall *v79)(__int64, char *); // x27 __int64 *v80; // x0 __int64 v81; // x24 EmoteSprite *v82; // x0 CCTextInputNode *v83; // x24 int v84; // w0 float v85; // s9 TextArea *v86; // x24 __int64 v87; // x1 const char *v88; // x2 __int64 v89; // x22 void (__fastcall *v90)(__int64, char *); // x24 __int64 v91; // x22 void (__fastcall *v92)(__int64, char *); // x24 const char *v93; // x6 __int64 v94; // x0 __int64 v95; // x0 __int64 v96; // x22 void (__fastcall *v97)(__int64, char *); // x24 const char *v98; // x1 __int64 v99; // x22 __int64 v100; // x0 __int64 v101; // x22 void (__fastcall *v102)(__int64, char *); // x24 cocos2d::CCSprite *v103; // x21 long double v104; // q1 __int64 v105; // x21 void (__fastcall *v106)(__int64, char *); // x22 cocos2d::CCDictionary **v108; // x0 __int64 v109; // x21 _BYTE *v110; // x21 __int64 v111; // x1 void (__fastcall *v112)(_BYTE *, char *); // x22 void (__fastcall *v113)(_BYTE *, char *); // x22 cocos2d::CCObject *v114; // x0 const char *v115; // x2 __int64 v116; // x21 void (__fastcall *v117)(__int64, char *); // x22 void (__fastcall *v118)(__int64, char *); // x22 __int64 v119; // x21 void (__fastcall *v120)(__int64, char *); // x22 void (__fastcall *v121)(__int64, char *); // x2 void (__fastcall *v122)(__int64, char *); // x22 const char *v123; // x2 __int64 v124; // x21 void (__fastcall *v125)(__int64, char *); // x22 __int64 v126; // x21 void (__fastcall *v127)(__int64, char *); // x22 void (__fastcall *v128)(__int64, char *); // [xsp+A0h] [xbp+A0h] char *v130; // [xsp+A8h] [xbp+A8h] int v131; // [xsp+B8h] [xbp+B8h] __int64 v132; // [xsp+C0h] [xbp+C0h] BYREF float v133; // [xsp+C8h] [xbp+C8h] BYREF float v134; // [xsp+CCh] [xbp+CCh] char v135; // [xsp+D0h] [xbp+D0h] BYREF char v136; // [xsp+D1h] [xbp+D1h] char v137; // [xsp+D2h] [xbp+D2h] char v138; // [xsp+D3h] [xbp+D3h] __int64 v139[2]; // [xsp+E0h] [xbp+E0h] BYREF void *v140; // [xsp+F0h] [xbp+F0h] __int64 v141[2]; // [xsp+F8h] [xbp+F8h] BYREF void *v142; // [xsp+108h] [xbp+108h] __int64 v143; // [xsp+110h] [xbp+110h] BYREF __int64 v144; // [xsp+118h] [xbp+118h] void *v145; // [xsp+120h] [xbp+120h] v135 = 0; v136 = 0; v137 = 0; v138 = -106; v7 = cocos2d::CCLayerColor::initWithColor(a1, &v135); v8 = v7; v9 = v7; if ( !v7 ) return v9; *(_DWORD *)(a1 + 696) = a2; if ( a1 + 704 != a4 ) { if ( (*(_BYTE *)a4 & 1) != 0 ) { v10 = *(const void **)(a4 + 16); v11 = *(_QWORD *)(a4 + 8); } else { v10 = (const void *)(a4 + 1); v11 = *(_BYTE *)a4 >> 1; } std::string::assign((__int64 *)(a1 + 704), v10, v11); } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 4294967190LL); FLAlertLayer::incrementForcePrio((cocos2d::CCObject *)a1); *(_BYTE *)(a1 + 596) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); v12 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize(&v132, v13); v14 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v133, *(float *)&v132 * 0.5, *((float *)&v132 + 1) * 0.5); v15 = cocos2d::CCLayer::create(v14); *(_QWORD *)(a1 + 584) = v15; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v15); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v135, 0.0, 0.0, 80.0, 80.0); v16 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", &v135); v128 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v16 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v135, 420.0, 230.0); v128(v16, &v135); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v16 + 184LL))(v16, &v133); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v16, 4294967294LL); v18 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"New Message", "goldFont.fnt", v17); *(_QWORD *)(a1 + 760) = v18; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.7); v19 = *(_QWORD *)(a1 + 760); v20 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v19 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v133, (float)(v134 + 115.0) - 16.0); v20(v19, &v135); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 760)); v21 = (cocos2d::CCArray *)*(unsigned int *)(a1 + 696); if ( (int)v21 <= 0 ) { v114 = (cocos2d::CCObject *)cocos2d::CCArray::create(v21); *(_QWORD *)(a1 + 728) = v114; cocos2d::CCObject::retain(v114); v116 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"To:", "goldFont.fnt", v115); v117 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v116 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, 0.0, 0.5); v117(v116, &v135); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v116 + 160LL))(v116, 0.5); v118 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v116 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, (float)(v133 - 210.0) + 30.0, (float)(v134 + 115.0) - 45.0); v118(v116, &v135); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v116); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v135, 0.0, 0.0, 40.0, 40.0); v119 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", &v135); v120 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v119 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v135, 320.0, 24.0); v120(v119, &v135); v121 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v119 + 960LL); v135 = 93; v136 = 52; v137 = 31; v121(v119, &v135); v122 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v119 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v133 + 20.0, (float)(v134 + 115.0) - 45.0); v122(v119, &v135); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v119, 0); v124 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Select user", "bigFont.fnt", v123); *(_QWORD *)(a1 + 856) = v124; v125 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v124 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, 0.0, 0.5); v125(v124, &v135); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 856) + 160LL))(*(_QWORD *)(a1 + 856), 0.45); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 856) + 1024LL))(*(_QWORD *)(a1 + 856), 120); v126 = *(_QWORD *)(a1 + 856); v127 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v126 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v135, (float)((float)(v133 + 20.0) - 160.0) + 8.0, (float)(v134 + 115.0) - 45.0); v127(v126, &v135); v29 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 856), 5); goto LABEL_15; } if ( (*(_BYTE *)(a1 + 704) & 1) != 0 ) { v22 = *(GameLevelManager **)(a1 + 712); if ( v22 ) { v23 = *(const char **)(a1 + 720); v8 = 0; LABEL_10: v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"To: %s", v23); goto LABEL_11; } } else { v22 = (GameLevelManager *)((int)*(unsigned __int8 *)(a1 + 704) >> 1); if ( (_DWORD)v22 ) { v8 = 0; v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"To: %s", (const char *)(a1 + 705)); goto LABEL_11; } } v108 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v22); GameLevelManager::tryGetUsername(v139, v108, *(_DWORD *)(a1 + 696)); v23 = (char *)v139 + 1; if ( (v139[0] & 1) == 0 ) goto LABEL_10; v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"To: %s", (const char *)v140); LABEL_11: CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v24); v27 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v26); if ( v8 && (v139[0] & 1) != 0 ) operator delete(v140); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v27 + 160LL))(v27, 0.5); cocos2d::CCLabelBMFont::limitLabelWidth(v27, 360.0, 0.5, 0.2); v28 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v27 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v133, (float)(v134 + 115.0) - 36.0); v28(v27, &v135); v29 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v27); LABEL_15: v30 = cocos2d::CCMenu::create(v29); *(_QWORD *)(a1 + 552) = v30; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v30, 10); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 184LL))(*(_QWORD *)(a1 + 552), &unk_155EE20); v31 = *(_DWORD *)(a1 + 696); v32 = 0xFFFFFFFFLL; *(_DWORD *)(a1 + 640) = -1; if ( v31 <= 0 ) { v109 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"whiteSquare60_001.png", (const char *)0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v109 + 128LL))(v109, 5.3333); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v109 + 144LL))(v109, 0.4); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v109 + 344LL))(v109, 0); v110 = (_BYTE *)CCMenuItemSpriteExtra::create(v109, 0, a1, (__int64)NewThreadPopup::onOpenPicker, 0); v111 = *(_QWORD *)v110; v110[408] = 0; v112 = *(void (__fastcall **)(_BYTE *, char *))(v111 + 320); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v135, 320.0, 24.0); v112(v110, &v135); (*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v110); v113 = *(void (__fastcall **)(_BYTE *, char *))(*(_QWORD *)v110 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v133 + 20.0, (float)(v134 + 115.0) - 45.0); v113(v110, &v135); } v33 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", (const char *)v32); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v33 + 160LL))(v33, 0.8); v34 = CCMenuItemSpriteExtra::create(v33, 0, a1, (__int64)NewThreadPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v34, 1.5); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v34); v35 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v34 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, (float)(v133 - 210.0) + 8.0, (float)(v134 + 115.0) - 8.0); v35(v34, &v135); v36 = GameToolbox::createOnOffSprite((GameToolbox *)"threadBtn_dm_001.png", nullptr); *(_QWORD *)(a1 + 768) = v36; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v36 + 160LL))(v36, 0.9); v37 = CCMenuItemSpriteExtra::create(*(_QWORD *)(a1 + 768), 0, a1, (__int64)NewThreadPopup::onToggleMode, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v37 + 72LL))(v37, 0); CCMenuItemSpriteExtra::setSizeMult(v37, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v37); v38 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v37 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, (float)(v133 - 210.0) + 30.0, (float)(v134 - 115.0) + 22.0); v38(v37, &v135); v39 = GameToolbox::createOnOffSprite((GameToolbox *)"threadBtn_groupOn_001.png", nullptr); *(_QWORD *)(a1 + 776) = v39; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v39 + 160LL))(v39, 0.9); v40 = CCMenuItemSpriteExtra::create(*(_QWORD *)(a1 + 776), 0, a1, (__int64)NewThreadPopup::onToggleMode, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v40 + 72LL))(v40, 1); CCMenuItemSpriteExtra::setSizeMult(v40, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v40); v41 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v40 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, (float)(v133 - 210.0) + 68.0, (float)(v134 - 115.0) + 22.0); v41(v40, &v135); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v135, 0.0, 0.0, 40.0, 40.0); v42 = cocos2d::extension::CCScale9Sprite::create("GJ_button_04.png", &v135); v43 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v42 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v135, 29.0, 29.0); v43(v42, &v135); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v42 + 160LL))(v42, 0.9); *(_QWORD *)(a1 + 808) = v42; v44 = CCMenuItemSpriteExtra::create(v42, 0, a1, (__int64)NewThreadPopup::onPickIcon, 0); *(_QWORD *)(a1 + 816) = v44; CCMenuItemSpriteExtra::setSizeMult(v44, 1.2); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 456LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 816)); v45 = *(_QWORD *)(a1 + 816); v46 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v45 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, (float)(v133 - 210.0) + 106.0, (float)(v134 - 115.0) + 22.0); v46(v45, &v135); NewThreadPopup::refreshIconSlot((NewThreadPopup *)a1); v141[0] = 0; v141[1] = 0; v142 = nullptr; std::string::__init(v141, "Messages", 8u); v143 = 0; v144 = 0; v145 = nullptr; std::string::__init( &v143, "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); v47 = InfoAlertButton::create((char *)v141, (char *)&v143, 0.5); if ( (v143 & 1) != 0 ) operator delete(v145); if ( (v141[0] & 1) != 0 ) operator delete(v142); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v47); v48 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v47 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v133 - 135.0, (float)(v134 + 115.0) - 16.0); v48(v47, &v135); v49 = (float)(v134 + 115.0) - 78.0; *(float *)(a1 + 848) = v49; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v135, 0.0, 0.0, 40.0, 40.0); v50 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", &v135); v51 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v50 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v135, 360.0, 26.0); v51(v50, &v135); v52 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v50 + 960LL); v135 = 93; v136 = 52; v137 = 31; v52(v50, &v135); v53 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v50 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v133, v49); v53(v50, &v135); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v50, 0); *(_QWORD *)(a1 + 832) = v50; InputNode = GameToolbox::createInputNode( (GameToolbox *)"Group name", 318.0, 26.0, (const char *)&dword_14, v54, v55, v56); v58 = v133; *(_QWORD *)(a1 + 880) = InputNode; v59 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)InputNode + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v58 - 15.0, v49); v59(InputNode, &v135); v60 = *(_QWORD *)(a1 + 880); v143 = 0; v144 = 0; v145 = nullptr; std::string::__init( &v143, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~", 0x61u); CCTextInputNode::setAllowedChars(v60, (__int64)&v143); if ( (v143 & 1) != 0 ) operator delete(v145); *(_QWORD *)(*(_QWORD *)(a1 + 880) + 584LL) = a1 + 544; v61 = *a3; if ( (v61 & 1) != 0 ) { if ( *((_QWORD *)a3 + 1) ) { v62 = *(_QWORD **)(a1 + 880); v63 = *((const char **)a3 + 2); goto LABEL_26; } } else if ( v61 >> 1 ) { v62 = *(_QWORD **)(a1 + 880); v63 = (const char *)(a3 + 1); LABEL_26: v130 = (char *)v63; v143 = 0; v144 = 0; v145 = nullptr; v64 = strlen(v63); std::string::__init(&v143, v130, v64); CCTextInputNode::setString(v62, (char *)&v143); if ( (v143 & 1) != 0 ) operator delete(v145); } (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 880), 5); v66 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"64", "chatFont.fnt", v65); *(_QWORD *)(a1 + 864) = v66; v67 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v66 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, 1.0, 0.5); v67(v66, &v135); v68 = *(_QWORD *)(a1 + 864); v69 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v68 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, (float)(v133 + 180.0) - 10.0, v49); v69(v68, &v135); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 864), 6); LODWORD(v70) = *a3 >> 1; if ( (*a3 & 1) != 0 ) v70 = *((_QWORD *)a3 + 1); NewThreadPopup::updateCharCount((NewThreadPopup *)a1, *(cocos2d::CCLabelBMFont **)(a1 + 864), v70, 20); v71 = (float)(v49 - 21.0) - 45.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v135, 0.0, 0.0, 80.0, 80.0); v72 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", &v135); v73 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v72 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v135, 360.0, 90.0); v73(v72, &v135); v74 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v72 + 960LL); v135 = 93; v136 = 52; v137 = 31; v74(v72, &v135); v75 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v72 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v133, v71); v75(v72, &v135); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v72, 0); *(_QWORD *)(a1 + 840) = v72; *(float *)(a1 + 852) = v71; v77 = CCTextInputNode::create( (CCTextInputNode *)"Message", 348.0, 80.0, "Thonburi", (const char *)&off_18, nullptr, v76); *(_QWORD *)(a1 + 888) = v77; *(_BYTE *)(v77 + 608) = 0; v78 = *(_QWORD *)(a1 + 888); v79 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v78 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v133, v71); v79(v78, &v135); v80 = CCTextInputNode::setUnicodeText(*(__int64 **)(a1 + 888), 1); v81 = *(_QWORD *)(a1 + 888); v82 = (EmoteSprite *)(17 * (unsigned int)EmoteSprite::maxEmotesMessage((EmoteSprite *)v80) + 500); *(_DWORD *)(v81 + 592) = (_DWORD)v82; v83 = *(CCTextInputNode **)(a1 + 888); v84 = EmoteSprite::maxEmotesMessage(v82); CCTextInputNode::setParseEmotes(v83, v84); CCTextInputNode::setAllowNewlines(*(_QWORD *)(a1 + 888), 1); LOBYTE(v131) = -61; *(_QWORD *)(*(_QWORD *)(a1 + 888) + 584LL) = a1 + 544; *(_WORD *)((char *)&v131 + 1) = 16748; CCTextInputNode::setLabelPlaceholderColor(*(_QWORD *)(a1 + 888), v131); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 888), 5); v143 = 0; v144 = 0; v145 = nullptr; *(_DWORD *)(a1 + 896) = 1134886912; std::string::__init(&v143, &byte_11B8890, 0); v85 = *(float *)(a1 + 896) / 0.75; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, 0.0, 1.0); v86 = (TextArea *)TextArea::create( (char *)&v143, "chatFont.fnt", (const cocos2d::CCPoint *)&v135, 1, 0, 1.0, v85, 20.0); if ( (v143 & 1) != 0 ) operator delete(v145); v87 = *(_QWORD *)v86; *((_BYTE *)v86 + 597) = 1; (*(void (__fastcall **)(TextArea *, float))(v87 + 160))(v86, 0.75); CCTextInputNode::addTextArea(*(CCTextInputNode **)(a1 + 888), v86); CCTextInputNode::enableTextScroll(*(CCTextInputNode **)(a1 + 888)); v89 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"500", "chatFont.fnt", v88); *(_QWORD *)(a1 + 872) = v89; v90 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v89 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, 1.0, 0.5); v90(v89, &v135); v91 = *(_QWORD *)(a1 + 872); v92 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v91 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, (float)(v133 + 210.0) - 10.0, (float)(v134 + 115.0) - 14.0); v92(v91, &v135); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 872), 6); NewThreadPopup::updateCharCount((NewThreadPopup *)a1, *(cocos2d::CCLabelBMFont **)(a1 + 872), 0, 500); v94 = ButtonSprite::create( (ButtonSprite *)"Send", (const char *)off_50, 0, 1, 0.6, "bigFont.fnt", "GJ_button_01.png", v93, 28.0); v95 = CCMenuItemSpriteExtra::create(v94, 0, a1, (__int64)NewThreadPopup::onSend, 0); *(_QWORD *)(a1 + 744) = v95; CCMenuItemSpriteExtra::setSizeMult(v95, 1.1); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 456LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 744)); v96 = *(_QWORD *)(a1 + 744); v97 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v96 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v133, (float)(v134 - 115.0) + 22.0); v97(v96, &v135); v99 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plusBtn_001.png", v98); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v99 + 160LL))(v99, 0.5); v100 = CCMenuItemSpriteExtra::create(v99, 0, a1, (__int64)NewThreadPopup::onShareLevel, 0); *(_QWORD *)(a1 + 824) = v100; CCMenuItemSpriteExtra::setSizeMult(v100, 1.3); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 456LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 824)); v101 = *(_QWORD *)(a1 + 824); v102 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v101 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, (float)(v133 + 210.0) - 24.0, (float)(v134 - 115.0) + 22.0); v102(v101, &v135); v143 = 0; v144 = 0; v145 = nullptr; std::string::__init(&v143, "easy", 4u); v103 = EmoteSprite::createWithName((char *)&v143); if ( (v143 & 1) != 0 ) operator delete(v145); LODWORD(v104) = 0; EmoteSprite::fitToHeight(v103, 18.0, v104); v105 = CCMenuItemSpriteExtra::create((__int64)v103, 0, a1, (__int64)NewThreadPopup::onEmotes, 0); CCMenuItemSpriteExtra::setSizeMult(v105, 1.4); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v105); v106 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v105 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, (float)(v133 + 210.0) - 57.0, (float)(v134 - 115.0) + 22.0); v106(v105, &v135); NewThreadPopup::applyMode((NewThreadPopup *)a1); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source