// // LevelInfoLayer::init from 0x49d4c4 to 0x49f0b8 (7156 bytes) // // 1 xrefs: // > LevelInfoLayer::create @ 0x49f214 // // 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:49:48 +0000 // int __fastcall LevelInfoLayer::init(const cocos2d::CCPoint **this, const char **a2, bool a3) { cocos2d::CCArray *v5; // r0 cocos2d::CCObject *v6; // r0 GameManager *v7; // r0 LoadingCircle *v8; // r0 cocos2d::CCLayerColor *v9; // r0 cocos2d::CCDirector *v10; // r0 cocos2d::CCMenu *WinSize; // r0 const cocos2d::CCPoint *v12; // r0 const cocos2d::CCPoint *v13; // r3 cocos2d::CCMenu *v14; // r0 const cocos2d::CCPoint *v15; // r5 int v16; // r7 int v17; // r10 const char *v18; // r1 float *v19; // r6 void (__fastcall *v20)(float *, _DWORD *); // r10 void (__fastcall *v21)(float *, _DWORD *); // r10 void (__fastcall *v22)(float *, _DWORD *); // r3 const char *v23; // r1 int v24; // r9 void (__fastcall *v25)(float *, _DWORD *); // r3 int v26; // r9 char *v27; // r0 int v28; // r6 int (__fastcall *v29)(int, _DWORD *); // r10 cocos2d::CCDirector *v30; // r0 void (__fastcall *v31)(int, _DWORD *); // r10 cocos2d::CCDirector *v32; // r0 float v33; // s16 cocos2d::CCDirector *v34; // r0 float v35; // r0 const char *v36; // r1 char *v37; // r0 cocos2d::CCSprite *v38; // r6 int (__fastcall *v39)(cocos2d::CCSprite *, _DWORD *); // r9 cocos2d::CCDirector *v40; // r0 void (__fastcall *v41)(cocos2d::CCSprite *, _DWORD *); // r9 cocos2d::CCDirector *v42; // r0 float v43; // s16 cocos2d::CCDirector *v44; // r0 float v45; // r0 const char *v46; // r2 cocos2d::CCLabelBMFont *v47; // r0 int v48; // r7 cocos2d::CCLabelBMFont *v49; // r6 cocos2d::CCDirector *v50; // r0 float v51; // s18 void (__fastcall *v52)(cocos2d::CCLabelBMFont *, _DWORD *); // r9 cocos2d::CCDirector *v53; // r0 float v54; // r0 float v55; // r1 GameLevelManager *v56; // r0 int v57; // r3 int v58; // r2 int v59; // r3 int v60; // r8 GameLevelManager *v61; // r0 cocos2d::CCLabelBMFont *v62; // r1 cocos2d::CCString *v63; // r0 cocos2d::CCLabelBMFont *CString; // r9 const char *v65; // r2 cocos2d::CCLabelBMFont *v66; // r0 float v67; // s16 cocos2d::CCLabelBMFont *v68; // r7 int v69; // r0 int v70; // r10 void (__fastcall *v71)(cocos2d::CCLabelBMFont *, _DWORD *); // r2 float v72; // s16 float v73; // s18 float v74; // r0 GameManager *v75; // r0 const char *v76; // r1 _BOOL4 v77; // r10 int v78; // r8 void (__fastcall *v79)(int, _DWORD *); // r6 int v80; // r0 int v81; // r6 int (__fastcall *v82)(int, _DWORD *); // r8 GameManager *v83; // r0 int v84; // r8 int v85; // r1 cocos2d::CCDirector *v86; // r0 float v87; // s22 cocos2d::CCDirector *v88; // r0 float v89; // s16 cocos2d::CCDirector *v90; // r0 float v91; // r0 GameLevelManager *v92; // r0 const char *v93; // r1 GameLevelManager *v94; // r0 GameManager *isPastDailyCopy; // r0 GameManager *v96; // r0 const char *v97; // r1 int v98; // r0 int v99; // r6 int v100; // r0 int v101; // r6 const cocos2d::CCPoint *v102; // r0 GameManager *v103; // r0 GameManager *v104; // r0 const char *v105; // r1 int v106; // r0 int v107; // r6 void (__fastcall *v108)(int, _DWORD *); // r9 int v109; // r0 int v110; // r0 int v111; // r0 int v112; // r10 void (__fastcall *v113)(int, _DWORD *); // r8 const cocos2d::CCPoint *v114; // r0 const char *v115; // r1 int v116; // r0 int v117; // r0 int v118; // r10 void (__fastcall *v119)(int, _DWORD *); // r9 int v120; // r0 GameManager *updated; // r0 GJAccountManager *v122; // r0 int v123; // r7 GameManager *v124; // r0 int v125; // r3 int v126; // r6 _BOOL4 v127; // r10 GameManager *v128; // r0 int v129; // r8 int v130; // r3 float v131; // s16 float v132; // s18 cocos2d::CCDirector *v133; // r0 float v134; // r0 float v135; // s20 const char *v136; // r1 int v137; // r10 int v138; // r10 int v139; // r6 int v140; // r10 int v141; // r6 int v142; // r10 void (__fastcall *v143)(int, _DWORD *); // r9 int v144; // r8 int v145; // r9 void (__fastcall *v146)(int, _DWORD *); // r8 const char *v147; // r1 int v148; // r0 int v149; // r5 cocos2d::CCDirector *v150; // r0 int (__fastcall *v151)(int, _DWORD *); // r7 cocos2d::CCDirector *v152; // r0 float v153; // s16 cocos2d::CCDirector *v154; // r0 float v155; // r0 GameStatsManager *hasCompletedLevel; // r0 const cocos2d::CCPoint *v157; // r5 const char *v158; // r1 int v159; // r0 int v160; // r6 cocos2d::CCDirector *v161; // r0 void (__fastcall *v162)(const cocos2d::CCPoint *, _DWORD *); // r8 cocos2d::CCDirector *v163; // r0 float v164; // s16 cocos2d::CCDirector *v165; // r0 float v166; // r0 cocos2d::CCMenu *v167; // r0 int v168; // r8 void (__fastcall *v169)(int, _DWORD *); // r9 const char *v170; // r1 int v171; // r0 _DWORD *v172; // r7 const char *v173; // r1 char *v174; // r0 int v175; // r0 void (__fastcall *v176)(int, _DWORD *); // r9 int v177; // r10 const char *v178; // r1 int v179; // r10 void (__fastcall *v180)(int, _DWORD *); // r10 const char *v181; // r1 cocos2d::CCSprite *v182; // r9 void (__fastcall *v183)(int, _DWORD *); // r9 int v184; // r10 int v185; // r1 int v186; // r3 int v187; // r6 CustomSongWidget *SongObject; // r8 const cocos2d::CCPoint *v189; // r0 const cocos2d::CCPoint *v190; // r3 cocos2d::CCDirector *v191; // r0 int v192; // r10 float v193; // s17 void (__fastcall *v194)(int, _DWORD *); // r9 cocos2d::CCDirector *v195; // r0 float v196; // r0 int v197; // r9 cocos2d::CCMenu *v198; // r0 cocos2d::CCDirector *v199; // r8 void (__fastcall *v200)(cocos2d::CCDirector *, _DWORD *); // r7 cocos2d::CCDirector *v201; // r0 float v202; // s16 cocos2d::CCDirector *v203; // r0 float v204; // r0 const char *v205; // r1 int v206; // r9 int v207; // r9 const char *v208; // r1 int v209; // r8 cocos2d::CCString *v210; // r0 cocos2d::CCLabelBMFont *v211; // r0 const char *v212; // r2 const cocos2d::CCPoint *v213; // r0 int v214; // r10 void (__fastcall *v215)(int, _DWORD *); // r9 float v216; // s17 int v217; // r0 int v218; // r9 void (__fastcall *v219)(int, _DWORD *); // r10 const char *v220; // r1 int v221; // r6 int v222; // r6 int (__fastcall *v223)(int, _BYTE *); // r7 int v224; // r10 PlatformToolbox *v225; // r0 int isControllerConnected; // r0 cocos2d::CCMenuItem *v227; // r2 const char *v228; // r1 int v229; // r5 int (__fastcall *v230)(int, _BYTE *); // r6 float v231; // s17 int v232; // r0 int v233; // r3 void (__fastcall *v235)(float *, _DWORD *); // r2 char *v236; // r1 cocos2d::CCLabelBMFont *v237; // r0 int v238; // r8 void (__fastcall *v239)(int, _DWORD *); // r9 int v240; // r10 float v241; // s16 float v242; // r0 GameManager *v243; // r0 int v244; // r8 void (__fastcall *v245)(int, _DWORD *); // r6 int v246; // r0 const char *v247; // r1 _BOOL4 v248; // r0 GameLevelManager *v249; // r0 _BOOL4 v250; // r8 GameManager *v251; // r0 GameManager *v252; // r0 const char *v253; // r1 cocos2d::CCSprite *v254; // r0 int v255; // r0 int v256; // r0 int v257; // r9 int v258; // r0 char *v259; // r0 int v260; // r8 int v261; // r0 int v262; // r9 void (__fastcall *v263)(int, _DWORD *); // r8 int v264; // r5 void (__fastcall *v265)(int, int); // r7 int v266; // r0 GameStatsManager *v267; // r0 int v268; // r10 void (__fastcall *v269)(int, _DWORD *); // r8 float v270; // s16 float v271; // r0 int v272; // r9 int v273; // r0 int v274; // r8 void (__fastcall *v275)(int, _DWORD *); // r9 int v276; // r10 _BOOL4 v277; // r8 int v278; // r0 GameLevelManager *v279; // r0 GameLevelManager *v280; // r0 int v281; // r3 const char *v282; // r6 GameLevelManager *v283; // r0 int v284; // r0 int v285; // r6 GameStatsManager *v286; // r0 GameStatsManager *v287; // r0 int v288; // r0 int v289; // r0 bool v290; // [sp+1Ch] [bp-168h] _BOOL4 v292; // [sp+24h] [bp-160h] void (__fastcall *v293)(int, _DWORD *); // [sp+24h] [bp-160h] void (__fastcall *v294)(int, _DWORD *); // [sp+24h] [bp-160h] void (__fastcall *v295)(int, _DWORD *); // [sp+24h] [bp-160h] int v296; // [sp+24h] [bp-160h] void (__fastcall *v297)(int, _DWORD *); // [sp+24h] [bp-160h] void (__fastcall *v298)(int, _DWORD *); // [sp+24h] [bp-160h] int v299; // [sp+28h] [bp-15Ch] _BOOL4 v300; // [sp+2Ch] [bp-158h] int v301; // [sp+2Ch] [bp-158h] _BOOL4 v302; // [sp+30h] [bp-154h] int v303; // [sp+30h] [bp-154h] cocos2d::CCLayer *v304; // [sp+34h] [bp-150h] cocos2d::CCLayer *v305; // [sp+34h] [bp-150h] void (__fastcall *v306)(int, _DWORD *); // [sp+3Ch] [bp-148h] float v307; // [sp+40h] [bp-144h] BYREF float v308; // [sp+44h] [bp-140h] float v309[2]; // [sp+48h] [bp-13Ch] BYREF _BYTE v310[8]; // [sp+50h] [bp-134h] BYREF _BYTE v311[8]; // [sp+58h] [bp-12Ch] BYREF _BYTE v312[8]; // [sp+60h] [bp-124h] BYREF _BYTE v313[4]; // [sp+68h] [bp-11Ch] BYREF float v314; // [sp+6Ch] [bp-118h] _BYTE v315[8]; // [sp+70h] [bp-114h] BYREF _BYTE v316[8]; // [sp+78h] [bp-10Ch] BYREF _BYTE v317[4]; // [sp+80h] [bp-104h] BYREF float v318; // [sp+84h] [bp-100h] _BYTE v319[8]; // [sp+88h] [bp-FCh] BYREF _BYTE v320[8]; // [sp+90h] [bp-F4h] BYREF int (__fastcall *v321)(int, cocos2d::CCObject *); // [sp+98h] [bp-ECh] int v322; // [sp+9Ch] [bp-E8h] cocos2d::CCDirector *(__fastcall *v323)(cocos2d::CCDirector *, cocos2d::CCObject *); // [sp+A0h] [bp-E4h] int v324; // [sp+A4h] [bp-E0h] cocos2d::CCDirector *(__fastcall *v325)(cocos2d::CCDirector *, cocos2d::CCObject *); // [sp+A8h] [bp-DCh] int v326; // [sp+ACh] [bp-D8h] int (__fastcall *v327)(int, cocos2d::CCObject *); // [sp+B0h] [bp-D4h] int v328; // [sp+B4h] [bp-D0h] void (__fastcall *v329)(GJGameLevel **, cocos2d::CCObject *); // [sp+B8h] [bp-CCh] int v330; // [sp+BCh] [bp-C8h] int (__fastcall *v331)(int, cocos2d::CCObject *); // [sp+C0h] [bp-C4h] int v332; // [sp+C4h] [bp-C0h] int (__fastcall *v333)(int, cocos2d::CCObject *); // [sp+C8h] [bp-BCh] int v334; // [sp+CCh] [bp-B8h] GameManager *(__fastcall *v335)(GameManager *, cocos2d::CCObject *); // [sp+D0h] [bp-B4h] int v336; // [sp+D4h] [bp-B0h] GameManager *(__fastcall *v337)(GameManager *, cocos2d::CCObject *); // [sp+D8h] [bp-ACh] int v338; // [sp+DCh] [bp-A8h] int (__fastcall *v339)(int, cocos2d::CCObject *); // [sp+E0h] [bp-A4h] int v340; // [sp+E4h] [bp-A0h] GameManager *(__fastcall *v341)(GameManager *, cocos2d::CCObject *); // [sp+E8h] [bp-9Ch] int v342; // [sp+ECh] [bp-98h] unsigned __int8 *(__fastcall *v343)(unsigned __int8 *, cocos2d::CCObject *); // [sp+F0h] [bp-94h] int v344; // [sp+F4h] [bp-90h] int (__fastcall *v345)(int, cocos2d::CCObject *, CreatorSettingsDelegate *); // [sp+F8h] [bp-8Ch] int v346; // [sp+FCh] [bp-88h] int (__fastcall *v347)(int, cocos2d::CCObject *); // [sp+100h] [bp-84h] int v348; // [sp+104h] [bp-80h] int (__fastcall *v349)(int, cocos2d::CCObject *); // [sp+108h] [bp-7Ch] int v350; // [sp+10Ch] [bp-78h] _BYTE *(__fastcall *v351)(_BYTE *, cocos2d::CCObject *); // [sp+110h] [bp-74h] int v352; // [sp+114h] [bp-70h] int (__fastcall *v353)(int, cocos2d::CCObject *); // [sp+118h] [bp-6Ch] int v354; // [sp+11Ch] [bp-68h] cocos2d::CCDirector *(__fastcall *v355)(cocos2d::CCDirector *, cocos2d::CCObject *); // [sp+120h] [bp-64h] int v356; // [sp+124h] [bp-60h] int (__fastcall *v357)(int, cocos2d::CCObject *); // [sp+128h] [bp-5Ch] int v358; // [sp+12Ch] [bp-58h] int (__fastcall *v359)(int, cocos2d::CCObject *); // [sp+130h] [bp-54h] int v360; // [sp+134h] [bp-50h] int (__fastcall *v361)(int, cocos2d::CCObject *); // [sp+138h] [bp-4Ch] int v362; // [sp+13Ch] [bp-48h] _DWORD v363[2]; // [sp+140h] [bp-44h] BYREF _DWORD v364[2]; // [sp+148h] [bp-3Ch] BYREF _DWORD v365[2]; // [sp+150h] [bp-34h] BYREF int v366[3]; // [sp+158h] [bp-2Ch] BYREF int v367[3]; // [sp+164h] [bp-20h] BYREF int v368; // [sp+170h] [bp-14h] BYREF int v369; // [sp+174h] [bp-10h] cocos2d::CCLabelBMFont *v370; // [sp+178h] [bp-Ch] v299 = cocos2d::CCLayer::init((cocos2d::CCLayer *)this); if ( !v299 ) return v299; *(this + 91) = (const cocos2d::CCPoint *)a2; v5 = (cocos2d::CCArray *)cocos2d::CCObject::retain((cocos2d::CCObject *)a2); *((_BYTE *)this + 476) = a3; v6 = (cocos2d::CCObject *)cocos2d::CCArray::create(v5); *(this + 92) = v6; v7 = (GameManager *)cocos2d::CCObject::retain(v6); *((_BYTE *)*(this + 91) + 917) = 0; *(this + 108) = (const cocos2d::CCPoint *)a2[238]; v8 = (LoadingCircle *)GameManager::sharedState(v7); *((_DWORD *)v8 + 188) = *((_DWORD *)*(this + 91) + 67) - *((_DWORD *)*(this + 91) + 68); v9 = LoadingCircle::create(v8); *(this + 110) = v9; *((_DWORD *)v9 + 111) = this; *((_BYTE *)*(this + 110) + 448) = 0; cocos2d::CCObject::retain(*(this + 110)); LoadingCircle::show((cocos2d::CCNode **)*(this + 110)); (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 110) + 172))(*(this + 110), 0); (*((void (__fastcall **)(const cocos2d::CCPoint **, int))*this + 134))(this, 1); v10 = (cocos2d::CCDirector *)(*((int (__fastcall **)(const cocos2d::CCPoint **, int))*this + 136))(this, 1); cocos2d::CCDirector::sharedDirector(v10); WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v307); v12 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(WinSize); v13 = *this; *(this + 90) = v12; v14 = (cocos2d::CCMenu *)(*((int (__fastcall **)(const cocos2d::CCPoint **, const cocos2d::CCPoint *, int))v13 + 58))( this, v12, 3); v15 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v14); (*((void (__fastcall **)(const cocos2d::CCPoint **, const cocos2d::CCPoint *, int))*this + 58))(this, v15, 2); v16 = (int)*(this + 91); v302 = *(_DWORD *)(v16 + 744) - *(_DWORD *)(v16 + 748) > 0; v17 = a2[186] - a2[187]; v292 = v17 > 200000; v300 = (unsigned int)(v17 - 100001) <= 0x1869F; v304 = (cocos2d::CCLayer *)*(unsigned __int8 *)(v16 + 477); v19 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v18); v20 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v19 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, 0.0, 0.0); v20(v19, v365); (*((void (__fastcall **)(const cocos2d::CCPoint **, float *, int))*this + 58))(this, v19, -2); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v19 + 64))(v19, (float)(v307 + 10.0) / v19[86]); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v19 + 72))(v19, (float)(v308 + 10.0) / v19[87]); v21 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v19 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, -5.0, -5.0); v21(v19, v365); v22 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v19 + 480); *(_WORD *)((char *)v365 + 1) = -154; LOBYTE(v365[0]) = 0; v22(v19, v365); if ( v304 || v300 || *((_BYTE *)this + 476) ) { if ( !v292 ) { v235 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v19 + 480); memset(v365, 51, 3); v235(v19, v365); goto LABEL_83; } v24 = 1; } else { if ( !v292 ) { LABEL_8: v26 = 0; v27 = "GJ_sideArt_001.png"; goto LABEL_9; } v24 = 0; } v25 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v19 + 480); LOWORD(v365[0]) = 6243; BYTE2(v365[0]) = 126; v25(v19, v365); if ( !v24 ) goto LABEL_8; LABEL_83: v26 = 1; v27 = "gauntletCorner_001.png"; LABEL_9: v28 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v27, v23); v29 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v28 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, 0.0, 0.0); v30 = (cocos2d::CCDirector *)v29(v28, v365); v31 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v28 + 92); v32 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v30); v33 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v32)); v34 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v33)); v35 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v34)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, v33 - 1.0, v35 - 1.0); v31(v28, v365); (*((void (__fastcall **)(const cocos2d::CCPoint **, int, int))*this + 58))(this, v28, 1); if ( v26 ) v37 = "gauntletCorner_001.png"; else v37 = "GJ_sideArt_001.png"; v38 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v37, v36); v39 = *(int (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v38 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, 1.0, 0.0); v40 = (cocos2d::CCDirector *)v39(v38, v365); v41 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v38 + 92); v42 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v40); v43 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v42)); v44 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v43)); v45 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v44)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, v43 + 1.0, v45 - 1.0); v41(v38, v365); cocos2d::CCSprite::setFlipX(v38, 1); (*((void (__fastcall **)(const cocos2d::CCPoint **, cocos2d::CCSprite *, int))*this + 58))(this, v38, 1); if ( *((_BYTE *)this + 476) ) { v48 = 0; v47 = (cocos2d::CCLabelBMFont *)"Challenge"; } else { std::string::basic_string(v366, (int)*(this + 91) + 280); if ( (v366[0] & 1) != 0 ) { v47 = (cocos2d::CCLabelBMFont *)v366[2]; v48 = v299; } else { v48 = v299; v47 = (cocos2d::CCLabelBMFont *)((char *)v366 + 1); } } v49 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v47, "bigFont.fnt", v46); if ( v48 ) std::string::~string((int)v366); v50 = (cocos2d::CCDirector *)(*((int (__fastcall **)(const cocos2d::CCPoint **, cocos2d::CCLabelBMFont *, int))*this + 58))( this, v49, 20); v51 = v307; v52 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v49 + 92); v53 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v50); v54 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v53)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, v51 * 0.5, v54 - 17.0); v52(v49, v365); if ( v302 ) v55 = 260.0; else v55 = 300.0; v56 = (GameLevelManager *)cocos2d::CCLabelBMFont::limitLabelWidth(v49, v55, 0.8, 0.0); if ( v302 ) { v368 = 0; v369 = 0; v370 = nullptr; std::string::__init(&v368, "(Daily)", 7u); if ( v300 ) { v236 = "(Weekly)"; } else { if ( !v292 ) goto LABEL_90; v236 = "(Event)"; } std::string::assign(&v368, v236); LABEL_90: if ( (v368 & 1) != 0 ) v237 = v370; else v237 = (cocos2d::CCLabelBMFont *)((char *)&v368 + 1); v238 = cocos2d::CCLabelBMFont::create(v237, "goldFont.fnt", (const char *)((unsigned __int8)v368 << 31)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v238 + 80))(v238, 1058642330); (*((void (__fastcall **)(const cocos2d::CCPoint **, int, int))*this + 58))(this, v238, 20); v239 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v238 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, 0.0, 0.5); v239(v238, v365); v297 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v238 + 92); v240 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v49 + 96))(v49); v241 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v49 + 164))(v49) * 0.5; v242 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v49 + 84))(v49); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, (float)(v241 * v242) + 3.0, -0.5); cocos2d::CCPoint::operator+(v365, v240, v364); v297(v238, v365); v56 = (GameLevelManager *)std::string::~string((int)&v368); } v57 = (int)*(this + 91); v58 = *(_DWORD *)(v57 + 416); v59 = *(_DWORD *)(v57 + 420); v60 = v58 - v59; if ( v58 == v59 ) { v61 = (GameLevelManager *)GameLevelManager::sharedState(v56); v60 = GameLevelManager::accountIDForUserID(v61, *((_DWORD *)*(this + 91) + 101) - *((_DWORD *)*(this + 91) + 102)); } std::string::basic_string(&v368, (int)*(this + 91) + 316); if ( (v368 & 1) != 0 ) v62 = v370; else v62 = (cocos2d::CCLabelBMFont *)((char *)&v368 + 1); v63 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"By %s", (const char *)v62); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v63); std::string::~string((int)&v368); v66 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v65); v67 = v307 * 0.5; v68 = v66; v69 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v49 + 96))(v49); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v309, v67, *(float *)(v69 + 4) - 26.0); cocos2d::CCLabelBMFont::limitLabelWidth(v68, 300.0, 0.8, 0.0); v322 = 0; v321 = LevelInfoLayer::onViewProfile; v70 = CCMenuItemSpriteExtra::create((int)v68, 0, (int)this, (int)LevelInfoLayer::onViewProfile, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v70); v293 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v70 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v365, v15); v293(v70, v365); if ( !v60 ) { v71 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v68 + 536); LOWORD(v365[0]) = -166; BYTE2(v365[0]) = -1; v71(v68, v365); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v70 + 528))(v70, 0); } v72 = v309[0]; v73 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v68 + 164))(v68); v74 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v68 + 84))(v68); v75 = (GameManager *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v310, (float)(v72 + (float)((float)(v73 * v74) * 0.5)) + 6.0, v309[1] - 1.0); if ( *((_BYTE *)this + 476) ) { (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD))(*(_DWORD *)v68 + 172))(v68, 0); v75 = (GameManager *)cocos2d::CCPoint::operator=(v310, v309); } v77 = *((_DWORD *)*(this + 91) + 112) - *((_DWORD *)*(this + 91) + 113) > 40000; if ( a2[203] != a2[204] ) { v78 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"collaborationIcon_001.png", v76); v79 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v78 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, 0.0, 0.5); v79(v78, v365); (*((void (__fastcall **)(const cocos2d::CCPoint **, int))*this + 57))(this, v78); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v78 + 92))(v78, v310); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, 18.0, 0.0); cocos2d::CCPoint::operator+(v365, v310, v364); cocos2d::CCPoint::operator=(v310, v365); if ( !v77 ) goto LABEL_31; LABEL_101: v244 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"highObjectIcon_001.png", v76); v245 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v244 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, 0.0, 0.5); v245(v244, v365); (*((void (__fastcall **)(const cocos2d::CCPoint **, int, int))*this + 58))(this, v244, 10); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v244 + 92))(v244, v310); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, 18.0, 0.0); cocos2d::CCPoint::operator+(v365, v310, v364); cocos2d::CCPoint::operator=(v310, v365); goto LABEL_31; } if ( *((_DWORD *)*(this + 91) + 112) - *((_DWORD *)*(this + 91) + 113) > 40000 ) goto LABEL_101; if ( v60 > 0 ) { v243 = (GameManager *)GameManager::sharedState(v75); if ( !GameManager::getGameVariable(v243, "0047") && !*((_BYTE *)this + 476) ) { v268 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_viewProfileTxt_001.png", v76); (*((void (__fastcall **)(const cocos2d::CCPoint **, int, int))*this + 58))(this, v268, 2); v269 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v268 + 92); v270 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v68 + 164))(v68); v271 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v68 + 84))(v68); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, (float)((float)(v270 * 0.5) * v271) + 48.0, -1.0); cocos2d::CCPoint::operator+(v365, v309, v364); v269(v268, v365); } } LABEL_31: v80 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playBtn2_001.png", v76); *(this + 121) = (const cocos2d::CCPoint *)v80; v324 = 0; v323 = LevelInfoLayer::onPlay; v81 = CCMenuItemSpriteExtra::create(v80, 0, (int)this, (int)LevelInfoLayer::onPlay, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 90) + 228))(*(this + 90), v81); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v311, v307 * 0.5, (float)(v308 * 0.5) + 51.0); v82 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v81 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v365, *(this + 90)); v83 = (GameManager *)v82(v81, v365); v84 = *((unsigned __int8 *)this + 476); if ( !*((_BYTE *)this + 476) ) { v246 = GameManager::sharedState(v83); if ( *(_DWORD *)(v246 + 820) - *(_DWORD *)(v246 + 824) > 1 ) { v272 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_editBtn_001.png", v247); (*(void (__fastcall **)(int, int))(*(_DWORD *)v272 + 80))(v272, 1053609165); (*(void (__fastcall **)(int, int))(*(_DWORD *)v272 + 456))(v272, 175); v326 = v84; v325 = LevelInfoLayer::onEdit; v273 = CCMenuItemSpriteExtra::create(v272, v84, (int)this, (int)LevelInfoLayer::onEdit, v84); *(this + 97) = (const cocos2d::CCPoint *)v273; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 90) + 228))(*(this + 90), v273); v274 = (int)*(this + 97); v275 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v274 + 92); v276 = (*(int (__fastcall **)(int))(*(_DWORD *)v81 + 96))(v81); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, -58.0, -34.0); cocos2d::CCPoint::operator+(v365, v276, v364); v275(v274, v365); } } (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)*(this + 110) + 110) + 92))( *((_DWORD *)*(this + 110) + 110), v311); v85 = (int)*(this + 91); if ( *(_DWORD *)(v85 + 952) == 4 ) goto LABEL_33; std::string::basic_string(v367, v85 + 304); v368 = 0; v369 = 0; v370 = nullptr; std::string::__init(&v368, &unk_B6B226, 0); v248 = sub_499ABC((unsigned __int8 *)v367, (unsigned __int8 *)&v368); v250 = v248 && (v249 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v248), *((_DWORD *)v249 + 237) != 99) && *(_DWORD *)(GameLevelManager::sharedState(v249) + 948) != 100; std::string::~string((int)&v368); std::string::~string((int)v367); if ( v250 ) { LABEL_33: LevelInfoLayer::downloadLevel((LevelInfoLayer *)this); } else { std::string::basic_string(v367, (int)*(this + 91) + 304); v368 = 0; v369 = 0; v370 = nullptr; std::string::__init(&v368, &unk_B6B226, 0); v277 = sub_499ABC((unsigned __int8 *)v367, (unsigned __int8 *)&v368); std::string::~string((int)&v368); std::string::~string((int)v367); if ( v277 ) { v278 = (int)*(this + 90); *((_BYTE *)this + 436) = 1; (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v278 + 172))(v278, 0); v279 = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 110) + 172))(*(this + 110), 1); v280 = (GameLevelManager *)GameLevelManager::sharedState(v279); *((_DWORD *)v280 + 213) = this + 80; v281 = (int)*(this + 91); v282 = *(const char **)(v281 + 612); *(_DWORD *)(v281 + 612) = -1; v283 = (GameLevelManager *)GameLevelManager::sharedState(v280); GameLevelManager::updateLevel(v283, *(this + 91)); a2[153] = v282; } } v86 = LevelInfoLayer::setupLevelInfo(this); if ( !*((_BYTE *)this + 476) ) { if ( GJGameLevel::isPlatformer(*(this + 91)) ) v86 = (cocos2d::CCDirector *)LevelInfoLayer::setupPlatformerStats((LevelInfoLayer *)this); else v86 = (cocos2d::CCDirector *)LevelInfoLayer::setupProgressBars(this); } v87 = v308 - 51.0; v88 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v86); v89 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v88)); v90 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v89)); v91 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v90)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v312, v89 - 30.0, v91 - 30.0); v92 = (GameLevelManager *)cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v313, v15); if ( *((_DWORD *)*(this + 91) + 186) - *((_DWORD *)*(this + 91) + 187) <= 0 || (v94 = (GameLevelManager *)GameLevelManager::sharedState(v92), (isPastDailyCopy = (GameManager *)GameLevelManager::isPastDailyCopy(v94, *(this + 91))) != nullptr) ) { v284 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteBtn_001.png", v93); v328 = 0; v327 = LevelInfoLayer::confirmDelete; v285 = CCMenuItemSpriteExtra::create(v284, 0, (int)this, (int)LevelInfoLayer::confirmDelete, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v285); isPastDailyCopy = (GameManager *)(*(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v285 + 92))(v285, v313); v314 = v314 - 50.0; } v96 = (GameManager *)GameManager::sharedState(isPastDailyCopy); if ( !GameManager::offlineModeEnabled(v96) ) { v98 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v97); v330 = 0; v329 = LevelInfoLayer::onUpdate; v99 = CCMenuItemSpriteExtra::create(v98, 0, (int)this, (int)LevelInfoLayer::onUpdate, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v99); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v99 + 92))(v99, v313); v314 = v314 - 50.0; } v100 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoBtn_001.png", v97); v332 = 0; v331 = LevelInfoLayer::onInfo; v101 = CCMenuItemSpriteExtra::create(v100, 0, (int)this, (int)LevelInfoLayer::onInfo, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v101); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v101 + 92))(v101, v313); v102 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v101 + 96))(v101); v103 = (GameManager *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v315, v102); v104 = (GameManager *)GameManager::sharedState(v103); if ( !GameManager::offlineModeEnabled(v104) ) { v106 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_levelLeaderboardBtn_001.png", v105); v334 = 0; v333 = LevelInfoLayer::onLevelLeaderboard; v107 = CCMenuItemSpriteExtra::create(v106, 0, (int)this, (int)LevelInfoLayer::onLevelLeaderboard, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v107); v108 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v107 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, 0.0, -50.0); cocos2d::CCPoint::operator+(v365, v315, v364); v108(v107, v365); v109 = (*(int (__fastcall **)(int))(*(_DWORD *)v107 + 96))(v107); cocos2d::CCPoint::operator=(v315, v109); } v110 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_like2Btn_001.png", v105); v336 = 0; v335 = LevelInfoLayer::onLike; v111 = CCMenuItemSpriteExtra::create(v110, 0, (int)this, (int)LevelInfoLayer::onLike, 0); *(this + 93) = (const cocos2d::CCPoint *)v111; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v111); v112 = (int)*(this + 93); v113 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v112 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, 0.0, -50.0); cocos2d::CCPoint::operator+(v365, v315, v364); v113(v112, v365); v114 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 93) + 96))(*(this + 93)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v316, v114); if ( *((_DWORD *)*(this + 91) + 193) == *((_DWORD *)*(this + 91) + 194) ) { v116 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_starBtn_001.png", v115); v338 = 0; v337 = LevelInfoLayer::onRateStars; v117 = CCMenuItemSpriteExtra::create(v116, 0, (int)this, (int)LevelInfoLayer::onRateStars, 0); *(this + 94) = (const cocos2d::CCPoint *)v117; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v117); v118 = (int)*(this + 94); v119 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v118 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, 0.0, -50.0); cocos2d::CCPoint::operator+(v365, v316, v364); v119(v118, v365); v120 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 94) + 96))(*(this + 94)); cocos2d::CCPoint::operator=(v316, v120); } if ( *((_DWORD *)*(this + 91) + 189) - *((_DWORD *)*(this + 91) + 190) == 1 ) { v368 = 0; v369 = 0; v370 = nullptr; v251 = (GameManager *)std::string::__init(&v368, "GJ_rateDiffBtn_001.png", 0x16u); v252 = (GameManager *)GameManager::sharedState(v251); if ( (unsigned int)(*((_DWORD *)v252 + 205) - *((_DWORD *)v252 + 206) - 1) <= 1 || *(_BYTE *)(GameManager::sharedState(v252) + 832) ) { std::string::assign(&v368, "GJ_rateDiffBtnMod_001.png"); } if ( (v368 & 1) != 0 ) v254 = v370; else v254 = (cocos2d::CCSprite *)((char *)&v368 + 1); v255 = cocos2d::CCSprite::createWithSpriteFrameName(v254, v253); v340 = 0; v339 = LevelInfoLayer::onRateDemon; v256 = CCMenuItemSpriteExtra::create(v255, 0, (int)this, (int)LevelInfoLayer::onRateDemon, 0); *(this + 95) = (const cocos2d::CCPoint *)v256; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v256); v257 = (int)*(this + 95); v298 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v257 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, 0.0, -50.0); cocos2d::CCPoint::operator+(v365, v316, v364); v298(v257, v365); v258 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 95) + 96))(*(this + 95)); cocos2d::CCPoint::operator=(v316, v258); std::string::~string((int)&v368); } if ( *((_BYTE *)this + 476) ) (*(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD))(*(_DWORD *)v15 + 172))(v15, 0); updated = (GameManager *)LevelInfoLayer::updateSideButtons((LevelInfoLayer *)this); v122 = (GJAccountManager *)GameManager::sharedState(updated); if ( *((_DWORD *)v122 + 116) - *((_DWORD *)v122 + 117) == *((_DWORD *)*(this + 91) + 101) - *((_DWORD *)*(this + 91) + 102) ) { v123 = 1; } else { v122 = (GJAccountManager *)GJAccountManager::sharedState(v122); if ( *((_DWORD *)v122 + 70) == *((_DWORD *)v122 + 71) ) { v123 = 0; } else { v122 = (GJAccountManager *)GJAccountManager::sharedState(v122); v123 = *((_DWORD *)v122 + 70) - *((_DWORD *)v122 + 71) + (*((_DWORD *)v122 + 70) - *((_DWORD *)v122 + 71) == *((_DWORD *)*(this + 91) + 104) - *((_DWORD *)*(this + 91) + 105)) + *((_DWORD *)v122 + 71) - *((_DWORD *)v122 + 70); } } v124 = (GameManager *)GameManager::sharedState(v122); v125 = *((_DWORD *)v124 + 205); v126 = v125 - *((_DWORD *)v124 + 206); if ( v126 != 1 ) { v127 = v126 == 2; if ( v123 ) { v126 = 1; v129 = 1; LABEL_52: if ( v127 ) v130 = 2; else v130 = 1; goto LABEL_55; } LABEL_51: v128 = (GameManager *)GameManager::sharedState(v124); v126 = *((_DWORD *)v128 + 205) - *((_DWORD *)v128 + 206) > 1; v124 = (GameManager *)GameManager::sharedState(v128); v129 = *((_DWORD *)v124 + 205) - *((_DWORD *)v124 + 206) > 0; goto LABEL_52; } v127 = v299; if ( !v123 ) goto LABEL_51; v129 = v125 - *((_DWORD *)v124 + 206); v130 = 2; LABEL_55: v131 = (float)(v130 + v126 + v123 - 1); v132 = (float)(v87 - 92.0) / (float)((float)(v131 * 50.0) + 48.0); if ( v132 >= 1.0 ) v132 = 1.0; v133 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v124); v134 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v133)); v135 = v132 * 50.0; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v317, (float)(v134 + 30.0) + 0.0, (float)((float)(v131 * (float)(v132 * 50.0)) * 0.5) + (float)((float)(v87 + 92.0) * 0.5)); if ( v127 ) { v137 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_starBtnMod_001.png", v136); (*(void (__fastcall **)(int, float))(*(_DWORD *)v137 + 80))(v137, COERCE_FLOAT(LODWORD(v132))); v342 = 0; v341 = LevelInfoLayer::onRateStarsMod; v138 = CCMenuItemSpriteExtra::create(v137, 0, (int)this, (int)LevelInfoLayer::onRateStarsMod, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v138); v294 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v138 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v365, v15); v294(v138, v365); v318 = v318 - v135; } if ( v126 ) { v139 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteServerBtn_001.png", v136); (*(void (__fastcall **)(int, float))(*(_DWORD *)v139 + 80))(v139, COERCE_FLOAT(LODWORD(v132))); v344 = 0; v343 = LevelInfoLayer::confirmOwnerDelete; v140 = CCMenuItemSpriteExtra::create(v139, 0, (int)this, (int)LevelInfoLayer::confirmOwnerDelete, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v140); v295 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v140 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v365, v15); v295(v140, v365); v318 = v318 - v135; } if ( v123 ) { v141 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v136); (*(void (__fastcall **)(int, float))(*(_DWORD *)v141 + 80))(v141, COERCE_FLOAT(LODWORD(v132))); v346 = 0; v345 = LevelInfoLayer::onCreatorSettings; v142 = CCMenuItemSpriteExtra::create(v141, 0, (int)this, (int)LevelInfoLayer::onCreatorSettings, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v142); v143 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v142 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v365, v15); v143(v142, v365); v318 = v318 - v135; } if ( v129 ) { v144 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_duplicateBtn_001.png", v136); (*(void (__fastcall **)(int, float))(*(_DWORD *)v144 + 80))(v144, COERCE_FLOAT(LODWORD(v132))); v348 = 0; v347 = LevelInfoLayer::confirmClone; v145 = CCMenuItemSpriteExtra::create(v144, 0, (int)this, (int)LevelInfoLayer::confirmClone, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v145); v146 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v145 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v365, v15); v146(v145, v365); } else { if ( a2[201] - a2[202] == 1 ) v259 = "GJ_duplicateBtn_001.png"; else v259 = "GJ_duplicateLockedBtn_001.png"; v260 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v259, v136); (*(void (__fastcall **)(int, float))(*(_DWORD *)v260 + 80))(v260, COERCE_FLOAT(LODWORD(v132))); v350 = 0; v349 = LevelInfoLayer::tryCloneLevel; v261 = CCMenuItemSpriteExtra::create(v260, 0, (int)this, (int)LevelInfoLayer::tryCloneLevel, 0); *(this + 104) = (const cocos2d::CCPoint *)v261; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v15 + 228))(v15, v261); v262 = (int)*(this + 104); v263 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v262 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v365, v15); v263(v262, v365); (*(void (__fastcall **)(_DWORD, bool))(*(_DWORD *)*(this + 104) + 172))( *(this + 104), *((_DWORD *)*(this + 91) + 201) != *((_DWORD *)*(this + 91) + 202)); v264 = (int)*(this + 104); v265 = *(void (__fastcall **)(int, int))(*(_DWORD *)v264 + 528); v266 = (*(int (__fastcall **)(int))(*(_DWORD *)v264 + 176))(v264); v265(v264, v266); } v148 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v147); v352 = 0; v351 = LevelInfoLayer::onBack; v305 = (cocos2d::CCLayer *)CCMenuItemSpriteExtra::create(v148, 0, (int)this, (int)LevelInfoLayer::onBack, 0); CCMenuItemSpriteExtra::setSizeMult((int)v305, 1.6); v149 = cocos2d::CCMenu::create(v305, nullptr); v150 = (cocos2d::CCDirector *)(*((int (__fastcall **)(const cocos2d::CCPoint **, int, int))*this + 58))(this, v149, 1); v151 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v149 + 92); v152 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v150); v153 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v152)); v154 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v153)); v155 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v154)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, v153 + 24.0, v155 - 23.0); hasCompletedLevel = (GameStatsManager *)v151(v149, v365); if ( *((_DWORD *)*(this + 91) + 186) - *((_DWORD *)*(this + 91) + 187) <= 0 ) { v267 = (GameStatsManager *)GameStatsManager::sharedState(hasCompletedLevel); hasCompletedLevel = (GameStatsManager *)GameStatsManager::hasCompletedLevel(v267, *(this + 91)); if ( hasCompletedLevel ) { if ( *((_DWORD *)*(this + 91) + 189) - *((_DWORD *)*(this + 91) + 190) == 1 ) { v286 = (GameStatsManager *)GameStatsManager::sharedState(hasCompletedLevel); hasCompletedLevel = (GameStatsManager *)GameStatsManager::completedDemonLevel(v286, *(this + 91)); } if ( *((_DWORD *)*(this + 91) + 193) - *((_DWORD *)*(this + 91) + 194) > 0 ) { v287 = (GameStatsManager *)GameStatsManager::sharedState(hasCompletedLevel); hasCompletedLevel = (GameStatsManager *)GameStatsManager::completedStarLevel(v287, *(this + 91)); } } } v157 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(hasCompletedLevel); v159 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v158); v354 = 0; v353 = LevelInfoLayer::onLevelInfo; v160 = CCMenuItemSpriteExtra::create(v159, 0, (int)this, (int)LevelInfoLayer::onLevelInfo, 0); CCMenuItemSpriteExtra::setSizeMult(v160, 1.2); v161 = (cocos2d::CCDirector *)(*(int (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v157 + 228))( v157, v160); v162 = *(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v157 + 92); v163 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v161); v164 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v163)); v165 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v164)); v166 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v165)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, v164 + 30.0, v166 + 30.0); v162(v157, v365); v167 = (cocos2d::CCMenu *)(*((int (__fastcall **)(const cocos2d::CCPoint **, const cocos2d::CCPoint *, int))*this + 58))( this, v157, 2); v168 = cocos2d::CCMenu::create(v167); (*((void (__fastcall **)(const cocos2d::CCPoint **, int, int))*this + 58))(this, v168, 21); v169 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v168 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, v307 - 85.0, v308 - 25.0); v169(v168, v365); v171 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"garageRope_001.png", v170); v356 = 0; v355 = LevelInfoLayer::onGarage; v172 = (_DWORD *)CCMenuItemSpriteExtra::create(v171, 0, (int)this, (int)LevelInfoLayer::onGarage, 0); CCMenuItemSpriteExtra::setSizeMult((int)v172, 1.2); CCMenuItemSpriteExtra::useAnimationType(v172, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, 0.0, -8.0); cocos2d::CCPoint::operator=(v172 + 89, v365); v172[91] = 1045220557; v172[92] = 1045220557; (*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v168 + 228))(v168, v172); if ( *((_BYTE *)*(this + 91) + 736) ) v174 = "gj_heartOn_001.png"; else v174 = "gj_heartOff_001.png"; v175 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v174, v173); v358 = 0; v357 = LevelInfoLayer::onFavorite; v301 = CCMenuItemSpriteExtra::create(v175, 0, (int)this, (int)LevelInfoLayer::onFavorite, 0); CCMenuItemSpriteExtra::setSizeMult(v301, 1.1); (*(void (__fastcall **)(const cocos2d::CCPoint *, int, int))(*(_DWORD *)v157 + 232))(v157, v301, 100); v176 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v301 + 92); v177 = (*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v157 + 96))(v157); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v363, 38.0, 0.0); cocos2d::CCPoint::operator+(v364, v177, v363); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v365, v157); v176(v301, v365); v179 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v178); (*(void (__fastcall **)(int, int))(*(_DWORD *)v179 + 80))(v179, 1063675494); (*(void (__fastcall **)(int, int))(*(_DWORD *)v179 + 180))(v179, 1119092736); v360 = 0; v359 = LevelInfoLayer::confirmMoveToTop; v296 = CCMenuItemSpriteExtra::create(v179, 0, (int)this, (int)LevelInfoLayer::confirmMoveToTop, 0); CCMenuItemSpriteExtra::setSizeMult(v296, 1.1); (*(void (__fastcall **)(const cocos2d::CCPoint *, int, int))(*(_DWORD *)v157 + 232))(v157, v296, 100); v180 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v296 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, v307 - 73.0, 55.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v365, v157); v180(v296, v365); v182 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"edit_leftBtn_001.png", v181); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v182 + 80))(v182, 1063675494); cocos2d::CCSprite::setFlipY(v182, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v182 + 180))(v182, -1028390912); v362 = 0; v361 = LevelInfoLayer::confirmMoveToBottom; v303 = CCMenuItemSpriteExtra::create((int)v182, 0, (int)this, (int)LevelInfoLayer::confirmMoveToBottom, 0); CCMenuItemSpriteExtra::setSizeMult(v303, 1.1); (*(void (__fastcall **)(const cocos2d::CCPoint *, int, int))(*(_DWORD *)v157 + 232))(v157, v303, 100); v183 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v303 + 92); v184 = (*(int (__fastcall **)(int))(*(_DWORD *)v296 + 96))(v296); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, 0.0, -30.0); cocos2d::CCPoint::operator+(v365, v184, v364); v183(v303, v365); if ( *((_BYTE *)this + 476) ) (*(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD))(*(_DWORD *)v157 + 172))(v157, 0); v186 = (int)*(this + 91); v187 = *(_DWORD *)(v186 + 436); if ( v187 ) { LOBYTE(v187) = 1; SongObject = (CustomSongWidget *)SongInfoObject::create(*(SongInfoObject **)(v186 + 436), v185); } else { SongObject = (CustomSongWidget *)LevelTools::getSongObject(*(LevelTools **)(v186 + 432), v185); } v189 = (const cocos2d::CCPoint *)CustomSongWidget::create( SongObject, nullptr, nullptr, 0, 1, (unsigned __int8)v187 != 1, 0, 0, 0, 0, 1, v290); v190 = *this; *(this + 123) = v189; v191 = (cocos2d::CCDirector *)(*((int (__fastcall **)(const cocos2d::CCPoint **, const cocos2d::CCPoint *))v190 + 57))( this, v189); v192 = (int)*(this + 123); v193 = v307 * 0.5; v194 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v192 + 92); v195 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v191); v196 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v195)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, v193, v196 + 45.0); v194(v192, v365); if ( *((_BYTE *)SongObject + 328) ) CustomSongWidget::onGetSongInfo(*(this + 123), nullptr); v197 = (int)*(this + 123); std::string::basic_string(v367, (int)*(this + 91) + 1008); std::string::basic_string(&v368, (int)*(this + 91) + 1020); CustomSongWidget::updateWithMultiAssets(v197, v367, &v368, *((_DWORD *)*(this + 91) + 258)); std::string::~string((int)&v368); v198 = (cocos2d::CCMenu *)std::string::~string((int)v367); v199 = (cocos2d::CCDirector *)cocos2d::CCMenu::create(v198); v200 = *(void (__fastcall **)(cocos2d::CCDirector *, _DWORD *))(*(_DWORD *)v199 + 92); v201 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v199); v202 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v201)); v203 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v202)); v204 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v203)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, v202 + 30.0, v204 + 30.0); v200(v199, v365); (*((void (__fastcall **)(const cocos2d::CCPoint **, cocos2d::CCDirector *, int))*this + 58))(this, v199, 2); v206 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn_001.png", v205); (*(void (__fastcall **)(int, int))(*(_DWORD *)v206 + 80))(v206, 1058642330); v363[1] = 0; v363[0] = LevelInfoLayer::onLevelOptions; v207 = CCMenuItemSpriteExtra::create(v206, 0, (int)this, (int)LevelInfoLayer::onLevelOptions, 0); (*(void (__fastcall **)(cocos2d::CCDirector *, int))(*(_DWORD *)v199 + 228))(v199, v207); v306 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v207 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, 30.0, 70.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v365, v199); v306(v207, v365); v209 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_folderBtn_001.png", v208); v210 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2[185]); v211 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v210); v213 = (const cocos2d::CCPoint *)cocos2d::CCLabelBMFont::create(v211, "bigFont.fnt", v212); *(this + 103) = v213; (*(void (__fastcall **)(int, const cocos2d::CCPoint *, int))(*(_DWORD *)v209 + 232))(v209, v213, 1); v214 = (int)*(this + 103); v215 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v214 + 92); v216 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v209 + 164))(v209); v217 = (*(int (__fastcall **)(int))(*(_DWORD *)v209 + 164))(v209); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v365, v216 * 0.5, (float)(*(float *)(v217 + 4) * 0.5) + 1.0); v215(v214, v365); cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 103), 24.0, 0.55, 0.0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v209 + 80))(v209, 1061997773); v364[1] = 0; v364[0] = LevelInfoLayer::onSetFolder; v218 = CCMenuItemSpriteExtra::create(v209, 0, (int)this, (int)LevelInfoLayer::onSetFolder, 0); CCMenuItemSpriteExtra::setSizeMult(v218, 1.2); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v157 + 228))(v157, v218); v219 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v218 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v320, v307 - 73.0, 80.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v365, v157); v219(v218, v365); v221 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_listAddBtn_001.png", v220); (*(void (__fastcall **)(int, int))(*(_DWORD *)v221 + 80))(v221, 1063675494); v365[1] = 0; v365[0] = LevelInfoLayer::onAddToList; v222 = CCMenuItemSpriteExtra::create(v221, 0, (int)this, (int)LevelInfoLayer::onAddToList, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v157 + 228))(v157, v222); v223 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v222 + 92); v224 = (*(int (__fastcall **)(int))(*(_DWORD *)v218 + 96))(v218); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v319, 0.0, 35.0); cocos2d::CCPoint::operator+(v320, v224, v319); v225 = (PlatformToolbox *)v223(v222, v320); if ( a2[186] - a2[187] > 0 || *((_BYTE *)a2 + 477) ) { (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v218 + 172))(v218, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v218 + 528))(v218, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v296 + 172))(v296, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v296 + 528))(v296, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v303 + 172))(v303, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v303 + 528))(v303, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v301 + 172))(v301, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v301 + 528))(v301, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v222 + 172))(v222, 0); v225 = (PlatformToolbox *)(*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v222 + 528))(v222, 0); } isControllerConnected = PlatformToolbox::isControllerConnected(v225); if ( isControllerConnected ) { GameToolbox::addBackButton((GameToolbox *)this, v305, v227); v229 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_Start_001.png", v228); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 121) + 228))(*(this + 121), v229); v230 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v229 + 92); v231 = *(float *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 121) + 164))(*(this + 121)); v232 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 121) + 164))(*(this + 121)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v320, v231 * 0.5, (float)(*(float *)(v232 + 4) * 0.5) - 40.0); isControllerConnected = v230(v229, v320); } v233 = (int)*(this + 91); if ( (*(_BYTE *)(v233 + 1124) || *(_BYTE *)(v233 + 1125)) && *(_DWORD *)(v233 + 952) != 2 && *(_DWORD *)(v233 + 756) - *(_DWORD *)(v233 + 760) == 1 ) { isControllerConnected = PlatformToolbox::isNetworkAvailable((PlatformToolbox *)isControllerConnected); if ( isControllerConnected ) { if ( *((_BYTE *)*(this + 91) + 1124) ) { v288 = GameLevelManager::sharedState((GameLevelManager *)isControllerConnected); isControllerConnected = GameLevelManager::getLevelLeaderboard(v288, *(this + 91), 4, 0); } if ( *((_BYTE *)*(this + 91) + 1125) ) { v289 = GameLevelManager::sharedState((GameLevelManager *)isControllerConnected); isControllerConnected = GameLevelManager::getLevelLeaderboard(v289, *(this + 91), 4, 1); } } } *(_BYTE *)(GameManager::sharedState((GameManager *)isControllerConnected) + 852) = 0; return v299; }
GD Web Decomp Icon

GD Web Decomp

Raw Source