// // LevelListLayer::init from 0xa75b34 to 0xa777f4 (7360 bytes) // // 2 xrefs: // > LevelListLayer::create @ 0xa779c8 // > @ 0x5d618 // // 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 LevelListLayer::init(LevelListLayer *a1, GJLevelList *a2) { char v4; // w25 void *v6; // x0 cocos2d::CCArray *v7; // x0 cocos2d::CCArray *v8; // x0 __int64 v9; // x26 cocos2d::CCPoint origin; // x1 void *v11; // x0 GameLevelManager *v12; // x0 LevelListLayer_vtbl *v13; // x2 cocos2d::CCDirector *v14; // x0 const char *v15; // x1 cocos2d::CCNode *v16; // x22 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 int (__fastcall *getTag)(const cocos2d::CCObject *__hidden); // x2 cocos2d::CCSprite *v20; // x22 void (__fastcall *v21)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 void (__fastcall *v22)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 cocos2d::CCDirector *v23; // x0 float v24; // s0 float v25; // s9 cocos2d::CCDirector *v26; // x0 float v27; // s0 cocos2d::CCSprite *v28; // x22 void (__fastcall *v29)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x27 void (__fastcall *v30)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x27 cocos2d::CCDirector *v31; // x0 float v32; // s0 float v33; // s9 cocos2d::CCDirector *v34; // x0 float v35; // s0 cocos2d::CCSprite *v36; // x0 cocos2d::CCMenu *v37; // x0 cocos2d::CCMenu *m_buttonMenu; // x22 void (__fastcall *v39)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 cocos2d::CCDirector *v40; // x0 float v41; // s0 float v42; // s8 cocos2d::CCDirector *v43; // x0 float v44; // s0 void *v45; // x0 cocos2d::CCDirector *v46; // x0 float v47; // s0 cocos2d::CCNode *v48; // x28 int (__fastcall *v49)(const cocos2d::CCObject *__hidden); // x2 GJLevelList *v50; // x1 cocos2d::CCLabelBMFont *v51; // x3 void *v52; // x0 cocos2d::CCDirector *v53; // x0 float v54; // s0 float v55; // s8 cocos2d::CCDirector *v56; // x0 float v57; // s0 void (__fastcall *v58)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 __int64 v59; // x28 float v60; // s0 float v61; // s1 cocos2d::CCSprite *v62; // x28 CCMenuItemSpriteExtra *v63; // x0 cocos2d::CCMenu *v64; // x2 const cocos2d::CCPoint *v65; // x0 cocos2d::CCSprite *v66; // x27 CCMenuItemSpriteExtra *v67; // x27 float v68; // s0 float v69; // s1 cocos2d::CCSprite *v70; // x27 CCMenuItemSpriteExtra *v71; // x27 float v72; // s0 float v73; // s1 cocos2d::CCSprite *v74; // x27 __int64 v75; // x0 const cocos2d::CCPoint *v76; // x0 CCMenuItemSpriteExtra *v77; // x27 float v78; // s0 float v79; // s1 cocos2d::CCSprite *v80; // x27 CCMenuItemSpriteExtra *v81; // x27 float v82; // s0 float v83; // s1 cocos2d::CCSprite *v84; // x27 float width; // s9 float v86; // s9 float *v87; // x0 cocos2d::CCNode *v88; // x0 CCMenuItemSpriteExtra *v90; // x27 void (__fastcall *v91)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 float v92; // s0 float v93; // s1 cocos2d::CCSprite *v94; // x0 CCMenuItemSpriteExtra *v95; // x27 void (__fastcall *v96)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 LoadingCircle *v97; // x0 LoadingCircle *m_circle; // x0 TextArea *v99; // x0 TextArea *m_noInternet; // x22 void *v101; // x0 void (__fastcall *v102)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21 GJLevelList *v103; // x1 void *v104; // x0 void *v105; // x0 __int64 v106; // x22 GJLevelList *m_levelList; // x22 unsigned int *v108; // x1 int v109; // w2 cocos2d::CCLabelBMFont *v110; // x27 void *v111; // x0 void (__fastcall *v112)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 cocos2d::CCDirector *v113; // x0 float v114; // s0 cocos2d::CCLabelBMFont *v115; // x28 void *v116; // x0 float v117; // s8 float v118; // s13 float v119; // s10 float v120; // s0 float v121; // s10 float v122; // s10 float v123; // s8 float v124; // s15 float v125; // s14 float v126; // s13 float v127; // s0 void (__fastcall *v128)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 float v129; // s8 float v130; // s8 void (__fastcall *v131)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 cocos2d::CCSprite *v132; // x28 float v133; // s8 float v134; // s0 cocos2d::CCSprite *v135; // x27 void (__fastcall *v136)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 float v137; // s0 cocos2d::CCDirector *v138; // x0 float v139; // s0 float v140; // s8 cocos2d::CCDirector *v141; // x0 float v142; // s0 CCMenuItemSpriteExtra *v143; // x0 cocos2d::CCMenu *v144; // x2 void (__fastcall *v145)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 const cocos2d::CCPoint *v146; // x27 float v147; // s0 float v148; // s1 cocos2d::CCSprite *v149; // x27 CCMenuItemSpriteExtra *v150; // x27 const cocos2d::CCPoint *v151; // x0 cocos2d::CCSprite *v152; // x27 CCMenuItemSpriteExtra *v153; // x0 cocos2d::CCMenu *v154; // x2 CCMenuItemSpriteExtra *m_likeButton; // x27 void (__fastcall *v156)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 float v157; // s0 float v158; // s1 cocos2d::CCSprite *v159; // x27 CCMenuItemSpriteExtra *v160; // x27 void (__fastcall *v161)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 float v162; // s0 float v163; // s1 const char *v164; // x0 cocos2d::CCSprite *v165; // x0 CCMenuItemSpriteExtra *v166; // x27 void (__fastcall *v167)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 float v168; // s0 float v169; // s1 GJAccountManager *v170; // x0 cocos2d::CCSprite *v171; // x27 CCTextInputNode *v172; // x0 CCTextInputNode *m_titleInput; // x2 void *v174; // x0 __int64 v175; // x28 CCTextInputNode *v176; // x28 void *v177; // x0 unsigned int *v178; // x1 int v179; // w2 unsigned int *v180; // x1 int v181; // w2 unsigned int *v182; // x1 int v183; // w2 unsigned int *v184; // x1 int v185; // w2 unsigned int *v186; // x1 int v187; // w2 unsigned int *v188; // x1 int v189; // w2 unsigned int *v190; // x1 int v191; // w2 unsigned int *v192; // x1 int v193; // w2 unsigned int *v194; // x1 int v195; // w2 unsigned int *v196; // x1 unsigned int *v197; // x1 int v198; // w2 cocos2d::CCSprite *m_diffSprite; // [xsp+B0h] [xbp+B0h] void (__fastcall *v200)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+B8h] [xbp+B8h] cocos2d::CCSprite *m_featureSprite; // [xsp+B8h] [xbp+B8h] CCMenuItemSpriteExtra *v202; // [xsp+B8h] [xbp+B8h] void (__fastcall *v203)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+B8h] [xbp+B8h] cocos2d::CCLabelBMFont *v204; // [xsp+C0h] [xbp+C0h] cocos2d::CCSprite *v205; // [xsp+C0h] [xbp+C0h] CCMenuItemSpriteExtra *v206; // [xsp+C0h] [xbp+C0h] void (__fastcall *v207)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v208)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v209)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v210)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v211)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] void (__fastcall *setScale)(cocos2d::CCSprite *__hidden, float); // [xsp+C0h] [xbp+C0h] cocos2d::CCMenu *v213; // [xsp+C0h] [xbp+C0h] __int64 v214; // [xsp+C0h] [xbp+C0h] CCMenuItemSpriteExtra *v215; // [xsp+C0h] [xbp+C0h] void (__fastcall *v216)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] __int64 v217; // [xsp+C0h] [xbp+C0h] __int64 v218; // [xsp+C0h] [xbp+C0h] __int64 v219; // [xsp+C0h] [xbp+C0h] const cocos2d::CCPoint *v220; // [xsp+C0h] [xbp+C0h] cocos2d::CCSprite *v221; // [xsp+C0h] [xbp+C0h] CCMenuItemSpriteExtra *m_refreshBtn; // [xsp+C0h] [xbp+C0h] cocos2d::CCLabelBMFont *v223; // [xsp+C0h] [xbp+C0h] CCMenuItemSpriteExtra *v224; // [xsp+D0h] [xbp+D0h] _BOOL4 v225; // [xsp+DCh] [xbp+DCh] cocos2d::ccColor3B v226; // [xsp+E0h] [xbp+E0h] float v227; // [xsp+E8h] [xbp+E8h] float v228; // [xsp+ECh] [xbp+ECh] cocos2d::CCPoint v229; // [xsp+F0h] [xbp+F0h] BYREF cocos2d::CCPoint v230; // [xsp+F8h] [xbp+F8h] BYREF cocos2d::CCPoint v231; // [xsp+100h] [xbp+100h] BYREF cocos2d::CCRect v232; // [xsp+108h] [xbp+108h] BYREF cocos2d::CCRect v233; // [xsp+118h] [xbp+118h] BYREF cocos2d::CCPoint v234; // 0:kr10_8.8 cocos2d::CCPoint v235; // 0:kr18_8.8 cocos2d::CCPoint v236; // 0:kr20_8.8 cocos2d::CCPoint v237; // 0:kr30_8.8 cocos2d::SEL_MenuHandler v238; // 0:x2.16 cocos2d::SEL_MenuHandler v239; // 0:x2.16 cocos2d::SEL_MenuHandler v240; // 0:x2.16 cocos2d::SEL_MenuHandler v241; // 0:x2.16 cocos2d::SEL_MenuHandler v242; // 0:x2.16 cocos2d::SEL_MenuHandler v243; // 0:x2.16 cocos2d::SEL_MenuHandler v244; // 0:x2.16 cocos2d::SEL_MenuHandler v245; // 0:x2.16 cocos2d::SEL_MenuHandler v246; // 0:x2.16 cocos2d::SEL_MenuHandler v247; // 0:x2.16 cocos2d::SEL_MenuHandler v248; // 0:x2.16 cocos2d::SEL_MenuHandler v249; // 0:x2.16 cocos2d::SEL_MenuHandler v250; // 0:x2.16 cocos2d::SEL_MenuHandler v251; // 0:x2.16 cocos2d::SEL_MenuHandler v252; // 0:x2.16 cocos2d::CCRect v253; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 v233.origin.x = 0.0; v4 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&v233); if ( !v4 ) return v4; a1->m_editMode = 0; GameLevelManager::sharedState(); sub_D18D28(&v233); sub_D163D4(&a1->m_searchKey1, &v233); v6 = (void *)(*(_QWORD *)&v233.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v233.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v190 = (unsigned int *)(*(_QWORD *)&v233.origin - 8LL); do v191 = __ldaxr(v190); while ( __stlxr(v191 - 1, v190) ); } else { v191 = *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL) = v191 - 1; } if ( v191 <= 0 ) operator delete(v6); } a1->m_levelList = a2; cocos2d::CCObject::retain(a2); v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v7); a1->m_objects = v8; cocos2d::CCObject::retain(v8); v9 = GJSearchObject::create(25); v225 = a1->m_levelList->m_listType == Editor; if ( a1->m_levelList->m_listType != Editor ) { GameToolbox::intToString((__int64 *)&v233, (GameToolbox *)(unsigned int)a2->m_listID); sub_D18EA8(v9 + 320, &v233); origin = v233.origin; v11 = (void *)(*(_QWORD *)&v233.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v233.origin - 24LL) == &qword_124B6B0 ) goto LABEL_6; if ( &pthread_create ) { v196 = (unsigned int *)(*(_QWORD *)&v233.origin - 8LL); do v109 = __ldaxr(v196); while ( __stlxr(v109 - 1, v196) ); goto LABEL_26; } goto LABEL_100; } a1->m_listHeight = 200; a1->m_unkFloat = -9.0; *(_DWORD *)(v9 + 316) = 26; *(_DWORD *)(v9 + 372) = 31; sub_D18D28(&v233); sub_D18EA8(v9 + 320, &v233); v104 = (void *)(*(_QWORD *)&v233.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v233.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v197 = (unsigned int *)(*(_QWORD *)&v233.origin - 8LL); do v198 = __ldaxr(v197); while ( __stlxr(v198 - 1, v197) ); } else { v198 = *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL) = v198 - 1; } if ( v198 <= 0 ) operator delete(v104); } sub_D18D28(&v233); v105 = (void *)(*(_QWORD *)&v233.origin - 24LL); v106 = *(_QWORD *)(*(_QWORD *)&v233.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v233.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v180 = (unsigned int *)(*(_QWORD *)&v233.origin - 8LL); do v181 = __ldaxr(v180); while ( __stlxr(v181 - 1, v180) ); } else { v181 = *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL) = v181 - 1; } if ( v181 <= 0 ) operator delete(v105); } if ( v106 ) { m_levelList = a1->m_levelList; sub_D18D28(&v233); sub_D18EA8(&m_levelList->m_unkString, &v233); origin = v233.origin; v11 = (void *)(*(_QWORD *)&v233.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v233.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v108 = (unsigned int *)(*(_QWORD *)&v233.origin - 8LL); do v109 = __ldaxr(v108); while ( __stlxr(v109 - 1, v108) ); LABEL_26: if ( v109 <= 0 ) operator delete(v11); goto LABEL_6; } LABEL_100: v109 = *(_DWORD *)(*(_QWORD *)&origin - 8LL); *(_DWORD *)(*(_QWORD *)&origin - 8LL) = v109 - 1; goto LABEL_26; } } LABEL_6: LevelBrowserLayer::setSearchObject(a1, (GJSearchObject *)v9); v12 = GameLevelManager::sharedState(); v13 = a1->LevelBrowserLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v12->m_searchType = *(_DWORD *)(v9 + 316); v13->setKeypadEnabled(a1, 1); a1->setKeyboardEnabled(a1, 1); v14 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v14); v16 = (cocos2d::CCNode *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v15); setAnchorPoint = v16->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v233.origin, 0.0, 0.0); setAnchorPoint(v16, &v233.origin); a1->addChild_0(a1, v16, -2); v16->setScaleX(v16, (float)(v227 + 10.0) / v16[1].m_obContentSize.height); v16->setScaleY(v16, (float)(v228 + 10.0) / v16[1].m_sAdditionalTransform.a); setPosition = v16->setPosition; cocos2d::CCPoint::CCPoint(&v233.origin, -5.0, -5.0); setPosition(v16, &v233.origin); getTag = v16->__vftable[1].getTag; LOWORD(v233.origin.x) = 26112; BYTE2(v233.origin.x) = -1; ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCRect *))getTag)(v16, &v233); v20 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v21 = v20->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v233.origin, 0.0, 0.0); v21(v20, &v233.origin); v22 = v20->setPosition; v23 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v23); v25 = v24; v26 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v26); cocos2d::CCPoint::CCPoint(&v233.origin, v25 - 1.0, v27 - 1.0); v22(v20, &v233.origin); a1->addChild_0(a1, v20, 1); v28 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v29 = v28->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v233.origin, 1.0, 0.0); v29(v28, &v233.origin); v30 = v28->setPosition; v31 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v31); v33 = v32; v34 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v34); cocos2d::CCPoint::CCPoint(&v233.origin, v33 + 1.0, v35 - 1.0); v30(v28, &v233.origin); cocos2d::CCSprite::setFlipX(v28, 1); a1->addChild_0(a1, v28, 1); v36 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v238.adj = 1312; v238.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v224 = CCMenuItemSpriteExtra::create(v36, nullptr, v238); CCMenuItemSpriteExtra::setSizeMult(v224, 1.6); v37 = (cocos2d::CCMenu *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v224, nullptr); a1->m_buttonMenu = v37; a1->addChild_0(a1, v37, 1); m_buttonMenu = a1->m_buttonMenu; v39 = m_buttonMenu->setPosition; v40 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v40); v42 = v41; v43 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v43); cocos2d::CCPoint::CCPoint(&v233.origin, v42 + 24.0, v44 - 23.0); v39(m_buttonMenu, &v233.origin); GJLevelList::frameForListDifficulty(a1->m_levelList->m_difficulty, 2, (__int64)&v233); a1->m_diffSprite = cocos2d::CCSprite::createWithSpriteFrameName(*(const char **)&v233.origin); v45 = (void *)(*(_QWORD *)&v233.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v233.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v186 = (unsigned int *)(*(_QWORD *)&v233.origin - 8LL); do v187 = __ldaxr(v186); while ( __stlxr(v187 - 1, v186) ); } else { v187 = *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL) = v187 - 1; } if ( v187 <= 0 ) operator delete(v45); } a1->m_featureSprite = cocos2d::CCSprite::createWithSpriteFrameName("GJ_featuredCoin_001.png"); if ( v225 ) { cocos2d::CCRect::CCRect(&v232, 0.0, 0.0, 80.0, 80.0); v46 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v46); cocos2d::CCPoint::CCPoint(&v230, v227 * 0.5, v47 - 30.0); cocos2d::CCRect::CCRect(&v233, &v232); v48 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02b_001.png", (const char *)&v233, v253); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v48->__vftable[1].~CCNode_0)(v48, 0xFFFFFFFFLL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v231, 365.0, 40.0); v48->setContentSize(v48, (const cocos2d::CCSize *)&v231); a1->addChild_0(a1, v48, -1); v48->setPosition(v48, &v230); v49 = v48->__vftable[1].getTag; LOWORD(v233.origin.x) = 14336; BYTE2(v233.origin.x) = -115; ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCRect *))v49)(v48, &v233); v50 = a1->m_levelList; if ( v50->m_listVersion > 1 || v50->m_uploaded ) { sub_D18D28(&v233); v51 = cocos2d::CCLabelBMFont::create(); v52 = (void *)(*(_QWORD *)&v233.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v233.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v182 = (unsigned int *)(*(_QWORD *)&v233.origin - 8LL); do v183 = __ldaxr(v182); while ( __stlxr(v183 - 1, v182) ); } else { v183 = *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL) = v183 - 1; } if ( v183 <= 0 ) { v223 = v51; operator delete(v52); v51 = v223; } } v204 = v51; a1->addChild_0(a1, v51, 20); v204->setPosition(v204, &v230); goto LABEL_11; } v172 = CCTextInputNode::create(300.0, 50.0, "List Name", "Thonburi"); a1->m_titleInput = v172; a1->addChild_0(a1, v172, 18); a1->m_titleInput->m_delegate = &a1->TextInputDelegate; a1->m_titleInput->setTag(a1->m_titleInput, 1002); a1->m_titleInput->setPosition(a1->m_titleInput, &v230); m_titleInput = a1->m_titleInput; m_titleInput->m_maxLabelLength = 25; m_titleInput->m_filterSwearWords = 1; sub_D18D28(&v233); v174 = (void *)(*(_QWORD *)&v233.origin - 24LL); v175 = *(_QWORD *)(*(_QWORD *)&v233.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v233.origin - 24LL) == &qword_124B6B0 ) goto LABEL_38; if ( &pthread_create ) { v184 = (unsigned int *)(*(_QWORD *)&v233.origin - 8LL); do v185 = __ldaxr(v184); while ( __stlxr(v185 - 1, v184) ); } else { v185 = *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL) = v185 - 1; } if ( v185 > 0 ) { LABEL_38: if ( v175 ) { LABEL_39: v176 = a1->m_titleInput; sub_D18D28(&v233); CCTextInputNode::setString(v176, (const unsigned __int8 **)&v233); v177 = (void *)(*(_QWORD *)&v233.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v233.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v178 = (unsigned int *)(*(_QWORD *)&v233.origin - 8LL); do v179 = __ldaxr(v178); while ( __stlxr(v179 - 1, v178) ); } else { v179 = *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL) = v179 - 1; } if ( v179 <= 0 ) operator delete(v177); } } } else { operator delete(v174); if ( v175 ) goto LABEL_39; } *(_WORD *)&v226.r = -21896; v226.b = -16; CCTextInputNode::setLabelPlaceholderColor(a1->m_titleInput, v226); CCTextInputNode::setLabelPlaceholderScale(a1->m_titleInput, 0.7); LABEL_11: a1->m_unk2 = (unsigned __int8)&dword_0 + 1; v53 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v53); v55 = v54; v56 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v56); cocos2d::CCPoint::CCPoint(&v229, v55 - 25.0, v57 - 25.0); cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v229); v205 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteBtn_001.png"); ((void (__fastcall *)(float))v205->setScale)(0.8); v239.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v239.adj = (size_t)LevelListLayer::confirmDelete; v206 = CCMenuItemSpriteExtra::create(v205, nullptr, v239); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v206); v58 = v206->setPosition; v234 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v229); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v58)(v206, &v233, v234.x, v234.y); v59 = (__int64)v206->getPosition(v206); cocos2d::CCPoint::CCPoint(&v232.origin, 0.0, -41.0); cocos2d::CCPoint::operator+(&v233, v59, &v232); cocos2d::CCPoint::operator=(&v230, v60, v61); v62 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); v62->setScale(v62, 0.8); v240.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v240.adj = (size_t)LevelBrowserLayer::onRefresh; v63 = CCMenuItemSpriteExtra::create(v62, nullptr, v240); v64 = a1->m_buttonMenu; a1->m_refreshBtn = v63; v64->addChild(v64, v63); a1->m_refreshBtn->setPosition(a1->m_refreshBtn, &v230); v65 = a1->m_refreshBtn->getPosition(a1->m_refreshBtn); cocos2d::CCPoint::CCPoint(&v231, v65); v66 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_chatBtn_001.png"); v66->setScale(v66, 0.8); v241.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v241.adj = (size_t)LevelListLayer::onDescription; v67 = CCMenuItemSpriteExtra::create(v66, nullptr, v241); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v67); v207 = v67->setPosition; cocos2d::CCPoint::CCPoint(&v232.origin, 0.0, -41.0); cocos2d::CCPoint::operator+(&v233, &v231, &v232); v207(v67, &v233.origin); v68 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))v67->getPosition)(v67); cocos2d::CCPoint::operator=(&v231, v68, v69); v70 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_editModeBtn_001.png"); v70->setScale(v70, 0.8); v242.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v242.adj = (size_t)LevelListLayer::onToggleEditMode; v71 = CCMenuItemSpriteExtra::create(v70, nullptr, v242); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v71); v208 = v71->setPosition; cocos2d::CCPoint::CCPoint(&v232.origin, 0.0, -41.0); cocos2d::CCPoint::operator+(&v233, &v231, &v232); v208(v71, &v233.origin); v72 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))v71->getPosition)(v71); cocos2d::CCPoint::operator=(&v231, v72, v73); v74 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plainBtn_001.png"); v74->addChild_0(v74, a1->m_diffSprite, 3); v74->addChild_0(v74, a1->m_featureSprite, 2); m_diffSprite = a1->m_diffSprite; v200 = m_diffSprite->setPosition; *(float *)&v208 = v74->getContentSize(v74)->width * 0.5; v75 = (__int64)v74->getContentSize(v74); cocos2d::CCPoint::CCPoint(&v233.origin, *(float *)&v208, *(float *)(v75 + 4) * 0.5); v200(m_diffSprite, &v233.origin); m_featureSprite = a1->m_featureSprite; v209 = m_featureSprite->setPosition; v76 = a1->m_diffSprite->getPosition(a1->m_diffSprite); v209(m_featureSprite, v76); v74->setScale(v74, 0.8); v243.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v243.adj = (size_t)LevelListLayer::onSelectIcon; v77 = CCMenuItemSpriteExtra::create(v74, nullptr, v243); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v77); v210 = v77->setPosition; cocos2d::CCPoint::CCPoint(&v232.origin, 0.0, -41.0); cocos2d::CCPoint::operator+(&v233, &v231, &v232); v210(v77, &v233.origin); v78 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))v77->getPosition)(v77); cocos2d::CCPoint::operator=(&v231, v78, v79); v80 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_duplicateBtn_001.png"); v80->setScale(v80, 0.8); v244.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v244.adj = (size_t)LevelListLayer::confirmClone; v81 = CCMenuItemSpriteExtra::create(v80, nullptr, v244); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v81); v211 = v81->setPosition; cocos2d::CCPoint::CCPoint(&v232.origin, 0.0, -41.0); cocos2d::CCPoint::operator+(&v233, &v231, &v232); v211(v81, &v233.origin); v82 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))v81->getPosition)(v81); cocos2d::CCPoint::operator=(&v231, v82, v83); v84 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_shareBtn_001.png"); setScale = v84->setScale; width = v62->getContentSize(v62)->width; v86 = width * v62->getScale(v62); v87 = (float *)v84->getContentSize(v84); setScale(v84, v86 / *v87); v245.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v88 = v84; v245.adj = (size_t)LevelListLayer::onShare; goto LABEL_12; } sub_D18D28(&v233); v110 = cocos2d::CCLabelBMFont::create(); v111 = (void *)(*(_QWORD *)&v233.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v233.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v194 = (unsigned int *)(*(_QWORD *)&v233.origin - 8LL); do v195 = __ldaxr(v194); while ( __stlxr(v195 - 1, v194) ); } else { v195 = *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL) = v195 - 1; } if ( v195 <= 0 ) operator delete(v111); } a1->addChild_0(a1, v110, 20); v112 = v110->setPosition; v113 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v113); cocos2d::CCPoint::CCPoint(&v233.origin, v227 * 0.5, v114 - 20.0); v112(v110, &v233.origin); cocos2d::CCLabelBMFont::limitLabelWidth(v110, 240.0, 0.8, 0.0); sub_D18D28(&v233); v115 = cocos2d::CCLabelBMFont::create(); v116 = (void *)(*(_QWORD *)&v233.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v233.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v192 = (unsigned int *)(*(_QWORD *)&v233.origin - 8LL); do v193 = __ldaxr(v192); while ( __stlxr(v193 - 1, v192) ); } else { v193 = *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL) = v193 - 1; } if ( v193 <= 0 ) operator delete(v116); } cocos2d::CCLabelBMFont::limitLabelWidth(v115, 90.0, 0.8, 0.0); v214 = (__int64)v110->getPosition(v110); v117 = v110->getContentSize(v110)->width; v118 = v110->getScale(v110); v119 = v115->getContentSize(v115)->width; v120 = v115->getScale(v115); cocos2d::CCPoint::CCPoint( &v233.origin, (float)((float)((float)(v119 * 0.5) * v120) + (float)((float)(v117 * 0.5) * v118)) + 10.0, 0.0); cocos2d::CCPoint::operator+(&v231, v214, &v233); v247.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v247.adj = (size_t)LevelListLayer::onViewProfile; v215 = CCMenuItemSpriteExtra::create(v115, nullptr, v247); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v215); v202 = v215; v216 = v215->setPosition; v236 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v231); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v216)(v202, &v233, v236.x, v236.y); a1->m_diffSprite->setScale(a1->m_diffSprite, 0.8); a1->m_featureSprite->setScale(a1->m_featureSprite, 0.8); v121 = a1->m_diffSprite->getContentSize(a1->m_diffSprite)->width; v122 = v121 * a1->m_diffSprite->getScale(a1->m_diffSprite); v123 = v110->getContentSize(v110)->width; v124 = v110->getScale(v110); v125 = v115->getContentSize(v115)->width; LODWORD(v216) = v115->getScale(v115); v126 = v110->getContentSize(v110)->width; v127 = v110->getScale(v110); v128 = v110->setPosition; v129 = (float)((float)((float)((float)((float)(v125 * *(float *)&v216) + (float)(v123 * v124)) + 10.0) - v122) - 10.0) - (float)(v126 * v127); v217 = (__int64)v110->getPosition(v110); v130 = (float)-v129 * 0.5; cocos2d::CCPoint::CCPoint(&v232.origin, v130, 0.0); cocos2d::CCPoint::operator+(&v233, v217, &v232); v128(v110, &v233.origin); v131 = v202->setPosition; v218 = (__int64)v202->getPosition(v202); cocos2d::CCPoint::CCPoint(&v232.origin, v130, 0.0); cocos2d::CCPoint::operator+(&v233, v218, &v232); v131(v202, &v233.origin); a1->addChild_0(a1, a1->m_diffSprite, 2); a1->addChild_0(a1, a1->m_featureSprite, 1); v132 = a1->m_diffSprite; v203 = v132->setPosition; v219 = (__int64)v110->getPosition(v110); v133 = v110->getContentSize(v110)->width; v134 = v110->getScale(v110); cocos2d::CCPoint::CCPoint( &v232.origin, (float)-(float)((float)(v122 * 0.5) + (float)((float)(v133 * v134) * 0.5)) - 10.0, -1.0); cocos2d::CCPoint::operator+(&v233, v219, &v232); v203(v132, &v233.origin); v135 = a1->m_featureSprite; v136 = v135->setPosition; v220 = a1->m_diffSprite->getPosition(a1->m_diffSprite); v137 = a1->m_diffSprite->getScale(a1->m_diffSprite); cocos2d::CCPoint::CCPoint(&v232.origin, 0.0, v137 * -6.0); cocos2d::CCPoint::operator+(&v233, v220, &v232); v136(v135, &v233.origin); a1->m_unk2 = (unsigned __int8)&dword_0 + 1; v138 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v138); v140 = v139; v141 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v141); cocos2d::CCPoint::CCPoint(&v229, v140 - 25.0, v142 - 25.0); cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v229); v221 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); ((void (__fastcall *)(float))v221->setScale)(0.8); v248.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v248.adj = (size_t)LevelListLayer::onRefreshLevelList; v143 = CCMenuItemSpriteExtra::create(v221, nullptr, v248); v144 = a1->m_buttonMenu; a1->m_refreshBtn = v143; v144->addChild(v144, v143); m_refreshBtn = a1->m_refreshBtn; v145 = m_refreshBtn->setPosition; v237 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v229); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v145)( m_refreshBtn, &v233, v237.x, v237.y); v146 = a1->m_refreshBtn->getPosition(a1->m_refreshBtn); cocos2d::CCPoint::CCPoint(&v232.origin, 0.0, -41.0); cocos2d::CCPoint::operator+(&v233, v146, &v232); cocos2d::CCPoint::operator=(&v230, v147, v148); v149 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoBtn_001.png"); v149->setScale(v149, 0.8); v249.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v249.adj = (size_t)LevelListLayer::onInfo; v150 = CCMenuItemSpriteExtra::create(v149, nullptr, v249); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v150); v150->setPosition(v150, &v230); v151 = v150->getPosition(v150); cocos2d::CCPoint::CCPoint(&v231, v151); v152 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_like2Btn_001.png"); v152->setScale(v152, 0.8); v250.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v250.adj = (size_t)LevelListLayer::onLike; v153 = CCMenuItemSpriteExtra::create(v152, nullptr, v250); v154 = a1->m_buttonMenu; a1->m_likeButton = v153; v154->addChild(v154, v153); m_likeButton = a1->m_likeButton; v156 = m_likeButton->setPosition; cocos2d::CCPoint::CCPoint(&v232.origin, 0.0, -41.0); cocos2d::CCPoint::operator+(&v233, &v231, &v232); v156(m_likeButton, &v233.origin); v157 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_likeButton->getPosition)(a1->m_likeButton); cocos2d::CCPoint::operator=(&v231, v157, v158); v159 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_duplicateBtn_001.png"); v159->setScale(v159, 0.8); v251.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v251.adj = (size_t)LevelListLayer::confirmClone; v160 = CCMenuItemSpriteExtra::create(v159, nullptr, v251); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v160); v161 = v160->setPosition; cocos2d::CCPoint::CCPoint(&v232.origin, 0.0, -41.0); cocos2d::CCPoint::operator+(&v233, &v231, &v232); v161(v160, &v233.origin); v162 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))v160->getPosition)(v160); cocos2d::CCPoint::operator=(&v231, v162, v163); if ( a1->m_levelList->m_favorite ) v164 = "gj_heartOn_001.png"; else v164 = "gj_heartOff_001.png"; v165 = cocos2d::CCSprite::createWithSpriteFrameName(v164); v252.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v252.adj = (size_t)LevelListLayer::onFavorite; v166 = CCMenuItemSpriteExtra::create(v165, nullptr, v252); CCMenuItemSpriteExtra::setSizeMult(v166, 1.1); a1->m_buttonMenu->addChild_0(a1->m_buttonMenu, v166, 100); v167 = v166->setPosition; cocos2d::CCPoint::CCPoint(&v232.origin, 0.0, -41.0); cocos2d::CCPoint::operator+(&v233, &v231, &v232); v167(v166, &v233.origin); v168 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))v166->getPosition)(v166); cocos2d::CCPoint::operator=(&v231, v168, v169); LODWORD(v166) = a1->m_levelList->m_accountID; v170 = GJAccountManager::sharedState(); if ( v170->m_accountID - v170->m_unkInt1 != (_DWORD)v166 ) goto LABEL_13; v171 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteServerBtn_001.png"); v171->setScale(v171, 0.8); v245.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v88 = v171; v245.adj = (size_t)LevelListLayer::confirmOwnerDelete; LABEL_12: v90 = CCMenuItemSpriteExtra::create(v88, nullptr, v245); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v90); v91 = v90->setPosition; cocos2d::CCPoint::CCPoint(&v232.origin, 0.0, -41.0); cocos2d::CCPoint::operator+(&v233, &v231, &v232); v91(v90, &v233.origin); v92 = ((float (__fastcall *)(CCMenuItemSpriteExtra *))v90->getPosition)(v90); cocos2d::CCPoint::operator=(&v231, v92, v93); LABEL_13: v94 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v246.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v246.adj = (size_t)LevelListLayer::onListInfo; v95 = CCMenuItemSpriteExtra::create(v94, nullptr, v246); CCMenuItemSpriteExtra::setSizeMult(v95, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v95); v213 = a1->m_buttonMenu; v96 = v95->setPosition; cocos2d::CCPoint::CCPoint(&v232.origin, 30.0, 30.0); v235 = cocos2d::CCNode::convertToNodeSpace(v213, &v232.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v96)(v95, &v233, v235.x, v235.y); v97 = LoadingCircle::create(); a1->m_circle = v97; v97->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); sub_D153B8((int)&v233, "No Internet connection!"); cocos2d::CCPoint::CCPoint(&v232.origin, 0.5, 1.0); v99 = (TextArea *)TextArea::create((__int64)&v233, "bigFont.fnt", &v232.origin, 0, 1.0, 600.0, 20.0); a1->m_noInternet = v99; m_noInternet = v99; v101 = (void *)(*(_QWORD *)&v233.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v233.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v188 = (unsigned int *)(*(_QWORD *)&v233.origin - 8LL); do v189 = __ldaxr(v188); while ( __stlxr(v189 - 1, v188) ); } else { v189 = *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v233.origin - 8LL) = v189 - 1; } if ( v189 <= 0 ) operator delete(v101); m_noInternet = a1->m_noInternet; } v102 = m_noInternet->setPosition; cocos2d::CCPoint::CCPoint(&v233.origin, v227 * 0.5, (float)(v228 * 0.5) + 10.0); v102(m_noInternet, &v233.origin); a1->m_noInternet->setScale(a1->m_noInternet, 0.6); a1->addChild_0(a1, a1->m_noInternet, 2); a1->m_noInternet->setVisible(a1->m_noInternet, 0); if ( PlatformToolbox::isControllerConnected() ) GameToolbox::addBackButton(a1, v224); LevelListLayer::updateSideButtons(a1); LevelListLayer::updateStatsArt(a1); if ( v225 || (v103 = a1->m_levelList, v103->m_onlineLevelsLoaded) ) { a1->m_cached = 1; LevelBrowserLayer::setupLevelBrowser(a1, nullptr); } else { *(_DWORD *)(v9 + 372) = 1; v103->m_onlineLevelsLoaded = 1; LevelBrowserLayer::loadPage(a1, (GJSearchObject *)v9); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source