// // LevelBrowserLayer::init from 0x7f94c4 to 0x7fafc0 (6908 bytes) // // 2 xrefs: // > LevelBrowserLayer::create @ 0x7fb150 // > @ 0x6cd48 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:54:41 +0000 // __int64 __fastcall LevelBrowserLayer::init(LevelBrowserLayer *this, GJSearchObject *a2) { GJSearchObject *v3; // x24 __int64 v4; // x0 cocos2d::CCTouchDispatcher *v5; // x0 char v6; // w2 unsigned __int8 v7; // w0 unsigned int v8; // w25 GameManager *v10; // x0 GameManager *v11; // x0 cocos2d::CCDirector *v12; // x0 cocos2d::CCDirector *v13; // x0 const char *v14; // x1 char *v15; // x1 cocos2d::CCSprite *v16; // x0 __int64 v17; // x0 __int64 v18; // x21 cocos2d::CCDirector **v19; // x21 __int64 (__fastcall *v20)(cocos2d::CCDirector **, __int64 *); // x23 cocos2d::CCDirector *v21; // x0 cocos2d::CCDirector *v22; // x0 float v23; // s0 float v24; // s8 cocos2d::CCDirector *v25; // x0 float v26; // s0 PlatformToolbox *v27; // x0 cocos2d::CCMenu *isControllerConnected; // x0 int v29; // w26 cocos2d::CCNode *v30; // x21 float v31; // s8 const char *v32; // x1 char *v33; // x0 __int64 v34; // x0 __int64 v35; // x0 cocos2d::CCDirector **v36; // x27 void (__fastcall *v37)(cocos2d::CCDirector **, __int64 *); // x28 cocos2d::CCDirector *v38; // x0 float v39; // s0 const char *v40; // x1 char *v41; // x0 cocos2d::CCSprite *v42; // x0 __int64 v43; // x28 __int64 v44; // x0 cocos2d::CCDirector **v45; // x27 void (__fastcall *v46)(cocos2d::CCDirector **, __int64 *); // x28 cocos2d::CCDirector *v47; // x0 float v48; // s0 const char *v49; // x1 __int64 v50; // x27 const char *v51; // x2 __int64 v52; // x0 __int64 v53; // x28 float v54; // s9 __int64 v55; // x0 __int64 v56; // x0 cocos2d::CCDirector **v57; // x27 void (__fastcall *v58)(cocos2d::CCDirector **, __int64 *); // x28 cocos2d::CCDirector *v59; // x0 float v60; // s8 float v61; // s0 LoadingCircle *v62; // x0 __int64 v63; // x0 const char *v64; // x2 __int64 v65; // x0 __int64 v66; // x2 cocos2d::CCDirector **v67; // x27 void (__fastcall *v68)(cocos2d::CCDirector **, __int64 *); // x28 cocos2d::CCDirector *v69; // x0 cocos2d::CCDirector *v70; // x0 float v71; // s0 float v72; // s9 cocos2d::CCDirector *v73; // x0 float v74; // s0 __int64 v75; // x27 void (__fastcall *v76)(__int64, __int64 *); // x28 __int64 v77; // x27 void (__fastcall *v78)(__int64, __int64 *); // x28 const char *v79; // x1 __int64 v80; // x0 const char *v81; // x1 cocos2d::CCDirector **v82; // x28 const char *v83; // x1 __int64 v84; // x27 __int64 v85; // x0 float v86; // s0 __int64 (__fastcall *v87)(cocos2d::CCDirector **, __int64 *); // x27 float v88; // s9 cocos2d::CCDirector *v89; // x0 cocos2d::CCDirector *v90; // x0 float v91; // s0 float v92; // s11 cocos2d::CCDirector *v93; // x0 float v94; // s0 cocos2d::CCDirector **v95; // x27 const char *v96; // x1 __int64 v97; // x0 __int64 v98; // x28 void (__fastcall *v99)(cocos2d::CCDirector **, __int64 *); // x28 cocos2d::CCDirector *v100; // x0 cocos2d::CCDirector *v101; // x0 float v102; // s0 float v103; // s9 cocos2d::CCDirector *v104; // x0 float v105; // s0 cocos2d::CCMenuItem *v106; // x2 cocos2d::CCLayer *v107; // x1 GameLevelManager *v108; // x0 __int64 v109; // x0 GJSearchObject *v110; // x0 cocos2d::CCDirector **v111; // x27 const char *v112; // x1 void (__fastcall *v113)(cocos2d::CCDirector **, __int64 *); // x28 void (__fastcall *v114)(cocos2d::CCDirector **, __int64 *); // x28 float v115; // s9 cocos2d::CCDirector *v116; // x0 cocos2d::CCDirector *v117; // x0 float v118; // s0 float v119; // s11 cocos2d::CCDirector *v120; // x0 float v121; // s0 const char *v122; // x1 __int64 v123; // x27 const char *v124; // x2 __int64 v125; // x0 __int64 v126; // x28 float v127; // s9 __int64 v128; // x0 __int64 v129; // x0 __int64 v130; // x28 __int64 v131; // x27 cocos2d::CCNode *v132; // x28 const char *v133; // x1 cocos2d::CCSprite *v134; // x27 __int64 v135; // x0 __int64 v136; // x28 __int64 v137; // x27 const char *v138; // x1 __int64 v139; // x0 __int64 v140; // x28 void (__fastcall *v141)(__int64, __int64 *); // x27 const char *v142; // x1 __int64 v143; // x0 __int64 v144; // x0 __int64 v145; // x0 __int64 v146; // x21 __int64 (__fastcall *v147)(__int64); // x1 void (__fastcall *v148)(__int64, __int64 *); // x28 __int64 v149; // x27 __int64 v150; // x27 GJSelectionStrip *v151; // x0 float v152; // s0 __int64 v153; // x0 GJSelectionStrip **updated; // x0 int v155; // w0 _BOOL8 v156; // x0 cocos2d::CCDirector **v157; // x27 const char *v158; // x1 __int64 v159; // x0 __int64 v160; // x28 __int64 (__fastcall *v161)(LevelBrowserLayer *, cocos2d::CCObject *); // x3 float v162; // s0 __int64 (__fastcall *v163)(cocos2d::CCDirector **, __int64 *); // x28 float v164; // s9 cocos2d::CCDirector *v165; // x0 cocos2d::CCDirector *v166; // x0 float v167; // s0 float v168; // s11 cocos2d::CCDirector *v169; // x0 float v170; // s0 GameManager *v171; // x0 GameManager *v172; // x0 const char *v173; // x1 char *v174; // x0 __int64 v175; // x28 __int64 v176; // x28 _QWORD *v177; // x0 __int64 v178; // x1 char *v179; // x0 __int64 v180; // x0 __int64 (__fastcall *v181)(LevelBrowserLayer *__hidden, cocos2d::CCObject *); // x3 __int64 v182; // x28 cocos2d::CCDirector *v183; // x0 float v184; // s0 __int64 v185; // x28 void (__fastcall *v186)(__int64, __int64 *); // x27 __int64 v187; // x21 void (__fastcall *v188)(__int64, __int64 *); // x23 __int64 v189; // x21 void (__fastcall *v190)(__int64, __int64 *); // x23 const char *v191; // x1 cocos2d::CCDirector **v192; // x21 void (__fastcall *v193)(cocos2d::CCDirector **, __int64 *); // x26 void (__fastcall *v194)(cocos2d::CCDirector **, __int64 *); // x26 cocos2d::CCDirector *v195; // x0 cocos2d::CCDirector *ScreenLeft; // x0 float v197; // s0 float v198; // s9 cocos2d::CCDirector *v199; // x0 float v200; // s0 const char *v201; // x1 cocos2d::CCDirector **v202; // x21 void (__fastcall *v203)(cocos2d::CCDirector **, __int64 *); // x23 void (__fastcall *v204)(cocos2d::CCDirector **, __int64 *); // x23 cocos2d::CCDirector *v205; // x0 cocos2d::CCDirector *ScreenRight; // x0 float v207; // s0 float v208; // s9 cocos2d::CCDirector *v209; // x0 float v210; // s0 __int64 v211; // x0 char isVaultType; // w0 int v213; // w1 void (__fastcall *v214)(cocos2d::CCDirector **, __int64 *); // x27 cocos2d::CCDirector *v215; // x0 float v216; // s0 unsigned int i; // w28 char *v218; // x0 __int64 v219; // x0 __int64 v220; // x27 GameManager *v221; // x0 GameManager *v222; // x0 const char *v223; // x1 GameManager *v224; // x0 GameManager *v225; // x0 const char *v226; // x1 char *v227; // x0 __int64 v228; // x28 __int64 v229; // x28 __int64 v230; // x27 __int64 v231; // x0 __int64 v232; // x28 cocos2d::CCDirector *v233; // x0 cocos2d::CCDirector *v234; // x0 float v235; // s0 float v236; // s11 cocos2d::CCDirector *v237; // x0 float v238; // s0 const char *v239; // x1 __int64 v240; // x0 __int64 v241; // x28 cocos2d::CCDirector *v242; // x0 cocos2d::CCDirector *v243; // x0 float v244; // s0 float v245; // s11 cocos2d::CCDirector *v246; // x0 float v247; // s0 cocos2d::CCNotificationCenter *v248; // x0 int v249; // w0 __int64 v250; // x0 GJAccountManager *v251; // x0 __int64 v252; // x0 __int64 v253; // x28 cocos2d::CCDirector *v254; // x0 cocos2d::CCDirector *v255; // x0 float v256; // s0 float v257; // s11 cocos2d::CCDirector *v258; // x0 float v259; // s0 __int64 v260; // x0 cocos2d::CCDirector **v261; // [xsp+A0h] [xbp+A0h] void (__fastcall *v262)(__int64, __int64 *); // [xsp+A8h] [xbp+A8h] int v263; // [xsp+B0h] [xbp+B0h] __int64 v264; // [xsp+B0h] [xbp+B0h] __int64 v265; // [xsp+B8h] [xbp+B8h] _QWORD *v266; // [xsp+B8h] [xbp+B8h] void (__fastcall *v267)(__int64, __int64 *); // [xsp+B8h] [xbp+B8h] __int64 *v268; // [xsp+B8h] [xbp+B8h] void (__fastcall *v269)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h] __int64 v270; // [xsp+C0h] [xbp+C0h] void (__fastcall *v271)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v272)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v273)(cocos2d::CCSprite *, __int64 *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v274)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h] _BOOL4 v275; // [xsp+C0h] [xbp+C0h] cocos2d::CCDirector *v276; // [xsp+C0h] [xbp+C0h] int v277; // [xsp+C0h] [xbp+C0h] void (__fastcall *v278)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h] cocos2d::CCDirector *v279; // [xsp+C0h] [xbp+C0h] cocos2d::CCDirector *v280; // [xsp+C0h] [xbp+C0h] cocos2d::CCDirector *v281; // [xsp+C0h] [xbp+C0h] cocos2d::CCMenu *v282; // [xsp+C8h] [xbp+C8h] __int64 v283; // [xsp+D0h] [xbp+D0h] __int64 v284; // [xsp+D8h] [xbp+D8h] BYREF __int64 v285; // [xsp+E0h] [xbp+E0h] BYREF _BYTE v286[8]; // [xsp+E8h] [xbp+E8h] BYREF __int64 v287; // [xsp+F0h] [xbp+F0h] BYREF char *v288[2]; // [xsp+F8h] [xbp+F8h] BYREF void *v289; // [xsp+108h] [xbp+108h] __int64 v290[2]; // [xsp+110h] [xbp+110h] BYREF void *v291; // [xsp+120h] [xbp+120h] v3 = a2; if ( a2 && *((_BYTE *)a2 + 430) ) { *((_BYTE *)this + 748) = (unsigned __int8)&dword_0 + 1; v4 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1)); v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4); cocos2d::CCTouchDispatcher::registerForcePrio(v5, this, 2, 0); if ( *((_BYTE *)this + 748) ) v6 = -106; else v6 = 0; } else { *((_BYTE *)this + 748) = 0; v6 = 0; } LOWORD(v287) = 0; BYTE2(v287) = 0; BYTE3(v287) = v6; v7 = cocos2d::CCLayerColor::initWithColor(this, &v287); v8 = v7; if ( !v7 ) return v8; v10 = (GameManager *)LevelBrowserLayer::setSearchObject((__int64)this, v3); v11 = (GameManager *)GameManager::sharedState(v10); if ( (unsigned __int8)GameManager::onlyCuratedLevels(v11) ) { v108 = *((GameLevelManager **)this + 83); if ( v108 ) { v109 = GameLevelManager::sharedState(v108); if ( !(unsigned __int8)GameLevelManager::searchTypeIsCurated( v109, *(unsigned int *)(*((_QWORD *)this + 83) + 316LL)) ) { v110 = (GJSearchObject *)GJSearchObject::create(6); LevelBrowserLayer::setSearchObject((__int64)this, v110); v3 = *((GJSearchObject **)this + 83); } } } if ( !v3 ) { LABEL_65: if ( !*((_BYTE *)this + 748) ) goto LABEL_13; goto LABEL_12; } if ( !*((_BYTE *)this + 748) ) { *(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)*((unsigned __int8 *)this + 748)) + 1480) = *((_DWORD *)v3 + 79); goto LABEL_65; } LABEL_12: (*(void (__fastcall **)(LevelBrowserLayer *, __int64))(*(_QWORD *)this + 1000LL))(this, 1); LABEL_13: (*(void (__fastcall **)(LevelBrowserLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1); v12 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(LevelBrowserLayer *, __int64))(*(_QWORD *)this + 1088LL))( this, 1); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize(&v284, v13); if ( *((_BYTE *)this + 748) ) goto LABEL_14; v187 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v14); *((_QWORD *)this + 100) = v187; v188 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v187 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, 0.0, 0.0); v188(v187, &v287); (*(void (__fastcall **)(LevelBrowserLayer *, _QWORD, __int64))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 100), 4294967294LL); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 128LL))( *((_QWORD *)this + 100), (float)(*(float *)&v284 + 10.0) / *(float *)(*((_QWORD *)this + 100) + 432LL)); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 144LL))( *((_QWORD *)this + 100), (float)(*((float *)&v284 + 1) + 10.0) / *(float *)(*((_QWORD *)this + 100) + 436LL)); v189 = *((_QWORD *)this + 100); v190 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v189 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, -5.0, -5.0); v190(v189, &v287); LevelBrowserLayer::updateBackgroundColor(this); v192 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_sideArt_001.png", v191); v193 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v192 + 37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, 0.0, 0.0); v193(v192, &v287); v194 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v192 + 23); v195 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v192); ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v195); v198 = v197; v199 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft); cocos2d::CCDirector::getScreenBottom(v199); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, v198 - 1.0, v200 - 1.0); v194(v192, &v287); (*(void (__fastcall **)(LevelBrowserLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))( this, v192, 1); v202 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_sideArt_001.png", v201); v203 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v202 + 37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, 1.0, 0.0); v203(v202, &v287); v204 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v202 + 23); v205 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v202); ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v205); v208 = v207; v209 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight); cocos2d::CCDirector::getScreenBottom(v209); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, v208 + 1.0, v210 - 1.0); v204(v202, &v287); cocos2d::CCSprite::setFlipX((cocos2d::CCSprite *)v202, 1); (*(void (__fastcall **)(LevelBrowserLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))( this, v202, 1); if ( *((_BYTE *)this + 748) ) LABEL_14: v15 = "GJ_closeBtn_001.png"; else v15 = "GJ_arrow_01_001.png"; v288[0] = nullptr; v288[1] = nullptr; v289 = nullptr; std::string::__init((__int64 *)v288, v15, 0x13u); v16 = (cocos2d::CCSprite *)((char *)v288 + 1); if ( ((__int64)v288[0] & 1) != 0 ) v16 = (cocos2d::CCSprite *)v289; v17 = cocos2d::CCSprite::createWithSpriteFrameName(v16, (const char *)LOBYTE(v288[0])); v18 = v17; if ( *((_BYTE *)this + 748) ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, 0.9); v282 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v18, 0, (__int64)this, 1328, 1); CCMenuItemSpriteExtra::setSizeMult((__int64)v282, 1.6); v19 = (cocos2d::CCDirector **)cocos2d::CCMenu::create(v282, nullptr); (*(void (__fastcall **)(LevelBrowserLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(this, v19, 1); v20 = *((__int64 (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v19 + 23); v21 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v19); v22 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v21); v24 = v23 + 24.0; v25 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v22); cocos2d::CCDirector::getScreenTop(v25); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, v24, v26 - 23.0); v27 = (PlatformToolbox *)v20(v19, &v287); isControllerConnected = (cocos2d::CCMenu *)PlatformToolbox::isControllerConnected(v27); v29 = (unsigned __int8)isControllerConnected; v30 = (cocos2d::CCNode *)cocos2d::CCMenu::create(isControllerConnected); (*(void (__fastcall **)(LevelBrowserLayer *, cocos2d::CCNode *, __int64))(*(_QWORD *)this + 464LL))(this, v30, 10); v31 = *((float *)&v284 + 1) * 0.5; if ( (unsigned __int8)LevelBrowserLayer::isSafeType(this) ) v31 = v31 - 30.0; if ( v29 ) v33 = "controllerBtn_DPad_Left_001.png"; else v33 = "GJ_arrow_03_001.png"; v34 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v33, v32); v35 = CCMenuItemSpriteExtra::create(v34, 0, (__int64)this, (__int64)LevelBrowserLayer::onPrevPage, 0); *((_QWORD *)this + 78) = v35; CCMenuItemSpriteExtra::setSizeMult(v35, 2.0); (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v30 + 456LL))(v30, *((_QWORD *)this + 78)); v36 = *((cocos2d::CCDirector ***)this + 78); v37 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v36 + 23); v38 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v36); cocos2d::CCDirector::getScreenLeft(v38); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, v39 + 24.0, v31); cocos2d::CCNode::convertToNodeSpace(&v287, v30, (const cocos2d::CCPoint *)v286); v37(v36, &v287); if ( v29 ) v41 = "controllerBtn_DPad_Right_001.png"; else v41 = "GJ_arrow_03_001.png"; v42 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v41, v40); v43 = (__int64)v42; if ( !v29 ) cocos2d::CCSprite::setFlipX(v42, 1); v44 = CCMenuItemSpriteExtra::create(v43, 0, (__int64)this, (__int64)LevelBrowserLayer::onNextPage, 0); *((_QWORD *)this + 77) = v44; CCMenuItemSpriteExtra::setSizeMult(v44, 2.0); (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v30 + 456LL))(v30, *((_QWORD *)this + 77)); v45 = *((cocos2d::CCDirector ***)this + 77); v46 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v45 + 23); v47 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v45); cocos2d::CCDirector::getScreenRight(v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, v48 - 24.0, v31); cocos2d::CCNode::convertToNodeSpace(&v287, v30, (const cocos2d::CCPoint *)v286); v46(v45, &v287); v50 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_button_02.png", v49); v52 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"1", "bigFont.fnt", v51); *((_QWORD *)this + 85) = v52; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v50 + 464LL))(v50, v52, 1); v53 = *((_QWORD *)this + 85); v269 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL); v54 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v50 + 328LL))(v50) * 0.5; v55 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v50 + 328LL))(v50); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, v54, (float)(*(float *)(v55 + 4) * 0.5) + 1.0); v269(v53, &v287); LevelBrowserLayer::updatePageLabel(this); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 160LL))(v50, 0.7); v56 = CCMenuItemSpriteExtra::create(v50, 0, (__int64)this, (__int64)LevelBrowserLayer::onGoToPage, 0); *((_QWORD *)this + 86) = v56; CCMenuItemSpriteExtra::setSizeMult(v56, 1.2); (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v30 + 456LL))(v30, *((_QWORD *)this + 86)); v57 = *((cocos2d::CCDirector ***)this + 86); v58 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v57 + 23); v59 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v57); cocos2d::CCDirector::getScreenRight(v59); v60 = v31 + 122.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, (float)(v61 - 24.0) + 1.0, v60); cocos2d::CCNode::convertToNodeSpace(&v287, v30, (const cocos2d::CCPoint *)v286); v58(v57, &v287); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 78) + 344LL))(*((_QWORD *)this + 78), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 77) + 344LL))(*((_QWORD *)this + 77), 0); v62 = (LoadingCircle *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 86) + 344LL))( *((_QWORD *)this + 86), 0); v63 = LoadingCircle::create(v62); *((_QWORD *)this + 92) = v63; *(_QWORD *)(v63 + 552) = this; *(_BYTE *)(*((_QWORD *)this + 92) + 560LL) = 0; cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 92)); LoadingCircle::show(*((cocos2d::CCNode ***)this + 92)); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 92) + 344LL))(*((_QWORD *)this + 92), 0); v65 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v64); v66 = *(_QWORD *)this; *((_QWORD *)this + 84) = v65; (*(void (__fastcall **)(LevelBrowserLayer *, __int64))(v66 + 456))(this, v65); v67 = *((cocos2d::CCDirector ***)this + 84); v68 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v67 + 23); v69 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v67); v70 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v69); v72 = v71 - 7.0; v73 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v70); cocos2d::CCDirector::getScreenTop(v73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, v72, v74 - 3.0); v68(v67, &v287); v75 = *((_QWORD *)this + 84); v76 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v75 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, 1.0, 1.0); v76(v75, &v287); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 84) + 160LL))(*((_QWORD *)this + 84), 0.6); v290[0] = 0; v290[1] = 0; v291 = nullptr; std::string::__init(v290, "No Internet connection!", 0x1Fu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, 0.5, 1.0); v77 = TextArea::create((char *)v290, "bigFont.fnt", (const cocos2d::CCPoint *)&v287, 0, 0, 1.0, 600.0, 20.0); *((_QWORD *)this + 75) = v77; if ( (v290[0] & 1) != 0 ) { operator delete(v291); v77 = *((_QWORD *)this + 75); } v78 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v77 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v287, *(float *)&v284 * 0.5, (float)(*((float *)&v284 + 1) * 0.5) + 10.0); v78(v77, &v287); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 75) + 160LL))(*((_QWORD *)this + 75), 0.6); (*(void (__fastcall **)(LevelBrowserLayer *, _QWORD, __int64))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 75), 2); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 75) + 344LL))(*((_QWORD *)this + 75), 0); if ( (unsigned __int8)LevelBrowserLayer::isSafeType(this) ) { v185 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"theSafeLabel_001.png", v79); (*(void (__fastcall **)(LevelBrowserLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v185, 2); v186 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v185 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v287, (float)(*(float *)&v284 * 0.5) + 13.0, (float)((float)(*((float *)&v284 + 1) * 0.5) + 110.0) + 24.0); goto LABEL_83; } v80 = *((_QWORD *)this + 83); if ( !v80 ) goto LABEL_43; v81 = (const char *)*(unsigned int *)(v80 + 316); switch ( (_DWORD)v81 ) { case 6: if ( *(_DWORD *)(v80 + 432) == 1 ) { v211 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"topListsLabel_001.png", v81); goto LABEL_89; } LABEL_88: v211 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"featuredLabel_001.png", v81); LABEL_89: v185 = v211; (*(void (__fastcall **)(LevelBrowserLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v211, 2); v186 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v185 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v287, *(float *)&v284 * 0.5, (float)((float)(*((float *)&v284 + 1) * 0.5) + 110.0) + 24.0); goto LABEL_83; case 0x11: goto LABEL_88; case 0x1C: v211 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"weeklyLevelsLabel_001.png", v81); goto LABEL_89; } if ( (_DWORD)v81 != 29 ) goto LABEL_35; v185 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"bonusLevelsLabel_001.png", v81); (*(void (__fastcall **)(LevelBrowserLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v185, 2); v186 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v185 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v287, *(float *)&v284 * 0.5, (float)((float)(*((float *)&v284 + 1) * 0.5) + 110.0) + 24.0); LABEL_83: v186(v185, &v287); v80 = *((_QWORD *)this + 83); if ( !v80 ) goto LABEL_43; LODWORD(v81) = *(_DWORD *)(v80 + 316); LABEL_35: if ( (unsigned int)((_DWORD)v81 - 98) <= 2 && !*(_BYTE *)(v80 + 430) ) { v150 = cocos2d::CCMenu::create((cocos2d::CCMenu *)v80); (*(void (__fastcall **)(LevelBrowserLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v150, 2); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v286, (float)(*(float *)&v284 * 0.5) + -150.0, (float)(*((float *)&v284 + 1) * 0.5) + -121.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, (const cocos2d::CCPoint *)v286); v151 = (GJSelectionStrip *)GJSelectionStrip::create( v150, this, &v287, this, LevelBrowserLayer::onToggleAllObjects, 0, 0.715); *((_QWORD *)this + 89) = v151; GJSelectionStrip::addCountLabel(v151, 27.0, 10); v152 = 53.0; if ( *(_DWORD *)(*((_QWORD *)this + 83) + 316LL) == 98 ) { GJSelectionStrip::addAction( *((_QWORD *)this + 89), "threadBtn_export_001.png", LevelBrowserLayer::onExportSelected, 0, 53.0, 1.4); v152 = 79.0; } v153 = GJSelectionStrip::addAction( *((_QWORD *)this + 89), "threadBtn_delete_001.png", LevelBrowserLayer::onProcessSelected, 0, v152, 1.2); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v153 + 72LL))(v153, 5); updated = LevelBrowserLayer::updateSelectUI((GJSelectionStrip **)this); v155 = cocos2d::CCNotificationCenter::sharedNotificationCenter((cocos2d::CCNotificationCenter *)updated); cocos2d::CCNotificationCenter::addObserver( v155, (int)this, (int)LevelBrowserLayer::onSelectionChanged, 0, "LevelSelectionChangedNotification"); v80 = *((_QWORD *)this + 83); if ( !v80 ) { v263 = 0; goto LABEL_44; } } v80 = *(unsigned int *)(v80 + 316); if ( (unsigned int)(v80 - 101) > 1 && (_DWORD)v80 != 98 ) { if ( (unsigned int)(v80 - 99) <= 1 || (_DWORD)v80 == 103 ) { if ( (_DWORD)v80 == 100 ) { v156 = 1; v275 = 1; } else { v156 = *((_DWORD *)v3 + 79) == 103; v275 = *((_DWORD *)v3 + 79) == 103; } v157 = (cocos2d::CCDirector **)cocos2d::CCMenu::create((cocos2d::CCMenu *)v156); (*(void (__fastcall **)(LevelBrowserLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))( this, v157, 2); v159 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteBtn_001.png", v158); v160 = v159; if ( v275 ) v161 = LevelBrowserLayer::onRemoveAllFavorites; else v161 = LevelBrowserLayer::onDeleteAll; v266 = (_QWORD *)CCMenuItemSpriteExtra::create(v159, 0, (__int64)this, (__int64)v161, 0); (*((void (__fastcall **)(cocos2d::CCDirector **, _QWORD *))*v157 + 57))(v157, v266); v162 = *(float *)(v160 + 432); v163 = *((__int64 (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v157 + 23); v164 = (float)(v162 * 0.5) + 4.0; v165 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v157); v166 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v165); v168 = v167 - v164; v169 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v166); cocos2d::CCDirector::getScreenBottom(v169); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, v168, v164 + v170); v171 = (GameManager *)v163(v157, &v287); v172 = (GameManager *)GameManager::sharedState(v171); if ( !(unsigned __int8)GameManager::onlyCuratedLevels(v172) ) { if ( *(_DWORD *)(*((_QWORD *)this + 83) + 316LL) == 103 ) v174 = "GJ_viewLevelsBtn_001.png"; else v174 = "GJ_viewListsBtn_001.png"; v175 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v174, v173); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v175 + 160LL))(v175, 0.8); v176 = CCMenuItemSpriteExtra::create(v175, 0, (__int64)this, (__int64)LevelBrowserLayer::onSavedMode, 0); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v157 + 57))(v157, v176); v177 = v266; v178 = *v266; v267 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v176 + 184LL); v264 = (*(__int64 (__fastcall **)(_QWORD *))(v178 + 192))(v177); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, 2.0, 52.0); cocos2d::CCPoint::operator+(&v287, v264); v267(v176, &v287); } if ( *(_DWORD *)(*((_QWORD *)this + 83) + 316LL) != 103 ) { if ( v275 ) v179 = "gj_heartOff_001.png"; else v179 = "gj_heartOn_001.png"; v180 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v179, v173); if ( v275 ) v181 = LevelBrowserLayer::onSaved; else v181 = LevelBrowserLayer::onFavorites; v182 = CCMenuItemSpriteExtra::create(v180, 0, (__int64)this, (__int64)v181, 0); CCMenuItemSpriteExtra::setSizeMult(v182, 1.1); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64, __int64))*v157 + 58))(v157, v182, 100); v276 = *(cocos2d::CCDirector **)(*(_QWORD *)v182 + 184LL); v183 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v276); cocos2d::CCDirector::getScreenBottom(v183); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, v164 + 0.0, (float)(v164 + v184) + 50.0); cocos2d::CCNode::convertToNodeSpace(&v287, (cocos2d::CCNode *)v157, (const cocos2d::CCPoint *)v286); ((void (__fastcall *)(__int64, __int64 *))v276)(v182, &v287); } v80 = 1; v263 = 1; LABEL_44: v95 = (cocos2d::CCDirector **)cocos2d::CCMenu::create((cocos2d::CCMenu *)v80); (*(void (__fastcall **)(LevelBrowserLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))( this, v95, 2); v97 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v96); v98 = CCMenuItemSpriteExtra::create(v97, 0, (__int64)this, (__int64)LevelBrowserLayer::onInfo, 0); CCMenuItemSpriteExtra::setSizeMult(v98, 2.0); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v95 + 57))(v95, v98); v99 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v95 + 23); v100 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v95); v101 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v100); v103 = v102 + 30.0; v104 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v101); cocos2d::CCDirector::getScreenBottom(v104); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, v103, v105 + 30.0); v99(v95, &v287); if ( (unsigned __int8)LevelBrowserLayer::isSafeType(this) ) { isVaultType = LevelBrowserLayer::isVaultType(this); v213 = 2; if ( isVaultType ) v213 = *(unsigned __int8 *)(*((_QWORD *)this + 83) + 404LL); dword_1548024 = v213; v261 = (cocos2d::CCDirector **)cocos2d::CCMenu::create((cocos2d::CCMenu *)&unk_1548000); (*(void (__fastcall **)(LevelBrowserLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))( this, v261, 2); v214 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v261 + 23); v215 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v261); cocos2d::CCDirector::getScreenLeft(v215); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, (float)(v216 + 30.0) + 0.0, *((float *)&v284 + 1) * 0.5); v214(v261, &v287); v268 = (__int64 *)((char *)this + 808); v277 = 90; for ( i = 0; i != 3; ++i ) { if ( i == 1 ) { v218 = "threadBtn_uncompletedOn_001.png"; } else { v218 = "threadBtn_timeOn_001.png"; if ( i != 2 ) v218 = "threadBtn_vaultOn_001.png"; } LOWORD(v283) = -26986; BYTE2(v283) = -106; v219 = GameToolbox::createOnOffSprite((cocos2d::CCSprite *)v218, dword_1548024 == i, v283, 0xD7u); *v268 = v219; v220 = CCMenuItemSpriteExtra::create(v219, 0, (__int64)this, (__int64)LevelBrowserLayer::onSafeMode, 0); CCMenuItemSpriteExtra::setSizeMult(v220, 1.2); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v220 + 72LL))(v220, i); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v261 + 57))(v261, v220); v262 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v220 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, 0.0, (float)v277); v262(v220, &v287); v277 -= 35; ++v268; } } if ( !v263 ) goto LABEL_46; goto LABEL_55; } if ( (unsigned int)(v80 - 9) > 1 && (_DWORD)v80 != 14 ) { v80 = (unsigned int)(v80 - 100); if ( (unsigned int)v80 > 2 ) { v82 = (cocos2d::CCDirector **)cocos2d::CCMenu::create((cocos2d::CCMenu *)v80); (*(void (__fastcall **)(LevelBrowserLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))( this, v82, 2); v84 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v83); v85 = CCMenuItemSpriteExtra::create(v84, 0, (__int64)this, (__int64)LevelBrowserLayer::onRefresh, 0); *((_QWORD *)this + 81) = v85; (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v82 + 57))(v82, v85); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 81) + 344LL))(*((_QWORD *)this + 81), 0); v86 = *(float *)(v84 + 432); v87 = *((__int64 (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v82 + 23); v88 = (float)(v86 * 0.5) + 4.0; v89 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v82); v90 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v89); v92 = v91 - v88; v93 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v90); cocos2d::CCDirector::getScreenBottom(v93); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, v92, v88 + v94); v80 = v87(v82, &v287); } } LABEL_43: v263 = 0; goto LABEL_44; } v111 = (cocos2d::CCDirector **)cocos2d::CCMenu::create((cocos2d::CCMenu *)v80); (*(void (__fastcall **)(LevelBrowserLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))( this, v111, 2); v270 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_newBtn_001.png", v112); v265 = CCMenuItemSpriteExtra::create(v270, 0, (__int64)this, (__int64)LevelBrowserLayer::onNew, 0); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v111 + 57))(v111, v265); v113 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v111 + 23); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v287, *(float *)&v284 * 0.5, (float)((float)(*((float *)&v284 + 1) - 220.0) * 0.5) + -4.0); v113(v111, &v287); v114 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v111 + 23); v115 = (float)(*(float *)(v270 + 432) * 0.5) + 4.0; v116 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v111); v117 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v116); v119 = v118 - v115; v120 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v117); cocos2d::CCDirector::getScreenBottom(v120); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, v119, v115 + v121); v114(v111, &v287); if ( !*((_BYTE *)this + 748) ) { v221 = (GameManager *)GameManager::sharedState((GameManager *)*((unsigned __int8 *)this + 748)); v222 = (GameManager *)(unsigned __int8)GameManager::onlyCuratedLevels(v221); if ( !(_BYTE)v222 ) { v250 = GameManager::sharedState(v222); v223 = (const char *)*(unsigned int *)(v250 + 660); v251 = (GJAccountManager *)*(unsigned int *)(v250 + 664); if ( (_DWORD)v223 != (_DWORD)v251 || (v260 = GJAccountManager::sharedState(v251), v223 = (const char *)*(unsigned int *)(v260 + 352), (_DWORD)v223 != *(_DWORD *)(v260 + 356)) ) { v252 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_myServerBtn_001.png", v223); v253 = CCMenuItemSpriteExtra::create(v252, 0, (__int64)this, (__int64)LevelBrowserLayer::onMyOnlineLevels, 0); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v111 + 57))(v111, v253); v281 = *(cocos2d::CCDirector **)(*(_QWORD *)v253 + 184LL); v254 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v281); v255 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v254); v257 = v115 + v256; v258 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v255); cocos2d::CCDirector::getScreenBottom(v258); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, v257, v115 + v259); cocos2d::CCNode::convertToNodeSpace(&v287, (cocos2d::CCNode *)v111, (const cocos2d::CCPoint *)v286); ((void (__fastcall *)(__int64, __int64 *))v281)(v253, &v287); } } v224 = (GameManager *)*(unsigned int *)(*((_QWORD *)this + 83) + 316LL); if ( (_DWORD)v224 == 98 ) { v231 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_importBtn_001.png", v223); v232 = CCMenuItemSpriteExtra::create(v231, 0, (__int64)this, (__int64)LevelBrowserLayer::onImportLevels, 0); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v111 + 57))(v111, v232); v279 = *(cocos2d::CCDirector **)(*(_QWORD *)v232 + 184LL); v233 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v279); v234 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v233); v236 = (float)((float)(v115 + v235) - 5.0) + 0.0; v237 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v234); cocos2d::CCDirector::getScreenBottom(v237); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, v236, (float)(v115 + v238) + 46.0); cocos2d::CCNode::convertToNodeSpace(&v287, (cocos2d::CCNode *)v111, (const cocos2d::CCPoint *)v286); ((void (__fastcall *)(__int64, __int64 *))v279)(v232, &v287); v240 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_manageBackupBtn_001.png", v239); v241 = CCMenuItemSpriteExtra::create(v240, 0, (__int64)this, (__int64)LevelBrowserLayer::onBackups, 0); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v111 + 57))(v111, v241); v280 = *(cocos2d::CCDirector **)(*(_QWORD *)v241 + 184LL); v242 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v280); v243 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v242); v245 = (float)((float)(v115 + v244) - 5.0) + 0.0; v246 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v243); cocos2d::CCDirector::getScreenBottom(v246); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, v245, (float)(v115 + v247) + 82.0); cocos2d::CCNode::convertToNodeSpace(&v287, (cocos2d::CCNode *)v111, (const cocos2d::CCPoint *)v286); v248 = (cocos2d::CCNotificationCenter *)((__int64 (__fastcall *)(__int64, __int64 *))v280)(v241, &v287); v249 = cocos2d::CCNotificationCenter::sharedNotificationCenter(v248); v224 = (GameManager *)cocos2d::CCNotificationCenter::addObserver( v249, (int)this, (int)LevelBrowserLayer::onLevelsImported, 0, "LevelsImportedNotification"); } v225 = (GameManager *)GameManager::sharedState(v224); if ( !(unsigned __int8)GameManager::onlyCuratedLevels(v225) ) { if ( *(_DWORD *)(*((_QWORD *)this + 83) + 316LL) == 98 ) v227 = "GJ_viewListsBtn_001.png"; else v227 = "GJ_viewLevelsBtn_001.png"; v228 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v227, v226); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v228 + 160LL))(v228, 0.8); v229 = CCMenuItemSpriteExtra::create(v228, 0, (__int64)this, (__int64)LevelBrowserLayer::onLocalMode, 0); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v111 + 57))(v111, v229); v278 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v229 + 184LL); v230 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v265 + 192LL))(v265); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, 2.0, 52.0); cocos2d::CCPoint::operator+(&v287, v230); v278(v229, &v287); } } LABEL_55: if ( (unsigned __int8)GJSearchObject::isLevelSearchObject(*((GJSearchObject **)this + 83)) ) { v123 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_folderBtn_001.png", v122); v125 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"0", "bigFont.fnt", v124); *((_QWORD *)this + 87) = v125; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v123 + 464LL))(v123, v125, 1); v126 = *((_QWORD *)this + 87); v271 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v126 + 184LL); v127 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v123 + 328LL))(v123) * 0.5; v128 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v123 + 328LL))(v123); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, v127, (float)(*(float *)(v128 + 4) * 0.5) + 0.5); v271(v126, &v287); v129 = CCMenuItemSpriteExtra::create(v123, 0, (__int64)this, (__int64)LevelBrowserLayer::onGoToFolder, 0); *((_QWORD *)this + 88) = v129; CCMenuItemSpriteExtra::setSizeMult(v129, 1.2); (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v30 + 456LL))(v30, *((_QWORD *)this + 88)); v130 = *((_QWORD *)this + 88); v272 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v130 + 184LL); v131 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 86) + 192LL))(*((_QWORD *)this + 86)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, 0.0, -35.0); cocos2d::CCPoint::operator+(&v287, v131); v272(v130, &v287); } v132 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_02_001.png", v122); (*(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v132 + 160LL))(v132, 0.4); v134 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_02_001.png", v133); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64))(*(_QWORD *)v132 + 464LL))(v132, v134, 1); v273 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v134 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v285, v132, (const cocos2d::CCPoint *)&unk_155C940); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, 15.0, 0.0); cocos2d::CCPoint::operator+(&v287, &v285); v273(v134, &v287); cocos2d::CCSprite::setFlipX(v134, 1); cocos2d::CCSprite::setFlipX(v132, 1); v135 = CCMenuItemSpriteExtra::create((__int64)v132, 0, (__int64)this, (__int64)LevelBrowserLayer::onGoToLastPage, 0); *((_QWORD *)this + 79) = v135; CCMenuItemSpriteExtra::setSizeMult(v135, 1.2); (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v30 + 456LL))(v30, *((_QWORD *)this + 79)); v136 = *((_QWORD *)this + 79); v274 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v136 + 184LL); v137 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 86) + 192LL))(*((_QWORD *)this + 86)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, -2.0, -65.0); cocos2d::CCPoint::operator+(&v287, v137); v274(v136, &v287); v139 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_findBtn_001.png", v138); v140 = CCMenuItemSpriteExtra::create(v139, 0, (__int64)this, (__int64)LevelBrowserLayer::onSearch, 0); CCMenuItemSpriteExtra::setSizeMult(v140, 1.2); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v30 + 456LL))(v30, v140); v141 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v140 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, 24.0, v60 - 30.0); cocos2d::CCNode::convertToNodeSpace(&v287, v30, (const cocos2d::CCPoint *)v286); v141(v140, &v287); v143 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_findBtnOff_001.png", v142); v144 = CCMenuItemSpriteExtra::create(v143, 0, (__int64)this, (__int64)LevelBrowserLayer::onClearSearch, 0); *((_QWORD *)this + 80) = v144; CCMenuItemSpriteExtra::setSizeMult(v144, 1.2); (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v30 + 456LL))(v30, *((_QWORD *)this + 80)); v145 = v140; v146 = *((_QWORD *)this + 80); v147 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v140 + 192LL); v148 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v146 + 184LL); v149 = v147(v145); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, 0.0, -35.0); cocos2d::CCPoint::operator+(&v287, v149); v148(v146, &v287); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 80) + 344LL))(*((_QWORD *)this + 80), 0); LABEL_46: if ( v29 ) { GameToolbox::addBackButton(this, v282, v106); GameToolbox::addRThumbScrollButton(this, v107); } LevelBrowserLayer::loadPage((GJSearchObject **)this, v3); if ( ((__int64)v288[0] & 1) != 0 ) operator delete(v289); return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source