// // MessagesProfilePage::init from 0x10022da30 to 0x10022e3fe (2510 bytes) // // 1 xrefs: // > MessagesProfilePage::create @ 0x10022d9f0 // // 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 __fastcall MessagesProfilePage::init(MessagesProfilePage *a1, bool a2) { bool result; // al cocos2d::extension::CCScale9Sprite *v4; // r14 const char *v5; // rdi cocos2d::CCLabelBMFont *v6; // r14 cocos2d::CCLabelBMFont *v7; // rax cocos2d::CCLabelBMFont *m_levelsLabel; // r14 cocos2d::CCLabelBMFont *v9; // r14 cocos2d::CCSprite *v10; // rax CCMenuItemSpriteExtra *v11; // rax int v12; // edx int v13; // ecx int v14; // r8d int v15; // r9d cocos2d::CCMenu *v16; // r14 LoadingCircle *v17; // rax cocos2d::CCSprite *m_sprite; // r14 cocos2d::CCSprite *v19; // rax CCMenuItemSpriteExtra *v20; // r14 cocos2d::CCMenu *m_buttonMenu; // r15 cocos2d::CCSprite *v22; // rax ButtonSprite *v23; // r14 CCMenuItemSpriteExtra *v24; // r15 cocos2d::CCSprite *v25; // r12 cocos2d::CCSprite *v26; // r13 CCMenuItemToggler *v27; // rax CCMenuItemToggler *m_toggleAllToggler; // r12 __int64 v29; // r15 cocos2d::CCLabelBMFont *v30; // r12 cocos2d::CCLabelBMFont *v31; // rax cocos2d::CCLabelBMFont *m_errorLabel; // r14 cocos2d::CCSprite *v33; // r15 CCMenuItemSpriteExtra *v34; // rax CCMenuItemSpriteExtra *m_prevButton; // r15 cocos2d::CCMenu *v36; // r12 cocos2d::CCSprite *v37; // r14 CCMenuItemSpriteExtra *v38; // rax CCMenuItemSpriteExtra *m_nextButton; // r14 cocos2d::CCMenu *v40; // r15 cocos2d::CCSprite *v41; // rax CCMenuItemSpriteExtra *v42; // rax CCMenuItemSpriteExtra *m_refreshButton; // r14 cocos2d::CCMenu *v44; // r15 _BYTE v45[8]; // [rsp+8h] [rbp-58h] BYREF _BYTE v46[16]; // [rsp+10h] [rbp-50h] BYREF float v47; // [rsp+20h] [rbp-40h] _BYTE v48[11]; // [rsp+24h] [rbp-3Ch] BYREF bool v49; // [rsp+2Fh] [rbp-31h] float v50; // [rsp+30h] [rbp-30h] BYREF float v51; // [rsp+34h] [rbp-2Ch] double v52; // 0:xmm0_8.8 double v53; // 0:xmm0_8.8 double v54; // 0:xmm0_8.8 double v55; // 0:xmm0_8.8 double v56; // 0:xmm0_8.8 cocos2d::CCRect v57; // 0:xmm0_8.8,8:xmm1_8.8 result = FLAlertLayer::init_1(a1, 150); if ( result ) { v49 = result; a1->m_noElasticity = 1; a1->m_sentMessages = a2; cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v50); v57.origin = 0; v57.size = 0; sub_10028CC00(v46, 0.0, 0.0, 80.0, 80.0); v4 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", v57); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v4->setOpacity)(v4, 255); sub_10028CBF0(v46, 440.0, 290.0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _BYTE *))v4->setContentSize)(v4, v46); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v4, 0xFFFFFFFFLL); sub_10028CBE0(v46, v50 * 0.5, v51 * 0.5); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _BYTE *))v4->setPosition)(v4, v46); v5 = "Messages"; if ( a1->m_sentMessages ) v5 = "Sent Messages"; v6 = cocos2d::CCLabelBMFont::create_3(v5, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v6, 20); sub_10028CBE0(v46, v50 * 0.5, (float)((float)(v51 * 0.5) + 145.0) + -20.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v6->setPosition)(v6, v46); cocos2d::CCLabelBMFont::limitLabelWidth(v6, 185.0, 0.80000001, 0.0); v7 = cocos2d::CCLabelBMFont::create_3(" ", "goldFont.fnt"); a1->m_levelsLabel = v7; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v7, 20); m_levelsLabel = a1->m_levelsLabel; sub_10028CBE0(v46, 1.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))m_levelsLabel->setAnchorPoint)(m_levelsLabel, v46); v9 = a1->m_levelsLabel; sub_10028CBE0(v46, (float)((float)(v50 * 0.5) + 220.0) + -10.0, (float)((float)(v51 * 0.5) + 145.0) + -20.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v9->setPosition)(v9, v46); v10 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_backBtn_001.png"); v11 = CCMenuItemSpriteExtra::create( v10, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MessagesProfilePage::onClose); LODWORD(v9) = (_DWORD)v11; CCMenuItemSpriteExtra::setSizeMult(v11, 1.6); v16 = (cocos2d::CCMenu *)sub_100792C50((_DWORD)v9, 0, v12, v13, v14, v15); a1->m_buttonMenu = v16; sub_10028CBE0(v46, (float)((float)(v50 * 0.5) + -220.0) + 10.0, (float)((float)(v51 * 0.5) + 145.0) + -10.0); ((void (__fastcall *)(cocos2d::CCMenu *, _BYTE *))v16->setPosition)(v16, v46); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, a1->m_buttonMenu, 10); v17 = LoadingCircle::create(); a1->m_loadingCircle = v17; v17->m_parentLayer = a1->m_mainLayer; v17->m_fade = 0; cocos2d::CCObject::retain(v17); LoadingCircle::show(a1->m_loadingCircle); ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 0); m_sprite = a1->m_loadingCircle->m_sprite; sub_10028CBE0(v46, v50 * 0.5, v51 * 0.5); ((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *))m_sprite->setPosition)(m_sprite, v46); if ( !a1->m_sentMessages ) { v19 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messagessent_001.png"); v20 = CCMenuItemSpriteExtra::create( v19, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MessagesProfilePage::onSentMessages); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v20); m_buttonMenu = a1->m_buttonMenu; sub_10028CBE0(v48, (float)((float)(v50 * 0.5) + 220.0) + -10.0, (float)((float)(v51 * 0.5) + 145.0) + -10.0); *(cocos2d::CCPoint *)&v52 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)v46, (const cocos2d::CCPoint *)m_buttonMenu); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *, double))v20->setPosition)(v20, v46, v52); } v22 = cocos2d::CCSprite::createWithSpriteFrameName("edit_delBtn_001.png"); v23 = ButtonSprite::create(v22, 34, 0, 36.0, 1.0, 1, "GJ_button_04.png", 0); ((void (__fastcall *)(ButtonSprite *, float))v23->setScale)(v23, 0.69999999); v24 = CCMenuItemSpriteExtra::create( v23, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MessagesProfilePage::onDeleteSelected); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v24); sub_10028CBE0(v46, (float)((float)(v50 * 0.5) + -220.0) + 20.0, (float)((float)(v51 * 0.5) + -145.0) + 21.0); *(cocos2d::CCPoint *)&v53 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)v48, (const cocos2d::CCPoint *)a1->m_buttonMenu); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *, double))v24->setPosition)(v24, v48, v53); v25 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v26 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v25->setScale)(v25, 0.69999999); ((void (__fastcall *)(cocos2d::CCSprite *, float))v26->setScale)(v26, 0.69999999); v27 = CCMenuItemToggler::create( v26, v25, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MessagesProfilePage::onToggleAllObjects); a1->m_toggleAllToggler = v27; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemToggler *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v27); m_toggleAllToggler = a1->m_toggleAllToggler; v29 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v24->getPosition)(v24); sub_10028CBE0(v45, 46.0, 0.0); sub_10028CCE0(v48, v29); ((void (__fastcall *)(CCMenuItemToggler *, _BYTE *))m_toggleAllToggler->setPosition)(m_toggleAllToggler, v48); CCMenuItemToggler::setSizeMult(a1->m_toggleAllToggler, 1.1); v30 = cocos2d::CCLabelBMFont::create_3("All", "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v30, 10); sub_10028CBE0(v45, 80.0, 0.0); sub_10028CCE0(v48, v46); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v30->setPosition)(v30, v48); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v30->setScale)(v30, 0.60000002); v31 = cocos2d::CCLabelBMFont::create_3("Something went wrong...", "goldFont.fnt"); a1->m_errorLabel = v31; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v31, 10); m_errorLabel = a1->m_errorLabel; sub_10028CBE0(v48, v50 * 0.5, v51 * 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))m_errorLabel->setPosition)(m_errorLabel, v48); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))a1->m_errorLabel->setScale)(a1->m_errorLabel, 0.60000002); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))a1->m_errorLabel->setVisible)(a1->m_errorLabel, 0); v47 = v51 * 0.5; v33 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v33->setScale)(v33, 0.80000001); v34 = CCMenuItemSpriteExtra::create( v33, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MessagesProfilePage::onPrevPage); a1->m_prevButton = v34; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v34); m_prevButton = a1->m_prevButton; v36 = a1->m_buttonMenu; sub_10028CBE0(v45, (float)(v50 * 0.5) + -195.0, v47); *(cocos2d::CCPoint *)&v54 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)v48, (const cocos2d::CCPoint *)v36); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *, double))m_prevButton->setPosition)(m_prevButton, v48, v54); CCMenuItemSpriteExtra::setSizeMult(a1->m_prevButton, 2.0); v37 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v37, 1); ((void (__fastcall *)(cocos2d::CCSprite *, float))v37->setScale)(v37, 0.80000001); v38 = CCMenuItemSpriteExtra::create( v37, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MessagesProfilePage::onNextPage); a1->m_nextButton = v38; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v38); m_nextButton = a1->m_nextButton; v40 = a1->m_buttonMenu; sub_10028CBE0(v45, (float)(v50 * 0.5) + 195.0, v47); *(cocos2d::CCPoint *)&v55 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)v48, (const cocos2d::CCPoint *)v40); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *, double))m_nextButton->setPosition)(m_nextButton, v48, v55); CCMenuItemSpriteExtra::setSizeMult(a1->m_nextButton, 2.0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_prevButton->setVisible)(a1->m_prevButton, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_nextButton->setVisible)(a1->m_nextButton, 0); v41 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); v42 = CCMenuItemSpriteExtra::create( v41, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MessagesProfilePage::onUpdate); a1->m_refreshButton = v42; CCMenuItemSpriteExtra::setSizeMult(v42, 1.5); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, a1->m_refreshButton); m_refreshButton = a1->m_refreshButton; v44 = a1->m_buttonMenu; sub_10028CBE0( v45, (float)((float)(v50 * 0.5) + 220.0) + -10.0, (float)((float)((float)(0.5 * v51) + -145.0) + 10.0) + 1.0); *(cocos2d::CCPoint *)&v56 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)v48, (const cocos2d::CCPoint *)v44); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *, double))m_refreshButton->setPosition)( m_refreshButton, v48, v56); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_refreshButton->setVisible)(a1->m_refreshButton, 0); MessagesProfilePage::loadPage(a1, 0); return v49; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source