// // LevelBrowserLayer::init from 0x100414284 to 0x100415b14 (6288 bytes) // // 1 xrefs: // > LevelBrowserLayer::create @ 0x100414238 // // 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 __fastcall LevelBrowserLayer::init(LevelBrowserLayer *a1, GJSearchObject *a2) { _BOOL4 m_searchIsOverlay; // w8 bool *p_m_isOverlay; // x21 cocos2d::CCDirector *v6; // x0 cocos2d::CCTouchDispatcher *v7; // x0 int v8; // w8 _BOOL4 v9; // w0 bool m_isOverlay; // w8 cocos2d::CCDirector *v11; // x0 char *v12; // x22 cocos2d::CCSprite *v13; // x23 __n128 v14; // q0 __n128 v15; // q1 __n128 v16; // q0 __n128 v17; // q1 cocos2d::CCSprite *v18; // x24 __n128 v19; // q0 __n128 v20; // q1 cocos2d::CCDirector *v21; // x0 float v22; // s8 cocos2d::CCDirector *v23; // x0 __n128 v24; // q1 __n128 v25; // q0 cocos2d::CCSprite *v26; // x23 __n128 v27; // q0 __n128 v28; // q1 cocos2d::CCDirector *v29; // x0 float v30; // s8 cocos2d::CCDirector *v31; // x0 __n128 v32; // q1 __n128 v33; // q0 void **v34; // x0 cocos2d::CCSprite *v35; // x0 cocos2d::CCNode *v36; // x22 CCMenuItemSpriteExtra *v37; // x22 __int64 v38; // x1 __int64 v39; // x2 __int64 v40; // x3 __int64 v41; // x4 __int64 v42; // x5 __int64 v43; // x6 __int64 v44; // x7 cocos2d::CCMenu *v45; // x23 cocos2d::CCDirector *v46; // x0 float v47; // s8 cocos2d::CCDirector *v48; // x0 __n128 v49; // q1 __n128 v50; // q0 _BOOL4 isControllerConnected; // w23 cocos2d::CCMenu *v52; // x24 float v53; // s8 float v54; // s11 const char *v55; // x0 cocos2d::CCSprite *v56; // x0 CCMenuItemSpriteExtra *v57; // x0 CCMenuItemSpriteExtra *m_leftArrow; // x25 cocos2d::CCDirector *v59; // x0 float v60; // s9 __n128 v61; // q0 __n128 v62; // q1 const char *v63; // x0 cocos2d::CCSprite *v64; // x0 cocos2d::CCNode *v65; // x25 CCMenuItemSpriteExtra *v66; // x0 CCMenuItemSpriteExtra *m_rightArrow; // x25 cocos2d::CCDirector *v68; // x0 __n128 v69; // q0 __n128 v70; // q1 cocos2d::CCSprite *v71; // x25 cocos2d::CCLabelBMFont *m_pageText; // x26 float v73; // s8 __int64 v74; // x0 __n128 v75; // q0 __n128 v76; // q1 CCMenuItemSpriteExtra *v77; // x0 CCMenuItemSpriteExtra *m_pageBtn; // x25 cocos2d::CCDirector *v79; // x0 __n128 v80; // q0 float v81; // s9 __n128 v82; // q1 LoadingCircle *v83; // x0 cocos2d::CCLabelBMFont *m_countText; // x25 cocos2d::CCDirector *v85; // x0 float v86; // s10 float v87; // s12 cocos2d::CCDirector *v88; // x0 __n128 v89; // q1 __n128 v90; // q0 __n128 v91; // q0 cocos2d::CCLabelBMFont *v92; // x25 __n128 v93; // q1 __n128 v94; // q0 __n128 v95; // q1 TextArea *m_noInternet; // x25 __n128 v97; // q0 __n128 v98; // q1 GJSearchObject *m_searchObject; // x9 int m_searchType; // w8 cocos2d::CCSprite *v101; // x25 __n128 v102; // q0 __n128 v103; // q1 cocos2d::CCSprite *v104; // x25 __n128 v105; // q0 __n128 v106; // q1 cocos2d::CCSprite *v107; // x25 __n128 v108; // q0 __n128 v109; // q1 cocos2d::CCSprite *v110; // x25 __n128 v111; // q0 __n128 v112; // q1 cocos2d::CCSprite *v113; // x25 __n128 v114; // q0 __n128 v115; // q1 GJSearchObject *v116; // x8 cocos2d::CCMenu *v117; // x25 cocos2d::CCSprite *v118; // x0 ButtonSprite *v119; // x26 CCMenuItemSpriteExtra *v120; // x26 __n128 v121; // q0 __n128 v122; // q1 cocos2d::CCSprite *v123; // x27 cocos2d::CCSprite *v124; // x28 CCMenuItemToggler *m_allObjectsToggler; // x25 float32x2_t *v126; // x26 __n128 v127; // q0 __n128 v128; // q1 double v129; // d0 cocos2d::CCLabelBMFont *v130; // x25 __n128 v131; // q0 __n128 v132; // q1 double v133; // d0 unsigned int v134; // w8 char v135; // w9 _BOOL4 v136; // w28 cocos2d::CCMenu *v137; // x25 cocos2d::CCSprite *v138; // x27 CCMenuItemSpriteExtra *v139; // x26 __n128 v140; // q0 __n128 v141; // q1 float v142; // s12 cocos2d::CCDirector *v143; // x0 float v144; // s10 cocos2d::CCDirector *v145; // x0 float v146; // s12 __n128 v147; // q1 __n128 v148; // q0 GameManager *v149; // x0 GJAccountManager *v150; // x0 cocos2d::CCSprite *v151; // x0 CCMenuItemSpriteExtra *v152; // x27 cocos2d::CCDirector *v153; // x0 float v154; // s10 cocos2d::CCDirector *v155; // x0 __n128 v156; // q1 __n128 v157; // q0 const char *v158; // x0 cocos2d::CCSprite *v159; // x27 CCMenuItemSpriteExtra *v160; // x27 float32x2_t *v161; // x25 __n128 v162; // q1 __n128 v163; // q0 double v164; // d0 cocos2d::CCMenu *v165; // x25 cocos2d::CCSprite *v166; // x26 float width; // s12 cocos2d::CCDirector *v168; // x0 float v169; // s10 cocos2d::CCDirector *v170; // x0 float v171; // s0 float v172; // s1 float v173; // s2 __n128 v174; // q1 __n128 v175; // q0 char v176; // w21 cocos2d::CCMenu *v177; // x25 cocos2d::CCSprite *v178; // x0 CCMenuItemSpriteExtra *v179; // x26 cocos2d::CCDirector *v180; // x0 float v181; // s10 cocos2d::CCDirector *v182; // x0 __n128 v183; // q1 __n128 v184; // q0 cocos2d::CCSprite *v185; // x25 cocos2d::CCLabelBMFont *m_folderText; // x26 float v187; // s10 __int64 v188; // x0 __n128 v189; // q0 __n128 v190; // q1 CCMenuItemSpriteExtra *v191; // x0 CCMenuItemSpriteExtra *m_folderBtn; // x25 float32x2_t *v193; // x26 __n128 v194; // q1 __n128 v195; // q0 double v196; // d0 cocos2d::CCSprite *v197; // x25 cocos2d::CCSprite *v198; // x26 __n128 v199; // q0 __n128 v200; // q1 double v201; // d0 CCMenuItemSpriteExtra *v202; // x0 CCMenuItemSpriteExtra *m_lastBtn; // x25 float32x2_t *v204; // x26 __n128 v205; // q1 __n128 v206; // q0 double v207; // d0 cocos2d::CCSprite *v208; // x0 CCMenuItemSpriteExtra *v209; // x25 AppDelegate *v210; // x0 __n128 v211; // q1 __n128 v212; // q0 cocos2d::CCSprite *v213; // x0 CCMenuItemSpriteExtra *v214; // x0 CCMenuItemSpriteExtra *m_cancelSearchBtn; // x24 float32x2_t *v216; // x25 __n128 v217; // q1 __n128 v218; // q0 double v219; // d0 cocos2d::CCMenu *v220; // x25 cocos2d::CCSprite *v221; // x0 cocos2d::CCSprite *v222; // x27 CCMenuItemSpriteExtra *v223; // x26 float v224; // s12 cocos2d::CCDirector *v225; // x0 float v226; // s10 cocos2d::CCDirector *v227; // x0 float v228; // s12 __n128 v229; // q1 __n128 v230; // q0 const char *v231; // x0 cocos2d::CCSprite *v232; // x27 CCMenuItemSpriteExtra *v233; // x27 float32x2_t *v234; // x26 __n128 v235; // q1 __n128 v236; // q0 double v237; // d0 const char *v238; // x0 cocos2d::CCSprite *v239; // x0 CCMenuItemSpriteExtra *v240; // x26 float v241; // s10 cocos2d::CCDirector *v242; // x0 __n128 v243; // q1 __n128 v244; // q0 bool v246; // [xsp+Ch] [xbp-D4h] float32x2_t v247; // [xsp+10h] [xbp-D0h] BYREF void *__p[2]; // [xsp+18h] [xbp-C8h] BYREF char v249; // [xsp+2Fh] [xbp-B1h] float32x2_t v250; // [xsp+30h] [xbp-B0h] BYREF float32x2_t v251; // [xsp+38h] [xbp-A8h] BYREF void *v252[2]; // [xsp+40h] [xbp-A0h] BYREF char v253; // [xsp+57h] [xbp-89h] float v254; // [xsp+58h] [xbp-88h] float v255; // [xsp+5Ch] [xbp-84h] cocos2d::CCPoint v256; // 0:kr08_8.8 cocos2d::CCPoint v257; // 0:kr10_8.8 cocos2d::CCPoint v258; // 0:kr18_8.8 cocos2d::CCPoint v259; // 0:kr20_8.8 cocos2d::CCPoint v260; // 0:kr28_8.8 cocos2d::CCPoint v261; // 0:kr38_8.8 cocos2d::CCPoint v262; // 0:kr40_8.8 cocos2d::SEL_MenuHandler v263; // 0:x3.16 cocos2d::SEL_MenuHandler v264; // 0:x3.16 cocos2d::SEL_MenuHandler v265; // 0:x3.16 cocos2d::SEL_MenuHandler v266; // 0:x3.16 cocos2d::SEL_MenuHandler v267; // 0:x3.16 cocos2d::SEL_MenuHandler v268; // 0:x3.16 cocos2d::SEL_MenuHandler v269; // 0:x3.16 cocos2d::SEL_MenuHandler v270; // 0:x3.16 cocos2d::SEL_MenuHandler v271; // 0:x3.16 cocos2d::SEL_MenuHandler v272; // 0:x3.16 cocos2d::SEL_MenuHandler v273; // 0:x3.16 cocos2d::SEL_MenuHandler v274; // 0:x3.16 cocos2d::SEL_MenuHandler v275; // 0:x3.16 cocos2d::SEL_MenuHandler v276; // 0:x3.16 cocos2d::SEL_MenuHandler v277; // 0:x3.16 cocos2d::SEL_MenuHandler v278; // 0:x3.16 cocos2d::SEL_MenuHandler v279; // 0:x3.16 cocos2d::SEL_MenuHandler v280; // 0:x3.16 if ( a2 ) { m_searchIsOverlay = a2->m_searchIsOverlay; p_m_isOverlay = &a1->m_isOverlay; a1->m_isOverlay = m_searchIsOverlay; if ( m_searchIsOverlay ) { v6 = cocos2d::CCDirector::sharedDirector(); v7 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v6->getTouchDispatcher)(v6); cocos2d::CCTouchDispatcher::registerForcePrio(v7, a1, 2); if ( a1->m_isOverlay ) v8 = -1778384896; else v8 = 0; } else { v8 = 0; } } else { v8 = 0; p_m_isOverlay = &a1->m_isOverlay; a1->m_isOverlay = 0; } LODWORD(v252[0]) = v8; v9 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)v252); if ( !v9 ) return v9; v246 = v9; LevelBrowserLayer::setSearchObject(a1, a2); m_isOverlay = a1->m_isOverlay; if ( a2 && !a1->m_isOverlay ) { GameLevelManager::sharedState()->m_searchType = a2->m_searchType; m_isOverlay = *p_m_isOverlay; } if ( m_isOverlay ) ((void (__fastcall *)(LevelBrowserLayer *, __int64))a1->setTouchEnabled)(a1, 1); ((void (__fastcall *)(LevelBrowserLayer *, __int64))a1->setKeypadEnabled)(a1, 1); ((void (__fastcall *)(LevelBrowserLayer *, __int64))a1->setKeyboardEnabled)(a1, 1); v11 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v11); v12 = "GJ_closeBtn_001.png"; if ( !a1->m_isOverlay ) { v13 = cocos2d::CCSprite::create("GJ_gradientBG.png"); v14.n128_u32[0] = 0; v15.n128_u32[0] = 0; sub_100022980(v14, v15, v252); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v13->setAnchorPoint)(v13, v252); ((void (__fastcall *)(LevelBrowserLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v13, 4294967294LL); ((void (__fastcall *)(cocos2d::CCSprite *, float))v13->setScaleX)( v13, (float)(v254 + 10.0) / v13->m_obRect.size.width); v16 = ((__n128 (__fastcall *)(cocos2d::CCSprite *, float))v13->setScaleY)( v13, (float)(v255 + 10.0) / v13->m_obRect.size.height); v16.n128_u32[0] = -5.0; v17.n128_u32[0] = -5.0; sub_100022980(v16, v17, v252); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v13->setPosition)(v13, v252); BYTE2(v252[0]) = -1; LOWORD(v252[0]) = 26112; ((void (__fastcall *)(cocos2d::CCSprite *, void **))v13->setColor)(v13, v252); v18 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v19.n128_u32[0] = 0; v20.n128_u32[0] = 0; sub_100022980(v19, v20, v252); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v18->setAnchorPoint)(v18, v252); v21 = cocos2d::CCDirector::sharedDirector(); v22 = sub_1001768D8((__int64)v21) + -1.0; v23 = cocos2d::CCDirector::sharedDirector(); v24.n128_f32[0] = sub_1001768D0((__int64)v23) + -1.0; v25.n128_f32[0] = v22; sub_100022980(v25, v24, v252); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v18->setPosition)(v18, v252); ((void (__fastcall *)(LevelBrowserLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v18, 1); v26 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v27.n128_u32[0] = 1.0; v28.n128_u32[0] = 0; sub_100022980(v27, v28, v252); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v26->setAnchorPoint)(v26, v252); v29 = cocos2d::CCDirector::sharedDirector(); v30 = sub_1001768E0((__int64)v29) + 1.0; v31 = cocos2d::CCDirector::sharedDirector(); v32.n128_f32[0] = sub_1001768D0((__int64)v31) + -1.0; v33.n128_f32[0] = v30; sub_100022980(v33, v32, v252); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v26->setPosition)(v26, v252); cocos2d::CCSprite::setFlipX(v26, 1); ((void (__fastcall *)(LevelBrowserLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v26, 1); if ( !a1->m_isOverlay ) v12 = "GJ_arrow_01_001.png"; } sub_100009900(v252, v12); if ( v253 >= 0 ) v34 = v252; else v34 = (void **)v252[0]; v35 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v34); v36 = v35; if ( *p_m_isOverlay ) ((void (__fastcall *)(cocos2d::CCSprite *, float))v35->setScale)(v35, 0.9); v263.ptr = (void (__cdecl *)(cocos2d::CCObject *))1312; v263.adj = 1; v37 = CCMenuItemSpriteExtra::create(v36, nullptr, a1, v263); CCMenuItemSpriteExtra::setSizeMult(v37, 1.6); v45 = sub_1001D7ED0(v37, v38, v39, v40, v41, v42, v43, v44, 0); ((void (__fastcall *)(LevelBrowserLayer *, cocos2d::CCMenu *, __int64))a1->addChild_0)(a1, v45, 1); v46 = cocos2d::CCDirector::sharedDirector(); v47 = sub_1001768D8((__int64)v46); v48 = cocos2d::CCDirector::sharedDirector(); v49.n128_f32[0] = sub_1001768C8((__int64)v48) + -23.0; v50.n128_f32[0] = v47 + 24.0; sub_100022980(v50, v49, &v251); ((void (__fastcall *)(cocos2d::CCMenu *, float32x2_t *))v45->setPosition)(v45, &v251); isControllerConnected = PlatformToolbox::isControllerConnected(); v52 = cocos2d::CCMenu::create(); ((void (__fastcall *)(LevelBrowserLayer *, cocos2d::CCMenu *, __int64))a1->addChild_0)(a1, v52, 10); v53 = v255; if ( AppDelegate::get()->m_startupScriptFilename.m_data.m_short.shortStorage.__elems_[4] ) v54 = 49.0; else v54 = 24.0; if ( isControllerConnected ) v55 = "controllerBtn_DPad_Left_001.png"; else v55 = "GJ_arrow_03_001.png"; v56 = cocos2d::CCSprite::createWithSpriteFrameName(v55); v264.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onPrevPage; v264.adj = 0; v57 = CCMenuItemSpriteExtra::create(v56, nullptr, a1, v264); a1->m_leftArrow = v57; CCMenuItemSpriteExtra::setSizeMult(v57, 2.0); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v52->addChild)(v52, a1->m_leftArrow); m_leftArrow = a1->m_leftArrow; v59 = cocos2d::CCDirector::sharedDirector(); v60 = v53 * 0.5; v61.n128_f32[0] = v54 + sub_1001768D8((__int64)v59); v62.n128_f32[0] = v53 * 0.5; sub_100022980(v61, v62, &v250); v256 = cocos2d::CCNode::convertToNodeSpace(v52, (const cocos2d::CCPoint *)&v250); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))m_leftArrow->setPosition)( m_leftArrow, &v251, v256.x, v256.y); if ( isControllerConnected ) v63 = "controllerBtn_DPad_Right_001.png"; else v63 = "GJ_arrow_03_001.png"; v64 = cocos2d::CCSprite::createWithSpriteFrameName(v63); v65 = v64; if ( !isControllerConnected ) cocos2d::CCSprite::setFlipX(v64, 1); v265.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onNextPage; v265.adj = 0; v66 = CCMenuItemSpriteExtra::create(v65, nullptr, a1, v265); a1->m_rightArrow = v66; CCMenuItemSpriteExtra::setSizeMult(v66, 2.0); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v52->addChild)(v52, a1->m_rightArrow); m_rightArrow = a1->m_rightArrow; v68 = cocos2d::CCDirector::sharedDirector(); v69.n128_f32[0] = sub_1001768E0((__int64)v68) - v54; v70.n128_f32[0] = v53 * 0.5; sub_100022980(v69, v70, &v250); v257 = cocos2d::CCNode::convertToNodeSpace(v52, (const cocos2d::CCPoint *)&v250); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))m_rightArrow->setPosition)( m_rightArrow, &v251, v257.x, v257.y); v71 = cocos2d::CCSprite::create("GJ_button_02.png"); a1->m_pageText = cocos2d::CCLabelBMFont::create_1("1", "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCSprite *))v71->addChild_0)(v71); m_pageText = a1->m_pageText; v73 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v71->getContentSize)(v71); v74 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v71->getContentSize)(v71); v75.n128_f32[0] = v73 * 0.5; v76.n128_f32[0] = (float)(*(float *)(v74 + 4) * 0.5) + 1.0; sub_100022980(v75, v76, &v251); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))m_pageText->setPosition)(m_pageText, &v251); LevelBrowserLayer::updatePageLabel(a1); ((void (__fastcall *)(cocos2d::CCSprite *, float))v71->setScale)(v71, 0.7); v266.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onGoToPage; v266.adj = 0; v77 = CCMenuItemSpriteExtra::create(v71, nullptr, a1, v266); a1->m_pageBtn = v77; CCMenuItemSpriteExtra::setSizeMult(v77, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v52->addChild)(v52, a1->m_pageBtn); m_pageBtn = a1->m_pageBtn; v79 = cocos2d::CCDirector::sharedDirector(); v80.n128_f32[0] = (float)(sub_1001768E0((__int64)v79) - v54) + 1.0; v81 = v60 + 122.0; v82.n128_f32[0] = v81; sub_100022980(v80, v82, &v250); v258 = cocos2d::CCNode::convertToNodeSpace(v52, (const cocos2d::CCPoint *)&v250); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))m_pageBtn->setPosition)( m_pageBtn, &v251, v258.x, v258.y); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_leftArrow->setVisible)(a1->m_leftArrow, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_rightArrow->setVisible)(a1->m_rightArrow, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_pageBtn->setVisible)(a1->m_pageBtn, 0); v83 = LoadingCircle::create(); a1->m_circle = v83; v83->m_parentLayer = a1; v83->m_fade = 0; cocos2d::CCObject::retain(v83); LoadingCircle::show(a1->m_circle); ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_circle->setVisible)(a1->m_circle, 0); a1->m_countText = cocos2d::CCLabelBMFont::create_1(" ", "goldFont.fnt"); ((void (__fastcall *)(LevelBrowserLayer *))a1->addChild)(a1); m_countText = a1->m_countText; v85 = cocos2d::CCDirector::sharedDirector(); v86 = sub_1001768E0((__int64)v85); if ( AppDelegate::get()->m_startupScriptFilename.m_data.m_short.shortStorage.__elems_[4] ) v87 = 10.0; else v87 = 0.0; v88 = cocos2d::CCDirector::sharedDirector(); v89.n128_f32[0] = sub_1001768C8((__int64)v88) + -3.0; v90.n128_f32[0] = (float)(v86 + -7.0) - v87; sub_100022980(v90, v89, &v251); v91 = ((__n128 (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))m_countText->setPosition)(m_countText, &v251); v92 = a1->m_countText; v91.n128_u32[0] = 1.0; v93.n128_u32[0] = 1.0; sub_100022980(v91, v93, &v251); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))v92->setAnchorPoint)(v92, &v251); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))a1->m_countText->setScale)(a1->m_countText, 0.6); sub_100009900(__p, "No Internet connection!"); v94.n128_u32[0] = 0.5; v95.n128_u32[0] = 1.0; sub_100022980(v94, v95, &v251); m_noInternet = (TextArea *)TextArea::create( (__int64)__p, (__int64)"bigFont.fnt", (__int64 *)&v251, 0, 1.0, 600.0, 20.0); a1->m_noInternet = m_noInternet; if ( v249 < 0 ) { operator delete(__p[0]); m_noInternet = a1->m_noInternet; } v97.n128_f32[0] = v254 * 0.5; v98.n128_f32[0] = (float)(v255 * 0.5) + 10.0; sub_100022980(v97, v98, &v251); ((void (__fastcall *)(TextArea *, float32x2_t *))m_noInternet->setPosition)(m_noInternet, &v251); ((void (__fastcall *)(TextArea *, float))a1->m_noInternet->setScale)(a1->m_noInternet, 0.6); ((void (__fastcall *)(LevelBrowserLayer *, TextArea *, __int64))a1->addChild_0)(a1, a1->m_noInternet, 2); ((void (__fastcall *)(TextArea *, _QWORD))a1->m_noInternet->setVisible)(a1->m_noInternet, 0); m_searchObject = a1->m_searchObject; if ( !m_searchObject ) goto LABEL_69; m_searchType = m_searchObject->m_searchType; if ( (unsigned int)(m_searchType - 21) > 2 ) { if ( m_searchType <= 27 ) { if ( m_searchType == 6 ) { if ( m_searchObject->m_searchMode == 1 ) { v107 = cocos2d::CCSprite::createWithSpriteFrameName("topListsLabel_001.png"); v108 = ((__n128 (__fastcall *)(LevelBrowserLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v107, 2); v108.n128_f32[0] = v254 * 0.5; v109.n128_f32[0] = (float)((float)(v255 * 0.5) + 110.0) + 24.0; sub_100022980(v108, v109, &v251); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v107->setPosition)(v107, &v251); goto LABEL_52; } } else if ( m_searchType != 17 ) { goto LABEL_52; } v110 = cocos2d::CCSprite::createWithSpriteFrameName("featuredLabel_001.png"); v111 = ((__n128 (__fastcall *)(LevelBrowserLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v110, 2); v111.n128_f32[0] = v254 * 0.5; v112.n128_f32[0] = (float)((float)(v255 * 0.5) + 110.0) + 24.0; sub_100022980(v111, v112, &v251); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v110->setPosition)(v110, &v251); goto LABEL_52; } if ( m_searchType == 28 ) { v113 = cocos2d::CCSprite::createWithSpriteFrameName("weeklyLevelsLabel_001.png"); v114 = ((__n128 (__fastcall *)(LevelBrowserLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v113, 2); v114.n128_f32[0] = v254 * 0.5; v115.n128_f32[0] = (float)((float)(v255 * 0.5) + 110.0) + 24.0; sub_100022980(v114, v115, &v251); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v113->setPosition)(v113, &v251); } else if ( m_searchType == 29 ) { v104 = cocos2d::CCSprite::createWithSpriteFrameName("bonusLevelsLabel_001.png"); v105 = ((__n128 (__fastcall *)(LevelBrowserLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v104, 2); v105.n128_f32[0] = v254 * 0.5; v106.n128_f32[0] = (float)((float)(v255 * 0.5) + 110.0) + 24.0; sub_100022980(v105, v106, &v251); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v104->setPosition)(v104, &v251); } } else { v101 = cocos2d::CCSprite::createWithSpriteFrameName("theSafeLabel_001.png"); v102 = ((__n128 (__fastcall *)(LevelBrowserLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v101, 2); v102.n128_f32[0] = (float)(v254 * 0.5) + 13.0; v103.n128_f32[0] = (float)((float)(v255 * 0.5) + 110.0) + 24.0; sub_100022980(v102, v103, &v251); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v101->setPosition)(v101, &v251); } LABEL_52: v116 = a1->m_searchObject; if ( !v116 ) goto LABEL_69; if ( (unsigned int)(v116->m_searchType - 98) <= 2 && !v116->m_searchIsOverlay ) { v117 = cocos2d::CCMenu::create(); ((void (__fastcall *)(LevelBrowserLayer *, cocos2d::CCMenu *, __int64))a1->addChild_0)(a1, v117, 2); v118 = cocos2d::CCSprite::createWithSpriteFrameName("edit_delBtn_001.png"); v119 = ButtonSprite::create(v118, 34, 0, 36.0, 1.0, 1, "GJ_button_04.png", 0); ((void (__fastcall *)(ButtonSprite *, float))v119->setScale)(v119, 0.4); v267.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onDeleteSelected; v267.adj = 0; v120 = CCMenuItemSpriteExtra::create(v119, nullptr, a1, v267); v121 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v117->addChild)(v117, v120); v121.n128_f32[0] = (float)(v254 * 0.5) + -145.0; v122.n128_f32[0] = (float)(v255 * 0.5) + -122.0; sub_100022980(v121, v122, &v251); v259 = cocos2d::CCNode::convertToNodeSpace(v117, (const cocos2d::CCPoint *)&v251); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))v120->setPosition)( v120, &v250, v259.x, v259.y); v123 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v124 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v123->setScale)(v123, 0.5); ((void (__fastcall *)(cocos2d::CCSprite *, float))v124->setScale)(v124, 0.5); v268.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onToggleAllObjects; v268.adj = 0; a1->m_allObjectsToggler = CCMenuItemToggler::create(v124, v123, a1, v268); ((void (__fastcall *)(cocos2d::CCMenu *))v117->addChild)(v117); m_allObjectsToggler = a1->m_allObjectsToggler; v126 = (float32x2_t *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v120->getPosition)(v120); v127.n128_u32[0] = 26.0; v128.n128_u32[0] = 0; sub_100022980(v127, v128, &v247); *(float32x2_t *)&v129 = sub_1000229DC(v126, &v247, &v250); ((void (__fastcall *)(CCMenuItemToggler *, float32x2_t *, double))m_allObjectsToggler->setPosition)( m_allObjectsToggler, &v250, v129); CCMenuItemToggler::setSizeMult(a1->m_allObjectsToggler, 1.1); v130 = cocos2d::CCLabelBMFont::create_1("All", "bigFont.fnt"); v131 = ((__n128 (__fastcall *)(LevelBrowserLayer *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v130, 10); v131.n128_u32[0] = 1113325568; v132.n128_u32[0] = 0; sub_100022980(v131, v132, &v247); *(float32x2_t *)&v133 = sub_1000229DC(&v251, &v247, &v250); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *, double))v130->setPosition)(v130, &v250, v133); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v130->setScale)(v130, 0.4); v116 = a1->m_searchObject; if ( !v116 ) { LABEL_69: v176 = 0; goto LABEL_70; } } v134 = v116->m_searchType; v135 = v134 - 98; if ( v134 - 98 > 5 ) { if ( v134 > 0xE || ((1 << v134) & 0x4600) == 0 ) { v165 = cocos2d::CCMenu::create(); ((void (__fastcall *)(LevelBrowserLayer *, cocos2d::CCMenu *, __int64))a1->addChild_0)(a1, v165, 2); v166 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); v272.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onRefresh; v272.adj = 0; a1->m_refreshBtn = CCMenuItemSpriteExtra::create(v166, nullptr, a1, v272); ((void (__fastcall *)(cocos2d::CCMenu *))v165->addChild)(v165); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_refreshBtn->setVisible)(a1->m_refreshBtn, 0); width = v166->m_obRect.size.width; v168 = cocos2d::CCDirector::sharedDirector(); v169 = sub_1001768E0((__int64)v168); v170 = cocos2d::CCDirector::sharedDirector(); v171 = sub_1001768D0((__int64)v170); v172 = (float)(width * 0.5) + 4.0; v173 = v169 - v172; v174.n128_f32[0] = v172 + v171; v175.n128_f32[0] = v173; sub_100022980(v175, v174, &v251); ((void (__fastcall *)(cocos2d::CCMenu *, float32x2_t *))v165->setPosition)(v165, &v251); } goto LABEL_69; } v136 = 1; if ( ((1 << v135) & 0x19) != 0 ) { v137 = cocos2d::CCMenu::create(); ((void (__fastcall *)(LevelBrowserLayer *, cocos2d::CCMenu *, __int64))a1->addChild_0)(a1, v137, 2); v138 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_newBtn_001.png"); v269.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onNew; v269.adj = 0; v139 = CCMenuItemSpriteExtra::create(v138, nullptr, a1, v269); v140 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v137->addChild)(v137, v139); v140.n128_f32[0] = v254 * 0.5; v141.n128_f32[0] = (float)((float)(v255 + -220.0) * 0.5) + -4.0; sub_100022980(v140, v141, &v251); ((void (__fastcall *)(cocos2d::CCMenu *, float32x2_t *))v137->setPosition)(v137, &v251); v142 = v138->m_obRect.size.width; v143 = cocos2d::CCDirector::sharedDirector(); v144 = sub_1001768E0((__int64)v143); v145 = cocos2d::CCDirector::sharedDirector(); v146 = (float)(v142 * 0.5) + 4.0; v147.n128_f32[0] = v146 + sub_1001768D0((__int64)v145); v148.n128_f32[0] = v144 - v146; sub_100022980(v148, v147, &v251); ((void (__fastcall *)(cocos2d::CCMenu *, float32x2_t *))v137->setPosition)(v137, &v251); if ( !*p_m_isOverlay ) { v149 = GameManager::sharedState(); if ( v149->m_playerUserID.random != v149->m_playerUserID.seed || (v150 = GJAccountManager::sharedState(), v150->m_accountID != v150->m_unkInt1) ) { v151 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_myServerBtn_001.png"); v270.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onMyOnlineLevels; v270.adj = 0; v152 = CCMenuItemSpriteExtra::create(v151, nullptr, a1, v270); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v137->addChild)(v137, v152); v153 = cocos2d::CCDirector::sharedDirector(); v154 = sub_1001768D8((__int64)v153); v155 = cocos2d::CCDirector::sharedDirector(); v156.n128_f32[0] = v146 + sub_1001768D0((__int64)v155); v157.n128_f32[0] = v146 + v154; sub_100022980(v157, v156, &v250); v260 = cocos2d::CCNode::convertToNodeSpace(v137, (const cocos2d::CCPoint *)&v250); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))v152->setPosition)( v152, &v251, v260.x, v260.y); } if ( a1->m_searchObject->m_searchType == MyLevels ) v158 = "GJ_viewListsBtn_001.png"; else v158 = "GJ_viewLevelsBtn_001.png"; v159 = cocos2d::CCSprite::createWithSpriteFrameName(v158); ((void (__fastcall *)(cocos2d::CCSprite *, float))v159->setScale)(v159, 0.8); v271.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onLocalMode; v271.adj = 0; v160 = CCMenuItemSpriteExtra::create(v159, nullptr, a1, v271); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v137->addChild)(v137, v160); v161 = (float32x2_t *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v139->getPosition)(v139); v162.n128_u32[0] = 1112539136; v163.n128_u32[0] = 2.0; sub_100022980(v163, v162, &v250); *(float32x2_t *)&v164 = sub_1000229DC(v161, &v250, &v251); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))v160->setPosition)(v160, &v251, v164); } goto LABEL_71; } if ( ((1 << v135) & 0x22) != 0 ) v136 = a2->m_searchType == FavouriteLists; v220 = cocos2d::CCMenu::create(); ((void (__fastcall *)(LevelBrowserLayer *, cocos2d::CCMenu *, __int64))a1->addChild_0)(a1, v220, 2); v221 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteBtn_001.png"); v222 = v221; if ( v136 ) v278.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onRemoveAllFavorites; else v278.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onDeleteAll; v278.adj = 0; v223 = CCMenuItemSpriteExtra::create(v221, nullptr, a1, v278); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v220->addChild)(v220, v223); v224 = v222->m_obRect.size.width; v225 = cocos2d::CCDirector::sharedDirector(); v226 = sub_1001768E0((__int64)v225); v227 = cocos2d::CCDirector::sharedDirector(); v228 = (float)(v224 * 0.5) + 4.0; v229.n128_f32[0] = v228 + sub_1001768D0((__int64)v227); v230.n128_f32[0] = v226 - v228; sub_100022980(v230, v229, &v251); ((void (__fastcall *)(cocos2d::CCMenu *, float32x2_t *))v220->setPosition)(v220, &v251); if ( a1->m_searchObject->m_searchType == FavouriteLists ) v231 = "GJ_viewLevelsBtn_001.png"; else v231 = "GJ_viewListsBtn_001.png"; v232 = cocos2d::CCSprite::createWithSpriteFrameName(v231); ((void (__fastcall *)(cocos2d::CCSprite *, float))v232->setScale)(v232, 0.8); v279.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onSavedMode; v279.adj = 0; v233 = CCMenuItemSpriteExtra::create(v232, nullptr, a1, v279); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v220->addChild)(v220, v233); v234 = (float32x2_t *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v223->getPosition)(v223); v235.n128_u32[0] = 1112539136; v236.n128_u32[0] = 2.0; sub_100022980(v236, v235, &v250); *(float32x2_t *)&v237 = sub_1000229DC(v234, &v250, &v251); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))v233->setPosition)(v233, &v251, v237); if ( a1->m_searchObject->m_searchType != FavouriteLists ) { if ( v136 ) v238 = "gj_heartOff_001.png"; else v238 = "gj_heartOn_001.png"; v239 = cocos2d::CCSprite::createWithSpriteFrameName(v238); if ( v136 ) v280.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onSaved; else v280.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onFavorites; v280.adj = 0; v240 = CCMenuItemSpriteExtra::create(v239, nullptr, a1, v280); CCMenuItemSpriteExtra::setSizeMult(v240, 1.1); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *, __int64))v220->addChild_0)(v220, v240, 100); if ( AppDelegate::get()->m_startupScriptFilename.m_data.m_short.shortStorage.__elems_[4] ) v241 = 25.0; else v241 = 0.0; v242 = cocos2d::CCDirector::sharedDirector(); v243.n128_f32[0] = (float)(v228 + sub_1001768D0((__int64)v242)) + 50.0; v244.n128_f32[0] = v228 + v241; sub_100022980(v244, v243, &v250); v262 = cocos2d::CCNode::convertToNodeSpace(v220, (const cocos2d::CCPoint *)&v250); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))v240->setPosition)( v240, &v251, v262.x, v262.y); } v176 = 1; LABEL_70: v177 = cocos2d::CCMenu::create(); ((void (__fastcall *)(LevelBrowserLayer *, cocos2d::CCMenu *, __int64))a1->addChild_0)(a1, v177, 2); v178 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v273.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onInfo; v273.adj = 0; v179 = CCMenuItemSpriteExtra::create(v178, nullptr, a1, v273); CCMenuItemSpriteExtra::setSizeMult(v179, 2.0); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v177->addChild)(v177, v179); v180 = cocos2d::CCDirector::sharedDirector(); v181 = sub_1001768D8((__int64)v180); v182 = cocos2d::CCDirector::sharedDirector(); v183.n128_f32[0] = sub_1001768D0((__int64)v182) + 30.0; v184.n128_f32[0] = v181 + 30.0; sub_100022980(v184, v183, &v251); ((void (__fastcall *)(cocos2d::CCMenu *, float32x2_t *))v177->setPosition)(v177, &v251); if ( (v176 & 1) != 0 ) { LABEL_71: if ( GJSearchObject::isLevelSearchObject(a1->m_searchObject) ) { v185 = cocos2d::CCSprite::createWithSpriteFrameName("gj_folderBtn_001.png"); a1->m_folderText = cocos2d::CCLabelBMFont::create_1("0", "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCSprite *))v185->addChild_0)(v185); m_folderText = a1->m_folderText; v187 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v185->getContentSize)(v185); v188 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v185->getContentSize)(v185); v189.n128_f32[0] = v187 * 0.5; v190.n128_f32[0] = (float)(*(float *)(v188 + 4) * 0.5) + 0.5; sub_100022980(v189, v190, &v251); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))m_folderText->setPosition)(m_folderText, &v251); v274.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onGoToFolder; v274.adj = 0; v191 = CCMenuItemSpriteExtra::create(v185, nullptr, a1, v274); a1->m_folderBtn = v191; CCMenuItemSpriteExtra::setSizeMult(v191, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v52->addChild)(v52, a1->m_folderBtn); m_folderBtn = a1->m_folderBtn; v193 = (float32x2_t *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_pageBtn->getPosition)(a1->m_pageBtn); v194.n128_u32[0] = -1039400960; v195.n128_u32[0] = 0; sub_100022980(v195, v194, &v250); *(float32x2_t *)&v196 = sub_1000229DC(v193, &v250, &v251); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))m_folderBtn->setPosition)( m_folderBtn, &v251, v196); } v197 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_02_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v197->setScale)(v197, 0.4); v198 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_02_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))v197->addChild_0)(v197, v198, 1); cocos2d::CCNode::convertToNodeSpace(v197, &stru_10086EB30); v199.n128_u32[0] = 15.0; v200.n128_u32[0] = 0; sub_100022980(v199, v200, &v247); *(float32x2_t *)&v201 = sub_1000229DC(&v250, &v247, &v251); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v198->setPosition)(v198, &v251, v201); cocos2d::CCSprite::setFlipX(v198, 1); cocos2d::CCSprite::setFlipX(v197, 1); v275.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onGoToLastPage; v275.adj = 0; v202 = CCMenuItemSpriteExtra::create(v197, nullptr, a1, v275); a1->m_lastBtn = v202; CCMenuItemSpriteExtra::setSizeMult(v202, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v52->addChild)(v52, a1->m_lastBtn); m_lastBtn = a1->m_lastBtn; v204 = (float32x2_t *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_pageBtn->getPosition)(a1->m_pageBtn); v205.n128_u32[0] = -1031667712; v206.n128_u32[0] = -2.0; sub_100022980(v206, v205, &v250); *(float32x2_t *)&v207 = sub_1000229DC(v204, &v250, &v251); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))m_lastBtn->setPosition)( m_lastBtn, &v251, v207); v208 = cocos2d::CCSprite::createWithSpriteFrameName("gj_findBtn_001.png"); v276.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onSearch; v276.adj = 0; v209 = CCMenuItemSpriteExtra::create(v208, nullptr, a1, v276); CCMenuItemSpriteExtra::setSizeMult(v209, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v52->addChild)(v52, v209); v210 = AppDelegate::get(); v212.n128_u32[0] = 0; if ( v210->m_startupScriptFilename.m_data.m_short.shortStorage.__elems_[4] ) v212.n128_f32[0] = 25.0; v212.n128_f32[0] = v54 + v212.n128_f32[0]; v211.n128_f32[0] = v81 + -30.0; sub_100022980(v212, v211, &v250); v261 = cocos2d::CCNode::convertToNodeSpace(v52, (const cocos2d::CCPoint *)&v250); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))v209->setPosition)( v209, &v251, v261.x, v261.y); v213 = cocos2d::CCSprite::createWithSpriteFrameName("gj_findBtnOff_001.png"); v277.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelBrowserLayer::onClearSearch; v277.adj = 0; v214 = CCMenuItemSpriteExtra::create(v213, nullptr, a1, v277); a1->m_cancelSearchBtn = v214; CCMenuItemSpriteExtra::setSizeMult(v214, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v52->addChild)(v52, a1->m_cancelSearchBtn); m_cancelSearchBtn = a1->m_cancelSearchBtn; v216 = (float32x2_t *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v209->getPosition)(v209); v217.n128_u32[0] = -1039400960; v218.n128_u32[0] = 0; sub_100022980(v218, v217, &v250); *(float32x2_t *)&v219 = sub_1000229DC(v216, &v250, &v251); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))m_cancelSearchBtn->setPosition)( m_cancelSearchBtn, &v251, v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_cancelSearchBtn->setVisible)(a1->m_cancelSearchBtn, 0); } if ( isControllerConnected ) { GameToolbox::addBackButton(a1, v37); GameToolbox::addRThumbScrollButton(a1); } LevelBrowserLayer::loadPage(a1, a2); if ( v253 < 0 ) operator delete(v252[0]); LOBYTE(v9) = v246; return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source