// // LevelInfoLayer::init from 0x6db138 to 0x6dd6b0 (9592 bytes) // // 2 xrefs: // > LevelInfoLayer::create @ 0x6dd850 // > @ 0xa62f0 // // 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 LevelInfoLayer::init(LevelInfoLayer *a1, GJGameLevel *a2, bool a3) { cocos2d::CCArray *v7; // x0 cocos2d::CCArray *v8; // x0 GJGameLevel *m_level; // x0 GJLevelType m_levelType; // w1 LoadingCircle *v11; // x0 LoadingCircle *m_circle; // x0 cocos2d::CCDirector *v13; // x0 cocos2d::CCMenu *v14; // x0 cocos2d::CCMenu *v15; // x22 GJGameLevel *v16; // x24 int v17; // w27 unsigned int v18; // w26 _BOOL4 v19; // w27 _BOOL4 v20; // w21 _BOOL4 m_gauntletLevel; // w24 cocos2d::CCNode *v22; // x26 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 int (__fastcall *getTag)(const cocos2d::CCObject *__hidden); // x2 int v26; // w24 const char *v27; // x0 cocos2d::CCSprite *v28; // x26 void (__fastcall *v29)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 void (__fastcall *v30)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 cocos2d::CCDirector *v31; // x0 float v32; // s0 float v33; // s8 cocos2d::CCDirector *v34; // x0 float v35; // s0 const char *v36; // x0 cocos2d::CCSprite *v37; // x24 void (__fastcall *v38)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 void (__fastcall *v39)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCDirector *v40; // x0 float v41; // s0 float v42; // s9 cocos2d::CCDirector *v43; // x0 float v44; // s0 int v45; // w28 cocos2d::CCLabelBMFont *v46; // x24 cocos2d::CCArray **p_m_pTargetArray; // x0 void (__fastcall *v48)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 cocos2d::CCDirector *v49; // x0 float v50; // s0 cocos2d::CCLabelBMFont *v51; // x27 void (__fastcall *v52)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x21 void (__fastcall *v53)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 __int64 v54; // x28 float v55; // s8 float v56; // s0 cocos2d::CCArray **v57; // x0 GJGameLevel *v58; // x1 int v59; // w2 int v60; // w0 int v61; // w25 double v62; // d0 cocos2d::CCString *v63; // x0 char *v64; // x0 cocos2d::CCLabelBMFont *v65; // x27 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1 __int128 v67; // q0 __int64 v68; // x0 CCMenuItemSpriteExtra *v69; // x24 float x; // s9 float width; // s8 float v72; // s0 int v73; // w0 unsigned int v74; // w2 cocos2d::CCSprite *v75; // x27 void (__fastcall *v76)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 float v77; // s0 float v78; // s1 cocos2d::CCSprite *v79; // x27 void (__fastcall *v80)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 float v81; // s0 float v82; // s1 cocos2d::CCSprite *v83; // x0 CCMenuItemSpriteExtra *v84; // x27 void (__fastcall *v85)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 GJGameLevel *v86; // x1 cocos2d::CCDirector *v87; // x0 float v88; // s0 float v89; // s8 cocos2d::CCDirector *v90; // x0 float v91; // s0 cocos2d::CCSprite *v92; // x0 CCMenuItemSpriteExtra *v93; // x28 cocos2d::CCSprite *v94; // x0 CCMenuItemSpriteExtra *v95; // x28 cocos2d::CCSprite *v96; // x0 CCMenuItemSpriteExtra *v97; // x27 CCMenuItemSpriteExtra *v98; // x0 const cocos2d::CCPoint *(__fastcall *v99)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v100)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 cocos2d::CCSprite *v101; // x0 CCMenuItemSpriteExtra *v102; // x0 cocos2d::CCMenu_vtbl *v103; // x2 CCMenuItemSpriteExtra *m_likeBtn; // x28 CCMenuItemSpriteExtra *v105; // x0 const cocos2d::CCPoint *(__fastcall *v106)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v107)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 const cocos2d::CCPoint *v108; // x0 GJGameLevel *v109; // x0 GameManager *v110; // x0 float v111; // s11 cocos2d::CCDirector *v112; // x0 float v113; // s0 GameManager *v114; // x0 cocos2d::CCSprite *v115; // x0 CCMenuItemSpriteExtra *v116; // x27 void (__fastcall *v117)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 float v118; // s0 float v119; // s1 GameManager *v120; // x0 GJAccountManager *v121; // x0 GJAccountManager *v122; // x0 GameManager *v123; // x0 int v124; // w28 cocos2d::CCSprite *v125; // x0 CCMenuItemSpriteExtra *v126; // x27 float v127; // s0 float v128; // s1 cocos2d::CCSprite *v129; // x0 CCMenuItemSpriteExtra *v130; // x27 void (__fastcall *v131)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 float v132; // s0 float v133; // s1 cocos2d::CCSprite *v134; // x0 cocos2d::CCMenu *v135; // x22 cocos2d::CCNode *v136; // x22 void (__fastcall *v137)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCDirector *v138; // x0 float v139; // s0 float v140; // s8 cocos2d::CCDirector *v141; // x0 float v142; // s0 cocos2d::CCMenu *v143; // x22 cocos2d::CCSprite *v144; // x0 void (__fastcall *v145)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCDirector *v146; // x0 float v147; // s0 float v148; // s8 cocos2d::CCDirector *v149; // x0 float v150; // s0 cocos2d::CCMenu *v151; // x27 void (__fastcall *v152)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCSprite *v153; // x0 CCMenuItemSpriteExtra *v154; // x24 float v155; // s0 float v156; // s1 void (__fastcall *addChild)(cocos2d::CCMenu *__hidden, cocos2d::CCNode *); // x3 const char *v158; // x0 cocos2d::CCSprite *v159; // x0 CCMenuItemSpriteExtra *v160; // x27 void (__fastcall *v161)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 __int64 v162; // x28 cocos2d::CCSprite *v163; // x24 CCMenuItemSpriteExtra *v164; // x24 cocos2d::CCSprite *v165; // x28 CCMenuItemSpriteExtra *v166; // x28 const cocos2d::CCPoint *(__fastcall *v167)(cocos2d::CCNode *__hidden); // x1 GJGameLevel *v168; // x1 SongInfoObject *m_songID; // x0 SongInfoObject *SongObject; // x8 bool v171; // w5 CustomSongWidget *v172; // x0 float v173; // s11 cocos2d::CCDirector *v174; // x0 float v175; // s0 std::string *p_m_songIDs; // x1 char *v177; // x0 char *v178; // x0 cocos2d::CCMenu *v179; // x26 void (__fastcall *v180)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCDirector *v181; // x0 float v182; // s0 float v183; // s14 cocos2d::CCDirector *v184; // x0 float v185; // s0 cocos2d::CCSprite *v186; // x25 CCMenuItemSpriteExtra *v187; // x25 cocos2d::CCSprite *v188; // x26 cocos2d::CCString *v189; // x0 cocos2d::CCLabelBMFont *v190; // x0 cocos2d::CCSprite_vtbl *v191; // x3 cocos2d::CCSprite_vtbl *v192; // x3 void (__fastcall *v193)(cocos2d::CCPoint *, char **); // x25 __int128 v194; // q0 const cocos2d::CCSize *(__fastcall *getContentSize)(const cocos2d::CCNode *__hidden); // x3 __int64 v196; // x0 CCMenuItemSpriteExtra *v197; // x25 void (__fastcall *v198)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCSprite *v199; // x26 CCMenuItemSpriteExtra *v200; // x26 void (__fastcall *v201)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 GJGameLevel *v202; // x0 int (__fastcall *v203)(const cocos2d::CCObject *__hidden); // x3 char *v204; // x25 size_t v205; // x28 cocos2d::CCPoint *v206; // x4 size_t v207; // x2 size_t v208; // x28 GameLevelManager *v209; // x0 _BOOL4 v210; // w28 int random; // w2 int seed; // w0 GameLevelManager *v213; // x0 GameManager *v214; // x0 bool GameVariable; // w0 cocos2d::CCSprite *v216; // x24 void (__fastcall *v217)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 float v218; // s8 float v219; // s0 char *v220; // x0 _DWORD *v221; // x28 unsigned __int64 v222; // x25 unsigned __int64 v223; // x27 size_t v224; // x2 int v225; // w24 __int64 v226; // x27 cocos2d::CCPoint *v227; // x0 char *v228; // x0 cocos2d::CCMenu *m_playBtnMenu; // x2 GJGameLevel *v230; // x0 int m_levelVersion; // w24 GameLevelManager *v232; // x0 GameManager *v233; // x0 const char *v234; // x0 cocos2d::CCSprite *v235; // x0 CCMenuItemSpriteExtra *v236; // x0 cocos2d::CCMenu_vtbl *v237; // x2 CCMenuItemSpriteExtra *m_cloneBtn; // x22 void (__fastcall *v239)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 float v240; // s0 float v241; // s1 CCMenuItemSpriteExtra *v242; // x22 void (__fastcall *setEnabled)(cocos2d::CCMenuItemSprite *__hidden, bool); // x24 int v244; // w0 void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x3 cocos2d::CCSprite *v246; // x21 void (__fastcall *v247)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22 float v248; // s0 cocos2d::CCSprite *m_playSprite; // x0 __int128 v250; // q0 const cocos2d::CCSize *(__fastcall *v251)(const cocos2d::CCNode *__hidden); // x1 __int64 v252; // x0 float v253; // s0 float v254; // s1 int (__fastcall *v255)(const cocos2d::CCObject *__hidden); // x2 cocos2d::CCSprite *v256; // x0 CCMenuItemSpriteExtra *v257; // x0 cocos2d::CCMenu_vtbl *v258; // x2 CCMenuItemSpriteExtra *m_starRateBtn; // x27 void (__fastcall *v260)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 float v261; // s0 float v262; // s1 GameManager *v263; // x0 cocos2d::CCSprite *v264; // x0 CCMenuItemSpriteExtra *v265; // x0 cocos2d::CCMenu_vtbl *v266; // x2 CCMenuItemSpriteExtra *m_demonRateBtn; // x28 void (__fastcall *v268)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 float v269; // s0 float v270; // s1 cocos2d::CCArray **v271; // x0 unsigned int *v272; // x1 int v273; // w2 cocos2d::CCSprite *v274; // x0 CCMenuItemSpriteExtra *v275; // x24 GameStatsManager *v276; // x0 GJGameLevel *v277; // x0 GameStatsManager *v278; // x0 unsigned int *v279; // x1 int v280; // w2 unsigned int *v281; // x28 int v282; // w1 unsigned int *v283; // x1 int v284; // w2 unsigned int *v285; // x1 int v286; // w2 unsigned int *v287; // x1 int v288; // w2 GJGameLevel *v289; // x0 GameLevelManager *v290; // x0 GameLevelManager *v291; // x0 int (__fastcall *v292)(const cocos2d::CCObject *__hidden); // x2 GameStatsManager *v293; // x0 unsigned int *p_m_nExtraKerning; // x1 int m_nExtraKerning; // w2 unsigned int *v296; // x3 int v297; // w1 unsigned int *v298; // x3 int x_low; // w1 unsigned int *v300; // x1 int v301; // w2 __int64 v302; // [xsp+10h] [xbp+0h] BYREF cocos2d::CCLayer *v303; // [xsp+B8h] [xbp+A8h] cocos2d::CCPoint *v304[2]; // [xsp+C0h] [xbp+B0h] __int128 v305; // [xsp+D0h] [xbp+C0h] SongInfoObject *v306; // [xsp+E0h] [xbp+D0h] bool v307; // [xsp+EFh] [xbp+DFh] float v308; // [xsp+F8h] [xbp+E8h] float v309; // [xsp+FCh] [xbp+ECh] cocos2d::CCLabelBMFont *v310; // [xsp+100h] [xbp+F0h] BYREF cocos2d::CCPoint v311; // [xsp+108h] [xbp+F8h] BYREF cocos2d::CCPoint v312; // [xsp+110h] [xbp+100h] BYREF cocos2d::CCPoint v313; // [xsp+118h] [xbp+108h] BYREF cocos2d::CCPoint v314; // [xsp+120h] [xbp+110h] BYREF _BYTE v315[4]; // [xsp+128h] [xbp+118h] BYREF float v316; // [xsp+12Ch] [xbp+11Ch] cocos2d::CCPoint v317; // [xsp+130h] [xbp+120h] BYREF cocos2d::CCPoint v318; // [xsp+138h] [xbp+128h] BYREF cocos2d::CCLabelBMFont *v319; // [xsp+140h] [xbp+130h] BYREF void *v320; // [xsp+148h] [xbp+138h] BYREF char *v321; // [xsp+150h] [xbp+140h] BYREF cocos2d::CCPoint v322; // 0:kr08_8.8 cocos2d::CCPoint v323; // 0:kr10_8.8 cocos2d::CCPoint v324; // 0:kr20_8.8 cocos2d::CCPoint v325; // 0:kr28_8.8 cocos2d::CCPoint v326; // 0:kr30_8.8 cocos2d::CCPoint v327; // 0:kr38_8.8 cocos2d::CCPoint v328; // 0:kr40_8.8 cocos2d::SEL_MenuHandler v329; // 0:x2.16 cocos2d::SEL_MenuHandler v330; // 0:x2.16 cocos2d::SEL_MenuHandler v331; // 0:x2.16 cocos2d::SEL_MenuHandler v332; // 0:x2.16 cocos2d::SEL_MenuHandler v333; // 0:x2.16 cocos2d::SEL_MenuHandler v334; // 0:x2.16 cocos2d::SEL_MenuHandler v335; // 0:x2.16 cocos2d::SEL_MenuHandler v336; // 0:x2.16 cocos2d::SEL_MenuHandler v337; // 0:x2.16 cocos2d::SEL_MenuHandler v338; // 0:x2.16 cocos2d::SEL_MenuHandler v339; // 0:x2.16 cocos2d::SEL_MenuHandler v340; // 0:x2.16 cocos2d::SEL_MenuHandler v341; // 0:x2.16 cocos2d::SEL_MenuHandler v342; // 0:x2.16 cocos2d::SEL_MenuHandler v343; // 0:x2.16 cocos2d::SEL_MenuHandler v344; // 0:x2.16 cocos2d::SEL_MenuHandler v345; // 0:x2.16 cocos2d::SEL_MenuHandler v346; // 0:x2.16 cocos2d::SEL_MenuHandler v347; // 0:x2.16 cocos2d::SEL_MenuHandler v348; // 0:x2.16 cocos2d::SEL_MenuHandler v349; // 0:x2.16 cocos2d::SEL_MenuHandler v350; // 0:x2.16 v307 = cocos2d::CCLayer::init(a1); LODWORD(v305) = v307; if ( !v307 ) return v307; a1->m_level = a2; cocos2d::CCObject::retain(a2); a1->m_challenge = a3; v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v7); a1->m_coins = v8; cocos2d::CCObject::retain(v8); m_level = a1->m_level; m_levelType = a2->m_levelType; m_level->m_levelNotDownloaded = 0; a1->m_levelType = m_levelType; if ( m_level->m_dailyID.random - m_level->m_dailyID.seed <= 0 && !m_level->m_gauntletLevel ) GameManager::sharedState()->m_currentLevelID = a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed; v11 = LoadingCircle::create(); a1->m_circle = v11; v11->m_parentLayer = a1; m_circle = a1->m_circle; m_circle->m_fade = 0; cocos2d::CCObject::retain(m_circle); LoadingCircle::show(a1->m_circle); a1->m_circle->setVisible(a1->m_circle, 0); a1->setKeypadEnabled(a1, 1); a1->setKeyboardEnabled(a1, 1); v13 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v13); v14 = cocos2d::CCMenu::create(); a1->m_playBtnMenu = v14; a1->addChild_0(a1, v14, 3); v15 = cocos2d::CCMenu::create(); a1->addChild_0(a1, v15, 2); v16 = a1->m_level; v17 = a2->m_dailyID.random - a2->m_dailyID.seed; v18 = v17 - 100001; v19 = v17 > 200000; v20 = v18 <= 0x1869F; LODWORD(v304[0]) = v16->m_dailyID.random - v16->m_dailyID.seed; m_gauntletLevel = v16->m_gauntletLevel; v22 = (cocos2d::CCNode *)cocos2d::CCSprite::create( (cocos2d::CCSprite *)"GJ_gradientBG.png", (const char *)LODWORD(v304[0])); setAnchorPoint = v22->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, 0.0, 0.0); setAnchorPoint(v22, (const cocos2d::CCPoint *)&v321); a1->addChild_0(a1, v22, -2); v22->setScaleX(v22, (float)(v308 + 10.0) / v22[1].m_obContentSize.height); v22->setScaleY(v22, (float)(v309 + 10.0) / v22[1].m_sAdditionalTransform.a); setPosition = v22->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, -5.0, -5.0); setPosition(v22, (const cocos2d::CCPoint *)&v321); getTag = v22->__vftable[1].getTag; LOWORD(v321) = 26112; BYTE2(v321) = -1; ((void (__fastcall *)(cocos2d::CCNode *, char **))getTag)(v22, &v321); if ( v20 || m_gauntletLevel || a1->m_challenge ) { if ( v19 ) { v255 = v22->__vftable[1].getTag; LOWORD(v321) = 6243; BYTE2(v321) = 126; ((void (__fastcall *)(cocos2d::CCNode *, char **))v255)(v22, &v321); } else { v203 = v22->__vftable[1].getTag; memset(&v321, 51, 3); ((void (__fastcall *)(cocos2d::CCNode *, char **))v203)(v22, &v321); } v26 = 1; v27 = "gauntletCorner_001.png"; } else { v26 = 0; if ( v19 ) { v292 = v22->__vftable[1].getTag; LOWORD(v321) = 6243; BYTE2(v321) = 126; ((void (__fastcall *)(cocos2d::CCNode *, char **))v292)(v22, &v321); } v27 = "GJ_sideArt_001.png"; } v28 = cocos2d::CCSprite::createWithSpriteFrameName(v27); v29 = v28->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, 0.0, 0.0); v29(v28, (const cocos2d::CCPoint *)&v321); v30 = v28->setPosition; v31 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v31); v33 = v32; v34 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v34); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, v33 - 1.0, v35 - 1.0); v30(v28, (const cocos2d::CCPoint *)&v321); a1->addChild_0(a1, v28, 1); if ( v26 ) v36 = "gauntletCorner_001.png"; else v36 = "GJ_sideArt_001.png"; v37 = cocos2d::CCSprite::createWithSpriteFrameName(v36); v38 = v37->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, 1.0, 0.0); v38(v37, (const cocos2d::CCPoint *)&v321); v39 = v37->setPosition; v40 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v40); v42 = v41; v43 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v43); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, v42 + 1.0, v44 - 1.0); v39(v37, (const cocos2d::CCPoint *)&v321); cocos2d::CCSprite::setFlipX(v37, 1); a1->addChild_0(a1, v37, 1); if ( a1->m_challenge ) { v45 = 0; } else { v45 = v305; sub_D18D28(&v310, &a1->m_level->m_levelName); } v46 = cocos2d::CCLabelBMFont::create(); if ( v45 ) { p_m_pTargetArray = &v310[-1].m_pTargetArray; if ( &v310[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 ) { if ( &pthread_create ) { p_m_nExtraKerning = (unsigned int *)&v310[-1].m_nExtraKerning; do m_nExtraKerning = __ldaxr(p_m_nExtraKerning); while ( __stlxr(m_nExtraKerning - 1, p_m_nExtraKerning) ); } else { m_nExtraKerning = v310[-1].m_nExtraKerning; v310[-1].m_nExtraKerning = m_nExtraKerning - 1; } if ( m_nExtraKerning <= 0 ) operator delete(p_m_pTargetArray); } } a1->addChild_0(a1, v46, 20); v48 = v46->setPosition; v49 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v49); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, v308 * 0.5, v50 - 17.0); v48(v46, (const cocos2d::CCPoint *)&v321); if ( SLODWORD(v304[0]) <= 0 ) { cocos2d::CCLabelBMFont::limitLabelWidth(v46, 300.0, 0.8, 0.0); v58 = a1->m_level; random = v58->m_accountID.random; seed = v58->m_accountID.seed; v61 = random - seed; if ( random != seed ) goto LABEL_22; LABEL_88: v213 = GameLevelManager::sharedState(); v61 = GameLevelManager::accountIDForUserID(v213, a1->m_level->m_userID.random - a1->m_level->m_userID.seed); v58 = a1->m_level; goto LABEL_22; } cocos2d::CCLabelBMFont::limitLabelWidth(v46, 260.0, 0.8, 0.0); sub_D153B8((unsigned int)&v302 + 304, "(Daily)"); if ( v20 ) { sub_D1798C(&v319, "(Weekly)", 8); } else if ( v19 ) { sub_D1798C(&v319, "(Event)", 7); } v51 = cocos2d::CCLabelBMFont::create(); v51->setScale(v51, 0.6); a1->addChild_0(a1, v51, 20); v52 = v51->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, 0.0, 0.5); v52(v51, (const cocos2d::CCPoint *)&v321); v53 = v51->setPosition; v54 = (__int64)v46->getPosition(v46); v55 = v46->getContentSize(v46)->width * 0.5; v56 = v46->getScale(v46); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, (float)(v55 * v56) + 3.0, -0.5); cocos2d::CCPoint::operator+(&v321, v54, &v320); v53(v51, (const cocos2d::CCPoint *)&v321); v57 = &v319[-1].m_pTargetArray; if ( &v319[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 ) { if ( &pthread_create ) { v300 = (unsigned int *)&v319[-1].m_nExtraKerning; do v301 = __ldaxr(v300); while ( __stlxr(v301 - 1, v300) ); } else { v301 = v319[-1].m_nExtraKerning; v319[-1].m_nExtraKerning = v301 - 1; } if ( v301 <= 0 ) operator delete(v57); } v58 = a1->m_level; v59 = v58->m_accountID.random; v60 = v58->m_accountID.seed; v61 = v59 - v60; if ( v59 == v60 ) goto LABEL_88; LABEL_22: *(_QWORD *)&v62 = sub_D18D28(&v321, &v58->m_creatorName).n128_u64[0]; v63 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"By %s", v321, v62); cocos2d::CCString::getCString(v63); v64 = v321 - 24; if ( v321 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v285 = (unsigned int *)(v321 - 8); do v286 = __ldaxr(v285); while ( __stlxr(v286 - 1, v285) ); } else { v286 = *((_DWORD *)v321 - 2); *((_DWORD *)v321 - 2) = v286 - 1; } if ( v286 <= 0 ) operator delete(v64); } v65 = cocos2d::CCLabelBMFont::create(); getPosition = v46->getPosition; *(float *)&v67 = v308 * 0.5; *(_OWORD *)v304 = v67; v68 = (__int64)getPosition(v46); cocos2d::CCPoint::CCPoint(&v311, *(float *)v304, *(float *)(v68 + 4) - 26.0); cocos2d::CCLabelBMFont::limitLabelWidth(v65, 300.0, 0.8, 0.0); v329.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v329.adj = (size_t)LevelInfoLayer::onViewProfile; v69 = CCMenuItemSpriteExtra::create(v65, nullptr, v329); v15->addChild(v15, v69); v304[0] = (cocos2d::CCPoint *)v69->setPosition; v322 = cocos2d::CCNode::convertToNodeSpace(v15, &v311); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))v304[0])(v69, &v321, v322.x, v322.y); if ( !v61 ) { setColor = v65->setColor; BYTE2(v321) = -1; LOWORD(v321) = -166; setColor(v65, (const cocos2d::ccColor3B *)&v321); v69->setEnabled(v69, 0); } x = v311.x; width = v65->getContentSize(v65)->width; v72 = v65->getScale(v65); cocos2d::CCPoint::CCPoint(&v312, (float)(x + (float)((float)(width * v72) * 0.5)) + 6.0, v311.y - 1.0); if ( a1->m_challenge ) { v253 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))v65->setVisible)(v65, 0); cocos2d::CCPoint::operator=(&v312, v253, v254); } v73 = a1->m_level->m_objectCount.random - a1->m_level->m_objectCount.seed; v74 = v73 > (int)&elf_hash_bucket[9874]; if ( a2->m_originalLevel.random == a2->m_originalLevel.seed ) { if ( (v61 > 0) > v74 ) { v304[0] = (cocos2d::CCPoint *)(v73 > (int)&elf_hash_bucket[9874]); v214 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v214, "0047"); v74 = (unsigned int)v304[0]; if ( !GameVariable && !a1->m_challenge ) { v216 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_viewProfileTxt_001.png"); a1->addChild_0(a1, v216, 2); v217 = v216->setPosition; v218 = v65->getContentSize(v65)->width * 0.5; v219 = v65->getScale(v65); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, (float)(v218 * v219) + 48.0, -1.0); cocos2d::CCPoint::operator+(&v321, &v311, &v320); v217(v216, (const cocos2d::CCPoint *)&v321); goto LABEL_31; } } } else { v304[0] = (cocos2d::CCPoint *)(v73 > (int)&elf_hash_bucket[9874]); v75 = cocos2d::CCSprite::createWithSpriteFrameName("collaborationIcon_001.png"); v76 = v75->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, 0.0, 0.5); v76(v75, (const cocos2d::CCPoint *)&v321); a1->addChild(a1, v75); v75->setPosition(v75, &v312); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 18.0, 0.0); cocos2d::CCPoint::operator+(&v321, &v312, &v320); cocos2d::CCPoint::operator=(&v312, v77, v78); v74 = (unsigned int)v304[0]; } if ( v74 ) { v79 = cocos2d::CCSprite::createWithSpriteFrameName("highObjectIcon_001.png"); v80 = v79->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, 0.0, 0.5); v80(v79, (const cocos2d::CCPoint *)&v321); a1->addChild_0(a1, v79, 10); v79->setPosition(v79, &v312); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 18.0, 0.0); cocos2d::CCPoint::operator+(&v321, &v312, &v320); cocos2d::CCPoint::operator=(&v312, v81, v82); } LABEL_31: v83 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_playBtn2_001.png"); a1->m_playSprite = v83; v330.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v330.adj = (size_t)LevelInfoLayer::onPlay; v84 = CCMenuItemSpriteExtra::create(v83, nullptr, v330); a1->m_playBtnMenu->addChild(a1->m_playBtnMenu, v84); cocos2d::CCPoint::CCPoint(&v313, v308 * 0.5, (float)(v309 * 0.5) + 51.0); v85 = v84->setPosition; v323 = cocos2d::CCNode::convertToNodeSpace(a1->m_playBtnMenu, &v313); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))v85)(v84, &v321, v323.x, v323.y); a1->m_circle->m_sprite->setPosition(a1->m_circle->m_sprite, &v313); v86 = a1->m_level; if ( v86->m_levelType == SearchResult ) { LABEL_32: LevelInfoLayer::downloadLevel(a1); goto LABEL_33; } sub_D18D28(&v320, &v86->m_levelString); sub_D153B8((int)&v321, &byte_F288A0); v204 = v321; v205 = *((_QWORD *)v320 - 3); v206 = *((cocos2d::CCPoint **)v321 - 3); v304[0] = v206; if ( (unsigned __int64)v206 > v205 ) v207 = v205; else v207 = (size_t)v206; if ( memcmp(v320, v321, v207) ) goto LABEL_94; v208 = v205 - (unsigned __int64)v304[0]; if ( v208 + 0x80000000 > 0xFFFFFFFF || (_DWORD)v208 ) goto LABEL_94; if ( GameLevelManager::sharedState()->m_searchType == SavedLevels ) { v204 = v321; LABEL_94: v210 = 0; goto LABEL_95; } v209 = GameLevelManager::sharedState(); v204 = v321; v210 = v209->m_searchType != FavouriteLevels; LABEL_95: if ( v204 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v296 = (unsigned int *)(v204 - 8); do v297 = __ldaxr(v296); while ( __stlxr(v297 - 1, v296) ); } else { v297 = *((_DWORD *)v204 - 2); *((_DWORD *)v204 - 2) = v297 - 1; } if ( v297 <= 0 ) operator delete(v204 - 24); } v220 = (char *)v320 - 24; if ( (char *)v320 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v279 = (unsigned int *)((char *)v320 - 8); do v280 = __ldaxr(v279); while ( __stlxr(v280 - 1, v279) ); } else { v280 = *((_DWORD *)v320 - 2); *((_DWORD *)v320 - 2) = v280 - 1; } if ( v280 <= 0 ) operator delete(v220); } if ( v210 ) goto LABEL_32; sub_D18D28(&v320, &a1->m_level->m_levelString); sub_D153B8((int)&v321, &byte_F288A0); v221 = v320; v304[0] = (cocos2d::CCPoint *)v321; v222 = *((_QWORD *)v321 - 3); v223 = *((_QWORD *)v320 - 3); if ( v222 > v223 ) v224 = *((_QWORD *)v320 - 3); else v224 = *((_QWORD *)v321 - 3); v225 = memcmp(v320, v321, v224); if ( !v225 ) { v225 = 0x7FFFFFFF; v226 = v223 - v222; if ( v226 <= 0x7FFFFFFF ) { if ( v226 >= (__int64)0xFFFFFFFF80000000LL ) v225 = v226; else v225 = 0x80000000; } } v227 = v304[0] - 3; if ( (__int64 *)&v304[0][-3] != &qword_124B6B0 ) { if ( &pthread_create ) { v298 = (unsigned int *)&v304[0][-1]; do x_low = __ldaxr(v298); while ( __stlxr(x_low - 1, v298) ); } else { x_low = LODWORD(v304[0][-1].x); LODWORD(v304[0][-1].x) = x_low - 1; } if ( x_low <= 0 ) operator delete(v227); v221 = v320; } v228 = (char *)(v221 - 6); if ( v221 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v281 = v221 - 2; do v282 = __ldaxr(v281); while ( __stlxr(v282 - 1, v281) ); } else { v282 = *(v221 - 2); *(v221 - 2) = v282 - 1; } if ( v282 <= 0 ) operator delete(v228); } if ( !v225 ) { m_playBtnMenu = a1->m_playBtnMenu; a1->m_noUpdateAlert = 1; m_playBtnMenu->setVisible(m_playBtnMenu, 0); a1->m_circle->setVisible(a1->m_circle, 1); GameLevelManager::sharedState()->m_levelUpdateDelegate = &a1->LevelUpdateDelegate; v230 = a1->m_level; m_levelVersion = v230->m_levelVersion; v230->m_levelVersion = -1; v232 = GameLevelManager::sharedState(); GameLevelManager::updateLevel(v232, a1->m_level); a2->m_levelVersion = m_levelVersion; } LABEL_33: LevelInfoLayer::setupLevelInfo(a1); if ( !a1->m_challenge ) { if ( GJGameLevel::isPlatformer(a1->m_level) ) LevelInfoLayer::setupPlatformerStats(a1); else LevelInfoLayer::setupProgressBars(a1); } v87 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v87); v89 = v88; v90 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v90); v304[0] = &v314; cocos2d::CCPoint::CCPoint(&v314, v89 - 30.0, v91 - 30.0); cocos2d::CCNode::convertToNodeSpace(v15, v304[0]); if ( a1->m_level->m_dailyID.random - a1->m_level->m_dailyID.seed <= 0 ) { v274 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteBtn_001.png"); v350.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v350.adj = (size_t)LevelInfoLayer::confirmDelete; v275 = CCMenuItemSpriteExtra::create(v274, nullptr, v350); v15->addChild(v15, v275); v275->setPosition(v275, (const cocos2d::CCPoint *)v315); v316 = v316 - 50.0; } v92 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); v331.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v331.adj = (size_t)LevelInfoLayer::onUpdate; v93 = CCMenuItemSpriteExtra::create(v92, nullptr, v331); v15->addChild(v15, v93); v93->setPosition(v93, (const cocos2d::CCPoint *)v315); v316 = v316 - 50.0; v94 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoBtn_001.png"); v332.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v332.adj = (size_t)LevelInfoLayer::onInfo; v95 = CCMenuItemSpriteExtra::create(v94, nullptr, v332); v15->addChild(v15, v95); v95->setPosition(v95, (const cocos2d::CCPoint *)v315); v96 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_levelLeaderboardBtn_001.png"); v333.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v333.adj = (size_t)LevelInfoLayer::onLevelLeaderboard; v97 = CCMenuItemSpriteExtra::create(v96, nullptr, v333); v15->addChild(v15, v97); v98 = v95; v99 = v95->getPosition; v100 = v97->setPosition; v304[0] = (cocos2d::CCPoint *)v99(v98); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 0.0, -50.0); cocos2d::CCPoint::operator+(&v321, v304[0], &v320); v100(v97, (const cocos2d::CCPoint *)&v321); v101 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_like2Btn_001.png"); v334.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v334.adj = (size_t)LevelInfoLayer::onLike; v102 = CCMenuItemSpriteExtra::create(v101, nullptr, v334); v103 = v15->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_likeBtn = v102; v103->addChild(v15, v102); m_likeBtn = a1->m_likeBtn; v105 = v97; v106 = v97->getPosition; v107 = m_likeBtn->setPosition; v304[0] = (cocos2d::CCPoint *)v106(v105); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 0.0, -50.0); cocos2d::CCPoint::operator+(&v321, v304[0], &v320); v107(m_likeBtn, (const cocos2d::CCPoint *)&v321); v108 = a1->m_likeBtn->getPosition(a1->m_likeBtn); cocos2d::CCPoint::CCPoint(&v317, v108); v109 = a1->m_level; if ( v109->m_stars.random == v109->m_stars.seed ) { v256 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starBtn_001.png"); v348.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v348.adj = (size_t)LevelInfoLayer::onRateStars; v257 = CCMenuItemSpriteExtra::create(v256, nullptr, v348); v258 = v15->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_starRateBtn = v257; ((void (__fastcall *)(cocos2d::CCMenu *))v258->addChild)(v15); m_starRateBtn = a1->m_starRateBtn; v260 = m_starRateBtn->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 0.0, -50.0); cocos2d::CCPoint::operator+(&v321, &v317, &v320); v260(m_starRateBtn, (const cocos2d::CCPoint *)&v321); v261 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_starRateBtn->getPosition)(a1->m_starRateBtn); cocos2d::CCPoint::operator=(&v317, v261, v262); v109 = a1->m_level; } if ( v109->m_demon.random - v109->m_demon.seed == 1 ) { sub_D153B8((int)&v319, "GJ_rateDiffBtn_001.png"); v263 = GameManager::sharedState(); if ( (unsigned int)(v263->m_hasRP.random - v263->m_hasRP.seed - 1) <= 1 || GameManager::sharedState()->m_hasDRP ) sub_D1798C(&v319, "GJ_rateDiffBtnMod_001.png", 25); v264 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v319); v349.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v349.adj = (size_t)LevelInfoLayer::onRateDemon; v265 = CCMenuItemSpriteExtra::create(v264, nullptr, v349); v266 = v15->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_demonRateBtn = v265; v266->addChild(v15, v265); m_demonRateBtn = a1->m_demonRateBtn; v268 = m_demonRateBtn->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 0.0, -50.0); cocos2d::CCPoint::operator+(&v321, &v317, &v320); v268(m_demonRateBtn, (const cocos2d::CCPoint *)&v321); v269 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_demonRateBtn->getPosition)(a1->m_demonRateBtn); cocos2d::CCPoint::operator=(&v317, v269, v270); v271 = &v319[-1].m_pTargetArray; if ( &v319[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 ) { if ( &pthread_create ) { v272 = (unsigned int *)&v319[-1].m_nExtraKerning; do v273 = __ldaxr(v272); while ( __stlxr(v273 - 1, v272) ); } else { v273 = v319[-1].m_nExtraKerning; v319[-1].m_nExtraKerning = v273 - 1; } if ( v273 <= 0 ) operator delete(v271); } } if ( a1->m_challenge ) v15->setVisible(v15, 0); LevelInfoLayer::updateSideButtons(a1); v110 = GameManager::sharedState(); v111 = 50.0; if ( (unsigned int)(v110->m_hasRP.random - v110->m_hasRP.seed - 1) > 1 ) v111 = 25.0; v112 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v112); v304[0] = &v318; cocos2d::CCPoint::CCPoint(&v318, (float)(v113 + 30.0) + 0.0, (float)((float)(v309 * 0.5) + 50.0) + v111); v324 = cocos2d::CCNode::convertToNodeSpace(v15, v304[0]); cocos2d::CCPoint::operator=(&v317, v324.x, v324.y); v114 = GameManager::sharedState(); if ( (unsigned int)(v114->m_hasRP.random - v114->m_hasRP.seed - 1) <= 1 ) { v115 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starBtnMod_001.png"); v335.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v335.adj = (size_t)LevelInfoLayer::onRateStarsMod; v116 = CCMenuItemSpriteExtra::create(v115, nullptr, v335); v15->addChild(v15, v116); v117 = v116->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 0.0, -50.0); cocos2d::CCPoint::operator+(&v321, &v317, &v320); v117(v116, (const cocos2d::CCPoint *)&v321); v118 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))v116->getPosition)(v116); cocos2d::CCPoint::operator=(&v317, v118, v119); } v120 = GameManager::sharedState(); if ( v120->m_playerUserID.random - v120->m_playerUserID.seed == a1->m_level->m_userID.random - a1->m_level->m_userID.seed || (v121 = GJAccountManager::sharedState(), v121->m_accountID != v121->m_unkInt1) && (v122 = GJAccountManager::sharedState(), v122->m_accountID - v122->m_unkInt1 == a1->m_level->m_accountID.random - a1->m_level->m_accountID.seed) ) { v124 = 1; LABEL_49: v125 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteServerBtn_001.png"); v336.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v336.adj = (size_t)LevelInfoLayer::confirmOwnerDelete; v126 = CCMenuItemSpriteExtra::create(v125, nullptr, v336); v15->addChild(v15, v126); v304[0] = (cocos2d::CCPoint *)v126->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 0.0, -50.0); cocos2d::CCPoint::operator+(&v321, &v317, &v320); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char **))v304[0])(v126, &v321); v127 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))v126->getPosition)(v126); cocos2d::CCPoint::operator=(&v317, v127, v128); if ( v124 ) goto LABEL_50; goto LABEL_110; } v123 = GameManager::sharedState(); v124 = 0; if ( v123->m_hasRP.random - v123->m_hasRP.seed > 1 ) goto LABEL_49; LABEL_110: v233 = GameManager::sharedState(); if ( v233->m_hasRP.random - v233->m_hasRP.seed <= 0 ) { if ( a2->m_password.random - a2->m_password.seed == 1 ) v234 = "GJ_duplicateBtn_001.png"; else v234 = "GJ_duplicateLockedBtn_001.png"; v235 = cocos2d::CCSprite::createWithSpriteFrameName(v234); v347.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v347.adj = (size_t)LevelInfoLayer::tryCloneLevel; v236 = CCMenuItemSpriteExtra::create(v235, nullptr, v347); v237 = v15->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_cloneBtn = v236; ((void (__fastcall *)(cocos2d::CCMenu *))v237->addChild)(v15); m_cloneBtn = a1->m_cloneBtn; v239 = m_cloneBtn->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 0.0, -50.0); cocos2d::CCPoint::operator+(&v321, &v317, &v320); v239(m_cloneBtn, (const cocos2d::CCPoint *)&v321); v240 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_cloneBtn->getPosition)(a1->m_cloneBtn); cocos2d::CCPoint::operator=(&v317, v240, v241); a1->m_cloneBtn->setVisible(a1->m_cloneBtn, a1->m_level->m_password.random != a1->m_level->m_password.seed); v242 = a1->m_cloneBtn; setEnabled = v242->setEnabled; v244 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v242->isVisible)(v242); setEnabled(v242, v244); goto LABEL_51; } LABEL_50: v129 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_duplicateBtn_001.png"); v337.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v337.adj = (size_t)LevelInfoLayer::confirmClone; v130 = CCMenuItemSpriteExtra::create(v129, nullptr, v337); v15->addChild(v15, v130); v131 = v130->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 0.0, -50.0); cocos2d::CCPoint::operator+(&v321, &v317, &v320); v131(v130, (const cocos2d::CCPoint *)&v321); v132 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))v130->getPosition)(v130); cocos2d::CCPoint::operator=(&v317, v132, v133); LABEL_51: v134 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v338.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v338.adj = (size_t)LevelInfoLayer::onBack; v135 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v134, nullptr, v338); v303 = v135; CCMenuItemSpriteExtra::setSizeMult((CCMenuItemSpriteExtra *)v135, 1.6); v136 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v135, nullptr); a1->addChild_0(a1, v136, 1); v137 = v136->setPosition; v138 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v138); v140 = v139; v141 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v141); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, v140 + 24.0, v142 - 23.0); v137(v136, (const cocos2d::CCPoint *)&v321); if ( a1->m_level->m_dailyID.random - a1->m_level->m_dailyID.seed <= 0 ) { v276 = GameStatsManager::sharedState(); if ( GameStatsManager::hasCompletedLevel(v276, a1->m_level) ) { v277 = a1->m_level; if ( v277->m_demon.random - v277->m_demon.seed == 1 ) { v293 = GameStatsManager::sharedState(); GameStatsManager::completedDemonLevel(v293, a1->m_level); v277 = a1->m_level; } if ( v277->m_stars.random - v277->m_stars.seed > 0 ) { v278 = GameStatsManager::sharedState(); GameStatsManager::completedStarLevel(v278, a1->m_level); } } } v143 = cocos2d::CCMenu::create(); v144 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v339.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v339.adj = (size_t)LevelInfoLayer::onLevelInfo; v304[0] = (cocos2d::CCPoint *)CCMenuItemSpriteExtra::create(v144, nullptr, v339); CCMenuItemSpriteExtra::setSizeMult((CCMenuItemSpriteExtra *)v304[0], 1.2); v143->addChild(v143, (cocos2d::CCNode *)v304[0]); v145 = v143->setPosition; v146 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v146); v148 = v147; v149 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v149); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, v148 + 30.0, v150 + 30.0); v145(v143, (const cocos2d::CCPoint *)&v321); a1->addChild_0(a1, v143, 2); v151 = cocos2d::CCMenu::create(); a1->addChild_0(a1, v151, 21); v152 = v151->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, v308 - 85.0, v309 - 25.0); v152(v151, (const cocos2d::CCPoint *)&v321); v153 = cocos2d::CCSprite::createWithSpriteFrameName("garageRope_001.png"); v340.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v340.adj = (size_t)LevelInfoLayer::onGarage; v154 = CCMenuItemSpriteExtra::create(v153, nullptr, v340); CCMenuItemSpriteExtra::setSizeMult(v154, 1.2); CCMenuItemSpriteExtra::useAnimationType(v154, Move); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, 0.0, -8.0); cocos2d::CCPoint::operator=(&v154->m_offset, v155, v156); addChild = v151->addChild; v154->m_duration = 0.2; v154->m_unselectedDuration = 0.2; addChild(v151, v154); if ( a1->m_level->m_levelFavorited ) v158 = "gj_heartOn_001.png"; else v158 = "gj_heartOff_001.png"; v159 = cocos2d::CCSprite::createWithSpriteFrameName(v158); v341.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v341.adj = (size_t)LevelInfoLayer::onFavorite; v160 = CCMenuItemSpriteExtra::create(v159, nullptr, v341); CCMenuItemSpriteExtra::setSizeMult(v160, 1.1); v143->addChild_0(v143, v160, 100); v161 = v160->setPosition; v162 = (__int64)v143->getPosition(v143); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v319, 38.0, 0.0); cocos2d::CCPoint::operator+(&v320, v162, &v319); v325 = cocos2d::CCNode::convertToNodeSpace(v143, (const cocos2d::CCPoint *)&v320); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))v161)(v160, &v321, v325.x, v325.y); v163 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png"); v163->setScale(v163, 0.9); v163->setRotation(v163, 90.0); v342.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v342.adj = (size_t)LevelInfoLayer::confirmMoveToTop; v164 = CCMenuItemSpriteExtra::create(v163, nullptr, v342); CCMenuItemSpriteExtra::setSizeMult(v164, 1.1); v143->addChild_0(v143, v164, 100); v304[0] = (cocos2d::CCPoint *)v164->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, v308 - 73.0, 55.0); v326 = cocos2d::CCNode::convertToNodeSpace(v143, (const cocos2d::CCPoint *)&v320); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))v304[0])(v164, &v321, v326.x, v326.y); v165 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png"); v165->setScale(v165, 0.9); cocos2d::CCSprite::setFlipY(v165, 1); v165->setRotation(v165, -90.0); v343.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v343.adj = (size_t)LevelInfoLayer::confirmMoveToBottom; v166 = CCMenuItemSpriteExtra::create(v165, nullptr, v343); CCMenuItemSpriteExtra::setSizeMult(v166, 1.1); v143->addChild_0(v143, v166, 100); v167 = v164->getPosition; v306 = (SongInfoObject *)v166->setPosition; v304[0] = (cocos2d::CCPoint *)v167(v164); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 0.0, -30.0); cocos2d::CCPoint::operator+(&v321, v304[0], &v320); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char **))v306)(v166, &v321); if ( a1->m_challenge ) v143->setVisible(v143, 0); v168 = a1->m_level; m_songID = (SongInfoObject *)(unsigned int)v168->m_songID; if ( (_DWORD)m_songID ) { SongObject = (SongInfoObject *)SongInfoObject::create(m_songID, (int)v168); v171 = 0; } else { SongObject = LevelTools::getSongObject(v168->m_audioTrack); v171 = v305; } v306 = SongObject; v172 = CustomSongWidget::create(SongObject, nullptr, 0, 0, 1, v171, 0, 0, 0); a1->m_songWidget = v172; a1->addChild(a1, v172); v304[0] = (cocos2d::CCPoint *)a1->m_songWidget; v173 = v308 * 0.5; *(_QWORD *)&v305 = *(_QWORD *)(*(_QWORD *)v304[0] + 184LL); v174 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v174); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, v173, v175 + 45.0); ((void (__fastcall *)(cocos2d::CCPoint *, char **))v305)(v304[0], &v321); if ( v306->m_unloaded ) CustomSongWidget::onGetSongInfo(a1->m_songWidget, nullptr); p_m_songIDs = &a1->m_level->m_songIDs; *(_QWORD *)&v305 = a1->m_songWidget; sub_D18D28(&v320, p_m_songIDs); sub_D18D28(&v321, &a1->m_level->m_sfxIDs); CustomSongWidget::updateWithMultiAssets( (CustomSongWidget *)v305, (std::string)&v320, (std::string)&v321, a1->m_level->m_songSize); v177 = v321 - 24; if ( v321 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v287 = (unsigned int *)(v321 - 8); do v288 = __ldaxr(v287); while ( __stlxr(v288 - 1, v287) ); } else { v288 = *((_DWORD *)v321 - 2); *((_DWORD *)v321 - 2) = v288 - 1; } if ( v288 <= 0 ) operator delete(v177); } v178 = (char *)v320 - 24; if ( (char *)v320 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v283 = (unsigned int *)((char *)v320 - 8); do v284 = __ldaxr(v283); while ( __stlxr(v284 - 1, v283) ); } else { v284 = *((_DWORD *)v320 - 2); *((_DWORD *)v320 - 2) = v284 - 1; } if ( v284 <= 0 ) operator delete(v178); } v179 = cocos2d::CCMenu::create(); v180 = v179->setPosition; v181 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v181); v183 = v182; v184 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v184); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, v183 + 30.0, v185 + 30.0); v180(v179, (const cocos2d::CCPoint *)&v321); a1->addChild_0(a1, v179, 2); v186 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png"); v186->setScale(v186, 0.6); v344.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v344.adj = (size_t)LevelInfoLayer::onLevelOptions; v187 = CCMenuItemSpriteExtra::create(v186, nullptr, v344); v179->addChild(v179, v187); *(_QWORD *)&v305 = v187->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 30.0, 70.0); v327 = cocos2d::CCNode::convertToNodeSpace(v179, (const cocos2d::CCPoint *)&v320); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))v305)(v187, &v321, v327.x, v327.y); v188 = cocos2d::CCSprite::createWithSpriteFrameName("gj_folderBtn_001.png"); v189 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)a2->m_levelFolder); cocos2d::CCString::getCString(v189); v190 = cocos2d::CCLabelBMFont::create(); v191 = v188->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_folderLabel = v190; v191->addChild_0(v188, v190, 1); v192 = v188->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v304[0] = (cocos2d::CCPoint *)a1->m_folderLabel; v193 = *(void (__fastcall **)(cocos2d::CCPoint *, char **))(*(_QWORD *)v304[0] + 184LL); *(float *)&v194 = v192->getContentSize(v188)->width * 0.5; getContentSize = v188->getContentSize; v305 = v194; v196 = (__int64)getContentSize(v188); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, *(float *)&v305, (float)(*(float *)(v196 + 4) * 0.5) + 1.0); v193(v304[0], &v321); cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_folderLabel, 24.0, 0.55, 0.0); v188->setScale(v188, 0.8); v345.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v345.adj = (size_t)LevelInfoLayer::onSetFolder; v197 = CCMenuItemSpriteExtra::create(v188, nullptr, v345); CCMenuItemSpriteExtra::setSizeMult(v197, 1.2); v143->addChild(v143, v197); v198 = v197->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, v308 - 73.0, 80.0); v328 = cocos2d::CCNode::convertToNodeSpace(v143, (const cocos2d::CCPoint *)&v320); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))v198)(v197, &v321, v328.x, v328.y); v199 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_listAddBtn_001.png"); v199->setScale(v199, 0.9); v346.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v346.adj = (size_t)LevelInfoLayer::onAddToList; v200 = CCMenuItemSpriteExtra::create(v199, nullptr, v346); v143->addChild(v143, v200); v201 = v200->setPosition; *(_QWORD *)&v305 = v197->getPosition(v197); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v320, 0.0, 35.0); cocos2d::CCPoint::operator+(&v321, v305, &v320); v201(v200, (const cocos2d::CCPoint *)&v321); if ( a2->m_dailyID.random - a2->m_dailyID.seed > 0 || a2->m_gauntletLevel ) { v197->setVisible(v197, 0); v197->setEnabled(v197, 0); v164->setVisible(v164, 0); v164->setEnabled(v164, 0); v166->setVisible(v166, 0); v166->setEnabled(v166, 0); v160->setVisible(v160, 0); v160->setEnabled(v160, 0); v200->setVisible(v200, 0); v200->setEnabled(v200, 0); } if ( PlatformToolbox::isControllerConnected() ) { GameToolbox::addBackButton(a1, (cocos2d::CCMenuItem *)v303); v246 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_Start_001.png"); a1->m_playSprite->addChild(a1->m_playSprite, v246); v247 = v246->setPosition; v248 = a1->m_playSprite->getContentSize(a1->m_playSprite)->width; m_playSprite = a1->m_playSprite; *(float *)&v250 = v248 * 0.5; v251 = m_playSprite->getContentSize; v305 = v250; v252 = (__int64)v251(m_playSprite); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v321, *(float *)&v305, (float)(*(float *)(v252 + 4) * 0.5) + -40.0); v247(v246, (const cocos2d::CCPoint *)&v321); } v202 = a1->m_level; if ( (v202->m_savedTime || v202->m_savedPoints) && v202->m_levelType != Editor && v202->m_demon.random - v202->m_demon.seed == 1 && PlatformToolbox::isNetworkAvailable() ) { v289 = a1->m_level; if ( v289->m_savedTime ) { v291 = GameLevelManager::sharedState(); GameLevelManager::getLevelLeaderboard(v291, a1->m_level, (LevelLeaderboardType)4, Time); v289 = a1->m_level; } if ( v289->m_savedPoints ) { v290 = GameLevelManager::sharedState(); GameLevelManager::getLevelLeaderboard(v290, a1->m_level, (LevelLeaderboardType)4, Points); } } GameManager::sharedState()->m_somethingInMenuLayer = 0; return v307; }
GD Web Decomp Icon

GD Web Decomp

Raw Source