// // AccountHelpLayer::customSetup from 0x100166f94 to 0x10016731c (904 bytes) // // 1 xrefs: // > @ 0x10079ca70 // // 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 // void __fastcall AccountHelpLayer::customSetup(AccountHelpLayer *a1) { cocos2d::CCDirector *v2; // x0 cocos2d::CCLabelBMFont *v3; // x0 __n128 v4; // q0 cocos2d::CCLabelBMFont *m_loginStatusLabel; // x20 __n128 v6; // q1 __n128 v7; // q0 __n128 v8; // q1 TextArea *m_textArea; // x0 TextArea *v10; // x20 float32x2_t *v11; // x21 __n128 v12; // q0 __n128 v13; // q1 double v14; // d0 ButtonSprite *v15; // x0 CCMenuItemSpriteExtra *v16; // x0 ButtonSprite *v17; // x0 CCMenuItemSpriteExtra *v18; // x20 ButtonSprite *v19; // x0 CCMenuItemSpriteExtra *v20; // x0 __n128 v21; // q0 cocos2d::CCMenu *m_buttonMenu; // x21 cocos2d::CCLayer *m_mainLayer; // x22 __n128 v24; // q1 CCMenuItemSpriteExtra *m_refreshLoginButton; // x21 __n128 v26; // q0 __n128 v27; // q1 double v28; // d0 __n128 v29; // q0 __n128 v30; // q1 double v31; // d0 __n128 v32; // q0 CCMenuItemSpriteExtra *m_unlinkAccountButton; // x20 __n128 v34; // q1 double v35; // d0 float32x2_t v36; // [xsp+8h] [xbp-68h] BYREF float32x2_t v37; // [xsp+10h] [xbp-60h] BYREF void *__p[2]; // [xsp+18h] [xbp-58h] BYREF char v39; // [xsp+2Fh] [xbp-41h] float32x2_t v40; // [xsp+30h] [xbp-40h] BYREF float v41; // [xsp+38h] [xbp-38h] float v42; // [xsp+3Ch] [xbp-34h] cocos2d::SEL_MenuHandler v43; // 0:x3.16 cocos2d::SEL_MenuHandler v44; // 0:x3.16 cocos2d::SEL_MenuHandler v45; // 0:x3.16 v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v2); v3 = cocos2d::CCLabelBMFont::create_1("", "goldFont.fnt"); a1->m_loginStatusLabel = v3; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v3->setScale)(v3, 0.8); v4 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, a1->m_loginStatusLabel); m_loginStatusLabel = a1->m_loginStatusLabel; v4.n128_f32[0] = v41 * 0.5; v6.n128_f32[0] = (float)(v42 * 0.5) + 90.0; sub_100022980(v4, v6, &v40); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))m_loginStatusLabel->setPosition)( m_loginStatusLabel, &v40); sub_100009900(__p, " "); v7.n128_u32[0] = 0.5; v8.n128_u32[0] = 1.0; sub_100022980(v7, v8, &v40); m_textArea = (TextArea *)TextArea::create((__int64)__p, (__int64)"bigFont.fnt", (__int64 *)&v40, 0, 1.0, 1000.0, 35.0); a1->m_textArea = m_textArea; if ( v39 < 0 ) { operator delete(__p[0]); m_textArea = a1->m_textArea; } ((void (__fastcall *)(TextArea *, float))m_textArea->setScale)(m_textArea, 0.4); ((void (__fastcall *)(cocos2d::CCLayer *, TextArea *))a1->m_mainLayer->addChild)(a1->m_mainLayer, a1->m_textArea); v10 = a1->m_textArea; v11 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_loginStatusLabel->getPosition)(a1->m_loginStatusLabel); v12.n128_u32[0] = 0; v13.n128_u32[0] = -18.0; sub_100022980(v12, v13, &v37); *(float32x2_t *)&v14 = sub_1000229DC(v11, &v37, &v40); ((void (__fastcall *)(TextArea *, float32x2_t *, double))v10->setPosition)(v10, &v40, v14); v15 = sub_10005F2BC("Refresh Login", 160, 0, 1, 1.0); v43.ptr = (void (__cdecl *)(cocos2d::CCObject *))AccountHelpLayer::onReLogin; v43.adj = 0; v16 = CCMenuItemSpriteExtra::create(v15, nullptr, a1, v43); a1->m_refreshLoginButton = v16; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v16); v17 = sub_10005F2BC("Manage Account", 160, 0, 1, 1.0); v44.ptr = (void (__cdecl *)(cocos2d::CCObject *))AccountHelpLayer::onAccountManagement; v44.adj = 0; v18 = CCMenuItemSpriteExtra::create(v17, nullptr, a1, v44); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v18); v19 = sub_10005F2BC("Unlink Account", 160, 0, 1, 1.0); v45.ptr = (void (__cdecl *)(cocos2d::CCObject *))AccountHelpLayer::onUnlink; v45.adj = 0; v20 = CCMenuItemSpriteExtra::create(v19, nullptr, a1, v45); a1->m_unlinkAccountButton = v20; v21 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v20); m_buttonMenu = a1->m_buttonMenu; m_mainLayer = a1->m_mainLayer; v21.n128_f32[0] = v41 * 0.5; v24.n128_f32[0] = (float)(v42 * 0.5) + 30.0; sub_100022980(v21, v24, &v36); cocos2d::CCNode::convertToWorldSpace(m_mainLayer, (const cocos2d::CCPoint *)&v36); cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, (const cocos2d::CCPoint *)&v37); m_refreshLoginButton = a1->m_refreshLoginButton; v26.n128_u32[0] = 0; v27.n128_u32[0] = 0; sub_100022980(v26, v27, &v36); *(float32x2_t *)&v28 = sub_1000229DC(&v40, &v36, &v37); v29 = ((__n128 (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))m_refreshLoginButton->setPosition)( m_refreshLoginButton, &v37, v28); v30.n128_u32[0] = -1036779520; v29.n128_u32[0] = 0; sub_100022980(v29, v30, &v36); *(float32x2_t *)&v31 = sub_1000229DC(&v40, &v36, &v37); v32 = ((__n128 (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))v18->setPosition)(v18, &v37, v31); m_unlinkAccountButton = a1->m_unlinkAccountButton; v34.n128_u32[0] = -1028390912; v32.n128_u32[0] = 0; sub_100022980(v32, v34, &v36); *(float32x2_t *)&v35 = sub_1000229DC(&v40, &v36, &v37); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))m_unlinkAccountButton->setPosition)( m_unlinkAccountButton, &v37, v35); AccountHelpLayer::updatePage(a1); GJAccountManager::sharedState()->m_accountDelegate = &a1->GJAccountDelegate; a1->m_unk290 = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source