// // MoreSearchLayer::init from 0x49707c to 0x497e46 (3530 bytes) // // 1 xrefs: // > MoreSearchLayer::create @ 0x4955f4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:49:43 +0000 // int __fastcall MoreSearchLayer::init(MoreSearchLayer *this) { cocos2d::CCDirector *v2; // r0 cocos2d::CCLayer *WinSize; // r0 int v4; // r0 int v5; // r3 cocos2d::CCArray *v6; // r0 cocos2d::CCObject *v7; // r0 cocos2d::CCArray *v8; // r0 cocos2d::CCObject *v9; // r0 cocos2d::CCArray *v10; // r0 cocos2d::CCObject *v11; // r0 int v12; // r6 void (__fastcall *v13)(int, _DWORD *); // r8 void (__fastcall *v14)(int, _DWORD *); // r8 const char *v15; // r1 int v16; // r0 cocos2d::CCMenu *v17; // r6 int v18; // r0 float v19; // s13 float v20; // s15 int v21; // r6 void (__fastcall *v22)(int, _DWORD *); // r8 const char *v23; // r2 int v24; // r6 void (__fastcall *v25)(int, _DWORD *); // r8 float v26; // s22 float v27; // s20 float v28; // s16 float v29; // s17 GameLevelManager *v30; // r0 GameLevelManager *v31; // r0 const cocos2d::CCPoint *v32; // r9 GameLevelManager *v33; // r0 GameLevelManager *v34; // r0 const cocos2d::CCPoint *v35; // r9 GameLevelManager *v36; // r0 GameLevelManager *v37; // r0 const cocos2d::CCPoint *v38; // r9 GameLevelManager *v39; // r0 GameLevelManager *v40; // r0 const cocos2d::CCPoint *v41; // r9 GameLevelManager *v42; // r0 GameLevelManager *v43; // r0 const cocos2d::CCPoint *v44; // r9 GameLevelManager *v45; // r0 GameLevelManager *v46; // r0 const cocos2d::CCPoint *v47; // r9 GameLevelManager *v48; // r0 GameLevelManager *v49; // r0 const cocos2d::CCPoint *v50; // r9 GameLevelManager *v51; // r0 GameLevelManager *v52; // r0 const cocos2d::CCPoint *v53; // r10 GameLevelManager *v54; // r0 GameLevelManager *v55; // r0 const cocos2d::CCPoint *v56; // r9 GameLevelManager *v57; // r0 GameLevelManager *v58; // r0 const cocos2d::CCPoint *v59; // r9 GameLevelManager *v60; // r0 GameLevelManager *v61; // r0 const cocos2d::CCPoint *v62; // r9 const char *v63; // r2 cocos2d::CCObject *v64; // r10 void (__fastcall *v65)(cocos2d::CCObject *, _DWORD *); // r6 float v66; // s17 ButtonSprite *v67; // r0 int v68; // r0 ButtonSprite *v69; // r0 int v70; // r0 void (__fastcall *v71)(cocos2d::CCPoint *, _DWORD *); // r11 const char *v72; // r2 int v73; // r0 void (__fastcall *v74)(cocos2d::CCPoint *, _DWORD *); // r11 int v75; // r10 __int64 v76; // r0 float v77; // r10 int v78; // r11 int v79; // r0 void (__fastcall *v80)(cocos2d::CCPoint *, _DWORD *); // r11 const char *v81; // r1 int v82; // r11 int v83; // r0 void (__fastcall *v84)(cocos2d::CCPoint *, _DWORD *); // r11 const cocos2d::CCPoint *v85; // r1 cocos2d::CCObject *v86; // r8 int *v87; // r0 int v88; // r8 GameLevelManager *v89; // r0 GameLevelManager *v90; // r0 GameLevelManager *BoolForKey; // r8 GameLevelManager *v92; // r0 GameLevelManager *v93; // r9 GameLevelManager *v94; // r0 const char *IntForKey; // r0 int v96; // r2 cocos2d::CCObject *v97; // r1 const char *v98; // r6 const char *v99; // r1 int v100; // r8 cocos2d::CCString *v101; // r0 const char *CString; // r0 const char *v103; // r6 size_t v104; // r0 int v105; // r0 int v106; // r5 const cocos2d::CCPoint *v107; // r8 void (__fastcall *v108)(int, _BYTE *); // r7 char *v110; // [sp+8h] [bp-10Ch] float v111; // [sp+10h] [bp-104h] float v112; // [sp+10h] [bp-104h] int v113; // [sp+18h] [bp-FCh] cocos2d::CCPoint *v114; // [sp+1Ch] [bp-F8h] cocos2d::CCPoint *v115; // [sp+1Ch] [bp-F8h] cocos2d::CCPoint *v116; // [sp+1Ch] [bp-F8h] cocos2d::CCPoint *v117; // [sp+1Ch] [bp-F8h] cocos2d::CCPoint *v118; // [sp+1Ch] [bp-F8h] cocos2d::CCPoint *v119; // [sp+20h] [bp-F4h] cocos2d::CCPoint *v120; // [sp+20h] [bp-F4h] cocos2d::CCPoint *v121; // [sp+20h] [bp-F4h] cocos2d::CCPoint *v122; // [sp+20h] [bp-F4h] int v123; // [sp+28h] [bp-ECh] int v124; // [sp+34h] [bp-E0h] float v125; // [sp+38h] [bp-DCh] BYREF float v126; // [sp+3Ch] [bp-D8h] _BYTE v127[8]; // [sp+40h] [bp-D4h] BYREF _BYTE v128[8]; // [sp+48h] [bp-CCh] BYREF _BYTE v129[8]; // [sp+50h] [bp-C4h] BYREF _BYTE v130[8]; // [sp+58h] [bp-BCh] BYREF int (__fastcall *v131)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+60h] [bp-B4h] int v132; // [sp+64h] [bp-B0h] int (__fastcall *v133)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+68h] [bp-ACh] int v134; // [sp+6Ch] [bp-A8h] int (__fastcall *v135)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+70h] [bp-A4h] int v136; // [sp+74h] [bp-A0h] int (__fastcall *v137)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+78h] [bp-9Ch] int v138; // [sp+7Ch] [bp-98h] int (__fastcall *v139)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+80h] [bp-94h] int v140; // [sp+84h] [bp-90h] int (__fastcall *v141)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+88h] [bp-8Ch] int v142; // [sp+8Ch] [bp-88h] unsigned int (__fastcall *v143)(cocos2d::CCArray **, cocos2d::CCObject *); // [sp+90h] [bp-84h] int v144; // [sp+94h] [bp-80h] int (__fastcall *v145)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+98h] [bp-7Ch] int v146; // [sp+9Ch] [bp-78h] int (__fastcall *v147)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+A0h] [bp-74h] int v148; // [sp+A4h] [bp-70h] int (__fastcall *v149)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+A8h] [bp-6Ch] int v150; // [sp+ACh] [bp-68h] int (__fastcall *v151)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+B0h] [bp-64h] int v152; // [sp+B4h] [bp-60h] int (__fastcall *v153)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+B8h] [bp-5Ch] int v154; // [sp+BCh] [bp-58h] int (__fastcall *v155)(MoreSearchLayer *, cocos2d::CCObject *, int, int); // [sp+C0h] [bp-54h] int v156; // [sp+C4h] [bp-50h] int (__fastcall *v157)(MoreSearchLayer *, cocos2d::CCObject *, int, int); // [sp+C8h] [bp-4Ch] int v158; // [sp+CCh] [bp-48h] int (__fastcall *v159)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+D0h] [bp-44h] int v160; // [sp+D4h] [bp-40h] int (__fastcall *v161)(MoreSearchLayer *, cocos2d::CCObject *); // [sp+D8h] [bp-3Ch] int v162; // [sp+DCh] [bp-38h] int v163; // [sp+E0h] [bp-34h] BYREF int v164; // [sp+E4h] [bp-30h] int v165; // [sp+E8h] [bp-2Ch] _BYTE v166[16]; // [sp+ECh] [bp-28h] BYREF _DWORD v167[4]; // [sp+FCh] [bp-18h] BYREF FLAlertLayer::incrementForcePrio(this); v167[0] = -1778384896; v113 = cocos2d::CCLayerColor::initWithColor(this, v167); if ( v113 ) { (*(void (__fastcall **)(MoreSearchLayer *, int))(*(_DWORD *)this + 500))(this, 1); (*(void (__fastcall **)(MoreSearchLayer *, int))(*(_DWORD *)this + 536))(this, 1); v2 = (cocos2d::CCDirector *)(*(int (__fastcall **)(MoreSearchLayer *, int))(*(_DWORD *)this + 544))(this, 1); cocos2d::CCDirector::sharedDirector(v2); WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v125); v4 = cocos2d::CCLayer::create(WinSize); v5 = *(_DWORD *)this; *((_DWORD *)this + 115) = v4; v6 = (cocos2d::CCArray *)(*(int (__fastcall **)(MoreSearchLayer *, int))(v5 + 228))(this, v4); v7 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6); *((_DWORD *)this + 137) = v7; v8 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v7); v9 = (cocos2d::CCObject *)cocos2d::CCArray::create(v8); *((_DWORD *)this + 138) = v9; v10 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v9); v11 = (cocos2d::CCObject *)cocos2d::CCArray::create(v10); *((_DWORD *)this + 136) = v11; cocos2d::CCObject::retain(v11); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v167, 0.0, 0.0, 80.0, 80.0); v12 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v167); (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 456))(v12, 255); v13 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v167, 440.0, 290.0); v13(v12, v167); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v12, -1); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v125 * 0.5, v126 * 0.5); v14(v12, v167); v16 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v15); v132 = 0; v131 = MoreSearchLayer::onClose; v17 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v16, 0, (int)this, (int)MoreSearchLayer::onClose, 0); CCMenuItemSpriteExtra::setSizeMult((int)v17, 1.6); v18 = cocos2d::CCMenu::create(v17, nullptr); v19 = v126; v20 = (float)(v125 * 0.5) - 220.0; *((_DWORD *)this + 111) = v18; v21 = v18; v22 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v20 + 10.0, (float)((float)(v19 * 0.5) + 145.0) - 10.0); v22(v21, v167); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 111), 10); *((_DWORD *)this + 125) = -1; v24 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Advanced Options", "goldFont.fnt", v23); (*(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 80))(v24, 1060320051); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v24, 20); v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v24 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v125 * 0.5, (float)((float)(v126 * 0.5) + 145.0) - 18.0); v25(v24, v167); v163 = 0; v164 = 0; v165 = 0; v26 = (float)(v125 * 0.5) - 40.0; v27 = (float)(v125 * 0.5) - 170.0; v28 = (float)(v125 * 0.5) + 90.0; v29 = (float)(v126 * 0.5) + 90.0; v30 = (GameLevelManager *)std::string::__init(&v163, "Uncompleted", 0xBu); v134 = 0; v133 = MoreSearchLayer::onUncompleted; v31 = (GameLevelManager *)GameLevelManager::sharedState(v30); LOBYTE(v25) = GameLevelManager::getBoolForKey(v31, "uncompleted_filter") ^ 1; v32 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v27, v29); MoreSearchLayer::createToggleButton((int)this, (int)&v163, (int)v133, v134, (bool)v25, v32, (int)v167); std::string::~string((int)&v163); v163 = 0; v164 = 0; v165 = 0; v33 = (GameLevelManager *)std::string::__init(&v163, "Completed", 9u); v136 = 0; v135 = MoreSearchLayer::onCompleted; v34 = (GameLevelManager *)GameLevelManager::sharedState(v33); LOBYTE(v25) = GameLevelManager::getBoolForKey(v34, "completed_filter") ^ 1; v35 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v26, v29); MoreSearchLayer::createToggleButton((int)this, (int)&v163, (int)v135, v136, (bool)v25, v35, (int)v167); std::string::~string((int)&v163); v163 = 0; v164 = 0; v165 = 0; v36 = (GameLevelManager *)std::string::__init(&v163, "Original", 8u); v138 = 0; v137 = MoreSearchLayer::onOriginal; v37 = (GameLevelManager *)GameLevelManager::sharedState(v36); LOBYTE(v25) = GameLevelManager::getBoolForKey(v37, "original_filter") ^ 1; v38 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v28, v29); MoreSearchLayer::createToggleButton((int)this, (int)&v163, (int)v137, v138, (bool)v25, v38, (int)v167); std::string::~string((int)&v163); v163 = 0; v164 = 0; v165 = 0; v39 = (GameLevelManager *)std::string::__init(&v163, "Coins", 5u); v140 = 0; v139 = MoreSearchLayer::onCoins; v40 = (GameLevelManager *)GameLevelManager::sharedState(v39); LOBYTE(v25) = GameLevelManager::getBoolForKey(v40, "coin_filter") ^ 1; v41 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v27, v29 - 40.0); MoreSearchLayer::createToggleButton((int)this, (int)&v163, (int)v139, v140, (bool)v25, v41, (int)v167); std::string::~string((int)&v163); v163 = 0; v164 = 0; v165 = 0; v42 = (GameLevelManager *)std::string::__init(&v163, "2-Player", 8u); v142 = 0; v141 = MoreSearchLayer::onTwoPlayer; v43 = (GameLevelManager *)GameLevelManager::sharedState(v42); LOBYTE(v25) = GameLevelManager::getBoolForKey(v43, "twoP_filter") ^ 1; v44 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v26, v29 - 40.0); MoreSearchLayer::createToggleButton((int)this, (int)&v163, (int)v141, v142, (bool)v25, v44, (int)v167); std::string::~string((int)&v163); v163 = 0; v164 = 0; v165 = 0; v45 = (GameLevelManager *)std::string::__init(&v163, "Song", 4u); v144 = 0; v143 = MoreSearchLayer::onSongFilter; v46 = (GameLevelManager *)GameLevelManager::sharedState(v45); LOBYTE(v25) = GameLevelManager::getBoolForKey(v46, "enable_songFilter") ^ 1; v47 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v28, v29 - 40.0); MoreSearchLayer::createToggleButton((int)this, (int)&v163, (int)v143, v144, (bool)v25, v47, (int)v167); std::string::~string((int)&v163); v163 = 0; v164 = 0; v165 = 0; v48 = (GameLevelManager *)std::string::__init(&v163, "No Star", 7u); v146 = 0; v145 = MoreSearchLayer::onNoStar; v49 = (GameLevelManager *)GameLevelManager::sharedState(v48); LOBYTE(v25) = GameLevelManager::getBoolForKey(v49, "nostar_filter") ^ 1; v50 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v27, v29 - 80.0); MoreSearchLayer::createToggleButton((int)this, (int)&v163, (int)v145, v146, (bool)v25, v50, (int)v167); std::string::~string((int)&v163); v163 = 0; v164 = 0; v165 = 0; v51 = (GameLevelManager *)std::string::__init(&v163, "Featured", 8u); v148 = 0; v147 = MoreSearchLayer::onFeatured; v52 = (GameLevelManager *)GameLevelManager::sharedState(v51); LOBYTE(v50) = GameLevelManager::getBoolForKey(v52, "featured_filter") ^ 1; v53 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v26, v29 - 80.0); MoreSearchLayer::createToggleButton((int)this, (int)&v163, (int)v147, v148, (bool)v50, v53, (int)v167); std::string::~string((int)&v163); v163 = 0; v164 = 0; v165 = 0; v54 = (GameLevelManager *)std::string::__init(&v163, "Epic", 4u); v150 = 0; v149 = MoreSearchLayer::onEpic; v55 = (GameLevelManager *)GameLevelManager::sharedState(v54); LOBYTE(v24) = GameLevelManager::getBoolForKey(v55, "epic_filter") ^ 1; v56 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v28, v29 - 80.0); MoreSearchLayer::createToggleButton((int)this, (int)&v163, (int)v149, v150, v24, v56, (int)v167); std::string::~string((int)&v163); v163 = 0; v164 = 0; v165 = 0; v57 = (GameLevelManager *)std::string::__init(&v163, "Legendary", 9u); v152 = 0; v151 = MoreSearchLayer::onLegendary; v58 = (GameLevelManager *)GameLevelManager::sharedState(v57); LOBYTE(v24) = GameLevelManager::getBoolForKey(v58, "legendary_filter") ^ 1; v59 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v27, v29 - 120.0); MoreSearchLayer::createToggleButton((int)this, (int)&v163, (int)v151, v152, v24, v59, (int)v167); std::string::~string((int)&v163); v163 = 0; v164 = 0; v165 = 0; v60 = (GameLevelManager *)std::string::__init(&v163, "Mythic", 6u); v154 = 0; v153 = MoreSearchLayer::onMythic; v61 = (GameLevelManager *)GameLevelManager::sharedState(v60); LOBYTE(v24) = GameLevelManager::getBoolForKey(v61, "mythic_filter") ^ 1; v62 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v26, v29 - 120.0); MoreSearchLayer::createToggleButton((int)this, (int)&v163, (int)v153, v154, v24, v62, (int)v167); std::string::~string((int)&v163); v64 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Select Song:", "goldFont.fnt", v63); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), v64); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v64 + 80))(v64, 1056964608); v65 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v64 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v125 * 0.5, (float)(v126 * 0.5) - 95.0); v65(v64, v167); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 136), v64); v66 = *(float *)((*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v64 + 96))(v64) + 4) + 25.0; v67 = ButtonSprite::create( (ButtonSprite *)"Normal", (const char *)&word_28, 0, 0.4, 0, "bigFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(20.0), v111); v156 = 0; v155 = MoreSearchLayer::onSongMode; v68 = CCMenuItemSpriteExtra::create((int)v67, 0, (int)this, (int)MoreSearchLayer::onSongMode, 0); *((_DWORD *)this + 133) = v68; CCMenuItemSpriteExtra::setSizeMult(v68, 1.1); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), *((_DWORD *)this + 133)); v123 = *((_DWORD *)this + 133); v114 = *(cocos2d::CCPoint **)(*(_DWORD *)v123 + 92); v119 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, (float)(v125 * 0.5) - 30.0, v66); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v167, v119); ((void (__fastcall *)(int, _DWORD *))v114)(v123, v167); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 133) + 36))(*((_DWORD *)this + 133), 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 136), *((cocos2d::CCObject **)this + 133)); v69 = ButtonSprite::create( (ButtonSprite *)"Custom", (const char *)&word_28, 0, 0.4, 0, "bigFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(20.0), v112); v157 = MoreSearchLayer::onSongMode; v158 = 0; v70 = CCMenuItemSpriteExtra::create((int)v69, 0, (int)this, (int)MoreSearchLayer::onSongMode, 0); *((_DWORD *)this + 134) = v70; CCMenuItemSpriteExtra::setSizeMult(v70, 1.1); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), *((_DWORD *)this + 134)); v120 = *((cocos2d::CCPoint **)this + 134); v71 = *(void (__fastcall **)(cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v120 + 92); v115 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, (float)(v125 * 0.5) + 30.0, v66); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v167, v115); v71(v120, v167); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 134) + 36))(*((_DWORD *)this + 134), 2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 136), *((cocos2d::CCObject **)this + 134)); v73 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "bigFont.fnt", v72); *((_DWORD *)this + 130) = v73; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v73); v116 = *((cocos2d::CCPoint **)this + 130); v74 = *(void (__fastcall **)(cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v116 + 92); v75 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v64 + 96))(v64); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, 0.0, -25.0); cocos2d::CCPoint::operator+(v167, v75, v166); v74(v116, v167); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 130) + 80))(*((_DWORD *)this + 130), 1058642330); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 137), *((cocos2d::CCObject **)this + 130)); v76 = ((__int64 (__fastcall *)(_DWORD))*(_DWORD *)(**((_DWORD **)this + 130) + 96))(*((_DWORD *)this + 130)); v77 = *(float *)(v76 + 4); v78 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"edit_leftBtn_001.png", (const char *)HIDWORD(v76)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v78 + 80))(v78, 1067030938); v160 = 0; v159 = MoreSearchLayer::audioPrevious; v79 = CCMenuItemSpriteExtra::create(v78, 0, (int)this, (int)MoreSearchLayer::audioPrevious, 0); *((_DWORD *)this + 131) = v79; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v79); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 137), *((cocos2d::CCObject **)this + 131)); v121 = *((cocos2d::CCPoint **)this + 131); v80 = *(void (__fastcall **)(cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v121 + 92); v117 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, (float)(v125 * 0.5) - 120.0, v77); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v167, v117); v80(v121, v167); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 131), 2.0); v82 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v81); (*(void (__fastcall **)(int, int))(*(_DWORD *)v82 + 80))(v82, 1067030938); v162 = 0; v161 = MoreSearchLayer::audioNext; v83 = CCMenuItemSpriteExtra::create(v82, 0, (int)this, (int)MoreSearchLayer::audioNext, 0); *((_DWORD *)this + 132) = v83; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v83); v122 = *((cocos2d::CCPoint **)this + 132); v84 = *(void (__fastcall **)(cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v122 + 92); v118 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, (float)(v125 * 0.5) + 120.0, v77); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v167, v118); v84(v122, v167); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 132), 2.0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 137), *((cocos2d::CCObject **)this + 132)); v85 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 130) + 96))(*((_DWORD *)this + 130)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, v85); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v166, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v167, (const cocos2d::CCRect *)v166); v86 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v167); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v86 + 456))(v86, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v128, 180.0, 30.0); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v86 + 160))(v86, v128); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v86, -1); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v86 + 92))(v86, v127); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 138), v86); v87 = CCTextInputNode::create( (CCTextInputNode *)0x42C80000, 50.0, "Enter song ID", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v110); *((_DWORD *)this + 135) = v87; (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v87, 20); *(_DWORD *)(*((_DWORD *)this + 135) + 420) = (char *)this + 440; (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 135) + 92))(*((_DWORD *)this + 135), v127); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 135), 0.7); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 135), 160.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 135) + 416) + 172))( *(_DWORD *)(*((_DWORD *)this + 135) + 416), 0); *(_DWORD *)(*((_DWORD *)this + 135) + 424) = 15; v88 = *((_DWORD *)this + 135); v163 = 0; v164 = 0; v165 = 0; std::string::__init(&v163, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v88, (unsigned __int8 *)&v163); std::string::~string((int)&v163); LOWORD(v124) = -21896; BYTE2(v124) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 135), v124); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 135), 0.5); CCTextInputNode::forceOffset(*((_DWORD *)this + 135)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 138), *((cocos2d::CCObject **)this + 135)); v89 = (GameLevelManager *)MoreSearchLayer::onSongFilter((cocos2d::CCArray **)this, nullptr); v90 = (GameLevelManager *)GameLevelManager::sharedState(v89); BoolForKey = (GameLevelManager *)GameLevelManager::getBoolForKey(v90, "customsong_filter"); v92 = (GameLevelManager *)GameLevelManager::sharedState(BoolForKey); v93 = (GameLevelManager *)GameLevelManager::getBoolForKey(v92, "enable_songFilter"); v94 = (GameLevelManager *)GameLevelManager::sharedState(v93); IntForKey = (const char *)GameLevelManager::getIntForKey(v94, "song_filter"); v97 = *((cocos2d::CCObject **)this + 133); if ( BoolForKey ) v97 = *((cocos2d::CCObject **)this + 134); v98 = IntForKey; MoreSearchLayer::onSongMode(this, v97, v96, *((_DWORD *)this + 134)); if ( v93 && BoolForKey && v98 ) { v100 = *((_DWORD *)this + 135); v101 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v98); CString = (const char *)cocos2d::CCString::getCString(v101); v163 = 0; v164 = 0; v165 = 0; v103 = CString; v104 = strlen(CString); std::string::__init(&v163, v103, v104); CCTextInputNode::setString(v100, (int)&v163); std::string::~string((int)&v163); } v105 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v99); v167[1] = 0; v167[0] = MoreSearchLayer::onInfo; v106 = CCMenuItemSpriteExtra::create(v105, 0, (int)this, (int)MoreSearchLayer::onInfo, 0); CCMenuItemSpriteExtra::setSizeMult(v106, 2.0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v106); v107 = *((const cocos2d::CCPoint **)this + 111); v108 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v106 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v129, (float)((float)(v125 * 0.5) + 220.0) - 17.0, (float)((float)(v126 * 0.5) + 145.0) - 17.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v130, v107); v108(v106, v130); } return v113; }
GD Web Decomp Icon

GD Web Decomp

Raw Source