// // IDNameBrowserPopup::init from 0x7923c8 to 0x793186 (3518 bytes) // // 1 xrefs: // > IDNameBrowserPopup::create @ 0x7932e8 // // 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:59:43 +0000 // GameManager *__fastcall IDNameBrowserPopup::init(cocos2d::CCObject *a1, int a2, int a3, int a4) { GameManager *v8; // r0 GameManager *v9; // r0 unsigned int v10; // r3 int v11; // r3 cocos2d::CCDirector *v12; // r0 cocos2d::CCLayer *v13; // r0 int v14; // r0 int v15; // r3 int v16; // r6 void (__fastcall *v17)(int, _DWORD *); // r10 const char *v18; // r6 size_t v19; // r0 const char *v20; // r2 cocos2d::CCLabelBMFont *v21; // r0 int v22; // r6 void (__fastcall *v23)(int, _DWORD *); // r7 cocos2d::CCMenu *v24; // r0 int v25; // r0 const char *v26; // r1 int v27; // r6 int v28; // r6 void (__fastcall *v29)(int, _DWORD *); // r7 float v30; // s16 const char *v31; // r2 int v32; // r6 void (__fastcall *v33)(int, _DWORD *); // r7 void (__fastcall *v34)(int, _DWORD *); // r7 int v35; // r9 void (__fastcall *v36)(int, _DWORD *); // r6 void (__fastcall *v37)(int, _DWORD *); // r8 int *v38; // r0 float v39; // s15 int *v40; // r8 void (__fastcall *v41)(int *, _DWORD *); // r9 int v42; // r9 ButtonSprite *v43; // r0 int v44; // r0 int v45; // r8 void (__fastcall *v46)(int, _DWORD *); // r9 float v47; // s17 float v48; // s16 int v49; // r7 void (__fastcall *v50)(int, _DWORD *); // r2 void (__fastcall *v51)(int, _DWORD *); // r9 int v52; // r1 int v53; // r2 int v54; // r3 int *v55; // r7 void (__fastcall *v56)(int *, _DWORD *); // r9 ScrollableContentLayer *v57; // r7 const char *v58; // r2 int v59; // r0 int v60; // r0 void (__fastcall *v61)(int, _DWORD *); // r2 int v62; // r7 void (__fastcall *v63)(int, _DWORD *); // r9 int v64; // r7 void (__fastcall *v65)(int, _DWORD *); // r8 void (__fastcall *v66)(int, _DWORD *); // r8 int *v67; // r0 int *v68; // r6 void (__fastcall *v69)(int *, int); // r8 int v70; // r0 int v71; // r7 const char *v72; // r1 int v73; // r6 int v74; // r7 const cocos2d::CCPoint *v75; // r10 void (__fastcall *v76)(int, _DWORD *); // r9 int v77; // r11 const char *v78; // r1 cocos2d::CCSprite *v79; // r7 int v80; // r7 const cocos2d::CCPoint *v81; // r11 int v82; // r10 const char *v83; // r1 const char *v84; // r1 int v85; // r6 int v86; // r6 void (__fastcall *v87)(int, _DWORD *); // r7 int v88; // r6 void (__fastcall *v89)(int, _DWORD *); // r7 void (__fastcall *v90)(int, _DWORD *); // r7 int *v91; // r0 int *v92; // r7 void (__fastcall *v93)(int *, int); // r8 int v94; // r0 int v95; // r7 ButtonSprite *v96; // r0 int v97; // r6 void (__fastcall *v98)(int, _BYTE *); // r7 const char *v99; // r2 int v100; // r0 int v101; // r6 void (__fastcall *v102)(int, _BYTE *); // r7 int v103; // r0 void (__fastcall *v104)(int, _BYTE *); // r3 int v105; // r6 void (__fastcall *v106)(int, _BYTE *); // r7 char *v108; // [sp+8h] [bp-BCh] char *v109; // [sp+8h] [bp-BCh] char *v110; // [sp+8h] [bp-BCh] float v111; // [sp+10h] [bp-B4h] float v112; // [sp+10h] [bp-B4h] GameManager *v113; // [sp+18h] [bp-ACh] void (__fastcall *v114)(int, _DWORD *); // [sp+20h] [bp-A4h] int v115; // [sp+28h] [bp-9Ch] int v116; // [sp+2Ch] [bp-98h] int v117; // [sp+30h] [bp-94h] float v118[2]; // [sp+34h] [bp-90h] BYREF float v119; // [sp+3Ch] [bp-88h] BYREF float v120; // [sp+40h] [bp-84h] float v121[2]; // [sp+44h] [bp-80h] BYREF _BYTE v122[8]; // [sp+4Ch] [bp-78h] BYREF int (__fastcall *v123)(IDNameBrowserPopup *, cocos2d::CCObject *); // [sp+54h] [bp-70h] int v124; // [sp+58h] [bp-6Ch] _DWORD (*v125)(IDNameBrowserPopup *__hidden, cocos2d::CCObject *); // [sp+5Ch] [bp-68h] int v126; // [sp+60h] [bp-64h] GameManager *(__fastcall *v127)(IDNameBrowserPopup *, cocos2d::CCObject *, const char *, int); // [sp+64h] [bp-60h] int v128; // [sp+68h] [bp-5Ch] _DWORD v129[2]; // [sp+6Ch] [bp-58h] BYREF _DWORD v130[2]; // [sp+74h] [bp-50h] BYREF int v131[2]; // [sp+7Ch] [bp-48h] BYREF cocos2d::CCLabelBMFont *v132; // [sp+84h] [bp-40h] int v133[3]; // [sp+88h] [bp-3Ch] BYREF int v134[3]; // [sp+94h] [bp-30h] BYREF int v135[3]; // [sp+A0h] [bp-24h] BYREF _DWORD v136[4]; // [sp+ACh] [bp-18h] BYREF v136[0] = -1778384896; v8 = (GameManager *)cocos2d::CCLayerColor::initWithColor(a1, v136); v113 = v8; if ( v8 ) { *((_DWORD *)a1 + 131) = a2; *((_DWORD *)a1 + 132) = a3; *((_DWORD *)a1 + 133) = a4; *((_DWORD *)a1 + 142) = -1; v9 = (GameManager *)GameManager::sharedState(v8); if ( v9 ) { v10 = *(_DWORD *)(GameManager::sharedState(v9) + 916); if ( v10 > 2 ) v10 = 0; *((_DWORD *)a1 + 140) = v10; } (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)a1 + 584))(a1, 150); FLAlertLayer::incrementForcePrio(a1); v11 = *(_DWORD *)a1; *((_BYTE *)a1 + 468) = 1; (*(void (__fastcall **)(cocos2d::CCObject *, int))(v11 + 500))(a1, 1); v12 = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)a1 + 536))(a1, 1); cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v118); v13 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v119, v118[0] * 0.5, v118[1] * 0.5); v14 = cocos2d::CCLayer::create(v13); v15 = *(_DWORD *)a1; *((_DWORD *)a1 + 115) = v14; (*(void (__fastcall **)(cocos2d::CCObject *, int))(v15 + 228))(a1, v14); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v136, 0.0, 0.0, 80.0, 80.0); v16 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v136); v17 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v16 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v136, 360.0, 280.0); v17(v16, v136); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD *)a1 + 115), v16, -2); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v16 + 92))(v16, &v119); switch ( a3 ) { case 2: v18 = "Item ID Names"; break; case 3: v18 = "Block ID Names"; break; case 4: v18 = "Timer ID Names"; break; case 5: v18 = "Area Effect ID Names"; break; case 6: v18 = "Control ID Names"; break; case 7: v18 = "Gradient ID Names"; break; case 8: v18 = "Enter Channel ID Names"; break; default: v18 = "Group ID Names"; break; } v131[0] = 0; v131[1] = 0; v132 = nullptr; v19 = strlen(v18); std::string::__init(v131, v18, v19); if ( (v131[0] & 1) != 0 ) v21 = v132; else v21 = (cocos2d::CCLabelBMFont *)((char *)v131 + 1); v22 = cocos2d::CCLabelBMFont::create(v21, "goldFont.fnt", v20); (*(void (__fastcall **)(int, int))(*(_DWORD *)v22 + 80))(v22, 1060320051); v23 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v22 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, v119, (float)(v120 + 140.0) - 18.0); v23(v22, v136); v24 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 115) + 228))( *((_DWORD *)a1 + 115), v22); v25 = cocos2d::CCMenu::create(v24); *((_DWORD *)a1 + 111) = v25; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD *)a1 + 115), v25, 10); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)a1 + 111) + 92))(*((_DWORD *)a1 + 111), &unk_D2E4D8); *((_DWORD *)a1 + 125) = -1; v27 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v26); (*(void (__fastcall **)(int, int))(*(_DWORD *)v27 + 80))(v27, 1061997773); v124 = 0; v123 = IDNameBrowserPopup::onClose; v28 = CCMenuItemSpriteExtra::create(v27, 0, (int)a1, (int)IDNameBrowserPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v28, 1.6); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v28); v29 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v28 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, (float)(v119 - 180.0) + 10.0, (float)(v120 + 140.0) - 10.0); v29(v28, v136); v30 = (float)(v120 + 140.0) - 50.0; v32 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Search:", "goldFont.fnt", v31); (*(void (__fastcall **)(int, int))(*(_DWORD *)v32 + 80))(v32, 1056964608); v33 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v32 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, 1.0, 0.5); v33(v32, v136); v34 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v32 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, v119 - 90.0, v30); v34(v32, v136); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 115) + 228))(*((_DWORD *)a1 + 115), v32); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v136, 0.0, 0.0, 40.0, 40.0); v35 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v136); (*(void (__fastcall **)(int, int))(*(_DWORD *)v35 + 456))(v35, 100); v36 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v35 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v136, 180.0, 28.0); v36(v35, v136); v37 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v35 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, v119 + 10.0, v30); v37(v35, v136); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD *)a1 + 115), v35, -1); v38 = CCTextInputNode::create( (CCTextInputNode *)0x432A0000, 40.0, "Filter by name or ID", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v108); v39 = v119; v40 = v38; *((_DWORD *)a1 + 134) = v38; v41 = *(void (__fastcall **)(int *, _DWORD *))(*v38 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, v39 + 10.0, v30); v41(v40, v136); CCTextInputNode::setMaxLabelScale(*((_DWORD *)a1 + 134), 0.6); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)a1 + 134), 160.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)a1 + 134) + 416) + 172))( *(_DWORD *)(*((_DWORD *)a1 + 134) + 416), 0); *(_DWORD *)(*((_DWORD *)a1 + 134) + 424) = 24; v42 = *((_DWORD *)a1 + 134); memset(v133, 0, sizeof(v133)); std::string::__init(v133, "0123456789 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_.", 0x41u); CCTextInputNode::setAllowedChars(v42, (unsigned __int8 *)v133); std::string::~string((int)v133); LOWORD(v115) = -21896; BYTE2(v115) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)a1 + 134), v115); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)a1 + 134), 0.4); *(_DWORD *)(*((_DWORD *)a1 + 134) + 420) = (char *)a1 + 440; *(_BYTE *)(*((_DWORD *)a1 + 134) + 324) = 0; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 134) + 36))(*((_DWORD *)a1 + 134), 900003); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)a1 + 115) + 232))( *((_DWORD *)a1 + 115), *((_DWORD *)a1 + 134), 20); v43 = ButtonSprite::create( (ButtonSprite *)"Sort: Use", (const char *)&dword_24 + 2, 0, 0.7, 1, "goldFont.fnt", "GJ_button_04.png", (const char *)0x41D00000, v111); *((_DWORD *)a1 + 141) = v43; cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)v43 + 134), 44.0, 0.5, 0.0); v44 = *((_DWORD *)a1 + 141); v126 = 0; v125 = IDNameBrowserPopup::onToggleSort; v45 = CCMenuItemSpriteExtra::create(v44, 0, (int)a1, (int)IDNameBrowserPopup::onToggleSort, 0); CCMenuItemSpriteExtra::setSizeMult(v45, 1.1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v45); v46 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v45 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, v119 + 138.0, v30); v46(v45, v136); IDNameBrowserPopup::updateSortButtonLabel(a1); v47 = (float)(v120 - 140.0) + 30.0; v48 = v30 - 22.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, v119, (float)(v48 + (float)(v47 + 22.0)) * 0.5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v136, 0.0, 0.0, 40.0, 40.0); v49 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v136); (*(void (__fastcall **)(int, int))(*(_DWORD *)v49 + 456))(v49, 80); v50 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v49 + 480); LOWORD(v136[0]) = 0; BYTE2(v136[0]) = 0; v50(v49, v136); v51 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v49 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v136, 330.0, v48 - (float)(v47 + 22.0)); v51(v49, v136); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v49 + 92))(v49, v121); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD *)a1 + 115), v49, -1); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v136, 330.0, v48 - (float)(v47 + 22.0)); v55 = ScrollableContentLayer::create((const cocos2d::CCSize *)v136, v52, v53, v54); *((_DWORD *)a1 + 135) = v55; v56 = *(void (__fastcall **)(int *, _DWORD *))(*v55 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v136, v121[0] - 165.0, v121[1] - (float)((float)(v48 - (float)(v47 + 22.0)) * 0.5)); v56(v55, v136); v57 = *((ScrollableContentLayer **)a1 + 135); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, 2.0, 0.0); ScrollableContentLayer::setThumbOffset(v57, (int)v136); ScrollableContentLayer::setForwardedTouchesOnly(*((_DWORD *)a1 + 135), 1); ScrollableContentLayer::setVirtualRows( *((ScrollableContentLayer **)a1 + 135), (int)a1 + 520, 1111490560, 1082130432, 1082130432); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)a1 + 115) + 232))( *((_DWORD *)a1 + 115), *((_DWORD *)a1 + 135), 1); v59 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "chatFont.fnt", v58); *((_DWORD *)a1 + 136) = v59; (*(void (__fastcall **)(int, int))(*(_DWORD *)v59 + 80))(v59, 1057803469); v60 = *((_DWORD *)a1 + 136); v61 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v60 + 536); LOWORD(v136[0]) = -19276; BYTE2(v136[0]) = -76; v61(v60, v136); v62 = *((_DWORD *)a1 + 136); v63 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v62 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, 0.5, 0.5); v63(v62, v136); (*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)a1 + 136) + 92))(*((_DWORD *)a1 + 136), v121); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)a1 + 115) + 232))( *((_DWORD *)a1 + 115), *((_DWORD *)a1 + 136), 2); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v136, 0.0, 0.0, 40.0, 40.0); v64 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v136); (*(void (__fastcall **)(int, int))(*(_DWORD *)v64 + 456))(v64, 100); v65 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v64 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v136, 40.0, 28.0); v65(v64, v136); v66 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v64 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, v119 - 120.0, v47); v66(v64, v136); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD *)a1 + 115), v64, -1); v67 = CCTextInputNode::create( (CCTextInputNode *)0x42180000, 40.0, "ID", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v109); *((_DWORD *)a1 + 137) = v67; v68 = v67; v69 = *(void (__fastcall **)(int *, int))(*v67 + 92); v70 = (*(int (__fastcall **)(int))(*(_DWORD *)v64 + 96))(v64); v69(v68, v70); CCTextInputNode::setMaxLabelScale(*((_DWORD *)a1 + 137), 0.55); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)a1 + 137), 34.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)a1 + 137) + 416) + 172))( *(_DWORD *)(*((_DWORD *)a1 + 137) + 416), 0); *(_DWORD *)(*((_DWORD *)a1 + 137) + 424) = 6; v71 = *((_DWORD *)a1 + 137); memset(v134, 0, sizeof(v134)); std::string::__init(v134, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v71, (unsigned __int8 *)v134); std::string::~string((int)v134); LOWORD(v116) = -21896; BYTE2(v116) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)a1 + 137), v116); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)a1 + 137), 0.4); *(_DWORD *)(*((_DWORD *)a1 + 137) + 420) = (char *)a1 + 440; *(_BYTE *)(*((_DWORD *)a1 + 137) + 324) = 1; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 137) + 36))(*((_DWORD *)a1 + 137), 900001); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)a1 + 115) + 232))( *((_DWORD *)a1 + 115), *((_DWORD *)a1 + 137), 20); v73 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v72); (*(void (__fastcall **)(int, float))(*(_DWORD *)v73 + 80))(v73, 0.5); v128 = 0; v127 = IDNameBrowserPopup::onFormArrowLeft; v74 = CCMenuItemSpriteExtra::create(v73, 0, (int)a1, (int)IDNameBrowserPopup::onFormArrowLeft, 0); CCMenuItemSpriteExtra::setSizeMult(v74, 1.1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v74); v75 = *((const cocos2d::CCPoint **)a1 + 111); v76 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v74 + 92); v77 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)a1 + 137) + 96))(*((_DWORD *)a1 + 137)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, -38.0, 0.0); cocos2d::CCPoint::operator+(v130, v77, v129); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v136, v75); v76(v74, v136); v79 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", v78); cocos2d::CCSprite::setFlipX(v79, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_DWORD *)v79 + 80))(v79, 0.5); v129[1] = 0; v129[0] = IDNameBrowserPopup::onFormArrowRight; v80 = CCMenuItemSpriteExtra::create((int)v79, 0, (int)a1, (int)IDNameBrowserPopup::onFormArrowRight, 0); CCMenuItemSpriteExtra::setSizeMult(v80, 1.1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v80); v81 = *((const cocos2d::CCPoint **)a1 + 111); v114 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v80 + 92); v82 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)a1 + 137) + 96))(*((_DWORD *)a1 + 137)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, 38.0, 0.0); cocos2d::CCPoint::operator+(v130, v82, v122); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v136, v81); v114(v80, v136); v85 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v83); if ( !v85 ) v85 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plusBtn_001.png", v84); (*(void (__fastcall **)(int, int))(*(_DWORD *)v85 + 80))(v85, 1063675494); v130[1] = 0; v130[0] = IDNameBrowserPopup::onFormNextFree; v86 = CCMenuItemSpriteExtra::create(v85, 0, (int)a1, (int)IDNameBrowserPopup::onFormNextFree, 0); CCMenuItemSpriteExtra::setSizeMult(v86, 1.1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v86); v87 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v86 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, v119 - 55.0, v47); v87(v86, v136); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v136, 0.0, 0.0, 40.0, 40.0); v88 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v136); (*(void (__fastcall **)(int, int))(*(_DWORD *)v88 + 456))(v88, 100); v89 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v88 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v136, 120.0, 28.0); v89(v88, v136); v90 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v88 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, v119 + 26.0, v47); v90(v88, v136); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD *)a1 + 115), v88, -1); v91 = CCTextInputNode::create( (CCTextInputNode *)0x42EC0000, 40.0, "Name", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v110); *((_DWORD *)a1 + 138) = v91; v92 = v91; v93 = *(void (__fastcall **)(int *, int))(*v91 + 92); v94 = (*(int (__fastcall **)(int))(*(_DWORD *)v88 + 96))(v88); v93(v92, v94); CCTextInputNode::setMaxLabelScale(*((_DWORD *)a1 + 138), 0.55); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)a1 + 138), 114.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)a1 + 138) + 416) + 172))( *(_DWORD *)(*((_DWORD *)a1 + 138) + 416), 0); *(_DWORD *)(*((_DWORD *)a1 + 138) + 424) = 24; v95 = *((_DWORD *)a1 + 138); memset(v135, 0, sizeof(v135)); std::string::__init(v135, "0123456789 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_.", 0x41u); CCTextInputNode::setAllowedChars(v95, (unsigned __int8 *)v135); std::string::~string((int)v135); LOWORD(v117) = -21896; BYTE2(v117) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)a1 + 138), v117); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)a1 + 138), 0.4); *(_DWORD *)(*((_DWORD *)a1 + 138) + 420) = (char *)a1 + 440; *(_BYTE *)(*((_DWORD *)a1 + 138) + 324) = 0; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 138) + 36))(*((_DWORD *)a1 + 138), 900002); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)a1 + 115) + 232))( *((_DWORD *)a1 + 115), *((_DWORD *)a1 + 138), 20); v96 = ButtonSprite::create( (ButtonSprite *)"Add", (const char *)&word_32, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, v112); v136[1] = 0; v136[0] = IDNameBrowserPopup::onFormAdd; v97 = CCMenuItemSpriteExtra::create((int)v96, 0, (int)a1, (int)IDNameBrowserPopup::onFormAdd, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v97); v98 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v97 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, v119 + 132.0, v47); v98(v97, v122); v100 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "chatFont.fnt", v99); *((_DWORD *)a1 + 139) = v100; (*(void (__fastcall **)(int, int))(*(_DWORD *)v100 + 80))(v100, 1056964608); v101 = *((_DWORD *)a1 + 139); v102 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v101 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, 0.5, 0.5); v102(v101, v122); v103 = *((_DWORD *)a1 + 139); v104 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v103 + 536); v122[0] = -1; v122[1] = -56; v122[2] = 120; v104(v103, v122); v105 = *((_DWORD *)a1 + 139); v106 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v105 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, v119, v47 - 20.0); v106(v105, v122); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 115) + 228))( *((_DWORD *)a1 + 115), *((_DWORD *)a1 + 139)); IDNameBrowserPopup::setFormID((int)a1, 0); IDNameBrowserPopup::rebuildList(a1); std::string::~string((int)v131); } return v113; }
GD Web Decomp Icon

GD Web Decomp

Raw Source