// // GJAccountSettingsLayer::init from 0x1402921e0 to 0x140293ad6 (6390 bytes) // // 2 xrefs: // > ProfilePage::onSettings @ 0x1403c5de7 // > @ 0x1406d19f4 // // 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 // // Hidden C++ exception states: #wind=10 bool GJAccountSettingsLayer::init(GJAccountSettingsLayer *a1, int a2) { __int64 v2; // rbx __int64 v4; // rax cocos2d::CCTouchDispatcher *v5; // rax bool result; // al _BOOL8 v7; // rdx _BOOL8 v8; // rdx _BOOL8 v9; // rdx __int64 v10; // rcx int *v11; // rax __int64 v12; // rcx int *v13; // rdi __int64 v14; // rax __int64 v15; // rax __int64 v16; // rax __int64 v17; // rax __int64 v18; // rax __int64 v19; // rax __int64 v20; // rax cocos2d::CCDirector *v21; // rax cocos2d::CCLayer *v22; // rax struct cocos2d::CCRect *v23; // rax struct cocos2d::extension::CCScale9Sprite *v24; // rdi __int64 v25; // rdx cocos2d::extension::CCScale9Sprite_vtbl *v26; // rbx const cocos2d::CCSize *v27; // rax float v28; // xmm0_4 cocos2d::extension::CCScale9Sprite_vtbl *v29; // rbx double v30; // xmm0_8 const cocos2d::CCPoint *v31; // rax __int64 v32; // rcx cocos2d::CCMenu *v33; // rax __int64 v34; // rcx cocos2d::CCArray *v35; // rax struct cocos2d::CCRect *v36; // rax struct cocos2d::extension::CCScale9Sprite *v37; // rbx __int64 v38; // rdx float v39; // xmm0_4 struct cocos2d::CCLabelBMFont *v40; // rbx int v41; // r9d struct cocos2d::CCObject *ToggleButton; // rsi float v43; // xmm0_4 int v44; // r9d struct cocos2d::CCObject *v45; // rdi double v46; // xmm0_8 int v47; // r9d struct cocos2d::CCObject *v48; // rbx __int64 v49; // rcx cocos2d::CCArray *v50; // rax struct cocos2d::CCRect *v51; // rax struct cocos2d::extension::CCScale9Sprite *v52; // rbx __int64 v53; // rdx float v54; // xmm0_4 struct cocos2d::CCLabelBMFont *v55; // rbx int v56; // r9d struct cocos2d::CCObject *v57; // rdi double v58; // xmm0_8 int v59; // r9d struct cocos2d::CCObject *v60; // rbx __int64 v61; // rcx cocos2d::CCArray *v62; // rax struct cocos2d::CCRect *v63; // rax struct cocos2d::extension::CCScale9Sprite *v64; // rbx __int64 v65; // rdx float v66; // xmm0_4 struct cocos2d::CCLabelBMFont *v67; // rbx int v68; // r9d struct cocos2d::CCObject *v69; // rsi float v70; // xmm0_4 int v71; // r9d struct cocos2d::CCObject *v72; // rdi int v73; // r9d struct cocos2d::CCObject *v74; // rbx __int64 v75; // rcx cocos2d::CCArray *v76; // rax float v77; // xmm10_4 __int64 *p_m_links; // rdi int v79; // eax char v80; // bl float v81; // xmm0_4 __int64 v82; // rax unsigned __int64 v83; // r15 const char *v84; // rdi struct cocos2d::CCLabelBMFont *v85; // rsi float v86; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v87; // rbx __int64 v88; // rax float v89; // xmm0_4 _BYTE *v90; // rdx size_t v91; // r8 size_t v92; // r8 cocos2d::CCNode *v93; // rdi float *v94; // rbx double v95; // xmm0_8 __int64 v96; // rax cocos2d::CCNode_vtbl *v97; // rbx struct cocos2d::CCPoint v98; // rax struct cocos2d::CCRect *v99; // rax struct cocos2d::extension::CCScale9Sprite *v100; // rdi cocos2d::extension::CCScale9Sprite_vtbl *v101; // rbx const cocos2d::CCSize *v102; // rax float v103; // xmm0_4 const char *v104; // r9 CCTextInputNode *v105; // rbx _QWORD *v106; // rax void **v107; // rdx __int64 v108; // rcx cocos2d::CCArray *v109; // rsi ButtonSprite *v110; // rdi CCMenuItemSpriteExtra *v111; // rbx ButtonSprite *v112; // rdi CCMenuItemSpriteExtra *v113; // rbx struct cocos2d::CCPoint v114; // rax cocos2d::CCArray *m_messageSettings; // rdi cocos2d::ccArray *data; // rdi __int64 num; // rax CCMenuItemToggler **arr; // rdi CCMenuItemToggler **i; // rsi CCMenuItemToggler *v120; // rbx int v121; // eax cocos2d::CCArray *m_friendRequestSettings; // rax cocos2d::ccArray *v123; // rdi __int64 v124; // rax CCMenuItemToggler **v125; // rdi CCMenuItemToggler **j; // rsi CCMenuItemToggler *v127; // rbx int v128; // eax cocos2d::CCArray *m_commentSettings; // rax cocos2d::ccArray *v130; // rdi __int64 v131; // rax CCMenuItemToggler **v132; // rdi CCMenuItemToggler **k; // rsi CCMenuItemToggler *v134; // rbx int v135; // eax int v136; // [rsp+28h] [rbp-E0h] unsigned int v137; // [rsp+58h] [rbp-B0h] BYREF __int16 v138; // [rsp+60h] [rbp-A8h] BYREF char v139; // [rsp+62h] [rbp-A6h] cocos2d::CCPoint v140; // [rsp+68h] [rbp-A0h] BYREF __int64 v141; // [rsp+70h] [rbp-98h] BYREF cocos2d::CCRect *v142; // [rsp+78h] [rbp-90h] BYREF cocos2d::CCRect *v143; // [rsp+80h] [rbp-88h] __int16 v144; // [rsp+88h] [rbp-80h] cocos2d::CCPoint v145; // [rsp+90h] [rbp-78h] BYREF float v146; // [rsp+98h] [rbp-70h] cocos2d::CCRect v147; // [rsp+A0h] [rbp-68h] BYREF __int64 v148; // [rsp+B0h] [rbp-58h] __int64 v149; // [rsp+B8h] [rbp-50h] __int128 v150; // [rsp+C0h] [rbp-48h] BYREF __int64 v151; // [rsp+D0h] [rbp-38h] __int64 v152; // [rsp+D8h] [rbp-30h] cocos2d::CCPoint v153; // [rsp+E0h] [rbp-28h] BYREF cocos2d::CCPoint v154; // [rsp+E8h] [rbp-20h] BYREF struct cocos2d::CCPoint v155; // [rsp+F0h] [rbp-18h] BYREF cocos2d::CCRect v156; // [rsp+F8h] [rbp-10h] BYREF __int64 v157; // [rsp+108h] [rbp+0h] __int64 v158; // [rsp+110h] [rbp+8h] cocos2d::CCSize v159; // [rsp+118h] [rbp+10h] BYREF char v160[8]; // [rsp+120h] [rbp+18h] BYREF void *Src[2]; // [rsp+130h] [rbp+28h] BYREF size_t Size; // [rsp+140h] [rbp+38h] unsigned __int64 v163; // [rsp+148h] [rbp+40h] __int128 v164; // [rsp+160h] [rbp+58h] BYREF __int64 v165; // [rsp+170h] [rbp+68h] __int64 v166; // [rsp+178h] [rbp+70h] __int128 *v167; // [rsp+188h] [rbp+80h] struct cocos2d::CCPoint v168; // [rsp+198h] [rbp+90h] BYREF cocos2d::CCSize v169; // [rsp+1A0h] [rbp+98h] BYREF _BYTE v170[16]; // [rsp+1A8h] [rbp+A0h] BYREF __int64 v171; // [rsp+1B8h] [rbp+B0h] const char *v172; // [rsp+1C8h] [rbp+C0h] const char *v173; // [rsp+1D0h] [rbp+C8h] _DWORD v174[2]; // [rsp+1D8h] [rbp+D0h] _QWORD v175[3]; // [rsp+1E0h] [rbp+D8h] int v176; // [rsp+1F8h] [rbp+F0h] const char *v177; // [rsp+200h] [rbp+F8h] const char *v178; // [rsp+208h] [rbp+100h] const char *v179; // [rsp+210h] [rbp+108h] int v180; // [rsp+218h] [rbp+110h] const char *v181; // [rsp+220h] [rbp+118h] const char *v182; // [rsp+228h] [rbp+120h] const char *v183; // [rsp+230h] [rbp+128h] int v184; // [rsp+238h] [rbp+130h] const char *v185; // [rsp+240h] [rbp+138h] const char *v186; // [rsp+248h] [rbp+140h] const char *v187; // [rsp+250h] [rbp+148h] int v188; // [rsp+258h] [rbp+150h] const char *v189; // [rsp+260h] [rbp+158h] const char *v190; // [rsp+268h] [rbp+160h] const char *v191; // [rsp+270h] [rbp+168h] int v192; // [rsp+278h] [rbp+170h] const char *v193; // [rsp+280h] [rbp+178h] const char *v194; // [rsp+288h] [rbp+180h] const char *v195; // [rsp+290h] [rbp+188h] int v196; // [rsp+298h] [rbp+190h] const char *v197; // [rsp+2A0h] [rbp+198h] v2 = a2; if ( !a1->m_forcePrioRegistered ) { a1->m_forcePrioRegistered = 1; v4 = cocos2d::CCDirector::sharedDirector(a1); v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4); cocos2d::CCTouchDispatcher::registerForcePrio(v5, a1, 2); } v137 = -1778384896; result = cocos2d::CCLayerColor::initWithColor(a1, (const struct cocos2d::_ccColor4B *)&v137); if ( result ) { a1->m_noElasticity = 1; LOBYTE(v7) = 1; a1->setTouchEnabled(a1, v7); LOBYTE(v8) = 1; a1->setKeypadEnabled(a1, v8); LOBYTE(v9) = 1; a1->setKeyboardEnabled(a1, v9); a1->m_accountID = v2; v10 = qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v142 = (cocos2d::CCRect *)operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v142); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v10 = qword_1406C2EC0; } v11 = (int *)cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v10 + 600), v2); v13 = v11; if ( v11 ) { a1->m_messageStatus = v11[113]; a1->m_friendStatus = v11[114]; a1->m_commentHistoryStatus = v11[115]; v137 = 0; sub_14003BDB0((__int64)v170, (__int64)(v11 + 116)); v14 = sub_1401D0660((__int64 *)&a1->m_links, (int *)&v137); sub_140051590(v14, (__int64)v170); sub_14003A830((__int64)v170); v137 = 1; sub_14003BDB0((__int64)v170, (__int64)(v13 + 124)); v15 = sub_1401D0660((__int64 *)&a1->m_links, (int *)&v137); sub_140051590(v15, (__int64)v170); sub_14003A830((__int64)v170); v137 = 2; sub_14003BDB0((__int64)v170, (__int64)(v13 + 132)); v16 = sub_1401D0660((__int64 *)&a1->m_links, (int *)&v137); sub_140051590(v16, (__int64)v170); sub_14003A830((__int64)v170); v137 = 3; sub_14003BDB0((__int64)v170, (__int64)(v13 + 148)); v17 = sub_1401D0660((__int64 *)&a1->m_links, (int *)&v137); sub_140051590(v17, (__int64)v170); sub_14003A830((__int64)v170); v137 = 4; sub_14003BDB0((__int64)v170, (__int64)(v13 + 156)); v18 = sub_1401D0660((__int64 *)&a1->m_links, (int *)&v137); sub_140051590(v18, (__int64)v170); sub_14003A830((__int64)v170); v137 = 5; sub_14003BDB0((__int64)v170, (__int64)(v13 + 140)); v19 = sub_1401D0660((__int64 *)&a1->m_links, (int *)&v137); sub_140051590(v19, (__int64)v170); sub_14003A830((__int64)v170); v137 = 6; sub_14003BDB0((__int64)v170, (__int64)(v13 + 164)); v20 = sub_1401D0660((__int64 *)&a1->m_links, (int *)&v137); sub_140051590(v20, (__int64)v170); sub_14003A830((__int64)v170); } v21 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize(v21); v22 = (cocos2d::CCLayer *)cocos2d::CCLayer::create(); a1->m_mainLayer = v22; a1->addChild_1(a1, v22); cocos2d::CCRect::CCRect(&v156, 0.0, 0.0, 80.0, 80.0); v24 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v23); LOBYTE(v25) = -1; v24->setOpacity(&v24->cocos2d::CCRGBAProtocol, v25); v26 = v24->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v142, 400.0, 300.0); v26->setContentSize(v24, v27); v28 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v24, 0xFFFFFFFFLL); v29 = v24->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v30 = cocos2d::CCPoint::CCPoint(v28, v146 * 0.5); v29->setPosition_0(v24, v31); v33 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v32); a1->m_buttonMenu = v33; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v33, 10); a1->m_joystickConnected = -1; v35 = (cocos2d::CCArray *)cocos2d::CCArray::create(v34); a1->m_messageSettings = v35; cocos2d::CCObject::retain(v35); cocos2d::CCPoint::CCPoint(*(float *)&v30, v146 * 0.5); cocos2d::CCSize::CCSize(&v159, 400.0, 30.0); cocos2d::CCRect::CCRect(&v156, 0.0, 0.0, 40.0, 40.0); v37 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v36); LOBYTE(v38) = 50; v37->setOpacity(&v37->cocos2d::CCRGBAProtocol, v38); v37->setContentSize(v37, &v159); ((void (__fastcall *)(struct cocos2d::extension::CCScale9Sprite *))v37->setScale_0)(v37); v39 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v37, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint(v39, 0.0); cocos2d::CCPoint::operator+(&v145, &v140); v37->setPosition_0(v37, &v140); v40 = cocos2d::CCLabelBMFont::create("Allow messages from:", "goldFont.fnt"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v40, 20); v40->setPosition_0(v40, &v145); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v40->setScale_0)(v40); v142 = &v156; v156 = 0; v157 = 3; v158 = 15; LOWORD(v156.origin.x) = *(_WORD *)"All"; HIWORD(v156.origin.x) = (unsigned __int8)aAll[2]; cocos2d::CCPoint::CCPoint(0.0, -105.0); cocos2d::CCPoint::operator+(&v145, &v140); ToggleButton = (struct cocos2d::CCObject *)GJAccountSettingsLayer::createToggleButton( (_DWORD)a1, (unsigned int)&v156, (unsigned int)GJAccountSettingsLayer::onMessageSetting, v41, (__int64)a1->m_buttonMenu, (__int64)&v140, 1112014848, 1053609165); BYTE1(ToggleButton[7].__vftable) = 1; v43 = ((float (__fastcall *)(struct cocos2d::CCObject *, _QWORD))ToggleButton->setTag)(ToggleButton, 0); v142 = &v147; HIWORD(v147.size.height) = 0; v148 = 7; v149 = 15; qmemcpy(&v147, "Friend", 6); *(_QWORD *)((char *)&v147.origin.y + 2) = (unsigned __int8)aFriends[6]; cocos2d::CCPoint::CCPoint(v43, -30.0); cocos2d::CCPoint::operator+(&v145, &v137); v45 = (struct cocos2d::CCObject *)GJAccountSettingsLayer::createToggleButton( (_DWORD)a1, (unsigned int)&v147, (unsigned int)GJAccountSettingsLayer::onMessageSetting, v44, (__int64)a1->m_buttonMenu, (__int64)&v137, 1112014848, 1053609165); BYTE1(v45[7].__vftable) = 1; v45->setTag(v45, 1); v142 = (cocos2d::CCRect *)&v150; v150 = 0; v151 = 4; v152 = 15; strcpy((char *)&v150, "None"); cocos2d::CCPoint::CCPoint(0.0, 70.0); v46 = cocos2d::CCPoint::operator+(&v145, &v141); v48 = (struct cocos2d::CCObject *)GJAccountSettingsLayer::createToggleButton( (_DWORD)a1, (unsigned int)&v150, (unsigned int)GJAccountSettingsLayer::onMessageSetting, v47, (__int64)a1->m_buttonMenu, (__int64)&v141, 1112014848, 1053609165); BYTE1(v48[7].__vftable) = 1; v48->setTag(v48, 2); cocos2d::CCArray::addObject(a1->m_messageSettings, ToggleButton); cocos2d::CCArray::addObject(a1->m_messageSettings, v45); cocos2d::CCArray::addObject(a1->m_messageSettings, v48); v50 = (cocos2d::CCArray *)cocos2d::CCArray::create(v49); a1->m_friendRequestSettings = v50; cocos2d::CCObject::retain(v50); cocos2d::CCPoint::CCPoint(*(float *)&v46, 0.0); cocos2d::CCPoint::operator+(&v145, &v153); cocos2d::CCRect::CCRect(&v156, 0.0, 0.0, 40.0, 40.0); v52 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v51); LOBYTE(v53) = 50; v52->setOpacity(&v52->cocos2d::CCRGBAProtocol, v53); v52->setContentSize(v52, &v159); ((void (__fastcall *)(struct cocos2d::extension::CCScale9Sprite *))v52->setScale_0)(v52); v54 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v52, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint(v54, 0.0); cocos2d::CCPoint::operator+(&v153, &v141); v52->setPosition_0(v52, (const cocos2d::CCPoint *)&v141); v55 = cocos2d::CCLabelBMFont::create("Allow friend requests from:", "goldFont.fnt"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v55, 20); v55->setPosition_0(v55, &v153); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v55->setScale_0)(v55); v143 = &v147; v147 = 0; v148 = 3; v149 = 15; LOWORD(v147.origin.x) = *(_WORD *)"All"; HIWORD(v147.origin.x) = (unsigned __int8)aAll[2]; cocos2d::CCPoint::CCPoint(0.0, -70.0); cocos2d::CCPoint::operator+(&v153, &v141); v57 = (struct cocos2d::CCObject *)GJAccountSettingsLayer::createToggleButton( (_DWORD)a1, (unsigned int)&v147, (unsigned int)GJAccountSettingsLayer::onFriendRequests, v56, (__int64)a1->m_buttonMenu, (__int64)&v141, 1112014848, 1053609165); BYTE1(v57[7].__vftable) = 1; v57->setTag(v57, 0); v143 = (cocos2d::CCRect *)&v150; v150 = 0; v151 = 4; v152 = 15; strcpy((char *)&v150, "None"); cocos2d::CCPoint::CCPoint(0.0, 30.0); v58 = cocos2d::CCPoint::operator+(&v153, &v140); v60 = (struct cocos2d::CCObject *)GJAccountSettingsLayer::createToggleButton( (_DWORD)a1, (unsigned int)&v150, (unsigned int)GJAccountSettingsLayer::onFriendRequests, v59, (__int64)a1->m_buttonMenu, (__int64)&v140, 1112014848, 1053609165); BYTE1(v60[7].__vftable) = 1; v60->setTag(v60, 1); cocos2d::CCArray::addObject(a1->m_friendRequestSettings, v57); cocos2d::CCArray::addObject(a1->m_friendRequestSettings, v60); cocos2d::CCPoint::CCPoint(*(float *)&v58, 0.0); cocos2d::CCPoint::operator+(&v153, &v154); v62 = (cocos2d::CCArray *)cocos2d::CCArray::create(v61); a1->m_commentSettings = v62; cocos2d::CCObject::retain(v62); cocos2d::CCRect::CCRect(&v156, 0.0, 0.0, 40.0, 40.0); v64 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v63); LOBYTE(v65) = 50; v64->setOpacity(&v64->cocos2d::CCRGBAProtocol, v65); v64->setContentSize(v64, &v159); ((void (__fastcall *)(struct cocos2d::extension::CCScale9Sprite *))v64->setScale_0)(v64); v66 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v64, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint(v66, 0.0); cocos2d::CCPoint::operator+(&v154, &v141); v64->setPosition_0(v64, (const cocos2d::CCPoint *)&v141); v67 = cocos2d::CCLabelBMFont::create("Show Comment History to:", "goldFont.fnt"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v67, 20); v67->setPosition_0(v67, &v154); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v67->setScale_0)(v67); v143 = &v156; v156 = 0; v157 = 3; v158 = 15; LOWORD(v156.origin.x) = *(_WORD *)"All"; HIWORD(v156.origin.x) = (unsigned __int8)aAll[2]; cocos2d::CCPoint::CCPoint(0.0, -105.0); cocos2d::CCPoint::operator+(&v154, &v141); v69 = (struct cocos2d::CCObject *)GJAccountSettingsLayer::createToggleButton( (_DWORD)a1, (unsigned int)&v156, (unsigned int)GJAccountSettingsLayer::onCommentSetting, v68, (__int64)a1->m_buttonMenu, (__int64)&v141, 1112014848, 1053609165); BYTE1(v69[7].__vftable) = 1; v70 = ((float (__fastcall *)(struct cocos2d::CCObject *, _QWORD))v69->setTag)(v69, 0); v143 = &v147; HIWORD(v147.size.height) = 0; v148 = 7; v149 = 15; qmemcpy(&v147, "Friend", 6); *(_QWORD *)((char *)&v147.origin.y + 2) = (unsigned __int8)aFriends[6]; cocos2d::CCPoint::CCPoint(v70, -30.0); cocos2d::CCPoint::operator+(&v154, &v140); v72 = (struct cocos2d::CCObject *)GJAccountSettingsLayer::createToggleButton( (_DWORD)a1, (unsigned int)&v147, (unsigned int)GJAccountSettingsLayer::onCommentSetting, v71, (__int64)a1->m_buttonMenu, (__int64)&v140, 1112014848, 1053609165); BYTE1(v72[7].__vftable) = 1; v72->setTag(v72, 1); v143 = (cocos2d::CCRect *)&v150; v150 = 0; v151 = 2; v152 = 15; strcpy((char *)&v150, "Me"); cocos2d::CCPoint::CCPoint(0.0, 70.0); cocos2d::CCPoint::operator+(&v154, &v137); v74 = (struct cocos2d::CCObject *)GJAccountSettingsLayer::createToggleButton( (_DWORD)a1, (unsigned int)&v150, (unsigned int)GJAccountSettingsLayer::onCommentSetting, v73, (__int64)a1->m_buttonMenu, (__int64)&v137, 1112014848, 1053609165); BYTE1(v74[7].__vftable) = 1; v74->setTag(v74, 2); cocos2d::CCArray::addObject(a1->m_commentSettings, v69); cocos2d::CCArray::addObject(a1->m_commentSettings, v72); cocos2d::CCArray::addObject(a1->m_commentSettings, v74); v76 = (cocos2d::CCArray *)cocos2d::CCArray::create(v75); a1->m_inputs = v76; cocos2d::CCObject::retain(v76); v77 = v146 * 0.5; v172 = "YouTube:"; v173 = "youtube.com/..."; v174[0] = 30; v175[0] = "For YouTube, enter your @handle (your unique YouTube username found in your channel URL or account" " settings).\n" "Display names do not work.\n" "You can also use your old channel ID starting with 'UC'."; v175[1] = "Twitter:"; v175[2] = "twitter.com/..."; v176 = 20; v177 = "For Twitter (X), input your username handle, seen after '@' on your profile.\n" "Note that the display name will not work."; v178 = "Twitch:"; v179 = "twitch.tv/..."; v180 = 30; v181 = "For Twitch, input your username, seen at the end of your channel's link (after 'twitch.tv/') or withi" "n your profile settings.\n" "Note that the display name will not work."; v182 = "Instagram:"; v183 = "instagram.com/..."; v184 = 30; v185 = "For Instagram, input your username, seen on posts or within your settings.\n" "Note that the display name (at the top of your profile) will not work."; v186 = "TikTok:"; v187 = "tiktok.com/@..."; v188 = 30; v189 = "For TikTok, input your unique username handle, seen after '@' on your profile or at the end of your c" "hannel link (after 'tiktok.com/@').\n" "Note that the display name will not work."; v190 = "Discord:"; v191 = "Discord username..."; v192 = 40; v193 = "For Discord, input your username, seen on your profile info page (button next to your display name). " "This is also used to tag users with by writing '@' first.\n" "Note that the display name will not work.\n" "Your Discord username is used for account linking and notifications through the Discord bot Rateon."; v194 = "Custom:"; v195 = "custom..."; v196 = 30; v197 = "This field can be used for a custom, one-time authentication token generated by a third-party service" " (such as a mod). Once saved here, the service can link and verify your account.\n" "Do not share any tokens generated for you with other users."; v137 = 0; p_m_links = (__int64 *)&a1->m_links; v144 = 13405; v143 = (cocos2d::CCRect *)Src; v138 = -21896; v79 = 0; v80 = 0; do { v81 = floorf((float)v79 * 0.5) * 39.0; cocos2d::CCPoint::CCPoint(v81, (float)((float)(2 * (v80 & 1) - 1) * 90.0) + v77); v82 = sub_1401D0660(p_m_links, (int *)&v137); sub_14003BDB0((__int64)v170, v82); v83 = 8LL * (int)v137; v84 = (&v172)[v83 / 2]; v85 = cocos2d::CCLabelBMFont::create(v84, "goldFont.fnt"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v85); v86 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *))v85->setScale_0)(v85); v87 = v85->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v86, 0.5); v89 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, __int64))v87->setAnchorPoint)(v85, v88); cocos2d::CCPoint::CCPoint(v89, 0.0); cocos2d::CCPoint::operator+(&v140, &v141); v85->setPosition_0(v85, (const cocos2d::CCPoint *)&v141); v167 = &v150; v90 = (_BYTE *)v175[v83 / 2]; v150 = 0; v151 = 0; v152 = 0; v91 = -1; do ++v91; while ( v90[v91] ); sub_14003A930(&v150, v90, v91); v164 = 0; v165 = 0; v166 = 0; v92 = -1; do ++v92; while ( v84[v92] ); sub_14003A930(&v164, v84, v92); v93 = (cocos2d::CCNode *)InfoAlertButton::create(&v164, &v150); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v93); v94 = (float *)v85->getContentSize(v85); v95 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v85->getScale)(v85); cocos2d::CCPoint::CCPoint( (float)((float)(*(float *)&v95 * *v94) * 0.5) + 10.0, (float)((float)(*(float *)&v95 * *v94) * 0.5) + 10.0); v96 = (__int64)v85->getPosition_0(v85); cocos2d::CCPoint::operator+(v96, v160); v97 = v93->__vftable; v98 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v168); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v97->setPosition_0)(v93, v98); cocos2d::CCRect::CCRect(&v156, 0.0, 0.0, 40.0, 40.0); v99 = (struct cocos2d::CCRect *)cocos2d::CCRect::CCRect(&v147, &v156); v100 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v99); v138 = v144; v139 = 31; v100->setColor(&v100->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v138); v101 = v100->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCSize::CCSize(&v169, 160.0, 20.0); v101->setContentSize(v100, v102); v103 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v100, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint(v103, 0.0); cocos2d::CCPoint::operator+(&v140, &v142); v100->setPosition_0(v100, (const cocos2d::CCPoint *)&v142); v105 = CCTextInputNode::create( 160.0, 20.0, *(const char **)&v174[v83 - 2], v104, v136, (const char *)&qword_14052A4D8); if ( v171 ) { v106 = (_QWORD *)sub_14003BDB0((__int64)&v164, (__int64)v170); CCTextInputNode::setString((__int64)v105, v106); } a1->m_mainLayer->addChild_0(a1->m_mainLayer, v105, 20); v105->m_delegate = &a1->TextInputDelegate; v105->setPosition_0(v105, &v140); v105->m_maxLabelScale = 0.5; CCTextInputNode::refreshLabel(v105); v105->m_maxLabelWidth = 140.0; CCTextInputNode::refreshLabel(v105); v105->m_textField->setVisible(v105->m_textField, 0); v105->m_maxLabelLength = v174[v83]; *(_OWORD *)Src = 0; Size = 0; v163 = 15; Src[0] = sub_14003AA10(0x50u); Size = 67; v163 = 79; strcpy((char *)Src[0], " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_'."); if ( &v105->m_allowedChars != (std::string *)Src ) { v107 = Src; if ( v163 > 0xF ) v107 = (void **)Src[0]; sub_14003CCE0((void **)&v105->m_allowedChars, v107, Size); } sub_14003A830((__int64)Src); *(_WORD *)&v105->m_placeholderColor.r = -21896; v105->m_placeholderColor.b = -16; CCTextInputNode::refreshLabel(v105); v105->m_placeholderScale = 0.44999999; CCTextInputNode::refreshLabel(v105); v105->setTag(v105, v137); cocos2d::CCArray::addObject(a1->m_inputs, v105); sub_14003A830((__int64)v170); v79 = v137 + 1; v137 = v79; v80 = v79; p_m_links = (__int64 *)&a1->m_links; } while ( v79 <= 6 ); v109 = (cocos2d::CCArray *)cocos2d::CCArray::create(v108); v155 = (struct cocos2d::CCPoint)operator new(0x2C0u); v110 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v155); if ( v110 ) { if ( ButtonSprite::init_1(v110, "Cancel", 50, 0, 0.5, 1, (const char *)&qword_14052A4D8, "GJ_button_05.png", 25.0) ) { cocos2d::CCObject::autorelease(v110); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v110->~ButtonSprite)(v110, 1); v110 = nullptr; } } v155 = (struct cocos2d::CCPoint)operator new(0x208u); v111 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(*(CCMenuItemSpriteExtra **)&v155); if ( v111 ) { if ( CCMenuItemSpriteExtra::init( v111, v110, nullptr, a1, (cocos2d::SEL_MenuHandler *)GJAccountSettingsLayer::onClose) ) { cocos2d::CCObject::autorelease(v111); goto LABEL_29; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v111->~CCMenuItemSpriteExtra)(v111, 1); } v111 = nullptr; LABEL_29: a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v111); cocos2d::CCArray::addObject(v109, v111); v155 = (struct cocos2d::CCPoint)operator new(0x2C0u); v112 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v155); if ( v112 ) { if ( ButtonSprite::init_1(v112, "Update", 50, 0, 0.5, 1, (const char *)&qword_14052A4D8, "GJ_button_01.png", 25.0) ) { cocos2d::CCObject::autorelease(v112); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v112->~ButtonSprite)(v112, 1); v112 = nullptr; } } v155 = (struct cocos2d::CCPoint)operator new(0x208u); v113 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(*(CCMenuItemSpriteExtra **)&v155); if ( v113 ) { if ( CCMenuItemSpriteExtra::init( v113, v112, nullptr, a1, (cocos2d::SEL_MenuHandler *)GJAccountSettingsLayer::onUpdate) ) { cocos2d::CCObject::autorelease(v113); goto LABEL_38; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v113->~CCMenuItemSpriteExtra)(v113, 1); } v113 = nullptr; LABEL_38: a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v113); cocos2d::CCArray::addObject(v109, v113); cocos2d::CCPoint::CCPoint(820340.38, v77 + 90.0); v114 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v155); GameToolbox::alignItemsHorisontally(v109, 15.0, v114, 0); m_messageSettings = a1->m_messageSettings; if ( m_messageSettings ) { data = m_messageSettings->data; num = data->num; if ( (_DWORD)num ) { arr = (CCMenuItemToggler **)data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { v120 = *arr; if ( !*arr ) break; v121 = v120->getTag(*arr); CCMenuItemToggler::toggle(v120, v121 != a1->m_messageStatus); } } } m_friendRequestSettings = a1->m_friendRequestSettings; if ( m_friendRequestSettings ) { v123 = m_friendRequestSettings->data; v124 = v123->num; if ( (_DWORD)v124 ) { v125 = (CCMenuItemToggler **)v123->arr; for ( j = &v125[v124 - 1]; v125 <= j; ++v125 ) { v127 = *v125; if ( !*v125 ) break; v128 = v127->getTag(*v125); CCMenuItemToggler::toggle(v127, v128 != a1->m_friendStatus); } } } m_commentSettings = a1->m_commentSettings; if ( m_commentSettings ) { v130 = m_commentSettings->data; v131 = v130->num; if ( (_DWORD)v131 ) { v132 = (CCMenuItemToggler **)v130->arr; for ( k = &v132[v131 - 1]; v132 <= k; ++v132 ) { v134 = *v132; if ( !*v132 ) break; v135 = v134->getTag(*v132); CCMenuItemToggler::toggle(v134, v135 != a1->m_commentHistoryStatus); } } } return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source