// // LevelSearchLayer::init from 0x498150 to 0x499630 (5344 bytes) // // 1 xrefs: // > LevelSearchLayer::create @ 0x4996dc // // 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:44 +0000 // GameManager *__fastcall LevelSearchLayer::init(LevelSearchLayer *this, int a2) { GameManager *v4; // r0 GameManager *v5; // r0 GameManager *v6; // r0 GameManager *v7; // r0 cocos2d::CCDictionary *v8; // r0 cocos2d::CCObject *v9; // r0 cocos2d::CCDirector *v10; // r0 const char *v11; // r1 float *v12; // r7 void (__fastcall *v13)(float *, _DWORD *); // r9 void (__fastcall *v14)(float *, _DWORD *); // r6 void (__fastcall *v15)(float *, _DWORD *); // r3 const char *v16; // r1 int v17; // r7 int (__fastcall *v18)(int, _DWORD *); // r9 cocos2d::CCDirector *v19; // r0 void (__fastcall *v20)(int, _DWORD *); // r9 cocos2d::CCDirector *v21; // r0 float v22; // s17 cocos2d::CCDirector *v23; // r0 float v24; // r0 const char *v25; // r1 cocos2d::CCSprite *v26; // r7 int (__fastcall *v27)(cocos2d::CCSprite *, _DWORD *); // r8 cocos2d::CCDirector *v28; // r0 void (__fastcall *v29)(cocos2d::CCSprite *, _DWORD *); // r8 cocos2d::CCDirector *v30; // r0 float v31; // s17 cocos2d::CCDirector *v32; // r0 float v33; // r0 cocos2d::CCMenu *v34; // r0 const cocos2d::CCPoint *v35; // r8 cocos2d::CCDirector *v36; // r0 cocos2d::CCDirector *v37; // r0 float v38; // s16 cocos2d::CCDirector *v39; // r0 float v40; // r0 const char *v41; // r1 int v42; // r9 int v43; // r9 void (__fastcall *v44)(int, _DWORD *); // r10 const char *v45; // r1 int v46; // r10 int v47; // r7 void (__fastcall *v48)(int, _DWORD *); // r2 void (__fastcall *v49)(int, _DWORD *); // r6 int v50; // r10 const char *v51; // r1 char *v52; // r0 int v53; // r5 int v54; // r9 void (__fastcall *v55)(int, _DWORD *); // r8 int v56; // r10 int v57; // r9 void (__fastcall *v58)(int, _DWORD *); // r3 int v59; // r10 void (__fastcall *v60)(int, _DWORD *); // r9 void (__fastcall *v61)(int, _DWORD *); // r3 const char *v62; // r9 size_t v63; // r0 char *v64; // r2 int *v65; // r0 int v66; // r3 int v67; // r6 void (__fastcall *v68)(int, _DWORD *); // r9 int v69; // r6 void (__fastcall *v70)(int, _DWORD *); // r9 int v71; // r6 void (__fastcall *v72)(int, _DWORD *); // r9 int v73; // r9 char *v74; // r1 cocos2d::CCMenu *updated; // r0 const cocos2d::CCPoint *v76; // r6 const char *v77; // r1 int v78; // r0 int v79; // r10 const char *v80; // r1 int v81; // r0 int v82; // r7 GameManager *v83; // r0 GameManager *v84; // r0 const char *v85; // r1 int v86; // r0 int v87; // r7 const char *v88; // r2 int v89; // r6 void (__fastcall *v90)(int, _DWORD *); // r9 int v91; // r6 int (__fastcall *v92)(int, _DWORD *); // r3 cocos2d::CCMenu *v93; // r0 const cocos2d::CCPoint *v94; // r5 int *v95; // r0 int *v96; // r0 int v97; // r6 int *v98; // r7 int v99; // r10 int *v100; // r0 int *v101; // r0 int *v102; // r0 int v103; // r10 int *v104; // r0 int v105; // r6 int *v106; // r7 int v107; // r7 int *v108; // r0 int v109; // r6 void (__fastcall *v110)(cocos2d::CCNode *, _DWORD *); // r9 void (__fastcall *v111)(char *, _DWORD *); // r9 void (__fastcall *v112)(int, _DWORD *); // r9 void (__fastcall *v113)(int, _DWORD *); // r9 void (__fastcall *v114)(int, _DWORD *); // r9 void (__fastcall *v115)(int, _DWORD *); // r10 void (__fastcall *v116)(int, _DWORD *); // r10 void (__fastcall *v117)(int, _DWORD *); // r7 const char *v118; // r2 int v119; // r6 void (__fastcall *v120)(int, _DWORD *); // r9 int v121; // r6 int (__fastcall *v122)(int, _DWORD *); // r3 cocos2d::CCArray *v123; // r0 cocos2d::CCObject *v124; // r0 cocos2d::CCArray *v125; // r0 cocos2d::CCMenu *v126; // r7 const cocos2d::CCPoint *v127; // r5 const char *v128; // r8 cocos2d::CCString *v129; // r0 cocos2d::CCSprite *CString; // r0 const char *v131; // r1 cocos2d::CCSprite *v132; // r3 cocos2d::CCObject *v133; // r9 void (__fastcall *v134)(cocos2d::CCObject *, _DWORD *); // r2 cocos2d::CCObject *v135; // r10 unsigned int i; // r8 const char *v138; // r1 cocos2d::CCArray *v139; // r0 int v140; // r0 int v141; // r0 int v142; // r0 int v143; // r8 int v144; // r5 int (__fastcall *v145)(int, _DWORD *); // r3 cocos2d::CCArray *v146; // r0 cocos2d::CCObject *v147; // r0 cocos2d::CCMenu *v148; // r0 const cocos2d::CCPoint *v149; // r5 const char *v150; // r1 int v151; // r0 int v152; // r0 cocos2d::CCObject *v153; // r6 int j; // r8 const char *v155; // r2 cocos2d::CCLabelBMFont *v156; // r0 cocos2d::CCObject *v157; // r6 void (__fastcall *v158)(cocos2d::CCObject *, _DWORD *); // r2 cocos2d::CCObject *v159; // r6 cocos2d::CCObject *v160; // r6 const char *v161; // r1 int v162; // r0 cocos2d::CCObject *v163; // r6 unsigned int k; // r6 const char *v165; // r1 cocos2d::CCArray *v166; // r0 int v167; // r0 int v168; // r0 cocos2d::CCMenu *v169; // r7 int v170; // r6 cocos2d::CCDirector *v171; // r0 int (__fastcall *v172)(int, char *); // r8 cocos2d::CCDirector *v173; // r0 float v174; // r0 float v175; // s16 cocos2d::CCDirector *v176; // r0 float v177; // r0 PlatformToolbox *v178; // r0 GameLevelManager *isControllerConnected; // r0 cocos2d::CCMenuItem *v180; // r2 const char *v181; // r6 GameLevelManager *v182; // r0 const char *DiffVal; // r0 const char *v184; // r6 GameLevelManager *v185; // r0 const char *LenVal; // r0 GameLevelManager *v187; // r0 int BoolForKey; // r0 int v189; // r3 int (__fastcall *v190)(int, char *); // r6 char v191; // r2 GameLevelManager *v192; // r0 GameLevelManager *v193; // r0 int v194; // r0 int v195; // r3 void (__fastcall *v196)(int, char *); // r6 char v197; // r2 int v198; // r6 const char *DiffKey; // r7 size_t v200; // r0 cocos2d::CCString *v201; // r0 int v202; // r6 GameLevelManager *v203; // r0 void (__fastcall *v204)(LevelSearchLayer *, int); // r5 GameLevelManager *v205; // r0 int IntForKey; // r0 char *v208; // [sp+4h] [bp-180h] float v209; // [sp+4h] [bp-180h] float v210; // [sp+4h] [bp-180h] float v211; // [sp+4h] [bp-180h] float v212; // [sp+4h] [bp-180h] float v213; // [sp+4h] [bp-180h] float v214; // [sp+4h] [bp-180h] float v215; // [sp+4h] [bp-180h] float v216; // [sp+4h] [bp-180h] cocos2d::CCNode *v217; // [sp+8h] [bp-17Ch] cocos2d::CCNode *v218; // [sp+8h] [bp-17Ch] cocos2d::CCNode *v219; // [sp+8h] [bp-17Ch] cocos2d::CCNode *v220; // [sp+8h] [bp-17Ch] cocos2d::CCNode *v221; // [sp+8h] [bp-17Ch] cocos2d::CCNode *v222; // [sp+8h] [bp-17Ch] char *v223; // [sp+Ch] [bp-178h] void (__fastcall *v224)(int, _DWORD *); // [sp+10h] [bp-174h] int v225; // [sp+10h] [bp-174h] int v226; // [sp+14h] [bp-170h] int v227; // [sp+18h] [bp-16Ch] int v228; // [sp+1Ch] [bp-168h] GameManager *v229; // [sp+20h] [bp-164h] void (__fastcall *v230)(int, _DWORD *); // [sp+24h] [bp-160h] int v231; // [sp+28h] [bp-15Ch] float v232; // [sp+34h] [bp-150h] BYREF float v233; // [sp+38h] [bp-14Ch] char v234[8]; // [sp+3Ch] [bp-148h] BYREF _BYTE v235[8]; // [sp+44h] [bp-140h] BYREF _BYTE v236[8]; // [sp+4Ch] [bp-138h] BYREF _BYTE v237[8]; // [sp+54h] [bp-130h] BYREF _BYTE v238[8]; // [sp+5Ch] [bp-128h] BYREF _BYTE v239[8]; // [sp+64h] [bp-120h] BYREF _BYTE v240[8]; // [sp+6Ch] [bp-118h] BYREF _BYTE v241[8]; // [sp+74h] [bp-110h] BYREF char v242; // [sp+7Ch] [bp-108h] BYREF char v243; // [sp+7Dh] [bp-107h] char v244; // [sp+7Eh] [bp-106h] int (__fastcall *v245)(LevelSearchLayer *, cocos2d::CCObject *); // [sp+84h] [bp-100h] int v246; // [sp+88h] [bp-FCh] int (__fastcall *v247)(LevelSearchLayer *, cocos2d::CCObject *); // [sp+8Ch] [bp-F8h] int v248; // [sp+90h] [bp-F4h] _DWORD (*v249)(LevelSearchLayer *__hidden, cocos2d::CCObject *); // [sp+94h] [bp-F0h] int v250; // [sp+98h] [bp-ECh] _DWORD (*v251)(LevelSearchLayer *__hidden, cocos2d::CCObject *); // [sp+9Ch] [bp-E8h] int v252; // [sp+A0h] [bp-E4h] _DWORD (*v253)(LevelSearchLayer *__hidden, cocos2d::CCObject *); // [sp+A4h] [bp-E0h] int v254; // [sp+A8h] [bp-DCh] int (__fastcall *v255)(LevelSearchLayer *, cocos2d::CCObject *, int, int); // [sp+ACh] [bp-D8h] int v256; // [sp+B0h] [bp-D4h] int (__fastcall *v257)(LevelSearchLayer *, cocos2d::CCObject *); // [sp+B4h] [bp-D0h] int v258; // [sp+B8h] [bp-CCh] int (__fastcall *v259)(LevelSearchLayer *, cocos2d::CCObject *); // [sp+BCh] [bp-C8h] int v260; // [sp+C0h] [bp-C4h] int (__fastcall *v261)(LevelSearchLayer *, cocos2d::CCObject *); // [sp+C4h] [bp-C0h] int v262; // [sp+C8h] [bp-BCh] int (__fastcall *v263)(LevelSearchLayer *, cocos2d::CCObject *); // [sp+CCh] [bp-B8h] int v264; // [sp+D0h] [bp-B4h] int (__fastcall *v265)(LevelSearchLayer *, cocos2d::CCObject *); // [sp+D4h] [bp-B0h] int v266; // [sp+D8h] [bp-ACh] int (__fastcall *v267)(LevelSearchLayer *, cocos2d::CCObject *); // [sp+DCh] [bp-A8h] int v268; // [sp+E0h] [bp-A4h] int (__fastcall *v269)(LevelSearchLayer *, cocos2d::CCObject *); // [sp+E4h] [bp-A0h] int v270; // [sp+E8h] [bp-9Ch] int (__fastcall *v271)(LevelSearchLayer *, cocos2d::CCObject *); // [sp+ECh] [bp-98h] int v272; // [sp+F0h] [bp-94h] int (__fastcall *v273)(LevelSearchLayer *, cocos2d::CCObject *); // [sp+F4h] [bp-90h] int v274; // [sp+F8h] [bp-8Ch] int (__fastcall *v275)(cocos2d::CCArray **, cocos2d::CCObject *); // [sp+FCh] [bp-88h] int v276; // [sp+100h] [bp-84h] int (__fastcall *v277)(LevelSearchLayer *, cocos2d::CCObject *); // [sp+104h] [bp-80h] int v278; // [sp+108h] [bp-7Ch] int v279; // [sp+10Ch] [bp-78h] int v280; // [sp+110h] [bp-74h] int (__fastcall *v281)(cocos2d::CCArray **, cocos2d::CCObject *); // [sp+114h] [bp-70h] int v282; // [sp+118h] [bp-6Ch] _DWORD v283[2]; // [sp+11Ch] [bp-68h] BYREF _DWORD v284[2]; // [sp+124h] [bp-60h] BYREF int v285[2]; // [sp+12Ch] [bp-58h] BYREF char *v286; // [sp+134h] [bp-50h] int v287[3]; // [sp+138h] [bp-4Ch] BYREF char v288; // [sp+144h] [bp-40h] BYREF char v289; // [sp+145h] [bp-3Fh] BYREF cocos2d::CCLabelBMFont *v290; // [sp+14Ch] [bp-38h] int v291[3]; // [sp+150h] [bp-34h] BYREF _BYTE v292[16]; // [sp+15Ch] [bp-28h] BYREF _DWORD v293[4]; // [sp+16Ch] [bp-18h] BYREF v4 = (GameManager *)cocos2d::CCLayer::init(this); v229 = v4; if ( v4 ) { v5 = (GameManager *)GameManager::sharedState(v4); *((_DWORD *)v5 + 188) = -1; v6 = (GameManager *)GameManager::sharedState(v5); *((_DWORD *)v6 + 189) = -1; v7 = (GameManager *)GameManager::sharedState(v6); *((_DWORD *)v7 + 127) = 4; *((_DWORD *)this + 82) = a2; *(_DWORD *)(GameManager::sharedState(v7) + 1004) = a2; (*(void (__fastcall **)(LevelSearchLayer *, int))(*(_DWORD *)this + 536))(this, 1); v8 = (cocos2d::CCDictionary *)(*(int (__fastcall **)(LevelSearchLayer *, int))(*(_DWORD *)this + 544))(this, 1); v9 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v8); *((_DWORD *)this + 88) = v9; v10 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v9); cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v232); v12 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v11); v13 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v12 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v293, 0.0, 0.0); v13(v12, v293); (*(void (__fastcall **)(LevelSearchLayer *, float *, int))(*(_DWORD *)this + 232))(this, v12, -3); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v12 + 64))(v12, (float)(v232 + 10.0) / v12[86]); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v12 + 72))(v12, (float)(v233 + 10.0) / v12[87]); v14 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v293, -5.0, -5.0); v14(v12, v293); v15 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v12 + 480); BYTE2(v293[0]) = -1; LOWORD(v293[0]) = 26112; v15(v12, v293); v17 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_sideArt_001.png", v16); v18 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v17 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v293, 0.0, 0.0); v19 = (cocos2d::CCDirector *)v18(v17, v293); v20 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v17 + 92); v21 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v19); v22 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v21)); v23 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v22)); v24 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v23)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v293, v22 - 1.0, v24 - 1.0); v20(v17, v293); (*(void (__fastcall **)(LevelSearchLayer *, int, int))(*(_DWORD *)this + 232))(this, v17, 1); v26 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_sideArt_001.png", v25); v27 = *(int (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v26 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v293, 1.0, 0.0); v28 = (cocos2d::CCDirector *)v27(v26, v293); v29 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v26 + 92); v30 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v28); v31 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v30)); v32 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v31)); v33 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v32)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v293, v31 + 1.0, v33 - 1.0); v29(v26, v293); cocos2d::CCSprite::setFlipX(v26, 1); (*(void (__fastcall **)(LevelSearchLayer *, cocos2d::CCSprite *, int))(*(_DWORD *)this + 232))(this, v26, 1); v34 = (cocos2d::CCMenu *)cocos2d::CCRect::CCRect((cocos2d::CCRect *)v292, 0.0, 0.0, 80.0, 80.0); v35 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v34); v36 = (cocos2d::CCDirector *)(*(int (__fastcall **)(LevelSearchLayer *, const cocos2d::CCPoint *, int))(*(_DWORD *)this + 232))( this, v35, 2); v37 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v36); v38 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v37)); v39 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v38)); v40 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v39)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v234, v38 - 25.0, v40 - 25.0); v42 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v41); (*(void (__fastcall **)(int, int))(*(_DWORD *)v42 + 80))(v42, 1061997773); v246 = 0; v245 = LevelSearchLayer::confirmClearFilters; v43 = CCMenuItemSpriteExtra::create(v42, 0, (int)this, (int)LevelSearchLayer::confirmClearFilters, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v35 + 228))(v35, v43); v44 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v43 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v293, v35); v44(v43, v293); v46 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plusBtn_001.png", v45); (*(void (__fastcall **)(int, int))(*(_DWORD *)v46 + 80))(v46, 1061997773); v248 = 0; v247 = LevelSearchLayer::onMoreOptions; v47 = CCMenuItemSpriteExtra::create(v46, 0, (int)this, (int)LevelSearchLayer::onMoreOptions, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v35 + 228))(v35, v47); CCMenuItemSpriteExtra::setSizeMult(v47, 1.5); if ( *((_DWORD *)this + 82) == 1 ) { v48 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v46 + 480); memset(v293, 125, 3); v48(v46, v293); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v47 + 528))(v47, 0); } v49 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v47 + 92); v50 = (*(int (__fastcall **)(int))(*(_DWORD *)v43 + 96))(v43); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 0.0, -50.0); cocos2d::CCPoint::operator+(v293, v50, v284); v49(v47, v293); if ( *((_DWORD *)this + 82) ) v52 = "GJ_viewLevelsBtn_001.png"; else v52 = "GJ_viewListsBtn_001.png"; v53 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v52, v51); (*(void (__fastcall **)(int, int))(*(_DWORD *)v53 + 80))(v53, 1061997773); v250 = 0; v249 = LevelSearchLayer::onSearchMode; v54 = CCMenuItemSpriteExtra::create(v53, 0, (int)this, (int)LevelSearchLayer::onSearchMode, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v35 + 228))(v35, v54); v55 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v54 + 92); v56 = (*(int (__fastcall **)(int))(*(_DWORD *)v47 + 96))(v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 0.0, -50.0); cocos2d::CCPoint::operator+(v293, v56, v284); v55(v54, v293); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v235, v232 * 0.5, (float)(v233 * 0.5) + 130.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v293, (const cocos2d::CCRect *)v292); v57 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v293); (*(void (__fastcall **)(int, int))(*(_DWORD *)v57 + 456))(v57, 255); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v236, 365.0, 40.0); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v57 + 160))(v57, v236); (*(void (__fastcall **)(LevelSearchLayer *, int, int))(*(_DWORD *)this + 232))(this, v57, -2); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v57 + 92))(v57, v235); v58 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v57 + 480); *(_WORD *)((char *)v293 + 1) = -29384; LOBYTE(v293[0]) = 0; v58(v57, v293); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v293, 0.0, 0.0, 40.0, 40.0); v59 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v293); (*(void (__fastcall **)(int, int))(*(_DWORD *)v59 + 456))(v59, 255); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v237, 210.0, 30.0); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v59 + 160))(v59, v237); (*(void (__fastcall **)(LevelSearchLayer *, int, int))(*(_DWORD *)this + 232))(this, v59, -1); v60 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v59 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, -73.0, 0.0); cocos2d::CCPoint::operator+(v293, v235, v284); v60(v59, v293); v61 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v59 + 480); *(_WORD *)((char *)v293 + 1) = 25127; LOBYTE(v293[0]) = 0; v61(v59, v293); if ( *((_DWORD *)this + 82) == 1 ) v62 = "Enter a list or id"; else v62 = "Enter a level, user or id"; v285[0] = 0; v285[1] = 0; v286 = nullptr; v63 = strlen(v62); std::string::__init(v285, v62, v63); if ( (v285[0] & 1) != 0 ) v64 = v286; else v64 = (char *)v285 + 1; v65 = CCTextInputNode::create( (CCTextInputNode *)0x43420000, 50.0, v64, "Thonburi", (const char *)&dword_18, "bigFont.fnt", (const char *)0x42200000); v66 = *(_DWORD *)this; *((_DWORD *)this + 83) = v65; (*(void (__fastcall **)(LevelSearchLayer *, int *, int))(v66 + 232))(this, v65, 20); *(_DWORD *)(*((_DWORD *)this + 83) + 420) = (char *)this + 316; v67 = *((_DWORD *)this + 83); v68 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v67 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, -174.0, 0.0); cocos2d::CCPoint::operator+(v293, v235, v284); v68(v67, v293); v69 = *(_DWORD *)(*((_DWORD *)this + 83) + 416); v70 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v69 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v293, 0.0, 0.5); v70(v69, v293); v71 = *(_DWORD *)(*((_DWORD *)this + 83) + 428); v72 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v71 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v293, 0.0, 0.5); v72(v71, v293); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 83), 0.7); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 83), 194.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 83) + 416) + 172))( *(_DWORD *)(*((_DWORD *)this + 83) + 416), 0); *(_DWORD *)(*((_DWORD *)this + 83) + 424) = 20; v73 = *((_DWORD *)this + 83); memset(v287, 0, sizeof(v287)); std::string::__init(v287, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0x3Fu); CCTextInputNode::setAllowedChars(v73, (unsigned __int8 *)v287); std::string::~string((int)v287); if ( (v285[0] & 1) != 0 ) v74 = v286; else v74 = (char *)v285 + 1; updated = (cocos2d::CCMenu *)LevelSearchLayer::updateSearchLabel(this, v74); v76 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(updated); (*(void (__fastcall **)(LevelSearchLayer *, const cocos2d::CCPoint *))(*(_DWORD *)this + 228))(this, v76); v78 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_longBtn06_001.png", v77); v252 = 0; v251 = LevelSearchLayer::onSearch; v79 = CCMenuItemSpriteExtra::create(v78, 0, (int)this, (int)LevelSearchLayer::onSearch, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v76 + 228))(v76, v79); v217 = *(cocos2d::CCNode **)(*(_DWORD *)v79 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v283, 63.0, 0.0); cocos2d::CCPoint::operator+(v284, v235, v283); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v293, v76); ((void (__fastcall *)(int, _DWORD *))v217)(v79, v293); v81 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_longBtn05_001.png", v80); v254 = 0; v253 = LevelSearchLayer::onSearchUser; v82 = CCMenuItemSpriteExtra::create(v81, 0, (int)this, (int)LevelSearchLayer::onSearchUser, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v76 + 228))(v76, v82); v218 = *(cocos2d::CCNode **)(*(_DWORD *)v82 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v283, 110.0, 0.0); cocos2d::CCPoint::operator+(v284, v235, v283); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v293, v76); v83 = (GameManager *)((int (__fastcall *)(int, _DWORD *))v218)(v82, v293); v84 = (GameManager *)GameManager::sharedState(v83); if ( GameManager::safeModeEnabled(v84) ) { (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v82 + 172))(v82, 0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v82 + 528))(v82, 0); } v86 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_longBtn07_001.png", v85); v256 = 0; v255 = LevelSearchLayer::onClearFreeSearch; v87 = CCMenuItemSpriteExtra::create(v86, 0, (int)this, (int)LevelSearchLayer::onClearFreeSearch, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v76 + 228))(v76, v87); v219 = *(cocos2d::CCNode **)(*(_DWORD *)v87 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v283, 157.0, 0.0); cocos2d::CCPoint::operator+(v284, v235, v283); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v293, v76); ((void (__fastcall *)(int, _DWORD *))v219)(v87, v293); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v238, v232 * 0.5, (float)(v233 * 0.5) + 28.0); v89 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Quick Search", "bigFont.fnt", v88); v90 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v89 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 0.0, 69.5); cocos2d::CCPoint::operator+(v293, v238, v284); v90(v89, v293); (*(void (__fastcall **)(LevelSearchLayer *, int))(*(_DWORD *)this + 228))(this, v89); (*(void (__fastcall **)(int, int))(*(_DWORD *)v89 + 80))(v89, 1056964608); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v293, (const cocos2d::CCRect *)v292); v91 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v293); (*(void (__fastcall **)(int, int))(*(_DWORD *)v91 + 456))(v91, 255); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v293, 365.0, 115.0); cocos2d::CCSize::operator=(v236, v293); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v91 + 160))(v91, v236); (*(void (__fastcall **)(LevelSearchLayer *, int, int))(*(_DWORD *)this + 232))(this, v91, -1); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v91 + 92))(v91, v238); v92 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v91 + 480); LOWORD(v293[0]) = 11776; BYTE2(v293[0]) = 117; v93 = (cocos2d::CCMenu *)v92(v91, v293); v94 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v93); (*(void (__fastcall **)(LevelSearchLayer *, const cocos2d::CCPoint *))(*(_DWORD *)this + 228))(this, v94); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v239, v94); v95 = SearchButton::create( (SearchButton *)"GJ_longBtn04_001.png", (cocos2d::CCLabelBMFont *)"Downloads", (const char *)0x3EDC28F6, (cocos2d::CCSprite *)"GJ_sDownloadIcon_001.png", (const char *)0x3F8CCCCD, *(float *)&v208); v258 = 0; v257 = LevelSearchLayer::onMostDownloaded; v220 = (cocos2d::CCNode *)CCMenuItemSpriteExtra::create( (int)v95, 0, (int)this, (int)LevelSearchLayer::onMostDownloaded, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCNode *))(*(_DWORD *)v94 + 228))(v94, v220); v96 = SearchButton::create( (SearchButton *)"GJ_longBtn04_001.png", (cocos2d::CCLabelBMFont *)"Likes", (const char *)0x3F000000, (cocos2d::CCSprite *)"GJ_sLikeIcon_001.png", (const char *)0x3F8CCCCD, v209); v260 = 0; v259 = LevelSearchLayer::onMostLikes; v223 = (char *)CCMenuItemSpriteExtra::create((int)v96, 0, (int)this, (int)LevelSearchLayer::onMostLikes, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, char *))(*(_DWORD *)v94 + 228))(v94, v223); v98 = SearchButton::create( (SearchButton *)"GJ_longBtn04_001.png", (cocos2d::CCLabelBMFont *)"Hyped", (const char *)0x3F000000, (cocos2d::CCSprite *)"particle_228_001.png", (const char *)0x3F8CCCCD, v210); v97 = v98[128]; v224 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v97 + 92); v99 = (*(int (__fastcall **)(int))(*(_DWORD *)v97 + 96))(v97); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, -1.0, 1.0); cocos2d::CCPoint::operator+(v293, v99, v284); v224(v97, v293); v262 = 0; v261 = LevelSearchLayer::onHyped; v225 = CCMenuItemSpriteExtra::create((int)v98, 0, (int)this, (int)LevelSearchLayer::onHyped, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v94 + 228))(v94, v225); v100 = SearchButton::create( (SearchButton *)"GJ_longBtn04_001.png", (cocos2d::CCLabelBMFont *)"Trending", (const char *)0x3F000000, (cocos2d::CCSprite *)"GJ_sTrendingIcon_001.png", (const char *)0x3F8CCCCD, v211); v264 = 0; v263 = LevelSearchLayer::onTrending; v226 = CCMenuItemSpriteExtra::create((int)v100, 0, (int)this, (int)LevelSearchLayer::onTrending, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v94 + 228))(v94, v226); v101 = SearchButton::create( (SearchButton *)"GJ_longBtn04_001.png", (cocos2d::CCLabelBMFont *)"Recent", (const char *)0x3F000000, (cocos2d::CCSprite *)"GJ_sRecentIcon_001.png", (const char *)0x3F8CCCCD, v212); v266 = 0; v265 = LevelSearchLayer::onMostRecent; v227 = CCMenuItemSpriteExtra::create((int)v101, 0, (int)this, (int)LevelSearchLayer::onMostRecent, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v94 + 228))(v94, v227); v102 = SearchButton::create( (SearchButton *)"GJ_longBtn04_001.png", (cocos2d::CCLabelBMFont *)"Magic", (const char *)0x3F000000, (cocos2d::CCSprite *)"GJ_sMagicIcon_001.png", (const char *)0x3F8CCCCD, v213); v268 = 0; v267 = LevelSearchLayer::onMagic; v103 = CCMenuItemSpriteExtra::create((int)v102, 0, (int)this, (int)LevelSearchLayer::onMagic, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v94 + 228))(v94, v103); v104 = SearchButton::create( (SearchButton *)"GJ_longBtn04_001.png", (cocos2d::CCLabelBMFont *)"Awarded", (const char *)0x3F000000, (cocos2d::CCSprite *)"GJ_sStarsIcon_001.png", (const char *)0x3F8CCCCD, v214); v270 = 0; v269 = LevelSearchLayer::onLatestStars; v228 = CCMenuItemSpriteExtra::create((int)v104, 0, (int)this, (int)LevelSearchLayer::onLatestStars, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v94 + 228))(v94, v228); v106 = SearchButton::create( (SearchButton *)"GJ_longBtn04_001.png", (cocos2d::CCLabelBMFont *)"Followed", (const char *)0x3F000000, (cocos2d::CCSprite *)"GJ_followIcon_001.png", (const char *)0x3F366666, v215); v105 = v106[128]; v230 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v105 + 92); v231 = (*(int (__fastcall **)(int))(*(_DWORD *)v105 + 96))(v105); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, -2.5, 0.5); cocos2d::CCPoint::operator+(v293, v231, v284); v230(v105, v293); v272 = 0; v271 = LevelSearchLayer::onFollowed; v107 = CCMenuItemSpriteExtra::create((int)v106, 0, (int)this, (int)LevelSearchLayer::onFollowed, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v94 + 228))(v94, v107); v108 = SearchButton::create( (SearchButton *)"GJ_longBtn04_001.png", (cocos2d::CCLabelBMFont *)"Friends", (const char *)0x3F000000, (cocos2d::CCSprite *)"GJ_sFriendsIcon_001.png", (const char *)0x3F8CCCCD, v216); v274 = 0; v273 = LevelSearchLayer::onFriends; v109 = CCMenuItemSpriteExtra::create((int)v108, 0, (int)this, (int)LevelSearchLayer::onFriends, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v94 + 228))(v94, v109); v110 = *(void (__fastcall **)(cocos2d::CCNode *, _DWORD *))(*(_DWORD *)v220 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, -119.0, 36.0); cocos2d::CCPoint::operator+(v293, v239, v284); v110(v220, v293); v111 = *(void (__fastcall **)(char *, _DWORD *))(*(_DWORD *)v223 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 0.0, 36.0); cocos2d::CCPoint::operator+(v293, v239, v284); v111(v223, v293); v112 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v225 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 119.0, 36.0); cocos2d::CCPoint::operator+(v293, v239, v284); v112(v225, v293); v113 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v226 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, -119.0, 0.0); cocos2d::CCPoint::operator+(v293, v239, v284); v113(v226, v293); v114 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v227 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 0.0, 0.0); cocos2d::CCPoint::operator+(v293, v239, v284); v114(v227, v293); v221 = *(cocos2d::CCNode **)(*(_DWORD *)v103 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 119.0, 0.0); cocos2d::CCPoint::operator+(v293, v239, v284); ((void (__fastcall *)(int, _DWORD *))v221)(v103, v293); v115 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v228 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, -119.0, -36.0); cocos2d::CCPoint::operator+(v293, v239, v284); v115(v228, v293); v116 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v107 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 0.0, -36.0); cocos2d::CCPoint::operator+(v293, v239, v284); v116(v107, v293); v117 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v109 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 119.0, -36.0); cocos2d::CCPoint::operator+(v293, v239, v284); v117(v109, v293); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v240, v232 * 0.5, (float)(v233 * 0.5) - 77.0); v119 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Filters", "bigFont.fnt", v118); v120 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v119 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 0.0, 37.0); cocos2d::CCPoint::operator+(v293, v240, v284); v120(v119, v293); (*(void (__fastcall **)(LevelSearchLayer *, int))(*(_DWORD *)this + 228))(this, v119); (*(void (__fastcall **)(int, int))(*(_DWORD *)v119 + 80))(v119, 1056964608); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v293, (const cocos2d::CCRect *)v292); v121 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v293); (*(void (__fastcall **)(int, int))(*(_DWORD *)v121 + 456))(v121, 255); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v293, 365.0, 50.0); cocos2d::CCSize::operator=(v236, v293); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v121 + 160))(v121, v236); (*(void (__fastcall **)(LevelSearchLayer *, int, int))(*(_DWORD *)this + 232))(this, v121, -1); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v121 + 92))(v121, v240); v122 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v121 + 480); LOWORD(v293[0]) = 9216; BYTE2(v293[0]) = 91; v123 = (cocos2d::CCArray *)v122(v121, v293); v124 = (cocos2d::CCObject *)cocos2d::CCArray::create(v123); *((_DWORD *)this + 86) = v124; v125 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v124); v126 = (cocos2d::CCMenu *)cocos2d::CCArray::create(v125); v127 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v126); (*(void (__fastcall **)(LevelSearchLayer *, const cocos2d::CCPoint *, int))(*(_DWORD *)this + 232))(this, v127, 10); v128 = nullptr; do { v129 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn_001.png", v128); CString = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v129); v132 = (cocos2d::CCSprite *)"difficulty_auto_btn_001.png"; if ( v128 != &byte_7 ) v132 = CString; v133 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(v132, v131); v134 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v133 + 480); memset(v293, 125, 3); v134(v133, v293); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 86), v133); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v133 + 80))(v133, 1061997773); v276 = 0; v275 = LevelSearchLayer::toggleDifficulty; v135 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v133, 0, (int)this, (int)LevelSearchLayer::toggleDifficulty, 0); (*(void (__fastcall **)(cocos2d::CCObject *, const char *))(*(_DWORD *)v135 + 36))(v135, v128); (*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCObject *))(*(_DWORD *)v127 + 228))(v127, v135); cocos2d::CCArray::addObject(v126, v135); if ( v128++ == &byte_6 ) *((_DWORD *)this + 89) = v133; } while ( v128 != byte_8 ); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v293, v127); GameToolbox::alignItemsHorisontally(*(float *)&v126, 18.0, (int)v293, 0); for ( i = 0; i < (*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v127 + 248))(v127); ++i ) { v139 = (cocos2d::CCArray *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v127 + 244))(v127); v140 = cocos2d::CCArray::objectAtIndex(v139, i); CCMenuItemSpriteExtra::setSizeMult(v140, 1.5); } v141 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v138); v278 = 0; v277 = LevelSearchLayer::onSpecialDemon; v142 = CCMenuItemSpriteExtra::create(v141, 0, (int)this, (int)LevelSearchLayer::onSpecialDemon, 0); *((_DWORD *)this + 90) = v142; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v127 + 228))(v127, v142); v143 = *((_DWORD *)this + 90); v222 = *(cocos2d::CCNode **)(*(_DWORD *)v143 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v283, v127); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 202.5, 0.0); cocos2d::CCPoint::operator+(v293, v283, v284); ((void (__fastcall *)(int, _DWORD *))v222)(v143, v293); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, v232 * 0.5, (float)(v233 * 0.5) - 128.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v293, (const cocos2d::CCRect *)v292); v144 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v293); (*(void (__fastcall **)(int, int))(*(_DWORD *)v144 + 456))(v144, 255); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v293, 365.0, 35.0); cocos2d::CCSize::operator=(v236, v293); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v144 + 160))(v144, v236); (*(void (__fastcall **)(LevelSearchLayer *, int, int))(*(_DWORD *)this + 232))(this, v144, -1); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v144 + 92))(v144, v241); v145 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v144 + 480); LOWORD(v293[0]) = 7936; BYTE2(v293[0]) = 79; v146 = (cocos2d::CCArray *)v145(v144, v293); v147 = (cocos2d::CCObject *)cocos2d::CCArray::create(v146); *((_DWORD *)this + 87) = v147; cocos2d::CCObject::retain(v147); v148 = (cocos2d::CCMenu *)cocos2d::CCArray::removeAllObjects(v126); v149 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v148); (*(void (__fastcall **)(LevelSearchLayer *, const cocos2d::CCPoint *, int))(*(_DWORD *)this + 232))(this, v149, 10); if ( !*((_DWORD *)this + 82) ) { v152 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_timeIcon_001.png", v150); v279 = 0; v280 = 0; v153 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v152, 0, 0, 0, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCObject *))(*(_DWORD *)v149 + 228))(v149, v153); (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v153 + 528))(v153, 0); cocos2d::CCArray::addObject(v126, v153); for ( j = 0; j != 6; ++j ) { GJGameLevel::lengthKeyToString((GJGameLevel *)&v288, j); if ( (v288 & 1) != 0 ) v156 = v290; else v156 = (cocos2d::CCLabelBMFont *)&v289; v157 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v156, "bigFont.fnt", v155); std::string::~string((int)&v288); v158 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v157 + 536); memset(v293, 125, 3); v158(v157, v293); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 87), v157); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v157 + 80))(v157, 1054280253); v282 = 0; v281 = LevelSearchLayer::toggleTime; v159 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v157, 0, (int)this, (int)LevelSearchLayer::toggleTime, 0); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v159 + 36))(v159, j); (*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCObject *))(*(_DWORD *)v149 + 228))(v149, v159); cocos2d::CCArray::addObject(v126, v159); } } v151 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_starsIcon_001.png", v150); *((_DWORD *)this + 84) = v151; v283[1] = 0; v283[0] = LevelSearchLayer::toggleStar; v160 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v151, 0, (int)this, (int)LevelSearchLayer::toggleStar, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCObject *))(*(_DWORD *)v149 + 228))(v149, v160); cocos2d::CCArray::addObject(v126, v160); if ( *((_DWORD *)this + 82) == 1 ) { v162 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_noStarsIcon_001.png", v161); *((_DWORD *)this + 85) = v162; v284[1] = 0; v284[0] = LevelSearchLayer::toggleNoStar; v163 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v162, 0, (int)this, (int)LevelSearchLayer::toggleNoStar, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCObject *))(*(_DWORD *)v149 + 228))(v149, v163); cocos2d::CCArray::addObject(v126, v163); } cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v293, v149); GameToolbox::alignItemsHorisontally(*(float *)&v126, 12.0, (int)v293, 0); for ( k = 0; k < (*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v149 + 248))(v149); ++k ) { v166 = (cocos2d::CCArray *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v149 + 244))(v149); v167 = cocos2d::CCArray::objectAtIndex(v166, k); CCMenuItemSpriteExtra::setSizeMult(v167, 1.3); } v168 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v165); v293[1] = 0; v293[0] = LevelSearchLayer::onBack; v169 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v168, 0, (int)this, (int)LevelSearchLayer::onBack, 0); CCMenuItemSpriteExtra::setSizeMult((int)v169, 1.5); v170 = cocos2d::CCMenu::create(v169, nullptr); v171 = (cocos2d::CCDirector *)(*(int (__fastcall **)(LevelSearchLayer *, int, int))(*(_DWORD *)this + 232))( this, v170, 1); v172 = *(int (__fastcall **)(int, char *))(*(_DWORD *)v170 + 92); v173 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v171); v174 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v173)); v175 = v174 + 24.0; v176 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v174)); v177 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v176)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, v175, v177 - 23.0); v178 = (PlatformToolbox *)v172(v170, &v242); isControllerConnected = (GameLevelManager *)PlatformToolbox::isControllerConnected(v178); if ( isControllerConnected ) isControllerConnected = (GameLevelManager *)GameToolbox::addBackButton(this, v169, v180); v181 = nullptr; do { v182 = (GameLevelManager *)GameLevelManager::sharedState(isControllerConnected); DiffVal = (const char *)GameLevelManager::getDiffVal(v182, (int)v181); isControllerConnected = (GameLevelManager *)LevelSearchLayer::toggleDifficultyNum(this, v181++, DiffVal); } while ( v181 != byte_8 ); v184 = nullptr; do { v185 = (GameLevelManager *)GameLevelManager::sharedState(isControllerConnected); LenVal = (const char *)GameLevelManager::getLenVal(v185, (int)v184); isControllerConnected = (GameLevelManager *)LevelSearchLayer::toggleTimeNum((int)this, v184++, LenVal); } while ( v184 != &byte_6 ); v187 = (GameLevelManager *)GameLevelManager::sharedState(isControllerConnected); BoolForKey = GameLevelManager::getBoolForKey(v187, "star_filter"); v189 = *((_DWORD *)this + 84); v190 = *(int (__fastcall **)(int, char *))(*(_DWORD *)v189 + 480); if ( BoolForKey ) v191 = -1; else v191 = 125; v242 = v191; v243 = v191; v244 = v191; v192 = (GameLevelManager *)v190(v189, &v242); if ( *((_DWORD *)this + 85) ) { v193 = (GameLevelManager *)GameLevelManager::sharedState(v192); v194 = GameLevelManager::getBoolForKey(v193, "nostar_filter"); v195 = *((_DWORD *)this + 85); v196 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v195 + 480); if ( v194 ) v197 = -1; else v197 = 125; v242 = v197; v243 = v197; v244 = v197; v196(v195, &v242); } v198 = *((_DWORD *)this + 88); DiffKey = (const char *)LevelSearchLayer::getDiffKey(this, &byte_6); memset(v291, 0, sizeof(v291)); v200 = strlen(DiffKey); std::string::__init(v291, DiffKey, v200); v201 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v198, v291); v202 = cocos2d::CCString::boolValue(v201); std::string::~string((int)v291); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 90) + 528))(*((_DWORD *)this + 90), v202); v203 = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 90) + 172))( *((_DWORD *)this + 90), v202); v204 = *(void (__fastcall **)(LevelSearchLayer *, int))(*(_DWORD *)this + 592); v205 = (GameLevelManager *)GameLevelManager::sharedState(v203); IntForKey = GameLevelManager::getIntForKey(v205, "demon_filter"); v204(this, IntForKey); std::string::~string((int)v285); } return v229; }
GD Web Decomp Icon

GD Web Decomp

Raw Source