// // AccountHelpLayer::customSetup from 0x1000ce3e0 to 0x1000ce7a4 (964 bytes) // // 1 xrefs: // > @ 0x1008b9060 // // 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::CCLabelBMFont *v1; // rax cocos2d::CCLabelBMFont *m_loginStatusLabel; // r14 TextArea *m_textArea; // rax TextArea *v4; // r14 __int64 v5; // r15 ButtonSprite *v6; // rax CCMenuItemSpriteExtra *v7; // rax ButtonSprite *v8; // rax ButtonSprite *v9; // rax CCMenuItemSpriteExtra *v10; // rax cocos2d::CCMenu *m_buttonMenu; // r12 cocos2d::CCLayer *m_mainLayer; // r15 CCMenuItemSpriteExtra *m_refreshLoginButton; // r14 CCMenuItemSpriteExtra *m_unlinkAccountButton; // r14 CCMenuItemSpriteExtra *v15; // [rsp+8h] [rbp-68h] __int16 v16; // [rsp+10h] [rbp-60h] BYREF char v17; // [rsp+12h] [rbp-5Eh] void *__p; // [rsp+20h] [rbp-50h] _BYTE v19[8]; // [rsp+28h] [rbp-48h] BYREF float v20; // [rsp+30h] [rbp-40h] BYREF float v21; // [rsp+34h] [rbp-3Ch] char v22; // [rsp+38h] [rbp-38h] BYREF _BYTE v23[48]; // [rsp+40h] [rbp-30h] BYREF cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v20); v1 = cocos2d::CCLabelBMFont::create_3("", "goldFont.fnt"); a1->m_loginStatusLabel = v1; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v1->setScale)(v1, 0.80000001); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, a1->m_loginStatusLabel); m_loginStatusLabel = a1->m_loginStatusLabel; sub_10028CBE0(&v22, v20 * 0.5, (float)(v21 * 0.5) + 90.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))m_loginStatusLabel->setPosition)(m_loginStatusLabel, &v22); v16 = 8194; v17 = 0; sub_10028CBE0(&v22, 0.5, 1.0); m_textArea = (TextArea *)TextArea::create(&v16, "bigFont.fnt", &v22, 0, 1.0, 1000.0, 35.0); a1->m_textArea = m_textArea; if ( (v16 & 1) != 0 ) { operator delete(__p); m_textArea = a1->m_textArea; } ((void (__fastcall *)(TextArea *, float))m_textArea->setScale)(m_textArea, 0.40000001); ((void (__fastcall *)(cocos2d::CCLayer *, TextArea *))a1->m_mainLayer->addChild)(a1->m_mainLayer, a1->m_textArea); v4 = a1->m_textArea; v5 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_loginStatusLabel->getPosition)(a1->m_loginStatusLabel); sub_10028CBE0(v23, 0.0, -18.0); sub_10028CCE0(&v22, v5); ((void (__fastcall *)(TextArea *, char *))v4->setPosition)(v4, &v22); v6 = sub_100092A60("Refresh Login", 160, 0, 1, 1.0); v7 = CCMenuItemSpriteExtra::create( v6, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)AccountHelpLayer::onReLogin); a1->m_refreshLoginButton = v7; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v7); v8 = sub_100092A60("Manage Account", 160, 0, 1, 1.0); v15 = CCMenuItemSpriteExtra::create( v8, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)AccountHelpLayer::onAccountManagement); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v15); v9 = sub_100092A60("Unlink Account", 160, 0, 1, 1.0); v10 = CCMenuItemSpriteExtra::create( v9, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)AccountHelpLayer::onUnlink); a1->m_unlinkAccountButton = v10; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v10); m_buttonMenu = a1->m_buttonMenu; m_mainLayer = a1->m_mainLayer; sub_10028CBE0(v19, v20 * 0.5, (float)(0.5 * v21) + 30.0); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v23, (const cocos2d::CCPoint *)m_mainLayer); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v22, (const cocos2d::CCPoint *)m_buttonMenu); m_refreshLoginButton = a1->m_refreshLoginButton; sub_10028CBE0(v19, 0.0, 0.0); sub_10028CCE0(v23, &v22); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *))m_refreshLoginButton->setPosition)(m_refreshLoginButton, v23); sub_10028CBE0(v19, 0.0, -45.0); sub_10028CCE0(v23, &v22); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *))v15->setPosition)(v15, v23); m_unlinkAccountButton = a1->m_unlinkAccountButton; sub_10028CBE0(v19, 0.0, -90.0); sub_10028CCE0(v23, &v22); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *))m_unlinkAccountButton->setPosition)( m_unlinkAccountButton, v23); AccountHelpLayer::updatePage(a1); GJAccountManager::sharedState()->m_accountDelegate = &a1->GJAccountDelegate; a1->m_unk290 = 1; }