// // GJAccountSettingsLayer::init from 0x4b57b0 to 0x4b66a4 (3828 bytes) // // 1 xrefs: // > GJAccountSettingsLayer::create @ 0x4b6746 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool GJAccountSettingsLayer::init(GJAccountSettingsLayer *a1, int a2) { GJAccountSettingsLayer_vtbl *v4; // r3 GameLevelManager *v5; // r0 GJUserScore *v6; // r0 int v7; // r2 int m_commentHistoryStatus; // r3 int v9; // r9 int v10; // r2 int v11; // r9 int v12; // r2 int v13; // r9 int v14; // r2 int v15; // r9 int v16; // r2 int v17; // r9 int v18; // r2 int v19; // r9 int v20; // r2 int v21; // r8 cocos2d::CCDirector *v22; // r0 cocos2d::CCLayer *v23; // r0 GJAccountSettingsLayer_vtbl *v24; // r3 cocos2d::CCNode *v25; // r7 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r8 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCMenu *v28; // r0 cocos2d::CCArray *v29; // r0 cocos2d::CCArray *v30; // r0 cocos2d::CCNode *v31; // r11 void (__fastcall *v32)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCLabelBMFont *v33; // r7 cocos2d::CCMenu *m_buttonMenu; // r10 CCMenuItemToggler *ToggleButton; // r11 cocos2d::CCMenu *v36; // r10 CCMenuItemToggler *v37; // r10 CCMenuItemToggler_vtbl *v38; // r3 cocos2d::CCMenu *v39; // r7 CCMenuItemToggler *v40; // r6 cocos2d::CCArray *v41; // r0 cocos2d::CCArray *v42; // r0 cocos2d::CCNode *v43; // r7 void (__fastcall *v44)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6 cocos2d::CCLabelBMFont *v45; // r6 cocos2d::CCMenu *v46; // r7 CCMenuItemToggler *v47; // r11 cocos2d::CCMenu *v48; // r6 CCMenuItemToggler *v49; // r6 CCMenuItemToggler_vtbl *v50; // r3 cocos2d::CCArray *v51; // r0 cocos2d::CCArray *v52; // r0 cocos2d::CCNode *v53; // r8 void (__fastcall *v54)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCLabelBMFont *v55; // r7 cocos2d::CCMenu *v56; // r8 CCMenuItemToggler *v57; // r8 cocos2d::CCMenu *v58; // r11 CCMenuItemToggler *v59; // r11 CCMenuItemToggler_vtbl *v60; // r3 cocos2d::CCMenu *v61; // r7 CCMenuItemToggler *v62; // r5 cocos2d::CCObject *v63; // r1 int v64; // r11 cocos2d::CCArray *v65; // r0 cocos2d::CCArray *v66; // r0 float v67; // s22 char *v68; // r0 float v69; // s18 char *v70; // r10 std::_rb_tree_base *p_m_header; // r8 std::_rb_tree_base *v72; // r9 float v73; // s23 float v74; // s15 std::_rb_tree_base *i; // r3 std::_rb_tree_base *m_left; // r2 int *v77; // r0 int *v78; // r7 _BOOL4 v79; // r0 char *v80; // r8 cocos2d::CCLabelBMFont *v81; // r7 float v82; // r3 cocos2d::CCNode *v83; // r9 int v84; // r5 float width; // s16 float v86; // r0 cocos2d::CCNode *v87; // r8 int (__fastcall *getTag)(const cocos2d::CCObject *__hidden); // r3 void (__fastcall *v89)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r9 CCTextInputNode *v90; // r8 char *v91; // r2 cocos2d::CCArray *v92; // r0 cocos2d::CCArray *v93; // r6 ButtonSprite *v94; // r0 CCMenuItemSpriteExtra *v95; // r10 ButtonSprite *v96; // r0 CCMenuItemSpriteExtra *v97; // r8 float v99; // r2 float v100; // r3 float v101; // [sp+10h] [bp-15Ch] float v102; // [sp+10h] [bp-15Ch] int v103; // [sp+1Ch] [bp-150h] void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-14Ch] void (__fastcall *v105)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-14Ch] void (__fastcall *v106)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-14Ch] void (__fastcall *v107)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-14Ch] cocos2d::CCMenu *v108; // [sp+24h] [bp-148h] cocos2d::ccColor3B v109; // [sp+44h] [bp-128h] int v110; // [sp+48h] [bp-124h] BYREF char v111; // [sp+4Ch] [bp-120h] BYREF char v112[4]; // [sp+50h] [bp-11Ch] BYREF cocos2d::CCSize v113; // [sp+54h] [bp-118h] BYREF cocos2d::CCPoint v114; // [sp+5Ch] [bp-110h] BYREF cocos2d::CCSize v115; // [sp+64h] [bp-108h] BYREF cocos2d::CCPoint v116; // [sp+6Ch] [bp-100h] BYREF cocos2d::CCPoint v117; // [sp+74h] [bp-F8h] BYREF cocos2d::CCPoint v118; // [sp+7Ch] [bp-F0h] BYREF cocos2d::CCPoint v119; // [sp+84h] [bp-E8h] BYREF cocos2d::SEL_MenuHandler v120; // [sp+8Ch] [bp-E0h] cocos2d::SEL_MenuHandler v121; // [sp+94h] [bp-D8h] cocos2d::SEL_MenuHandler v122; // [sp+9Ch] [bp-D0h] cocos2d::SEL_MenuHandler v123; // [sp+A4h] [bp-C8h] cocos2d::SEL_MenuHandler v124; // [sp+ACh] [bp-C0h] cocos2d::SEL_MenuHandler v125; // [sp+B4h] [bp-B8h] cocos2d::SEL_MenuHandler v126; // [sp+BCh] [bp-B0h] cocos2d::SEL_MenuHandler v127; // [sp+C4h] [bp-A8h] int v128; // [sp+CCh] [bp-A0h] BYREF int v129; // [sp+D0h] [bp-9Ch] cocos2d::CCRect v130; // [sp+D4h] [bp-98h] BYREF cocos2d::CCRect v131; // [sp+E4h] [bp-88h] BYREF _BYTE v132[112]; // [sp+F4h] [bp-78h] BYREF cocos2d::CCSize v133; // 0:^0.8 cocos2d::CCRect v134; // 0:kr00_16.16 cocos2d::CCRect v135; // 0:r2.8,8:^0.8 cocos2d::CCRect v136; // 0:r2.8,8:^0.8 cocos2d::CCRect v137; // 0:r2.8,8:^0.8 cocos2d::CCRect v138; // 0:r2.8,8:^0.8 FLAlertLayer::incrementForcePrio(a1); v131.origin.x = -1.034e-25; v103 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&v131); if ( v103 ) { v4 = a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_noElasticity = 1; v4->setTouchEnabled(a1, 1); a1->setKeypadEnabled(a1, 1); a1->setKeyboardEnabled(a1, 1); a1->m_accountID = a2; v5 = GameLevelManager::sharedState(); v6 = GameLevelManager::userInfoForAccountID(v5, a2); if ( v6 ) { a1->m_messageStatus = v6->m_messageState; a1->m_friendStatus = v6->m_friendStatus; m_commentHistoryStatus = v6->m_commentHistoryStatus; v130.origin.x = 0.0; a1->m_commentHistoryStatus = m_commentHistoryStatus; v9 = std::map::operator[](&a1->m_links.compare.pad, &v130, v7); sub_775C20(&v131); sub_774794(v9, &v131); sub_774008(&v131); LODWORD(v130.origin.x) = 1; v11 = std::map::operator[](&a1->m_links.compare.pad, &v130, v10); sub_775C20(&v131); sub_774794(v11, &v131); sub_774008(&v131); LODWORD(v130.origin.x) = 2; v13 = std::map::operator[](&a1->m_links.compare.pad, &v130, v12); sub_775C20(&v131); sub_774794(v13, &v131); sub_774008(&v131); LODWORD(v130.origin.x) = 3; v15 = std::map::operator[](&a1->m_links.compare.pad, &v130, v14); sub_775C20(&v131); sub_774794(v15, &v131); sub_774008(&v131); LODWORD(v130.origin.x) = 4; v17 = std::map::operator[](&a1->m_links.compare.pad, &v130, v16); sub_775C20(&v131); sub_774794(v17, &v131); sub_774008(&v131); LODWORD(v130.origin.x) = 5; v19 = std::map::operator[](&a1->m_links.compare.pad, &v130, v18); sub_775C20(&v131); sub_774794(v19, &v131); sub_774008(&v131); LODWORD(v130.origin.x) = 6; v21 = std::map::operator[](&a1->m_links.compare.pad, &v130, v20); sub_775C20(&v131); sub_774794(v21, &v131); sub_774008(&v131); } v22 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v113, v22); v23 = cocos2d::CCLayer::create(); v24 = a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_mainLayer = v23; v24->addChild(a1, v23); cocos2d::CCRect::CCRect(&v131, 0.0, 0.0, 80.0, 80.0); v134.origin.x = v99; v134.origin.y = v100; v134.size = v133; v25 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"GJ_square01.png", (const char *)&v131, v134); ((void (__fastcall *)(cocos2d::CCNode *, int))v25->__vftable[1].~CCNode_0)(v25, 255); setContentSize = v25->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v131, 400.0, 300.0); setContentSize(v25, (const cocos2d::CCSize *)&v131); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v25, -1); setPosition = v25->setPosition; cocos2d::CCPoint::CCPoint(&v131.origin, v113.width * 0.5, v113.height * 0.5); setPosition(v25, &v131.origin); v28 = cocos2d::CCMenu::create(); a1->m_buttonMenu = v28; v29 = (cocos2d::CCArray *)((int (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, int))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v28, 10); a1->m_joystickConnected = -1; v30 = (cocos2d::CCArray *)cocos2d::CCArray::create(v29); a1->m_messageSettings = v30; cocos2d::CCObject::retain(v30); cocos2d::CCPoint::CCPoint(&v114, v113.width * 0.5, (float)(v113.height * 0.5) + 138.0); cocos2d::CCSize::CCSize(&v115, 400.0, 30.0); cocos2d::CCRect::CCRect(&v131, 0.0, 0.0, 40.0, 40.0); v31 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v131, v135); ((void (__fastcall *)(cocos2d::CCNode *, int))v31->__vftable[1].~CCNode_0)(v31, 50); v31->setContentSize(v31, &v115); ((void (__fastcall *)(cocos2d::CCNode *, int))v31->setScale)(v31, 1060320051); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v31, -1); v32 = v31->setPosition; cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, -20.0); cocos2d::CCPoint::operator+(&v131, &v114, &v130); v32(v31, &v131.origin); v33 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v33, 20); v33->setPosition(v33, &v114); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v33->setScale)(v33, 1053609165); sub_776584((int)&v128, "All"); m_buttonMenu = a1->m_buttonMenu; v120 = (cocos2d::SEL_MenuHandler)(unsigned int)GJAccountSettingsLayer::onMessageSetting; cocos2d::CCPoint::CCPoint(&v130.origin, -105.0, -20.0); cocos2d::CCPoint::operator+(&v131, &v114, &v130); ToggleButton = GJAccountSettingsLayer::createToggleButton( (int)a1, (int)&v128, v120, 1, m_buttonMenu, &v131.origin, 50.0, 0.4); sub_774008(&v128); ToggleButton->m_notClickable = 1; ToggleButton->setTag(ToggleButton, 0); sub_776584((int)&v128, "Friends"); v121 = (cocos2d::SEL_MenuHandler)(unsigned int)GJAccountSettingsLayer::onMessageSetting; v36 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v130.origin, -30.0, -20.0); cocos2d::CCPoint::operator+(&v131, &v114, &v130); v37 = GJAccountSettingsLayer::createToggleButton((int)a1, (int)&v128, v121, 1, v36, &v131.origin, 50.0, 0.4); sub_774008(&v128); v38 = v37->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v37->m_notClickable = 1; ((void (__fastcall *)(CCMenuItemToggler *))v38->setTag)(v37); sub_776584((int)&v128, "None"); v122 = (cocos2d::SEL_MenuHandler)(unsigned int)GJAccountSettingsLayer::onMessageSetting; v39 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v130.origin, 70.0, -20.0); cocos2d::CCPoint::operator+(&v131, &v114, &v130); v40 = GJAccountSettingsLayer::createToggleButton((int)a1, (int)&v128, v122, 1, v39, &v131.origin, 50.0, 0.4); sub_774008(&v128); v40->m_notClickable = 1; v40->setTag(v40, 2); cocos2d::CCArray::addObject(a1->m_messageSettings, ToggleButton); cocos2d::CCArray::addObject(a1->m_messageSettings, v37); v41 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(a1->m_messageSettings, v40); v42 = (cocos2d::CCArray *)cocos2d::CCArray::create(v41); a1->m_friendRequestSettings = v42; cocos2d::CCObject::retain(v42); cocos2d::CCPoint::CCPoint(&v131.origin, 0.0, -40.0); cocos2d::CCPoint::operator+(&v116, &v114, &v131); cocos2d::CCRect::CCRect(&v131, 0.0, 0.0, 40.0, 40.0); v43 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v131, v136); ((void (__fastcall *)(cocos2d::CCNode *, int))v43->__vftable[1].~CCNode_0)(v43, 50); v43->setContentSize(v43, &v115); ((void (__fastcall *)(cocos2d::CCNode *, int))v43->setScale)(v43, 1060320051); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v43, -1); v44 = v43->setPosition; cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, -20.0); cocos2d::CCPoint::operator+(&v131, &v116, &v130); v44(v43, &v131.origin); v45 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v45, 20); v45->setPosition(v45, &v116); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v45->setScale)(v45, 1053609165); sub_776584((int)&v128, "All"); v46 = a1->m_buttonMenu; v123 = (cocos2d::SEL_MenuHandler)(unsigned int)GJAccountSettingsLayer::onFriendRequests; cocos2d::CCPoint::CCPoint(&v130.origin, -70.0, -20.0); cocos2d::CCPoint::operator+(&v131, &v116, &v130); v47 = GJAccountSettingsLayer::createToggleButton((int)a1, (int)&v128, v123, 1, v46, &v131.origin, 50.0, 0.4); sub_774008(&v128); v47->m_notClickable = 1; v47->setTag(v47, 0); sub_776584((int)&v128, "None"); v124 = (cocos2d::SEL_MenuHandler)(unsigned int)GJAccountSettingsLayer::onFriendRequests; v48 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v130.origin, 30.0, -20.0); cocos2d::CCPoint::operator+(&v131, &v116, &v130); v49 = GJAccountSettingsLayer::createToggleButton((int)a1, (int)&v128, v124, 1, v48, &v131.origin, 50.0, 0.4); sub_774008(&v128); v50 = v49->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v49->m_notClickable = 1; ((void (__fastcall *)(CCMenuItemToggler *))v50->setTag)(v49); cocos2d::CCArray::addObject(a1->m_friendRequestSettings, v47); cocos2d::CCArray::addObject(a1->m_friendRequestSettings, v49); cocos2d::CCPoint::CCPoint(&v131.origin, 0.0, -40.0); v51 = (cocos2d::CCArray *)cocos2d::CCPoint::operator+(&v117, &v116, &v131); v52 = (cocos2d::CCArray *)cocos2d::CCArray::create(v51); a1->m_commentSettings = v52; cocos2d::CCObject::retain(v52); cocos2d::CCRect::CCRect(&v131, 0.0, 0.0, 40.0, 40.0); v53 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v131, v137); ((void (__fastcall *)(cocos2d::CCNode *, int))v53->__vftable[1].~CCNode_0)(v53, 50); v53->setContentSize(v53, &v115); ((void (__fastcall *)(cocos2d::CCNode *, int))v53->setScale)(v53, 1060320051); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v53, -1); v54 = v53->setPosition; cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, -20.0); cocos2d::CCPoint::operator+(&v131, &v117, &v130); v54(v53, &v131.origin); v55 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v55, 20); v55->setPosition(v55, &v117); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v55->setScale)(v55, 1053609165); sub_776584((int)&v128, "All"); v56 = a1->m_buttonMenu; v125 = (cocos2d::SEL_MenuHandler)(unsigned int)GJAccountSettingsLayer::onCommentSetting; cocos2d::CCPoint::CCPoint(&v130.origin, -105.0, -20.0); cocos2d::CCPoint::operator+(&v131, &v117, &v130); v57 = GJAccountSettingsLayer::createToggleButton((int)a1, (int)&v128, v125, 1, v56, &v131.origin, 50.0, 0.4); sub_774008(&v128); v57->m_notClickable = 1; v57->setTag(v57, 0); sub_776584((int)&v128, "Friends"); v126 = (cocos2d::SEL_MenuHandler)(unsigned int)GJAccountSettingsLayer::onCommentSetting; v58 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v130.origin, -30.0, -20.0); cocos2d::CCPoint::operator+(&v131, &v117, &v130); v59 = GJAccountSettingsLayer::createToggleButton((int)a1, (int)&v128, v126, 1, v58, &v131.origin, 50.0, 0.4); sub_774008(&v128); v60 = v59->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v59->m_notClickable = 1; ((void (__fastcall *)(CCMenuItemToggler *))v60->setTag)(v59); sub_776584((int)&v128, "Me"); v127 = (cocos2d::SEL_MenuHandler)(unsigned int)GJAccountSettingsLayer::onCommentSetting; v61 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v130.origin, 70.0, -20.0); cocos2d::CCPoint::operator+(&v131, &v117, &v130); v62 = GJAccountSettingsLayer::createToggleButton((int)a1, (int)&v128, v127, 1, v61, &v131.origin, 50.0, 0.4); sub_774008(&v128); v62->m_notClickable = 1; v62->setTag(v62, 2); cocos2d::CCArray::addObject(a1->m_commentSettings, v57); v63 = v59; v64 = 0; cocos2d::CCArray::addObject(a1->m_commentSettings, v63); v65 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(a1->m_commentSettings, v62); v66 = (cocos2d::CCArray *)cocos2d::CCArray::create(v65); a1->m_inputs = v66; cocos2d::CCObject::retain(v66); v67 = (float)(v113.height * 0.5) - 5.0; v68 = (char *)memcpy(v132, off_AB9058, sizeof(v132)); v69 = v113.width * 0.5; v70 = v68; do { p_m_header = &a1->m_links.m_header; v72 = &a1->m_links.m_header; v73 = 1.0; if ( (v64 & 1) == 0 ) v73 = -1.0; v74 = v67 - floorf((float)v64 * 0.5) * 39.0; cocos2d::CCPoint::CCPoint(&v118, v69 + (float)(v73 * 90.0), v74); for ( i = a1->m_links.m_header.m_parent; i; i = m_left ) { if ( *(_DWORD *)&i[1].m_isblack >= v64 ) { m_left = i->m_left; } else { m_left = i->m_right; i = v72; } v72 = i; } if ( v72 == p_m_header || v64 < *(_DWORD *)&v72[1].m_isblack ) { v77 = (int *)operator new(0x18u); v77[4] = v64; v78 = v77; v77[5] = (int)&unk_ACDDA8; std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &v128, &a1->m_links.compare.pad, v72, v77 + 4); if ( v129 ) { v79 = v128 || (std::_rb_tree_base *)v129 == p_m_header || v64 < *(_DWORD *)(v129 + 16); sub_7620E8(v79, v78, v129, &a1->m_links.m_header); ++a1->m_links.m_nodecount; } else { sub_774008(v78 + 5); operator delete(v78); } } sub_775C20(&v110); v80 = *(char **)v70; v81 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild(a1->m_mainLayer, v81); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v81->setScale)(v81, 1055286886); setAnchorPoint = v81->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v131.origin, 0.5, 0.0); setAnchorPoint(v81, &v131.origin); v105 = v81->setPosition; cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, 12.0); cocos2d::CCPoint::operator+(&v131, &v118, &v130); v105(v81, &v131.origin); sub_776584((int)&v111, v80); sub_776584((int)v112, *((char **)v70 + 3)); v83 = (cocos2d::CCNode *)InfoAlertButton::create( (InfoAlertButton *)&v111, (std::string)v112, (std::string)1056964608, v82); sub_774008(v112); sub_774008(&v111); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v83); v106 = v83->setPosition; v108 = a1->m_buttonMenu; v84 = (int)v81->getPosition(v81); width = v81->getContentSize(v81)->width; v86 = v81->getScale(v81); cocos2d::CCPoint::CCPoint(&v119, (float)((float)(width * v86) * 0.5) + 10.0, 5.0); cocos2d::CCPoint::operator+(&v130, v84, &v119); cocos2d::CCNode::convertToNodeSpace(&v131.origin, v108, &v130.origin); v106(v83, &v131.origin); cocos2d::CCRect::CCRect(&v130, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v131, &v130); v87 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02b_small.png", (const char *)&v131, v138); getTag = v87->__vftable[1].getTag; LOWORD(v131.origin.x) = 13405; BYTE2(v131.origin.x) = 31; ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCRect *))getTag)(v87, &v131); v89 = v87->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v131, 160.0, 20.0); v89(v87, (const cocos2d::CCSize *)&v131); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v87, -1); v107 = v87->setPosition; cocos2d::CCPoint::CCPoint(&v119, 0.0, -1.0); cocos2d::CCPoint::operator+(&v131, &v118, &v119); v107(v87, &v131.origin); v90 = CCTextInputNode::create(160.0, 20.0, *((const char **)v70 + 1), "Thonburi"); if ( *(_DWORD *)(v110 - 12) ) { sub_775C20(&v119); CCTextInputNode::setString((int)v90, (char *)&v119, v91); sub_774008(&v119); } ((void (__fastcall *)(cocos2d::CCLayer *, CCTextInputNode *, int, void (__fastcall *)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int), int *, const char *))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v90, 20, a1->m_mainLayer->addChild_0, &dword_18, "bigFont.fnt"); v90->m_delegate = &a1->TextInputDelegate; v90->setPosition(v90, &v118); CCTextInputNode::setMaxLabelScale(v90, 0.5); CCTextInputNode::setMaxLabelWidth(v90, 140.0); v90->m_textField->setVisible(v90->m_textField, 0); v90->m_maxLabelLength = *((_DWORD *)v70 + 2); sub_776584((int)&v131, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_'."); CCTextInputNode::setAllowedChars((int)v90, (int)&v131); sub_774008(&v131); *(_WORD *)&v109.r = -21896; v109.b = -16; CCTextInputNode::setLabelPlaceholderColor(v90, v109); CCTextInputNode::setLabelPlaceholderScale(v90, 0.45); CCTextInputNode::forceOffset(v90); v90->setTag(v90, v64); cocos2d::CCArray::addObject(a1->m_inputs, v90); ++v64; v92 = (cocos2d::CCArray *)sub_774008(&v110); v70 += 16; } while ( v64 != 7 ); v93 = (cocos2d::CCArray *)cocos2d::CCArray::create(v92); v94 = ButtonSprite::create( (ButtonSprite *)"Cancel", (const char *)&word_32, 0, 0.5, 1, "bigFont.fnt", "GJ_button_05.png", (const char *)0x41C80000, v101); v130.origin.y = 0.0; LODWORD(v130.origin.x) = GJAccountSettingsLayer::onClose; v95 = CCMenuItemSpriteExtra::create( v94, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(GJAccountSettingsLayer::onClose, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v95); cocos2d::CCArray::addObject(v93, v95); v96 = ButtonSprite::create( (ButtonSprite *)"Update", (const char *)&word_32, 0, 0.5, 1, "bigFont.fnt", "GJ_button_01.png", (const char *)0x41C80000, v102); v131.origin.y = 0.0; LODWORD(v131.origin.x) = GJAccountSettingsLayer::onUpdate; v97 = CCMenuItemSpriteExtra::create( v96, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(GJAccountSettingsLayer::onUpdate, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v97); cocos2d::CCArray::addObject(v93, v97); cocos2d::CCPoint::CCPoint(&v118, v69 + 90.0, v67 - 117.0); cocos2d::CCNode::convertToNodeSpace(&v119, a1->m_buttonMenu, &v118); GameToolbox::alignItemsHorisontally(v93, 15.0, (cocos2d::CCPoint)(unsigned int)&v119, 0); GJAccountSettingsLayer::onMessageSetting(a1, nullptr); GJAccountSettingsLayer::onFriendRequests(a1, nullptr); GJAccountSettingsLayer::onCommentSetting(a1, nullptr); } return v103; }
GD Web Decomp Icon

GD Web Decomp

Raw Source