// // MenuLayer::init from 0x5c2e7c to 0x5c4158 (4828 bytes) // // 3 xrefs: // > MenuLayer::scene @ 0x5c4248 // > @ 0x764b8 // > @ 0x1146d70 // // 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 MenuLayer::init(MenuLayer *a1) { bool v2; // w28 GameManager *v4; // x0 GameManager *v5; // x0 MenuLayer_vtbl *v6; // x2 cocos2d::CCDirector *v7; // x0 MenuGameLayer *v8; // x0 cocos2d::CCSprite *v9; // x22 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23 cocos2d::CCDirector *v11; // x0 float v12; // s0 cocos2d::CCMenu *v13; // x23 cocos2d::CCSprite *v14; // x0 CCMenuItemSpriteExtra *v15; // x25 void (__fastcall *v16)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 cocos2d::CCSprite *v17; // x0 void (__fastcall *v18)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 __int64 v19; // x24 cocos2d::CCSprite *v20; // x0 void (__fastcall *v21)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 __int64 v22; // x26 cocos2d::CCDirector *v23; // x0 float v24; // s0 float v25; // s12 cocos2d::CCMenu *v26; // x22 cocos2d::CCSprite *v27; // x26 CCMenuItemSpriteExtra *v28; // x0 cocos2d::CCSprite *v29; // x26 cocos2d::CCSprite *v30; // x26 CCMenuItemSpriteExtra *v31; // x0 cocos2d::CCSprite *v32; // x26 CCMenuItemSpriteExtra *v33; // x0 void (__fastcall *v34)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCDirector *v35; // x0 float v36; // s0 float v37; // s9 cocos2d::CCSprite *v38; // x26 CCMenuItemSpriteExtra *v39; // x26 cocos2d::CCNode *v40; // x24 void (__fastcall *v41)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCDirector *v42; // x0 float v43; // s0 cocos2d::CCSprite *v44; // x26 CCMenuItemSpriteExtra *v45; // x26 cocos2d::CCSprite *v46; // x27 CCMenuItemSpriteExtra *v47; // x27 cocos2d::CCSprite *v48; // x27 CCMenuItemSpriteExtra *v49; // x27 cocos2d::CCDirector *v50; // x0 float v51; // s0 CCMenuItemSpriteExtra *v52; // x24 CCMenuItemSpriteExtra *v53; // x0 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v55)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 void (__fastcall *v56)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 CCMenuItemSpriteExtra *v57; // x24 void (__fastcall *v58)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 void (__fastcall *v59)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCSprite *v60; // x26 CCMenuItemSpriteExtra *v61; // x0 cocos2d::CCNode *v62; // x26 cocos2d::CCDirector *v63; // x0 float v64; // s0 cocos2d::CCSprite *v65; // x0 CCMenuItemSpriteExtra *v66; // x0 cocos2d::CCMenu_vtbl *v67; // x3 CCMenuItemSpriteExtra *m_profileButton; // x25 cocos2d::CCNode *v69; // x0 void (__fastcall *v70)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 cocos2d::CCLabelBMFont *v71; // x0 cocos2d::CCLabelBMFont *m_profileLabel; // x23 void (__fastcall *v73)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 GameManager *v74; // x0 cocos2d::CCSprite *v75; // x0 CCMenuItemSpriteExtra *v76; // x23 void (__fastcall *v77)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCDirector *v78; // x0 float v79; // s0 GameManager *v80; // x0 _BOOL4 m_testedNetwork; // w0 cocos2d::CCSequence *v82; // x20 cocos2d::CCFiniteTimeAction *v83; // x0 cocos2d::CCAction *v84; // x0 cocos2d::CCSequence *v85; // x20 cocos2d::CCFiniteTimeAction *v86; // x0 cocos2d::CCAction *v87; // x0 cocos2d::CCSprite *v88; // x0 cocos2d::CCSprite *m_viewProfileSprite; // x23 void (__fastcall *v90)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCSprite *v91; // x26 const cocos2d::CCPoint *v92; // x0 void (__fastcall *v93)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCSprite *v94; // x25 cocos2d::CCNode *v95; // x26 const cocos2d::CCPoint *v96; // x0 void (__fastcall *v97)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCSprite *v98; // x25 cocos2d::CCNode *v99; // x26 const cocos2d::CCPoint *v100; // x0 void (__fastcall *v101)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCSprite *v102; // x25 cocos2d::CCNode *v103; // x26 const cocos2d::CCPoint *v104; // x0 void (__fastcall *v105)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 GameManager *v106; // x0 GJAccountManager *v107; // x0 float v108; // s9 cocos2d::CCSprite *v109; // x26 void (__fastcall *v110)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x27 cocos2d::CCDirector *v111; // x0 float v112; // s0 cocos2d::CCSprite *v113; // x24 void (__fastcall *v114)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x27 cocos2d::CCLabelBMFont *v115; // x27 cocos2d::CCSprite *v116; // x0 const cocos2d::CCPoint *(__fastcall *v117)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v118)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCLabelBMFont *v119; // x25 void (__fastcall *v120)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x26 void (__fastcall *v121)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 __int64 v122; // x27 cocos2d::CCSprite *v123; // x22 void (__fastcall *v124)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 const cocos2d::CCPoint *v125; // x0 cocos2d::CCSprite *v126; // x22 void (__fastcall *v127)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 const cocos2d::CCPoint *v128; // x0 CCMenuItemSpriteExtra *v129; // [xsp+A8h] [xbp+A8h] CCMenuItemSpriteExtra *v130; // [xsp+B0h] [xbp+B0h] CCMenuItemSpriteExtra *v131; // [xsp+B8h] [xbp+B8h] void (__fastcall *v132)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] CCMenuItemSpriteExtra *v133; // [xsp+C8h] [xbp+C8h] __int64 v134; // [xsp+C8h] [xbp+C8h] __int64 v135; // [xsp+C8h] [xbp+C8h] cocos2d::CCSprite *v136; // [xsp+E0h] [xbp+E0h] CCMenuItemSpriteExtra *v137; // [xsp+E0h] [xbp+E0h] cocos2d::CCSprite *v138; // [xsp+E8h] [xbp+E8h] CCMenuItemSpriteExtra *v139; // [xsp+E8h] [xbp+E8h] __int64 v140; // [xsp+E8h] [xbp+E8h] __int64 v141; // [xsp+E8h] [xbp+E8h] void (__fastcall *v142)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+E8h] [xbp+E8h] CCMenuItemSpriteExtra *v143; // [xsp+E8h] [xbp+E8h] __int64 v144; // [xsp+E8h] [xbp+E8h] void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // [xsp+E8h] [xbp+E8h] __int64 v146; // [xsp+E8h] [xbp+E8h] float v147; // [xsp+F8h] [xbp+F8h] float v148; // [xsp+FCh] [xbp+FCh] cocos2d::CCPoint v149; // [xsp+100h] [xbp+100h] BYREF cocos2d::CCPoint v150; // [xsp+108h] [xbp+108h] BYREF cocos2d::CCPoint v151; // [xsp+110h] [xbp+110h] BYREF cocos2d::CCPoint v152; // 0:kr08_8.8 cocos2d::CCPoint v153; // 0:kr10_8.8 cocos2d::CCPoint v154; // 0:kr18_8.8 cocos2d::CCPoint v155; // 0:kr38_8.8 cocos2d::CCPoint v156; // 0:kr48_8.8 cocos2d::CCPoint v157; // 0:kr58_8.8 cocos2d::SEL_MenuHandler v158; // 0:x2.16 cocos2d::SEL_MenuHandler v159; // 0:x2.16 cocos2d::SEL_MenuHandler v160; // 0:x2.16 cocos2d::SEL_MenuHandler v161; // 0:x2.16 cocos2d::SEL_MenuHandler v162; // 0:x2.16 cocos2d::SEL_MenuHandler v163; // 0:x2.16 cocos2d::SEL_MenuHandler v164; // 0:x2.16 cocos2d::SEL_MenuHandler v165; // 0:x2.16 cocos2d::SEL_MenuHandler v166; // 0:x2.16 cocos2d::SEL_MenuHandler v167; // 0:x2.16 cocos2d::SEL_MenuHandler v168; // 0:x2.16 cocos2d::SEL_MenuHandler v169; // 0:x2.16 cocos2d::SEL_MenuHandler v170; // 0:x2.16 cocos2d::SEL_MenuHandler v171; // 0:x2.16 cocos2d::SEL_MenuHandler v172; // 0:x2.16 cocos2d::SEL_MenuHandler v173; // 0:x2.16 v2 = cocos2d::CCLayer::init(a1); if ( v2 ) { v4 = GameManager::sharedState(); GameManager::fadeInMenuMusic(v4); GameManager::sharedState()->m_inMenuLayer = 1; GameManager::sharedState()->m_sceneEnum = 0; v5 = GameManager::sharedState(); v6 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v5->m_somethingInMenuLayer = 0; v6->setKeypadEnabled(a1, 1); a1->setKeyboardEnabled(a1, 1); v7 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v7); v8 = MenuGameLayer::create(); a1->m_menuGameLayer = v8; a1->addChild(a1, v8); v9 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_logo_001.png"); a1->addChild_0(a1, v9, 2); setPosition = v9->setPosition; v11 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v11); cocos2d::CCPoint::CCPoint(&v151, v147 * 0.5, v12 - 50.0); setPosition(v9, &v151); v13 = cocos2d::CCMenu::create(); v14 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_playBtn_001.png"); v158.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v158.adj = (size_t)MenuLayer::onPlay; v15 = CCMenuItemSpriteExtra::create(v14, nullptr, v158); v13->addChild(v13, v15); a1->addChild(a1, v13); v16 = v13->setPosition; cocos2d::CCPoint::CCPoint(&v151, v147 * 0.5, (float)(v148 * 0.5) + 10.0); v16(v13, &v151); v17 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_garageBtn_001.png"); v159.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v159.adj = (size_t)MenuLayer::onGarage; v130 = CCMenuItemSpriteExtra::create(v17, nullptr, v159); v13->addChild(v13, v130); v18 = v130->setPosition; v19 = (__int64)v15->getPosition(v15); cocos2d::CCPoint::CCPoint(&v150, -110.0, 0.0); cocos2d::CCPoint::operator+(&v151, v19, &v150); v18(v130, &v151); if ( !GameManager::sharedState()->m_clickedGarage ) { v126 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_chrSel_001.png"); a1->addChild(a1, v126); v127 = v126->setPosition; v128 = v130->getPosition(v130); cocos2d::CCNode::convertToWorldSpace(v13, v128); cocos2d::CCPoint::CCPoint(&v150, -50.0, -50.0); cocos2d::CCPoint::operator+(&v151, &v149, &v150); v127(v126, &v151); } v20 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_creatorBtn_001.png"); v160.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v160.adj = (size_t)MenuLayer::onCreator; v129 = CCMenuItemSpriteExtra::create(v20, nullptr, v160); v13->addChild(v13, v129); v21 = v129->setPosition; v22 = (__int64)v15->getPosition(v15); cocos2d::CCPoint::CCPoint(&v150, 110.0, 0.0); cocos2d::CCPoint::operator+(&v151, v22, &v150); v21(v129, &v151); if ( !GameManager::sharedState()->m_clickedEditor ) { v123 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lvlEdit_001.png"); a1->addChild(a1, v123); v124 = v123->setPosition; v125 = v129->getPosition(v129); cocos2d::CCNode::convertToWorldSpace(v13, v125); cocos2d::CCPoint::CCPoint(&v150, 50.0, -50.0); cocos2d::CCPoint::operator+(&v151, &v149, &v150); v124(v123, &v151); } v23 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v23); v25 = v24 + 45.0; v26 = cocos2d::CCMenu::create(); a1->addChild(a1, v26); v27 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_achBtn_001.png"); v27->setScale(v27, 1.0); v161.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v161.adj = (size_t)MenuLayer::onAchievements; v28 = CCMenuItemSpriteExtra::create(v27, nullptr, v161); v26->addChild(v26, v28); v29 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png"); v29->setScale(v29, 1.0); v162.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v162.adj = (size_t)MenuLayer::onOptions; v131 = CCMenuItemSpriteExtra::create(v29, nullptr, v162); v26->addChild(v26, v131); v30 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_statsBtn_001.png"); v30->setScale(v30, 1.0); v163.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v163.adj = (size_t)MenuLayer::onStats; v31 = CCMenuItemSpriteExtra::create(v30, nullptr, v163); v26->addChild(v26, v31); v32 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_ngBtn_001.png"); v32->setScale(v32, 1.0); v164.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v164.adj = (size_t)MenuLayer::onNewgrounds; v33 = CCMenuItemSpriteExtra::create(v32, nullptr, v164); v26->addChild(v26, v33); v34 = v26->setPosition; cocos2d::CCPoint::CCPoint(&v151, v147 * 0.5, v25); v34(v26, &v151); cocos2d::CCMenu::alignItemsHorizontallyWithPadding(v26, 5.0); v35 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v35); v37 = v36 + 30.0; v38 = cocos2d::CCSprite::createWithSpriteFrameName("robtoplogo_small.png"); v38->setScale(v38, 0.8); v165.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v165.adj = (size_t)MenuLayer::onRobTop; v39 = CCMenuItemSpriteExtra::create(v38, nullptr, v165); CCMenuItemSpriteExtra::setSizeMult(v39, 1.1); v40 = (cocos2d::CCNode *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v39, nullptr); a1->addChild_0(a1, v40, 2); v41 = v40->setPosition; v42 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v42); cocos2d::CCPoint::CCPoint(&v151, v43 + 50.0, v37 - 5.0); v41(v40, &v151); v44 = cocos2d::CCSprite::createWithSpriteFrameName("gj_fbIcon_001.png"); v44->setScale(v44, 0.8); v166.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v166.adj = (size_t)MenuLayer::onFacebook; v45 = CCMenuItemSpriteExtra::create(v44, nullptr, v166); CCMenuItemSpriteExtra::setSizeMult(v45, 1.5); v40->addChild(v40, v45); v46 = cocos2d::CCSprite::createWithSpriteFrameName("gj_twIcon_001.png"); v46->setScale(v46, 0.8); v167.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v167.adj = (size_t)MenuLayer::onTwitter; v47 = CCMenuItemSpriteExtra::create(v46, nullptr, v167); CCMenuItemSpriteExtra::setSizeMult(v47, 1.5); v133 = v47; v40->addChild(v40, v47); v48 = cocos2d::CCSprite::createWithSpriteFrameName("gj_ytIcon_001.png"); v48->setScale(v48, 0.8); v168.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v168.adj = (size_t)MenuLayer::onYouTube; v49 = CCMenuItemSpriteExtra::create(v48, nullptr, v168); CCMenuItemSpriteExtra::setSizeMult(v49, 1.5); v40->addChild(v40, v49); v138 = cocos2d::CCSprite::createWithSpriteFrameName("gj_twitchIcon_001.png"); ((void (__fastcall *)(float))v138->setScale)(0.8); v169.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v169.adj = (size_t)MenuLayer::onTwitch; v139 = CCMenuItemSpriteExtra::create(v138, nullptr, v169); CCMenuItemSpriteExtra::setSizeMult(v139, 1.5); v40->addChild(v40, v139); v136 = cocos2d::CCSprite::createWithSpriteFrameName("gj_discordIcon_001.png"); ((void (__fastcall *)(float))v136->setScale)(0.8); v170.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v170.adj = (size_t)MenuLayer::onDiscord; v137 = CCMenuItemSpriteExtra::create(v136, nullptr, v170); CCMenuItemSpriteExtra::setSizeMult(v137, 1.5); v40->addChild(v40, v137); v132 = v45->setPosition; v50 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v50); cocos2d::CCPoint::CCPoint(&v150, v51 + 22.0, v37 + 25.0); v152 = cocos2d::CCNode::convertToNodeSpace(v40, &v150); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *, float, float))v132)(v45, &v151, v152.x, v152.y); v52 = v133; v53 = v45; getPosition = v45->getPosition; v55 = v133->setPosition; v134 = (__int64)getPosition(v53); cocos2d::CCPoint::CCPoint(&v150, 29.0, 0.0); cocos2d::CCPoint::operator+(&v151, v134, &v150); v55(v52, &v151); v56 = v49->setPosition; v135 = (__int64)v52->getPosition(v52); cocos2d::CCPoint::CCPoint(&v150, 29.0, 0.0); cocos2d::CCPoint::operator+(&v151, v135, &v150); v56(v49, &v151); v57 = v139; v58 = v139->setPosition; v140 = (__int64)v49->getPosition(v49); cocos2d::CCPoint::CCPoint(&v150, 29.0, 0.0); cocos2d::CCPoint::operator+(&v151, v140, &v150); v58(v57, &v151); v59 = v137->setPosition; v141 = (__int64)v49->getPosition(v49); cocos2d::CCPoint::CCPoint(&v150, 29.0, -29.0); cocos2d::CCPoint::operator+(&v151, v141, &v150); v59(v137, &v151); v60 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_moreGamesBtn_001.png"); v60->setScale(v60, 0.9); v171.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v171.adj = (size_t)MenuLayer::onMoreGames; v61 = CCMenuItemSpriteExtra::create(v60, nullptr, v171); v62 = (cocos2d::CCNode *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v61, nullptr); a1->addChild_0(a1, v62, 2); v142 = v62->setPosition; v63 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v63); cocos2d::CCPoint::CCPoint(&v151, v64 - 43.0, v25); v142(v62, &v151); GameManager::sharedState()->m_firstSetup = 0; if ( PlatformToolbox::isControllerConnected() ) { v143 = v131; v91 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_Start_001.png"); a1->addChild(a1, v91); v92 = v15->getPosition(v15); cocos2d::CCNode::convertToWorldSpace(v13, v92); cocos2d::CCNode::convertToNodeSpace(a1, &v151); v93 = v91->setPosition; cocos2d::CCPoint::CCPoint(&v150, 0.0, -66.0); cocos2d::CCPoint::operator+(&v151, &v149, &v150); v93(v91, &v151); v94 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_Y_001.png"); a1->addChild(a1, v94); v95 = v129->getParent(v129); v96 = v129->getPosition(v129); cocos2d::CCNode::convertToWorldSpace(v95, v96); v155 = cocos2d::CCNode::convertToNodeSpace(a1, &v150); cocos2d::CCPoint::operator=(&v149, v155.x, v155.y); v97 = v94->setPosition; cocos2d::CCPoint::CCPoint(&v150, 0.0, -45.0); cocos2d::CCPoint::operator+(&v151, &v149, &v150); v97(v94, &v151); v94->setScale(v94, 0.8); v98 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_X_001.png"); a1->addChild(a1, v98); v99 = v130->getParent(v130); v100 = v130->getPosition(v130); cocos2d::CCNode::convertToWorldSpace(v99, v100); v156 = cocos2d::CCNode::convertToNodeSpace(a1, &v150); cocos2d::CCPoint::operator=(&v149, v156.x, v156.y); v101 = v98->setPosition; cocos2d::CCPoint::CCPoint(&v150, 0.0, -45.0); cocos2d::CCPoint::operator+(&v151, &v149, &v150); v101(v98, &v151); v98->setScale(v98, 0.8); v102 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_DPad_Down_001.png"); a1->addChild(a1, v102); v103 = v143->getParent(v143); v104 = v143->getPosition(v143); cocos2d::CCNode::convertToWorldSpace(v103, v104); v157 = cocos2d::CCNode::convertToNodeSpace(a1, &v150); cocos2d::CCPoint::operator=(&v149, v157.x, v157.y); v105 = v102->setPosition; cocos2d::CCPoint::CCPoint(&v150, 0.0, -34.0); cocos2d::CCPoint::operator+(&v151, &v149, &v150); v105(v102, &v151); v102->setScale(v102, 0.5); v106 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v106, "0028") ) { v107 = GJAccountManager::sharedState(); v108 = 0.0; if ( v107->m_accountID - v107->m_unkInt1 > 0 ) v108 = 15.0; v109 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_LThumb_001.png"); a1->addChild(a1, v109); v110 = v109->setPosition; v111 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v111); cocos2d::CCPoint::CCPoint(&v151, v112 + 25.0, v108 + (float)((float)((float)(v148 * 0.5) + 15.0) + 10.0)); v110(v109, &v151); v113 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_A_001.png"); a1->addChild(a1, v113); v114 = v113->setPosition; v144 = (__int64)v109->getPosition(v109); cocos2d::CCPoint::CCPoint(&v150, 0.0, -30.0); cocos2d::CCPoint::operator+(&v151, v144, &v150); v114(v113, &v151); v115 = cocos2d::CCLabelBMFont::create(); v115->setScale(v115, 0.5); a1->addChild(a1, v115); setAnchorPoint = v115->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v151, 0.0, 0.6); setAnchorPoint(v115, &v151); v116 = v109; v117 = v109->getPosition; v118 = v115->setPosition; v146 = (__int64)v117(v116); cocos2d::CCPoint::CCPoint(&v150, 16.0, 1.0); cocos2d::CCPoint::operator+(&v151, v146, &v150); v118(v115, &v151); v119 = cocos2d::CCLabelBMFont::create(); v119->setScale(v119, 0.5); a1->addChild(a1, v119); v120 = v119->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v151, 0.0, 0.6); v120(v119, &v151); v121 = v119->setPosition; v122 = (__int64)v113->getPosition(v113); cocos2d::CCPoint::CCPoint(&v150, 16.0, 1.0); cocos2d::CCPoint::operator+(&v151, v122, &v150); v121(v119, &v151); } } v65 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_profileButton_001.png"); v172.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v172.adj = (size_t)MenuLayer::onMyProfile; v66 = CCMenuItemSpriteExtra::create(v65, nullptr, v172); v67 = v13->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_profileButton = v66; v67->addChild_0(v13, v66, 2); cocos2d::CCPoint::CCPoint(&v149, 45.0, 105.0); m_profileButton = a1->m_profileButton; v69 = v13; v70 = m_profileButton->setPosition; v153 = cocos2d::CCNode::convertToNodeSpace(v69, &v149); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *, float, float))v70)( m_profileButton, &v151, v153.x, v153.y); v71 = cocos2d::CCLabelBMFont::create(); a1->m_profileLabel = v71; a1->addChild_0(a1, v71, 2); m_profileLabel = a1->m_profileLabel; v73 = m_profileLabel->setPosition; cocos2d::CCPoint::CCPoint(&v150, 2.0, 36.0); cocos2d::CCPoint::operator+(&v151, &v149, &v150); v73(m_profileLabel, &v151); cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_profileLabel, 70.0, 0.7, 0.0); v74 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v74, "0048") && GameManager::sharedState()->m_clickedGarage ) { v88 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_viewProfileTxt_001.png"); a1->m_viewProfileSprite = v88; a1->addChild_0(a1, v88, 2); m_viewProfileSprite = a1->m_viewProfileSprite; v90 = m_viewProfileSprite->setPosition; cocos2d::CCPoint::CCPoint(&v150, 76.0, -1.0); cocos2d::CCPoint::operator+(&v151, &v149, &v150); v90(m_viewProfileSprite, &v151); } MenuLayer::updateUserProfileButton(a1); GameManager::sharedState()->m_menuLayer = a1; v75 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_dailyRewardBtn_001.png"); v173.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v173.adj = (size_t)MenuLayer::onDaily; v76 = CCMenuItemSpriteExtra::create(v75, nullptr, v173); v26->addChild(v26, v76); v77 = v76->setPosition; v78 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v78); cocos2d::CCPoint::CCPoint(&v150, v79 - 40.0, (float)(v148 * 0.5) + 20.0); v154 = cocos2d::CCNode::convertToNodeSpace(v26, &v150); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *, float, float))v77)(v76, &v151, v154.x, v154.y); CCMenuItemSpriteExtra::setSizeMult(v76, 1.5); v80 = GameManager::sharedState(); if ( !GameManager::getUGV(v80, "30") ) { a1->m_showingTOS = (unsigned __int8)&dword_0 + 1; v85 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.01); v86 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, MenuLayer::showTOS, 0); v87 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v85, v86, 0); cocos2d::CCNode::runAction(a1, v87); } m_testedNetwork = GameLevelManager::sharedState()->m_testedNetwork; if ( m_testedNetwork ) { return m_testedNetwork; } else { v82 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.01); v83 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, MenuLayer::firstNetworkTest, 0); v84 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v82, v83, 0); cocos2d::CCNode::runAction(a1, v84); } } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source