// // MenuLayer::init from 0x3f9f58 to 0x3faede (3974 bytes) // // 1 xrefs: // > MenuLayer::scene @ 0x3f96aa // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:47:20 +0000 // GameManager *__fastcall MenuLayer::init(cocos2d::CCLabelBMFont **this) { GameManager *v2; // r0 GameManager *v3; // r0 GameManager *v4; // r0 GameManager *v5; // r0 GameManager *v6; // r0 cocos2d::CCDirector *v7; // r0 MenuGameLayer *WinSize; // r0 cocos2d::CCLabelBMFont *v9; // r0 cocos2d::CCLabelBMFont *v10; // r3 const char *v11; // r1 int v12; // r7 cocos2d::CCDirector *v13; // r0 float v14; // s16 int (__fastcall *v15)(int, _DWORD *); // r8 cocos2d::CCDirector *v16; // r0 float v17; // r0 cocos2d::CCMenu *v18; // r0 const char *v19; // r1 int v20; // r0 void (__fastcall *v21)(cocos2d::CCPoint *, _DWORD *); // r7 const char *v22; // r1 int v23; // r0 int (__fastcall *v24)(int, _DWORD *); // r7 int v25; // r8 GameManager *v26; // r0 const char *v27; // r1 cocos2d::CCLabelBMFont *v28; // r0 cocos2d::CCLabelBMFont *v29; // r3 int v30; // r7 void (__fastcall *v31)(int, _DWORD *); // r8 int v32; // r0 int (__fastcall *v33)(char *, _DWORD *); // r7 int v34; // r8 GameManager *v35; // r0 cocos2d::CCDirector *v36; // r0 const char *v37; // r1 int v38; // r7 int (__fastcall *v39)(int, _DWORD *); // r8 cocos2d::CCDirector *v40; // r0 float v41; // r0 float v42; // s19 const char *v43; // r1 int v44; // r6 int v45; // r0 const char *v46; // r1 int v47; // r6 const char *v48; // r1 int v49; // r6 int v50; // r0 GameManager *v51; // r0 GameManager *v52; // r0 const char *v53; // r1 int v54; // r6 int v55; // r0 void (__fastcall *v56)(cocos2d::CCMenu *, _DWORD *); // r5 cocos2d::CCDirector *v57; // r0 cocos2d::CCDirector *v58; // r0 float v59; // s20 const char *v60; // r1 int v61; // r6 cocos2d::CCMenu *v62; // r6 const cocos2d::CCPoint *v63; // r6 cocos2d::CCDirector *v64; // r0 void (__fastcall *v65)(const cocos2d::CCPoint *, _DWORD *); // r7 cocos2d::CCDirector *v66; // r0 float v67; // r0 const char *v68; // r1 int v69; // r7 int v70; // r10 const char *v71; // r1 int v72; // r7 const char *v73; // r1 int v74; // r7 int v75; // r8 const char *v76; // r1 int v77; // r7 const char *v78; // r1 int v79; // r7 cocos2d::CCDirector *v80; // r0 cocos2d::CCDirector *v81; // r0 float v82; // r0 int v83; // r10 int v84; // r10 int v85; // r10 int (__fastcall *v86)(int, _DWORD *); // r10 int v87; // r8 GameManager *v88; // r0 GameManager *v89; // r0 const char *v90; // r1 int v91; // r7 cocos2d::CCMenu *v92; // r0 cocos2d::CCMenu *v93; // r6 int v94; // r9 cocos2d::CCDirector *v95; // r0 int (__fastcall *v96)(int, _DWORD *); // r8 cocos2d::CCDirector *v97; // r0 float v98; // r0 GameManager *v99; // r0 GameManager *v100; // r0 GameManager *v101; // r0 PlatformToolbox *v102; // r0 const char *v103; // r1 int v104; // r9 void (__fastcall *v105)(int, _DWORD *); // r8 const char *v106; // r1 int v107; // r9 const cocos2d::CCPoint *v108; // r8 void (__fastcall *v109)(int, _DWORD *); // r8 const char *v110; // r1 int v111; // r9 const cocos2d::CCPoint *v112; // r8 void (__fastcall *v113)(int, _DWORD *); // r8 const char *v114; // r1 int v115; // r9 const cocos2d::CCPoint *v116; // r8 void (__fastcall *v117)(int, _DWORD *); // r8 GameManager *v118; // r0 GameManager *v119; // r0 int v120; // r0 const char *v121; // r1 float v122; // s19 int v123; // r7 cocos2d::CCDirector *v124; // r0 void (__fastcall *v125)(int, _DWORD *); // r8 cocos2d::CCDirector *v126; // r0 float v127; // r0 const char *v128; // r1 int v129; // r9 int v130; // r8 const char *v131; // r2 int v132; // r8 int v133; // r7 const char *v134; // r2 int v135; // r8 void (__fastcall *v136)(int, _DWORD *); // r7 void (__fastcall *v137)(int, _DWORD *); // r7 int v138; // r9 int v139; // r0 int v140; // r0 int v141; // r9 void (__fastcall *v142)(int, _DWORD *); // r7 const char *v143; // r2 cocos2d::CCLabelBMFont *v144; // r0 cocos2d::CCLabelBMFont *v145; // r3 int v146; // r10 void (__fastcall *v147)(int, _DWORD *); // r9 GameManager *v148; // r0 GameManager *v149; // r0 GameManager *v150; // r0 const char *v151; // r1 int v152; // r10 int v153; // r0 int v154; // r6 int (__fastcall *v155)(int, _DWORD *); // r9 GameManager *v156; // r0 const char *v157; // r1 GameManager *updated; // r0 const char *v159; // r1 int v160; // r0 int v161; // r5 cocos2d::CCDirector *v162; // r0 void (__fastcall *v163)(int, _DWORD *); // r8 cocos2d::CCDirector *v164; // r0 float v165; // r0 GameManager *v166; // r0 GameManager *v167; // r0 GameLevelManager *UGV; // r0 float v169; // r1 cocos2d::CCSequence *v170; // r0 cocos2d::CCSequence *v171; // r8 cocos2d::CCFiniteTimeAction *v172; // r0 cocos2d::CCAction *v173; // r0 unsigned __int8 *v174; // r0 float v175; // r1 int v176; // r5 cocos2d::CCSequence *v177; // r0 cocos2d::CCSequence *v178; // r8 cocos2d::CCFiniteTimeAction *v179; // r0 cocos2d::CCAction *v180; // r0 MusicDownloadManager *v181; // r0 GameManager *v182; // r0 GameManager *v183; // r0 float v184; // r1 MusicDownloadManager *v185; // r0 GameLevelManager *v186; // r0 GameLevelManager *v187; // r0 cocos2d::CCSequence *v188; // r0 cocos2d::CCSequence *v189; // r7 cocos2d::CCFiniteTimeAction *v190; // r0 cocos2d::CCAction *v191; // r0 cocos2d::CCLabelBMFont *v193; // r0 cocos2d::CCLabelBMFont *v194; // r3 int v195; // r5 void (__fastcall *v196)(int, _DWORD *); // r8 cocos2d::CCPoint *v197; // [sp+8h] [bp-ECh] cocos2d::CCMenu *v198; // [sp+Ch] [bp-E8h] int v199; // [sp+10h] [bp-E4h] void (__fastcall *v200)(int, _DWORD *); // [sp+10h] [bp-E4h] void (__fastcall *v201)(int, _DWORD *); // [sp+10h] [bp-E4h] void (__fastcall *v202)(int, _DWORD *); // [sp+10h] [bp-E4h] char *v203; // [sp+14h] [bp-E0h] int v204; // [sp+18h] [bp-DCh] int v205; // [sp+1Ch] [bp-D8h] int v206; // [sp+20h] [bp-D4h] int v207; // [sp+20h] [bp-D4h] int v208; // [sp+24h] [bp-D0h] GameManager *v209; // [sp+28h] [bp-CCh] void (__fastcall *v210)(int, _DWORD *); // [sp+2Ch] [bp-C8h] void (__fastcall *v211)(int, _DWORD *); // [sp+2Ch] [bp-C8h] void (__fastcall *v212)(int, _DWORD *); // [sp+2Ch] [bp-C8h] void (__fastcall *v213)(int, _DWORD *); // [sp+2Ch] [bp-C8h] int v214; // [sp+34h] [bp-C0h] float v215; // [sp+3Ch] [bp-B8h] BYREF float v216; // [sp+40h] [bp-B4h] _BYTE v217[8]; // [sp+44h] [bp-B0h] BYREF unsigned __int8 *(__fastcall *v218)(unsigned __int8 *, cocos2d::CCObject *); // [sp+4Ch] [bp-A8h] int v219; // [sp+50h] [bp-A4h] MenuLayer *(__fastcall *v220)(MenuLayer *, cocos2d::CCObject *); // [sp+54h] [bp-A0h] int v221; // [sp+58h] [bp-9Ch] MenuLayer *(__fastcall *v222)(MenuLayer *, cocos2d::CCObject *); // [sp+5Ch] [bp-98h] int v223; // [sp+60h] [bp-94h] int (__fastcall *v224)(MenuLayer *, cocos2d::CCObject *); // [sp+64h] [bp-90h] int v225; // [sp+68h] [bp-8Ch] VideoOptionsLayer *(__fastcall *v226)(MenuLayer *, cocos2d::CCObject *); // [sp+6Ch] [bp-88h] int v227; // [sp+70h] [bp-84h] int (__fastcall *v228)(MenuLayer *, cocos2d::CCObject *); // [sp+74h] [bp-80h] int v229; // [sp+78h] [bp-7Ch] int (__fastcall *v230)(MenuLayer *, cocos2d::CCObject *); // [sp+7Ch] [bp-78h] int v231; // [sp+80h] [bp-74h] int (__fastcall *v232)(MenuLayer *, cocos2d::CCObject *); // [sp+84h] [bp-70h] int v233; // [sp+88h] [bp-6Ch] int (__fastcall *v234)(MenuLayer *, cocos2d::CCObject *); // [sp+8Ch] [bp-68h] int v235; // [sp+90h] [bp-64h] int (__fastcall *v236)(MenuLayer *, cocos2d::CCObject *); // [sp+94h] [bp-60h] int v237; // [sp+98h] [bp-5Ch] int (__fastcall *v238)(MenuLayer *, cocos2d::CCObject *); // [sp+9Ch] [bp-58h] int v239; // [sp+A0h] [bp-54h] int (__fastcall *v240)(MenuLayer *, cocos2d::CCObject *); // [sp+A4h] [bp-50h] int v241; // [sp+A8h] [bp-4Ch] int (__fastcall *v242)(MenuLayer *, cocos2d::CCObject *); // [sp+ACh] [bp-48h] int v243; // [sp+B0h] [bp-44h] int (__fastcall *v244)(MenuLayer *, cocos2d::CCObject *); // [sp+B4h] [bp-40h] int v245; // [sp+B8h] [bp-3Ch] GameManager *(__fastcall *v246)(MenuLayer *, cocos2d::CCObject *); // [sp+BCh] [bp-38h] int v247; // [sp+C0h] [bp-34h] int (__fastcall *v248)(MenuLayer *, cocos2d::CCObject *); // [sp+C4h] [bp-30h] int v249; // [sp+C8h] [bp-2Ch] int (__fastcall *v250)(MenuLayer *, cocos2d::CCObject *); // [sp+CCh] [bp-28h] int v251; // [sp+D0h] [bp-24h] _DWORD v252[2]; // [sp+D4h] [bp-20h] BYREF _DWORD v253[2]; // [sp+DCh] [bp-18h] BYREF _DWORD v254[2]; // [sp+E4h] [bp-10h] BYREF v2 = (GameManager *)cocos2d::CCLayer::init((cocos2d::CCLayer *)this); v209 = v2; if ( v2 ) { v3 = (GameManager *)GameManager::sharedState(v2); v4 = (GameManager *)GameManager::fadeInMenuMusic(v3); v5 = (GameManager *)GameManager::sharedState(v4); *((_BYTE *)v5 + 424) = 1; v6 = (GameManager *)GameManager::sharedState(v5); *((_DWORD *)v6 + 127) = 0; *(_BYTE *)(GameManager::sharedState(v6) + 852) = 0; (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, int))*this + 134))(this, 1); v7 = (cocos2d::CCDirector *)(*((int (__fastcall **)(cocos2d::CCLabelBMFont **, int))*this + 136))(this, 1); cocos2d::CCDirector::sharedDirector(v7); WinSize = (MenuGameLayer *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v215); v9 = (cocos2d::CCLabelBMFont *)MenuGameLayer::create(WinSize); v10 = *this; *(this + 91) = v9; (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, cocos2d::CCLabelBMFont *))v10 + 57))(this, v9); v12 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_logo_001.png", v11); v13 = (cocos2d::CCDirector *)(*((int (__fastcall **)(cocos2d::CCLabelBMFont **, int, int))*this + 58))(this, v12, 2); v14 = v215; v15 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 92); v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13); v17 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v16)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v254, v14 * 0.5, v17 - 50.0); v18 = (cocos2d::CCMenu *)v15(v12, v254); v197 = (cocos2d::CCPoint *)cocos2d::CCMenu::create(v18); v20 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playBtn_001.png", v19); v219 = 0; v218 = MenuLayer::onPlay; v204 = CCMenuItemSpriteExtra::create(v20, 0, (int)this, (int)MenuLayer::onPlay, 0); (*(void (__fastcall **)(cocos2d::CCPoint *, int))(*(_DWORD *)v197 + 228))(v197, v204); (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, cocos2d::CCPoint *))*this + 57))(this, v197); v21 = *(void (__fastcall **)(cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v197 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v254, v215 * 0.5, (float)(v216 * 0.5) + 10.0); v21(v197, v254); v23 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_garageBtn_001.png", v22); v221 = 0; v220 = MenuLayer::onGarage; v199 = CCMenuItemSpriteExtra::create(v23, 0, (int)this, (int)MenuLayer::onGarage, 0); (*(void (__fastcall **)(cocos2d::CCPoint *, int))(*(_DWORD *)v197 + 228))(v197, v199); v24 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v199 + 92); v25 = (*(int (__fastcall **)(int))(*(_DWORD *)v204 + 96))(v204); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, -110.0, 0.0); cocos2d::CCPoint::operator+(v254, v25, v253); v26 = (GameManager *)v24(v199, v254); if ( !*(_BYTE *)(GameManager::sharedState(v26) + 727) ) { v28 = (cocos2d::CCLabelBMFont *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_chrSel_001.png", v27); v29 = *this; *(this + 88) = v28; (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, cocos2d::CCLabelBMFont *))v29 + 57))(this, v28); v30 = (int)*(this + 88); v31 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v30 + 92); (*(void (__fastcall **)(int))(*(_DWORD *)v199 + 96))(v199); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v252, v197); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, -50.0, -50.0); cocos2d::CCPoint::operator+(v254, v252, v253); v31(v30, v254); } v32 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_creatorBtn_001.png", v27); v223 = 0; v222 = MenuLayer::onCreator; v203 = (char *)CCMenuItemSpriteExtra::create(v32, 0, (int)this, (int)MenuLayer::onCreator, 0); (*(void (__fastcall **)(cocos2d::CCPoint *, char *))(*(_DWORD *)v197 + 228))(v197, v203); v33 = *(int (__fastcall **)(char *, _DWORD *))(*(_DWORD *)v203 + 92); v34 = (*(int (__fastcall **)(int))(*(_DWORD *)v204 + 96))(v204); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 110.0, 0.0); cocos2d::CCPoint::operator+(v254, v34, v253); v35 = (GameManager *)v33(v203, v254); v36 = (cocos2d::CCDirector *)GameManager::sharedState(v35); if ( !*((_BYTE *)v36 + 728) ) { v38 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_lvlEdit_001.png", v37); (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, int))*this + 57))(this, v38); v39 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v38 + 92); (*(void (__fastcall **)(char *))(*(_DWORD *)v203 + 96))(v203); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v252, v197); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 50.0, -50.0); cocos2d::CCPoint::operator+(v254, v252, v253); v36 = (cocos2d::CCDirector *)v39(v38, v254); } v40 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v36); v41 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v40)); v42 = v41 + 45.0; v198 = (cocos2d::CCMenu *)cocos2d::CCMenu::create((cocos2d::CCMenu *)LODWORD(v41)); (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, cocos2d::CCMenu *))*this + 57))(this, v198); v44 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_achBtn_001.png", v43); (*(void (__fastcall **)(int, int))(*(_DWORD *)v44 + 80))(v44, 1065353216); v225 = 0; v224 = MenuLayer::onAchievements; v45 = CCMenuItemSpriteExtra::create(v44, 0, (int)this, (int)MenuLayer::onAchievements, 0); (*(void (__fastcall **)(cocos2d::CCMenu *, int))(*(_DWORD *)v198 + 228))(v198, v45); v47 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn_001.png", v46); (*(void (__fastcall **)(int, int))(*(_DWORD *)v47 + 80))(v47, 1065353216); v227 = 0; v226 = MenuLayer::onOptions; v205 = CCMenuItemSpriteExtra::create(v47, 0, (int)this, (int)MenuLayer::onOptions, 0); (*(void (__fastcall **)(cocos2d::CCMenu *, int))(*(_DWORD *)v198 + 228))(v198, v205); v49 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_statsBtn_001.png", v48); (*(void (__fastcall **)(int, int))(*(_DWORD *)v49 + 80))(v49, 1065353216); v229 = 0; v228 = MenuLayer::onStats; v50 = CCMenuItemSpriteExtra::create(v49, 0, (int)this, (int)MenuLayer::onStats, 0); v51 = (GameManager *)(*(int (__fastcall **)(cocos2d::CCMenu *, int))(*(_DWORD *)v198 + 228))(v198, v50); v52 = (GameManager *)GameManager::sharedState(v51); if ( !GameManager::safeModeEnabled(v52) ) { v54 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_ngBtn_001.png", v53); (*(void (__fastcall **)(int, int))(*(_DWORD *)v54 + 80))(v54, 1065353216); v231 = 0; v230 = MenuLayer::onNewgrounds; v55 = CCMenuItemSpriteExtra::create(v54, 0, (int)this, (int)MenuLayer::onNewgrounds, 0); (*(void (__fastcall **)(cocos2d::CCMenu *, int))(*(_DWORD *)v198 + 228))(v198, v55); } v56 = *(void (__fastcall **)(cocos2d::CCMenu *, _DWORD *))(*(_DWORD *)v198 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v254, v215 * 0.5, v42); v56(v198, v254); v57 = (cocos2d::CCDirector *)cocos2d::CCMenu::alignItemsHorizontallyWithPadding(v198, 5.0); v58 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v57); v59 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v58)) + 30.0; v61 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"robtoplogo_small.png", v60); (*(void (__fastcall **)(int, int))(*(_DWORD *)v61 + 80))(v61, 1061997773); v233 = 0; v232 = MenuLayer::onRobTop; v62 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v61, 0, (int)this, (int)MenuLayer::onRobTop, 0); CCMenuItemSpriteExtra::setSizeMult((int)v62, 1.1); v63 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v62, nullptr); v64 = (cocos2d::CCDirector *)(*((int (__fastcall **)(cocos2d::CCLabelBMFont **, const cocos2d::CCPoint *, int))*this + 58))( this, v63, 2); v65 = *(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v63 + 92); v66 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v64); v67 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v66)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v254, v67 + 50.0, v59 - 5.0); v65(v63, v254); v69 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_fbIcon_001.png", v68); (*(void (__fastcall **)(int, int))(*(_DWORD *)v69 + 80))(v69, 1061997773); v235 = 0; v234 = MenuLayer::onFacebook; v70 = CCMenuItemSpriteExtra::create(v69, 0, (int)this, (int)MenuLayer::onFacebook, 0); CCMenuItemSpriteExtra::setSizeMult(v70, 1.5); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v63 + 228))(v63, v70); v72 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_twIcon_001.png", v71); (*(void (__fastcall **)(int, int))(*(_DWORD *)v72 + 80))(v72, 1061997773); v237 = 0; v236 = MenuLayer::onTwitter; v206 = CCMenuItemSpriteExtra::create(v72, 0, (int)this, (int)MenuLayer::onTwitter, 0); CCMenuItemSpriteExtra::setSizeMult(v206, 1.5); v214 = v206; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v63 + 228))(v63, v206); v74 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_ytIcon_001.png", v73); (*(void (__fastcall **)(int, int))(*(_DWORD *)v74 + 80))(v74, 1061997773); v239 = 0; v238 = MenuLayer::onYouTube; v75 = CCMenuItemSpriteExtra::create(v74, 0, (int)this, (int)MenuLayer::onYouTube, 0); CCMenuItemSpriteExtra::setSizeMult(v75, 1.5); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v63 + 228))(v63, v75); v77 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_twitchIcon_001.png", v76); (*(void (__fastcall **)(int, int))(*(_DWORD *)v77 + 80))(v77, 1061997773); v241 = 0; v240 = MenuLayer::onTwitch; v207 = CCMenuItemSpriteExtra::create(v77, 0, (int)this, (int)MenuLayer::onTwitch, 0); CCMenuItemSpriteExtra::setSizeMult(v207, 1.5); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v63 + 228))(v63, v207); v79 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_discordIcon_001.png", v78); (*(void (__fastcall **)(int, int))(*(_DWORD *)v79 + 80))(v79, 1061997773); v243 = 0; v242 = MenuLayer::onDiscord; v208 = CCMenuItemSpriteExtra::create(v79, 0, (int)this, (int)MenuLayer::onDiscord, 0); CCMenuItemSpriteExtra::setSizeMult(v208, 1.5); v80 = (cocos2d::CCDirector *)(*(int (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v63 + 228))( v63, v208); v210 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v70 + 92); v81 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v80); v82 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v81)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, v82 + 22.0, v59 + 25.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v254, v63); v210(v70, v254); v211 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v214 + 92); v83 = (*(int (__fastcall **)(int))(*(_DWORD *)v70 + 96))(v70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 29.0, 0.0); cocos2d::CCPoint::operator+(v254, v83, v253); v211(v214, v254); v212 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v75 + 92); v84 = (*(int (__fastcall **)(int))(*(_DWORD *)v214 + 96))(v214); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 29.0, 0.0); cocos2d::CCPoint::operator+(v254, v84, v253); v212(v75, v254); v213 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v207 + 92); v85 = (*(int (__fastcall **)(int))(*(_DWORD *)v75 + 96))(v75); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 29.0, 0.0); cocos2d::CCPoint::operator+(v254, v85, v253); v213(v207, v254); v86 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v208 + 92); v87 = (*(int (__fastcall **)(int))(*(_DWORD *)v75 + 96))(v75); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 29.0, -29.0); cocos2d::CCPoint::operator+(v254, v87, v253); v88 = (GameManager *)v86(v208, v254); v89 = (GameManager *)GameManager::sharedState(v88); if ( GameManager::safeModeEnabled(v89) ) (*(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD))(*(_DWORD *)v63 + 172))(v63, 0); v91 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_newsBtn_001.png", v90); (*(void (__fastcall **)(int, int))(*(_DWORD *)v91 + 80))(v91, 1062836634); v245 = 0; v244 = MenuLayer::onNews; v92 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v91, 0, (int)this, (int)MenuLayer::onNews, 0); *(this + 89) = (cocos2d::CCLabelBMFont *)v91; v93 = v92; v94 = cocos2d::CCMenu::create(v92, nullptr); v95 = (cocos2d::CCDirector *)(*((int (__fastcall **)(cocos2d::CCLabelBMFont **, int, int))*this + 58))(this, v94, 2); v96 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v94 + 92); v97 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v95); v98 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v97)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v254, v98 - 43.0, v42); v99 = (GameManager *)v96(v94, v254); v100 = (GameManager *)GameManager::sharedState(v99); v101 = (GameManager *)GameManager::offlineModeEnabled(v100); if ( v101 ) { (*(void (__fastcall **)(cocos2d::CCMenu *, _DWORD))(*(_DWORD *)v93 + 172))(v93, 0); v101 = (GameManager *)(*(int (__fastcall **)(cocos2d::CCMenu *, _DWORD))(*(_DWORD *)v93 + 528))(v93, 0); } v102 = (PlatformToolbox *)GameManager::sharedState(v101); *((_BYTE *)v102 + 432) = 0; if ( PlatformToolbox::isControllerConnected(v102) ) { v104 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_Start_001.png", v103); (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, int))*this + 57))(this, v104); (*(void (__fastcall **)(int))(*(_DWORD *)v204 + 96))(v204); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v254, v197); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v252, (const cocos2d::CCPoint *)this); v105 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v104 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 0.0, -66.0); cocos2d::CCPoint::operator+(v254, v252, v253); v105(v104, v254); v107 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_Y_001.png", v106); (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, int))*this + 57))(this, v107); v108 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(char *))(*(_DWORD *)v203 + 256))(v203); (*(void (__fastcall **)(char *))(*(_DWORD *)v203 + 96))(v203); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v253, v108); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v254, (const cocos2d::CCPoint *)this); cocos2d::CCPoint::operator=(v252, v254); v109 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v107 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 0.0, -45.0); cocos2d::CCPoint::operator+(v254, v252, v253); v109(v107, v254); (*(void (__fastcall **)(int, int))(*(_DWORD *)v107 + 80))(v107, 1061997773); v111 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_X_001.png", v110); (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, int))*this + 57))(this, v111); v112 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v199 + 256))(v199); (*(void (__fastcall **)(int))(*(_DWORD *)v199 + 96))(v199); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v253, v112); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v254, (const cocos2d::CCPoint *)this); cocos2d::CCPoint::operator=(v252, v254); v113 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v111 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 0.0, -45.0); cocos2d::CCPoint::operator+(v254, v252, v253); v113(v111, v254); (*(void (__fastcall **)(int, int))(*(_DWORD *)v111 + 80))(v111, 1061997773); v115 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_DPad_Down_001.png", v114); (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, int))*this + 57))(this, v115); v116 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v205 + 256))(v205); (*(void (__fastcall **)(int))(*(_DWORD *)v205 + 96))(v205); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v253, v116); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v254, (const cocos2d::CCPoint *)this); cocos2d::CCPoint::operator=(v252, v254); v117 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v115 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 0.0, -34.0); cocos2d::CCPoint::operator+(v254, v252, v253); v117(v115, v254); v118 = (GameManager *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v115 + 80))(v115, 1056964608); v119 = (GameManager *)GameManager::sharedState(v118); if ( !GameManager::getGameVariable(v119, "0028") ) { v120 = GJAccountManager::sharedState(nullptr); if ( *(_DWORD *)(v120 + 280) - *(_DWORD *)(v120 + 284) > 0 ) v122 = 15.0; else v122 = 0.0; v123 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_LThumb_001.png", v121); v124 = (cocos2d::CCDirector *)(*((int (__fastcall **)(cocos2d::CCLabelBMFont **, int))*this + 57))(this, v123); v125 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v123 + 92); v126 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v124); v127 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v126)); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v254, v127 + 25.0, (float)((float)((float)(v216 * 0.5) + 15.0) + 10.0) + v122); v125(v123, v254); v129 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_A_001.png", v128); (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, int))*this + 57))(this, v129); v200 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v129 + 92); v130 = (*(int (__fastcall **)(int))(*(_DWORD *)v123 + 96))(v123); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 0.0, -30.0); cocos2d::CCPoint::operator+(v254, v130, v253); v200(v129, v254); v132 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Mouse", "goldFont.fnt", v131); (*(void (__fastcall **)(int, int))(*(_DWORD *)v132 + 80))(v132, 1056964608); (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, int))*this + 57))(this, v132); v201 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v132 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v254, 0.0, 0.6); v201(v132, v254); v202 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v132 + 92); v133 = (*(int (__fastcall **)(int))(*(_DWORD *)v123 + 96))(v123); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 16.0, 1.0); cocos2d::CCPoint::operator+(v254, v133, v253); v202(v132, v254); v135 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Click", "goldFont.fnt", v134); (*(void (__fastcall **)(int, int))(*(_DWORD *)v135 + 80))(v135, 1056964608); (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, int))*this + 57))(this, v135); v136 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v135 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v254, 0.0, 0.6); v136(v135, v254); v137 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v135 + 92); v138 = (*(int (__fastcall **)(int))(*(_DWORD *)v129 + 96))(v129); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 16.0, 1.0); cocos2d::CCPoint::operator+(v254, v138, v253); v137(v135, v254); } } v139 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_profileButton_001.png", v103); v247 = 0; v246 = MenuLayer::onMyProfile; v140 = CCMenuItemSpriteExtra::create(v139, 0, (int)this, (int)MenuLayer::onMyProfile, 0); *(this + 86) = (cocos2d::CCLabelBMFont *)v140; (*(void (__fastcall **)(cocos2d::CCPoint *, int, int))(*(_DWORD *)v197 + 232))(v197, v140, 2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v217, 45.0, 105.0); v141 = (int)*(this + 86); v142 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v141 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v254, v197); v142(v141, v254); v144 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "goldFont.fnt", v143); v145 = *this; *(this + 85) = v144; (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, cocos2d::CCLabelBMFont *, int))v145 + 58))(this, v144, 2); v146 = (int)*(this + 85); v147 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v146 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 2.0, 36.0); cocos2d::CCPoint::operator+(v254, v217, v253); v147(v146, v254); v148 = (GameManager *)cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 85), 70.0, 0.7, 0.0); v149 = (GameManager *)GameManager::sharedState(v148); v150 = (GameManager *)GameManager::modUIRank(v149); if ( v150 == (GameManager *)((char *)&dword_0 + 2) ) { v152 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"modBadge_02_001.png", v151); (*(void (__fastcall **)(int, int))(*(_DWORD *)v152 + 80))(v152, 1067869798); v249 = 0; v248 = MenuLayer::onReportQueue; v153 = CCMenuItemSpriteExtra::create(v152, 0, (int)this, (int)MenuLayer::onReportQueue, 0); *(this + 87) = (cocos2d::CCLabelBMFont *)v153; CCMenuItemSpriteExtra::setSizeMult(v153, 1.5); (*(void (__fastcall **)(cocos2d::CCPoint *, _DWORD, int))(*(_DWORD *)v197 + 232))(v197, *(this + 87), 2); v154 = (int)*(this + 87); v155 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v154 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, 75.0); cocos2d::CCPoint::operator+(v253, v217, v252); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v254, v197); v150 = (GameManager *)v155(v154, v254); } v156 = (GameManager *)GameManager::sharedState(v150); if ( !GameManager::getGameVariable(v156, "0048") && *(_BYTE *)(GameManager::sharedState(nullptr) + 727) ) { v193 = (cocos2d::CCLabelBMFont *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_viewProfileTxt_001.png", v157); v194 = *this; *(this + 84) = v193; (*((void (__fastcall **)(cocos2d::CCLabelBMFont **, cocos2d::CCLabelBMFont *, int))v194 + 58))(this, v193, 2); v195 = (int)*(this + 84); v196 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v195 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 76.0, -1.0); cocos2d::CCPoint::operator+(v254, v217, v253); v196(v195, v254); } updated = MenuLayer::updateUserProfileButton(this); *(_DWORD *)(GameManager::sharedState(updated) + 420) = this; v160 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_dailyRewardBtn_001.png", v159); v251 = 0; v250 = MenuLayer::onDaily; v161 = CCMenuItemSpriteExtra::create(v160, 0, (int)this, (int)MenuLayer::onDaily, 0); v162 = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCMenu *, int))(*(_DWORD *)v198 + 228))(v198, v161); v163 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v161 + 92); v164 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v162); v165 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v164)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, v165 - 40.0, (float)(v216 * 0.5) + 20.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v254, v198); v163(v161, v254); v166 = (GameManager *)CCMenuItemSpriteExtra::setSizeMult(v161, 1.5); v167 = (GameManager *)GameManager::sharedState(v166); UGV = (GameLevelManager *)GameManager::getUGV(v167, "30"); if ( !UGV ) { *((_BYTE *)this + 328) = 1; v170 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3C23D70A, v169); v252[1] = 0; v252[0] = MenuLayer::showTOS; v171 = v170; v172 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, MenuLayer::showTOS, 0); v173 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v171, v172, 0); UGV = (GameLevelManager *)cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v173); } v174 = (unsigned __int8 *)GameLevelManager::sharedState(UGV); v176 = v174[980]; if ( !v174[980] ) { v177 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3C23D70A, v175); v253[1] = v176; v253[0] = MenuLayer::firstNetworkTest; v178 = v177; v179 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, MenuLayer::firstNetworkTest, v176); v180 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v178, v179, v176); v174 = (unsigned __int8 *)cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v180); } v181 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v174); v182 = (GameManager *)MusicDownloadManager::addMusicDownloadDelegate(v181, (MusicDownloadDelegate *)(this + 81)); v183 = (GameManager *)GameManager::sharedState(v182); if ( !GameManager::offlineModeEnabled(v183) ) { v185 = (MusicDownloadManager *)MusicDownloadManager::sharedState(nullptr); MusicDownloadManager::tryUpdateNewsFeed(v185); v186 = (GameLevelManager *)MenuLayer::updateNewsBadge((MenuLayer *)this); v187 = (GameLevelManager *)GameLevelManager::sharedState(v186); GameLevelManager::syncFollowListIfNeeded(v187); } v188 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3C23D70A, v184); v254[1] = 0; v254[0] = MenuLayer::checkParentalPending; v189 = v188; v190 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, MenuLayer::checkParentalPending, 0); v191 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v189, v190, 0); cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v191); } return v209; }
GD Web Decomp Icon

GD Web Decomp

Raw Source