// // MoreSearchLayer::init from 0x100055478 to 0x1000563f4 (3964 bytes) // // 2 xrefs: // > MoreSearchLayer::create @ 0x1000547a8 // > @ 0x1007725d0 // // 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 MoreSearchLayer::init(MoreSearchLayer *a1) { _BOOL4 v2; // w19 cocos2d::CCDirector *v3; // x0 cocos2d::CCLayer *v4; // x0 __int64 v5; // x0 cocos2d::CCArray *v6; // x0 __int64 v7; // x0 cocos2d::CCArray *v8; // x0 __int64 v9; // x0 cocos2d::CCArray *v10; // x0 cocos2d::extension::CCScale9Sprite *v11; // x21 __n128 v12; // q0 __n128 v13; // q1 cocos2d::CCSprite *v14; // x0 CCMenuItemSpriteExtra *v15; // x21 cocos2d::CCMenu *v16; // x21 __n128 v17; // q0 __n128 v18; // q1 cocos2d::CCLabelBMFont *v19; // x21 __n128 v20; // q0 __n128 v21; // q1 float v22; // s9 float v23; // s11 GameLevelManager *v24; // x0 float v25; // s12 unsigned __int32 v26; // s9 unsigned __int32 v27; // s11 cocos2d::CCMenu *m_buttonMenu; // x22 __n128 v29; // q0 __n128 v30; // q1 GameLevelManager *v31; // x0 _BOOL4 BoolForKey; // w21 unsigned __int32 v33; // s10 cocos2d::CCMenu *v34; // x22 __n128 v35; // q0 __n128 v36; // q1 GameLevelManager *v37; // x0 _BOOL4 v38; // w22 unsigned __int32 v39; // s12 cocos2d::CCMenu *v40; // x21 __n128 v41; // q0 __n128 v42; // q1 GameLevelManager *v43; // x0 _BOOL4 v44; // w22 cocos2d::CCMenu *v45; // x21 __n128 v46; // q0 __n128 v47; // q1 GameLevelManager *v48; // x0 _BOOL4 v49; // w22 cocos2d::CCMenu *v50; // x21 __n128 v51; // q0 __n128 v52; // q1 GameLevelManager *v53; // x0 _BOOL4 v54; // w22 cocos2d::CCMenu *v55; // x21 __n128 v56; // q0 __n128 v57; // q1 GameLevelManager *v58; // x0 _BOOL4 v59; // w21 cocos2d::CCMenu *v60; // x22 __n128 v61; // q0 __n128 v62; // q1 GameLevelManager *v63; // x0 _BOOL4 v64; // w22 cocos2d::CCMenu *v65; // x21 __n128 v66; // q0 __n128 v67; // q1 GameLevelManager *v68; // x0 _BOOL4 v69; // w22 cocos2d::CCMenu *v70; // x21 __n128 v71; // q0 __n128 v72; // q1 GameLevelManager *v73; // x0 _BOOL4 v74; // w21 unsigned __int32 v75; // s11 cocos2d::CCMenu *v76; // x22 __n128 v77; // q0 __n128 v78; // q1 GameLevelManager *v79; // x0 _BOOL4 v80; // w22 cocos2d::CCMenu *v81; // x21 __n128 v82; // q0 __n128 v83; // q1 cocos2d::CCLabelBMFont *v84; // x22 __n128 v85; // q0 __n128 v86; // q1 __n128 v87; // q0 float v88; // s9 ButtonSprite *v89; // x0 CCMenuItemSpriteExtra *v90; // x0 __n128 v91; // q0 CCMenuItemSpriteExtra *m_normalBtn; // x25 cocos2d::CCMenu *v93; // x26 __n128 v94; // q1 ButtonSprite *v95; // x0 CCMenuItemSpriteExtra *v96; // x0 __n128 v97; // q0 CCMenuItemSpriteExtra *m_customBtn; // x23 cocos2d::CCMenu *v99; // x24 __n128 v100; // q1 cocos2d::CCLabelBMFont *v101; // x0 cocos2d::CCLabelBMFont *m_audioTrackName; // x23 float32x2_t *v103; // x22 __n128 v104; // q0 __n128 v105; // q1 double v106; // d0 __n128 v107; // q0 unsigned __int32 v108; // s9 cocos2d::CCSprite *v109; // x22 CCMenuItemSpriteExtra *v110; // x0 __n128 v111; // q0 CCMenuItemSpriteExtra *m_songLeftBtn; // x22 cocos2d::CCMenu *v113; // x23 __n128 v114; // q1 cocos2d::CCSprite *v115; // x22 CCMenuItemSpriteExtra *v116; // x0 __n128 v117; // q0 CCMenuItemSpriteExtra *m_songRightBtn; // x22 cocos2d::CCMenu *v119; // x23 __n128 v120; // q1 __n128 v121; // q0 __int64 *v122; // x0 double v123; // d0 cocos2d::extension::CCScale9Sprite *v124; // x22 CCTextInputNode *v125; // x0 CCTextInputNode *m_enterSongID; // x0 CCTextInputNode *v127; // x21 GameLevelManager *v128; // x0 _BOOL4 v129; // w21 GameLevelManager *v130; // x0 _BOOL4 v131; // w23 GameLevelManager *v132; // x0 int IntForKey; // w22 __int64 v134; // x8 CCTextInputNode *v135; // x21 cocos2d::CCString *v136; // x0 char *CString; // x0 cocos2d::CCSprite *v138; // x0 CCMenuItemSpriteExtra *v139; // x21 __n128 v140; // q0 cocos2d::CCMenu *v141; // x20 __n128 v142; // q1 float v144; // s1 float v145; // s2 float v146; // s3 cocos2d::CCPoint v147; // [xsp+8h] [xbp-208h] BYREF _BYTE v148[8]; // [xsp+10h] [xbp-200h] BYREF void *v149[2]; // [xsp+18h] [xbp-1F8h] BYREF char v150; // [xsp+2Fh] [xbp-1E1h] void *v151[2]; // [xsp+30h] [xbp-1E0h] BYREF char v152; // [xsp+47h] [xbp-1C9h] float32x2_t v153[2]; // [xsp+48h] [xbp-1C8h] BYREF __int64 v154; // [xsp+58h] [xbp-1B8h] BYREF void *v155[2]; // [xsp+60h] [xbp-1B0h] BYREF char v156; // [xsp+77h] [xbp-199h] void *v157[2]; // [xsp+78h] [xbp-198h] BYREF char v158; // [xsp+8Fh] [xbp-181h] void *v159[2]; // [xsp+90h] [xbp-180h] BYREF char v160; // [xsp+A7h] [xbp-169h] void *v161[2]; // [xsp+A8h] [xbp-168h] BYREF char v162; // [xsp+BFh] [xbp-151h] void *v163[2]; // [xsp+C0h] [xbp-150h] BYREF char v164; // [xsp+D7h] [xbp-139h] void *v165[2]; // [xsp+D8h] [xbp-138h] BYREF char v166; // [xsp+EFh] [xbp-121h] void *v167[2]; // [xsp+F0h] [xbp-120h] BYREF char v168; // [xsp+107h] [xbp-109h] void *__p[2]; // [xsp+108h] [xbp-108h] BYREF char v170; // [xsp+11Fh] [xbp-F1h] void *v171[2]; // [xsp+120h] [xbp-F0h] BYREF char v172; // [xsp+137h] [xbp-D9h] void *v173[2]; // [xsp+138h] [xbp-D8h] BYREF char v174; // [xsp+14Fh] [xbp-C1h] void *v175[2]; // [xsp+150h] [xbp-C0h] BYREF char v176; // [xsp+167h] [xbp-A9h] float32x2_t v177[2]; // [xsp+168h] [xbp-A8h] BYREF float v178; // [xsp+178h] [xbp-98h] float v179; // [xsp+17Ch] [xbp-94h] cocos2d::CCPoint v180; // 0:kr08_8.8 cocos2d::CCPoint v181; // 0:kr10_8.8 cocos2d::CCPoint v182; // 0:kr18_8.8 cocos2d::CCPoint v183; // 0:kr20_8.8 cocos2d::CCPoint v184; // 0:kr28_8.8 cocos2d::SEL_MenuHandler v185; // 0:x3.16 cocos2d::SEL_MenuHandler v186; // 0:x3.16 cocos2d::SEL_MenuHandler v187; // 0:x3.16 cocos2d::SEL_MenuHandler v188; // 0:x3.16 cocos2d::SEL_MenuHandler v189; // 0:x3.16 cocos2d::SEL_MenuHandler v190; // 0:x3.16 cocos2d::CCRect v191; // 0:kr30_16.16 cocos2d::CCRect v192; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 FLAlertLayer::incrementForcePrio(a1); v177[0].i32[0] = -1778384896; v2 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)v177); if ( v2 ) { ((void (__fastcall *)(MoreSearchLayer *, __int64))a1->setTouchEnabled)(a1, 1); ((void (__fastcall *)(MoreSearchLayer *, __int64))a1->setKeypadEnabled)(a1, 1); ((void (__fastcall *)(MoreSearchLayer *, __int64))a1->setKeyboardEnabled)(a1, 1); v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v3); v4 = cocos2d::CCLayer::create(); a1->m_mainLayer = v4; v5 = ((__int64 (__fastcall *)(MoreSearchLayer *, cocos2d::CCLayer *))a1->addChild)(a1, v4); v6 = (cocos2d::CCArray *)sub_10024A15C(v5); a1->m_normalSongNodes = v6; cocos2d::CCObject::retain(v6); v8 = (cocos2d::CCArray *)sub_10024A15C(v7); a1->m_customSongNodes = v8; cocos2d::CCObject::retain(v8); v10 = (cocos2d::CCArray *)sub_10024A15C(v9); a1->m_commonSongNodes = v10; cocos2d::CCObject::retain(v10); sub_100022990((float *)v177, 0.0, 0.0, 80.0, 80.0); v11 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v192); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v11->setOpacity)(v11, 255); sub_100022988((float *)v177, 440.0, 290.0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float32x2_t *))v11->setContentSize)(v11, v177); v12 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v11, 0xFFFFFFFFLL); v12.n128_f32[0] = v178 * 0.5; v13.n128_f32[0] = v179 * 0.5; sub_100022980(v12, v13, v177); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float32x2_t *))v11->setPosition)(v11, v177); v14 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v185.ptr = (void (__cdecl *)(cocos2d::CCObject *))MoreSearchLayer::onClose; v185.adj = 0; v15 = CCMenuItemSpriteExtra::create(v14, nullptr, a1, v185); CCMenuItemSpriteExtra::setSizeMult(v15, 1.6); v16 = (cocos2d::CCMenu *)sub_1001D7ED0(v15); a1->m_buttonMenu = v16; v17.n128_f32[0] = (float)((float)(v178 * 0.5) + -220.0) + 10.0; v18.n128_f32[0] = (float)((float)(v179 * 0.5) + 145.0) + -10.0; sub_100022980(v17, v18, v177); ((void (__fastcall *)(cocos2d::CCMenu *, float32x2_t *))v16->setPosition)(v16, v177); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, a1->m_buttonMenu, 10); a1->m_joystickConnected = -1; v19 = cocos2d::CCLabelBMFont::create_1("Advanced Options", "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v19->setScale)(v19, 0.7); v20 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v19, 20); v20.n128_f32[0] = v178 * 0.5; v21.n128_f32[0] = (float)((float)(v179 * 0.5) + 145.0) + -18.0; sub_100022980(v20, v21, v177); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))v19->setPosition)(v19, v177); v22 = v178; v23 = v179; sub_100009900(v175, "Uncompleted"); v24 = GameLevelManager::sharedState(); LODWORD(v19) = GameLevelManager::getBoolForKey(v24, "uncompleted_filter"); v25 = v22 * 0.5; *(float *)&v26 = (float)(v22 * 0.5) + -170.0; *(float *)&v27 = (float)(v23 * 0.5) + 90.0; m_buttonMenu = a1->m_buttonMenu; v29.n128_u32[0] = v26; v30.n128_u32[0] = v27; sub_100022980(v29, v30, v177); MoreSearchLayer::createToggleButton( a1, v175, MoreSearchLayer::onUncompleted, 0, (unsigned int)v19 ^ 1, m_buttonMenu, v177); if ( v176 < 0 ) operator delete(v175[0]); sub_100009900(v173, "Completed"); v31 = GameLevelManager::sharedState(); BoolForKey = GameLevelManager::getBoolForKey(v31, "completed_filter"); *(float *)&v33 = v25 + -40.0; v34 = a1->m_buttonMenu; v35.n128_f32[0] = v25 + -40.0; v36.n128_u32[0] = v27; sub_100022980(v35, v36, v177); MoreSearchLayer::createToggleButton(a1, v173, MoreSearchLayer::onCompleted, 0, !BoolForKey, v34, v177); if ( v174 < 0 ) operator delete(v173[0]); sub_100009900(v171, "Original"); v37 = GameLevelManager::sharedState(); v38 = GameLevelManager::getBoolForKey(v37, "original_filter"); *(float *)&v39 = v25 + 90.0; v40 = a1->m_buttonMenu; v41.n128_u32[0] = v39; v42.n128_u32[0] = v27; sub_100022980(v41, v42, v177); MoreSearchLayer::createToggleButton(a1, v171, MoreSearchLayer::onOriginal, 0, !v38, v40, v177); if ( v172 < 0 ) operator delete(v171[0]); sub_100009900(__p, "Coins"); v43 = GameLevelManager::sharedState(); v44 = GameLevelManager::getBoolForKey(v43, "coin_filter"); v45 = a1->m_buttonMenu; v46.n128_u32[0] = v26; v47.n128_f32[0] = *(float *)&v27 + -40.0; sub_100022980(v46, v47, v177); MoreSearchLayer::createToggleButton(a1, __p, MoreSearchLayer::onCoins, 0, !v44, v45, v177); if ( v170 < 0 ) operator delete(__p[0]); sub_100009900(v167, "2-Player"); v48 = GameLevelManager::sharedState(); v49 = GameLevelManager::getBoolForKey(v48, "twoP_filter"); v50 = a1->m_buttonMenu; v51.n128_u32[0] = v33; v52.n128_f32[0] = *(float *)&v27 + -40.0; sub_100022980(v51, v52, v177); MoreSearchLayer::createToggleButton(a1, v167, MoreSearchLayer::onTwoPlayer, 0, !v49, v50, v177); if ( v168 < 0 ) operator delete(v167[0]); sub_100009900(v165, "Song"); v53 = GameLevelManager::sharedState(); v54 = GameLevelManager::getBoolForKey(v53, "enable_songFilter"); v55 = a1->m_buttonMenu; v56.n128_u32[0] = v39; v57.n128_f32[0] = *(float *)&v27 + -40.0; sub_100022980(v56, v57, v177); MoreSearchLayer::createToggleButton(a1, v165, MoreSearchLayer::onSongFilter, 0, !v54, v55, v177); if ( v166 < 0 ) operator delete(v165[0]); sub_100009900(v163, "No Star"); v58 = GameLevelManager::sharedState(); v59 = GameLevelManager::getBoolForKey(v58, "nostar_filter"); v60 = a1->m_buttonMenu; v61.n128_u32[0] = v26; v62.n128_f32[0] = *(float *)&v27 + -80.0; sub_100022980(v61, v62, v177); MoreSearchLayer::createToggleButton(a1, v163, MoreSearchLayer::onNoStar, 0, !v59, v60, v177); if ( v164 < 0 ) operator delete(v163[0]); sub_100009900(v161, "Featured"); v63 = GameLevelManager::sharedState(); v64 = GameLevelManager::getBoolForKey(v63, "featured_filter"); v65 = a1->m_buttonMenu; v66.n128_u32[0] = v33; v67.n128_f32[0] = *(float *)&v27 + -80.0; sub_100022980(v66, v67, v177); MoreSearchLayer::createToggleButton(a1, v161, MoreSearchLayer::onFeatured, 0, !v64, v65, v177); if ( v162 < 0 ) operator delete(v161[0]); sub_100009900(v159, "Epic"); v68 = GameLevelManager::sharedState(); v69 = GameLevelManager::getBoolForKey(v68, "epic_filter"); v70 = a1->m_buttonMenu; v71.n128_u32[0] = v39; v72.n128_f32[0] = *(float *)&v27 + -80.0; sub_100022980(v71, v72, v177); MoreSearchLayer::createToggleButton(a1, v159, MoreSearchLayer::onEpic, 0, !v69, v70, v177); if ( v160 < 0 ) operator delete(v159[0]); sub_100009900(v157, "Legendary"); v73 = GameLevelManager::sharedState(); v74 = GameLevelManager::getBoolForKey(v73, "legendary_filter"); *(float *)&v75 = *(float *)&v27 + -120.0; v76 = a1->m_buttonMenu; v77.n128_u32[0] = v26; v78.n128_u32[0] = v75; sub_100022980(v77, v78, v177); MoreSearchLayer::createToggleButton(a1, v157, MoreSearchLayer::onLegendary, 0, !v74, v76, v177); if ( v158 < 0 ) operator delete(v157[0]); sub_100009900(v155, "Mythic"); v79 = GameLevelManager::sharedState(); v80 = GameLevelManager::getBoolForKey(v79, "mythic_filter"); v81 = a1->m_buttonMenu; v82.n128_u32[0] = v33; v83.n128_u32[0] = v75; sub_100022980(v82, v83, v177); MoreSearchLayer::createToggleButton(a1, v155, MoreSearchLayer::onMythic, 0, !v80, v81, v177); if ( v156 < 0 ) operator delete(v155[0]); v84 = cocos2d::CCLabelBMFont::create_1("Select Song:", "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v84); v85 = ((__n128 (__fastcall *)(cocos2d::CCLabelBMFont *, float))v84->setScale)(v84, 0.5); v85.n128_f32[0] = v178 * 0.5; v86.n128_f32[0] = (float)(v179 * 0.5) + -95.0; sub_100022980(v85, v86, v177); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))v84->setPosition)(v84, v177); v87 = sub_10024A2D0(a1->m_commonSongNodes, v84); v88 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, __n128))v84->getPosition)(v84, v87) + 4) + 25.0; v89 = ButtonSprite::create_1("Normal", 40, 0, 0.4, 0, "bigFont.fnt", "GJ_button_01.png", 20.0); v186.ptr = (void (__cdecl *)(cocos2d::CCObject *))MoreSearchLayer::onSongMode; v186.adj = 0; v90 = CCMenuItemSpriteExtra::create(v89, nullptr, a1, v186); a1->m_normalBtn = v90; CCMenuItemSpriteExtra::setSizeMult(v90, 1.1); v91 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, a1->m_normalBtn); m_normalBtn = a1->m_normalBtn; v93 = a1->m_buttonMenu; v91.n128_f32[0] = (float)(v178 * 0.5) + -30.0; v94.n128_f32[0] = v88; sub_100022980(v91, v94, v153); v180 = cocos2d::CCNode::convertToNodeSpace(v93, (const cocos2d::CCPoint *)v153); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))m_normalBtn->setPosition)( m_normalBtn, v177, v180.x, v180.y); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_normalBtn->setTag)(a1->m_normalBtn, 1); sub_10024A2D0(a1->m_commonSongNodes, a1->m_normalBtn); v95 = ButtonSprite::create_1("Custom", 40, 0, 0.4, 0, "bigFont.fnt", "GJ_button_01.png", 20.0); v187.ptr = (void (__cdecl *)(cocos2d::CCObject *))MoreSearchLayer::onSongMode; v187.adj = 0; v96 = CCMenuItemSpriteExtra::create(v95, nullptr, a1, v187); a1->m_customBtn = v96; CCMenuItemSpriteExtra::setSizeMult(v96, 1.1); v97 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, a1->m_customBtn); m_customBtn = a1->m_customBtn; v99 = a1->m_buttonMenu; v97.n128_f32[0] = (float)(v178 * 0.5) + 30.0; v100.n128_f32[0] = v88; sub_100022980(v97, v100, v153); v181 = cocos2d::CCNode::convertToNodeSpace(v99, (const cocos2d::CCPoint *)v153); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))m_customBtn->setPosition)( m_customBtn, v177, v181.x, v181.y); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_customBtn->setTag)(a1->m_customBtn, 2); sub_10024A2D0(a1->m_commonSongNodes, a1->m_customBtn); v101 = cocos2d::CCLabelBMFont::create_1(" ", "bigFont.fnt"); a1->m_audioTrackName = v101; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, v101); m_audioTrackName = a1->m_audioTrackName; v103 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v84->getPosition)(v84); v104.n128_u32[0] = 0; v105.n128_u32[0] = -25.0; sub_100022980(v104, v105, v153); *(float32x2_t *)&v106 = sub_1000229DC(v103, v153, v177); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *, double))m_audioTrackName->setPosition)( m_audioTrackName, v177, v106); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))a1->m_audioTrackName->setScale)(a1->m_audioTrackName, 0.6); v107 = sub_10024A2D0(a1->m_normalSongNodes, a1->m_audioTrackName); v108 = *(_DWORD *)(((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, __n128))a1->m_audioTrackName->getPosition)( a1->m_audioTrackName, v107) + 4); v109 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v109->setScale)(v109, 1.2); v188.ptr = (void (__cdecl *)(cocos2d::CCObject *))MoreSearchLayer::audioPrevious; v188.adj = 0; v110 = CCMenuItemSpriteExtra::create(v109, nullptr, a1, v188); a1->m_songLeftBtn = v110; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v110); v111 = sub_10024A2D0(a1->m_normalSongNodes, a1->m_songLeftBtn); m_songLeftBtn = a1->m_songLeftBtn; v113 = a1->m_buttonMenu; v111.n128_f32[0] = (float)(v178 * 0.5) + -120.0; v114.n128_u32[0] = v108; sub_100022980(v111, v114, v153); v182 = cocos2d::CCNode::convertToNodeSpace(v113, (const cocos2d::CCPoint *)v153); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))m_songLeftBtn->setPosition)( m_songLeftBtn, v177, v182.x, v182.y); CCMenuItemSpriteExtra::setSizeMult(a1->m_songLeftBtn, 2.0); v115 = cocos2d::CCSprite::createWithSpriteFrameName("edit_rightBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v115->setScale)(v115, 1.2); v189.ptr = (void (__cdecl *)(cocos2d::CCObject *))MoreSearchLayer::audioNext; v189.adj = 0; v116 = CCMenuItemSpriteExtra::create(v115, nullptr, a1, v189); a1->m_songRightBtn = v116; v117 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v116); m_songRightBtn = a1->m_songRightBtn; v119 = a1->m_buttonMenu; v117.n128_f32[0] = (float)(v178 * 0.5) + 120.0; v120.n128_u32[0] = v108; sub_100022980(v117, v120, v153); v183 = cocos2d::CCNode::convertToNodeSpace(v119, (const cocos2d::CCPoint *)v153); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))m_songRightBtn->setPosition)( m_songRightBtn, v177, v183.x, v183.y); CCMenuItemSpriteExtra::setSizeMult(a1->m_songRightBtn, 2.0); v121 = sub_10024A2D0(a1->m_normalSongNodes, a1->m_songRightBtn); v122 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, __n128))a1->m_audioTrackName->getPosition)( a1->m_audioTrackName, v121); sub_1000229B8(&v154, v122); sub_100022990((float *)v177, 0.0, 0.0, 40.0, 40.0); v123 = sub_100022B98(v153, (__int64)v177); v191.origin.x = *(float *)&v123; v191.origin.y = v144; v191.size.width = v145; v191.size.height = v146; v124 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v191); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v124->setOpacity)(v124, 100); sub_100022988((float *)v153, 180.0, 30.0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float32x2_t *))v124->setContentSize)(v124, v153); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v124, 0xFFFFFFFFLL); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64 *))v124->setPosition)(v124, &v154); sub_10024A2D0(a1->m_customSongNodes, v124); v125 = CCTextInputNode::create(100.0, 50.0, "Enter song ID", "Thonburi", 24, "bigFont.fnt"); a1->m_enterSongID = v125; ((void (__fastcall *)(cocos2d::CCLayer *, CCTextInputNode *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v125, 20); m_enterSongID = a1->m_enterSongID; m_enterSongID->m_delegate = &a1->TextInputDelegate; ((void (__fastcall *)(CCTextInputNode *, __int64 *))m_enterSongID->setPosition)(m_enterSongID, &v154); CCTextInputNode::setMaxLabelScale(a1->m_enterSongID, 0.7); CCTextInputNode::setMaxLabelWidth(a1->m_enterSongID, 160.0); ((void (__fastcall *)(cocos2d::CCTextFieldTTF *, _QWORD))a1->m_enterSongID->m_textField->setVisible)( a1->m_enterSongID->m_textField, 0); v127 = a1->m_enterSongID; v127->m_maxLabelLength = 15; sub_100009900(v151, "0123456789"); CCTextInputNode::setAllowedChars(v127, v151); if ( v152 < 0 ) operator delete(v151[0]); CCTextInputNode::setLabelPlaceholderColor(a1->m_enterSongID, (cocos2d::ccColor3B)-1004936); CCTextInputNode::setLabelPlaceholderScale(a1->m_enterSongID, 0.5); CCTextInputNode::forceOffset(a1->m_enterSongID); sub_10024A2D0(a1->m_customSongNodes, a1->m_enterSongID); MoreSearchLayer::onSongFilter(a1, nullptr); v128 = GameLevelManager::sharedState(); v129 = GameLevelManager::getBoolForKey(v128, "customsong_filter"); v130 = GameLevelManager::sharedState(); v131 = GameLevelManager::getBoolForKey(v130, "enable_songFilter"); v132 = GameLevelManager::sharedState(); IntForKey = GameLevelManager::getIntForKey(v132, "song_filter"); v134 = 664; if ( v129 ) v134 = 672; MoreSearchLayer::onSongMode( a1, *(cocos2d::CCObject **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v134)); if ( v131 && v129 ) { if ( IntForKey ) { v135 = a1->m_enterSongID; v136 = (cocos2d::CCString *)sub_100268F4C("%i", IntForKey); CString = (char *)cocos2d::CCString::getCString(v136); sub_100009900(v149, CString); CCTextInputNode::setString(v135, v149); if ( v150 < 0 ) operator delete(v149[0]); } } v138 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v190.ptr = (void (__cdecl *)(cocos2d::CCObject *))MoreSearchLayer::onInfo; v190.adj = 0; v139 = CCMenuItemSpriteExtra::create(v138, nullptr, a1, v190); CCMenuItemSpriteExtra::setSizeMult(v139, 2.0); v140 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v139); v141 = a1->m_buttonMenu; v140.n128_f32[0] = (float)((float)(v178 * 0.5) + 220.0) + -17.0; v142.n128_f32[0] = (float)((float)(v179 * 0.5) + 145.0) + -17.0; sub_100022980(v140, v142, &v147); v184 = cocos2d::CCNode::convertToNodeSpace(v141, &v147); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *, float, float))v139->setPosition)(v139, v148, v184.x, v184.y); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source