// // sub_5836C8 from 0x5836c8 to 0x58419a (2770 bytes) // // 1 xrefs: // > SFXBrowser::init @ 0x5841ee // // 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 // int __fastcall sub_5836C8(SFXBrowser *a1, int a2) { GameManager *v3; // r0 _BOOL4 GameVariable; // r0 int v5; // r3 cocos2d::CCDirector *v6; // r0 cocos2d::CCNode *v7; // r6 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r8 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCMenu *v10; // r0 cocos2d::CCLabelBMFont *v11; // r0 cocos2d::CCLabelBMFont_vtbl *v12; // r3 cocos2d::CCLabelBMFont *v13; // r8 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCLabelBMFont *m_nameLabel; // r8 void (__fastcall *v16)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCLabelBMFont *v17; // r0 cocos2d::CCLabelBMFont_vtbl *v18; // r3 cocos2d::CCLabelBMFont *m_pathLabel; // r10 void (__fastcall *v20)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCLabelBMFont *v21; // r9 void (__fastcall *v22)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10 int v23; // r0 cocos2d::CCLabelBMFont *v24; // r0 cocos2d::CCLabelBMFont_vtbl *v25; // r3 cocos2d::CCLabelBMFont *v26; // r10 void (__fastcall *v27)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCLabelBMFont *m_searchLabel; // r10 void (__fastcall *v29)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCLabelBMFont *v30; // r0 cocos2d::CCLabelBMFont_vtbl *v31; // r3 cocos2d::CCLabelBMFont *m_infoLabel; // r8 void (__fastcall *v33)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCLabelBMFont *v34; // r8 void (__fastcall *v35)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCSprite *v36; // r0 CCMenuItemSpriteExtra *v37; // r9 cocos2d::CCNode *m_buttonMenu; // r11 float v39; // s20 cocos2d::CCSprite *v40; // r9 cocos2d::CCSprite *v41; // r11 CCMenuItemSpriteExtra *v42; // r0 CCMenuItemSpriteExtra *m_backButton; // r11 cocos2d::CCNode *v44; // r10 void (__fastcall *v45)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCSprite *v46; // r8 CCMenuItemSpriteExtra *v47; // r0 void (__fastcall *v48)(cocos2d::CCPoint *, cocos2d::CCPoint *); // r11 cocos2d::CCSprite *v49; // r6 CCMenuItemSpriteExtra *v50; // r0 CCMenuItemSpriteExtra *m_nextButton; // r11 cocos2d::CCNode *v52; // r10 void (__fastcall *v53)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCSprite *v54; // r8 CCMenuItemSpriteExtra *v55; // r0 cocos2d::CCNode *v56; // r9 float v57; // s14 CCMenuItemSpriteExtra_vtbl *v58; // r3 CCMenuItemSpriteExtra *v59; // r11 float v60; // s13 void (__fastcall *v61)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 ButtonSprite *v62; // r0 ButtonSprite *v63; // r9 cocos2d::CCPoint v64; // r1 CCMenuItemSpriteExtra *v65; // r6 ButtonSprite *v66; // r0 ButtonSprite *v67; // r0 CCMenuItemSpriteExtra *v68; // r11 cocos2d::CCSprite *v69; // r9 CCMenuItemSpriteExtra *v70; // r10 cocos2d::CCNode *v71; // r11 cocos2d::CCSprite *v72; // r6 CCMenuItemSpriteExtra *v73; // r10 void (__fastcall *v74)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11 cocos2d::CCSprite *v75; // r9 CCMenuItemSpriteExtra *v76; // r0 CCMenuItemSpriteExtra *m_clearSearchButton; // r7 void (__fastcall *v78)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 int v79; // r11 cocos2d::CCLabelBMFont *v80; // r0 cocos2d::CCLabelBMFont *m_pageLabel; // r5 void (__fastcall *v82)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCLabelBMFont *v83; // r5 void (__fastcall *v84)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r7 LoadingCircleSprite *v85; // r0 LoadingCircleSprite *m_circleSprite; // r5 void (__fastcall *v87)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 MusicDownloadManager *v88; // r0 MusicDownloadManager *v89; // r0 float v91; // r2 float v92; // r3 bool v93; // [sp+10h] [bp-8Ch] cocos2d::CCPoint *v94; // [sp+14h] [bp-88h] cocos2d::CCPoint *v95; // [sp+14h] [bp-88h] cocos2d::CCNode *v96; // [sp+14h] [bp-88h] cocos2d::CCPoint *v97; // [sp+14h] [bp-88h] cocos2d::CCPoint *v98; // [sp+14h] [bp-88h] cocos2d::CCPoint *v99; // [sp+14h] [bp-88h] cocos2d::CCNode *v100; // [sp+14h] [bp-88h] cocos2d::CCPoint *m_prevButton; // [sp+1Ch] [bp-80h] cocos2d::CCNode *v102; // [sp+1Ch] [bp-80h] cocos2d::CCPoint *v103; // [sp+1Ch] [bp-80h] cocos2d::CCSize v104; // [sp+24h] [bp-78h] BYREF cocos2d::CCPoint v105; // [sp+2Ch] [bp-70h] BYREF cocos2d::CCPoint v106; // [sp+34h] [bp-68h] BYREF cocos2d::CCPoint v107; // [sp+3Ch] [bp-60h] BYREF cocos2d::CCPoint v108; // [sp+44h] [bp-58h] BYREF cocos2d::CCPoint v109; // [sp+4Ch] [bp-50h] BYREF cocos2d::CCPoint v110; // [sp+54h] [bp-48h] BYREF cocos2d::CCPoint v111; // [sp+5Ch] [bp-40h] BYREF cocos2d::CCPoint v112; // [sp+64h] [bp-38h] BYREF cocos2d::CCPoint v113; // [sp+6Ch] [bp-30h] BYREF cocos2d::CCPoint v114; // [sp+74h] [bp-28h] BYREF cocos2d::CCPoint v115; // [sp+7Ch] [bp-20h] BYREF cocos2d::CCRect v116; // [sp+84h] [bp-18h] BYREF cocos2d::CCSize v117; // 0:^0.8 cocos2d::CCRect v118; // 0:kr00_16.16 a1->m_sfxID = a2; a1->m_noElasticity = 1; v3 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v3, "0148"); a1->m_compactMode = GameVariable; if ( GameVariable ) v5 = 40; else v5 = 20; a1->m_cellAmount = v5; v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v104, v6); cocos2d::CCRect::CCRect(&v116, 0.0, 0.0, 80.0, 80.0); v118.origin.x = v91; v118.origin.y = v92; v118.size = v117; v7 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"GJ_square02.png", (const char *)&v116, v118); ((void (__fastcall *)(cocos2d::CCNode *, int))v7->__vftable[1].~CCNode_0)(v7, 255); setContentSize = v7->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v116, 440.0, 290.0); setContentSize(v7, (const cocos2d::CCSize *)&v116); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, -1); setPosition = v7->setPosition; cocos2d::CCPoint::CCPoint(&v116.origin, v104.width * 0.5, v104.height * 0.5); setPosition(v7, &v116.origin); v10 = cocos2d::CCMenu::create(); a1->m_buttonMenu = v10; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v10, 10); a1->m_joystickConnected = -1; v11 = cocos2d::CCLabelBMFont::create(); v12 = v11->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v13 = v11; a1->m_nameLabel = v11; setAnchorPoint = v12->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v116.origin, 1.0, 0.5); setAnchorPoint(v13, &v116.origin); a1->m_mainLayer->addChild_0(a1->m_mainLayer, a1->m_nameLabel, 11); m_nameLabel = a1->m_nameLabel; v16 = m_nameLabel->setPosition; cocos2d::CCPoint::CCPoint( &v116.origin, (float)(v104.width * 0.5) + 170.0, (float)((float)(v104.height * 0.5) + 110.0) + 3.0); v16(m_nameLabel, &v116.origin); v17 = cocos2d::CCLabelBMFont::create(); v18 = v17->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_pathLabel = v17; v18->setOpacity(v17, 150); m_pathLabel = a1->m_pathLabel; v20 = m_pathLabel->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v116.origin, 1.0, 0.5); v20(m_pathLabel, &v116.origin); a1->m_mainLayer->addChild_0(a1->m_mainLayer, a1->m_pathLabel, 11); v21 = a1->m_pathLabel; v22 = v21->setPosition; v23 = (int)a1->m_nameLabel->getPosition(a1->m_nameLabel); v22(v21, (const cocos2d::CCPoint *)v23); v24 = cocos2d::CCLabelBMFont::create(); v25 = v24->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v26 = v24; a1->m_searchLabel = v24; v27 = v25->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v116.origin, 0.0, 0.5); v27(v26, &v116.origin); a1->m_mainLayer->addChild_0(a1->m_mainLayer, a1->m_searchLabel, 11); m_searchLabel = a1->m_searchLabel; v29 = m_searchLabel->setPosition; cocos2d::CCPoint::CCPoint( &v116.origin, (float)(v104.width * 0.5) - 170.0, (float)((float)(v104.height * 0.5) + 110.0) + 3.0); v29(m_searchLabel, &v116.origin); a1->m_searchLabel->setColor(a1->m_searchLabel, &stru_9ADBC0); v30 = cocos2d::CCLabelBMFont::create(); v31 = v30->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_infoLabel = v30; v31->setOpacity(v30, 200); a1->m_infoLabel->setColor(a1->m_infoLabel, &stru_9ADBC3); a1->m_infoLabel->setScale(a1->m_infoLabel, 0.5); m_infoLabel = a1->m_infoLabel; v33 = m_infoLabel->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v116.origin, 0.5, 0.5); v33(m_infoLabel, &v116.origin); a1->m_mainLayer->addChild_0(a1->m_mainLayer, a1->m_infoLabel, 11); v34 = a1->m_infoLabel; v35 = v34->setPosition; cocos2d::CCPoint::CCPoint(&v116.origin, v104.width * 0.5, (float)((float)(v104.height * 0.5) - 145.0) + 14.0); v35(v34, &v116.origin); v36 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v116.origin.y = 0.0; LODWORD(v116.origin.x) = SFXBrowser::onClose; v37 = CCMenuItemSpriteExtra::create( v36, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SFXBrowser::onClose, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v37); CCMenuItemSpriteExtra::setSizeMult(v37, 1.6); m_buttonMenu = a1->m_buttonMenu; v94 = (cocos2d::CCPoint *)v37->setPosition; cocos2d::CCPoint::CCPoint( &v114, (float)((float)(v104.width * 0.5) - 220.0) + 10.0, (float)((float)(v104.height * 0.5) + 145.0) - 10.0); cocos2d::CCNode::convertToNodeSpace(&v115, m_buttonMenu, &v114); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v94)(v37, &v115); v39 = (float)(v104.height * 0.5) - 10.0; v40 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v40->setScale)(v40, 1058642330); v41 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v40->addChild_0(v40, v41, -1); v95 = (cocos2d::CCPoint *)v41->setPosition; cocos2d::CCNode::convertToNodeSpace(&v114, v40, &stru_AC7DC0); cocos2d::CCPoint::CCPoint(&v113, 15.0, 0.0); cocos2d::CCPoint::operator+(&v115, &v114, &v113); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCPoint *))v95)(v41, &v115); v115.y = 0.0; LODWORD(v115.x) = SFXBrowser::onExitFolder; v42 = CCMenuItemSpriteExtra::create( v40, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SFXBrowser::onExitFolder, (unsigned int)a1)); a1->m_backButton = v42; CCMenuItemSpriteExtra::setSizeMult(v42, 1.6); a1->m_buttonMenu->addChild(a1->m_buttonMenu, a1->m_backButton); m_backButton = a1->m_backButton; v44 = a1->m_buttonMenu; v45 = m_backButton->setPosition; cocos2d::CCPoint::CCPoint(&v113, (float)((float)((float)(v104.width * 0.5) - 220.0) + 22.0) - 5.0, v39 + 40.0); cocos2d::CCNode::convertToNodeSpace(&v114, v44, &v113); v45(m_backButton, &v114); v46 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v46->setScale)(v46, 1061997773); v114.y = 0.0; LODWORD(v114.x) = SFXBrowser::onPage; v47 = CCMenuItemSpriteExtra::create( v46, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SFXBrowser::onPage, (unsigned int)a1)); a1->m_prevButton = v47; CCMenuItemSpriteExtra::setSizeMult(v47, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, a1->m_prevButton); m_prevButton = (cocos2d::CCPoint *)a1->m_prevButton; v48 = *(void (__fastcall **)(cocos2d::CCPoint *, cocos2d::CCPoint *))(LODWORD(m_prevButton->x) + 92); v96 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v112, (float)((float)(v104.width * 0.5) - 220.0) + 22.0, v39); cocos2d::CCNode::convertToNodeSpace(&v113, v96, &v112); v48(m_prevButton, &v113); a1->m_prevButton->setTag(a1->m_prevButton, 0); v49 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v49->setScale)(v49, 1061997773); cocos2d::CCSprite::setFlipX(v49, 1); LODWORD(v113.x) = SFXBrowser::onPage; v113.y = 0.0; v50 = CCMenuItemSpriteExtra::create( v49, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SFXBrowser::onPage, (unsigned int)a1)); a1->m_nextButton = v50; CCMenuItemSpriteExtra::setSizeMult(v50, 1.5); a1->m_buttonMenu->addChild(a1->m_buttonMenu, a1->m_nextButton); m_nextButton = a1->m_nextButton; v52 = a1->m_buttonMenu; v53 = m_nextButton->setPosition; cocos2d::CCPoint::CCPoint(&v111, (float)((float)(v104.width * 0.5) + 220.0) - 22.0, v39); cocos2d::CCNode::convertToNodeSpace(&v112, v52, &v111); v53(m_nextButton, &v112); a1->m_nextButton->setTag(a1->m_nextButton, 1); v54 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v54->setScale)(v54, 1058642330); v112.y = 0.0; LODWORD(v112.x) = SFXBrowser::onUpdateLibrary; v55 = CCMenuItemSpriteExtra::create( v54, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SFXBrowser::onUpdateLibrary, (unsigned int)a1)); v56 = a1->m_buttonMenu; v57 = (float)(v104.width * 0.5) + 220.0; v58 = v55->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v59 = v55; v60 = (float)(v104.height * 0.5) + 145.0; a1->m_refreshButton = v55; v61 = v58->setPosition; cocos2d::CCPoint::CCPoint(&v110, v57 - 10.0, v60 - 10.0); cocos2d::CCNode::convertToNodeSpace(&v111, v56, &v110); v61(v59, &v111); a1->m_buttonMenu->addChild(a1->m_buttonMenu, a1->m_refreshButton); a1->m_refreshButton->setVisible(a1->m_refreshButton, 0); v62 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_sortIcon_001.png"); v63 = ButtonSprite::create( v62, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.0, 1, "GJ_button_01.png", nullptr, (bool)" "); cocos2d::CCPoint::CCPoint(&v111, -0.5, -1.5); LODWORD(v64.x) = &v111; ButtonSprite::updateSpriteOffset(v63, v64); v111.y = 0.0; LODWORD(v111.x) = SFXBrowser::onSorting; v65 = CCMenuItemSpriteExtra::create( v63, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SFXBrowser::onSorting, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v65); v97 = (cocos2d::CCPoint *)v65->setPosition; v102 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v109, (float)((float)(v104.width * 0.5) + 220.0) - 24.0, (float)(v104.height * 0.5) + 75.0); cocos2d::CCNode::convertToNodeSpace(&v110, v102, &v109); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v97)(v65, &v110); ((void (__fastcall *)(CCMenuItemSpriteExtra *, int))v65->setScale)(v65, 1061158912); v65->m_baseScale = 0.75; v66 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_smallModeIcon_001.png"); v67 = ButtonSprite::create(v66, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.0, 1, "GJ_button_01.png", nullptr, v93); v110.y = 0.0; LODWORD(v110.x) = SFXBrowser::onToggleCompactMode; v68 = CCMenuItemSpriteExtra::create( v67, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SFXBrowser::onToggleCompactMode, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v68); v103 = (cocos2d::CCPoint *)v68->setPosition; v98 = (cocos2d::CCPoint *)v65->getPosition(v65); cocos2d::CCPoint::CCPoint(&v108, 0.0, -40.0); cocos2d::CCPoint::operator+(&v109, v98, &v108); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v103)(v68, &v109); ((void (__fastcall *)(CCMenuItemSpriteExtra *, int))v68->setScale)(v68, 1061158912); v68->m_baseScale = 0.75; v69 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v69->setScale)(v69, 1061997773); v109.y = 0.0; LODWORD(v109.x) = SFXBrowser::onCredits; v70 = CCMenuItemSpriteExtra::create( v69, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SFXBrowser::onCredits, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v70); v71 = a1->m_buttonMenu; v99 = (cocos2d::CCPoint *)v70->setPosition; cocos2d::CCPoint::CCPoint( &v107, (float)((float)(v104.width * 0.5) - 220.0) + 17.0, (float)((float)(v104.height * 0.5) - 145.0) + 17.0); cocos2d::CCNode::convertToNodeSpace(&v108, v71, &v107); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v99)(v70, &v108); CCMenuItemSpriteExtra::setSizeMult(v70, 1.2); v72 = cocos2d::CCSprite::createWithSpriteFrameName("gj_findBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v72->setScale)(v72, 1065353216); v108.y = 0.0; LODWORD(v108.x) = SFXBrowser::onSearch; v73 = CCMenuItemSpriteExtra::create( v72, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SFXBrowser::onSearch, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v73, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v73); v74 = v73->setPosition; v100 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v106, (float)((float)(v104.width * 0.5) - 220.0) + 24.0, (float)(v104.height * 0.5) + 75.0); cocos2d::CCNode::convertToNodeSpace(&v107, v100, &v106); v74(v73, &v107); v75 = cocos2d::CCSprite::createWithSpriteFrameName("gj_findBtnOff_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v75->setScale)(v75, 1065353216); v107.y = 0.0; LODWORD(v107.x) = SFXBrowser::onClearSearch; v76 = CCMenuItemSpriteExtra::create( v75, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SFXBrowser::onClearSearch, (unsigned int)a1)); a1->m_clearSearchButton = v76; CCMenuItemSpriteExtra::setSizeMult(v76, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, a1->m_clearSearchButton); m_clearSearchButton = a1->m_clearSearchButton; v78 = m_clearSearchButton->setPosition; v79 = (int)v73->getPosition(v73); cocos2d::CCPoint::CCPoint(&v105, 0.0, -35.0); cocos2d::CCPoint::operator+(&v106, v79, &v105); v78(m_clearSearchButton, &v106); a1->m_clearSearchButton->setVisible(a1->m_clearSearchButton, 0); v80 = cocos2d::CCLabelBMFont::create(); a1->m_pageLabel = v80; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v80, 10); m_pageLabel = a1->m_pageLabel; v82 = m_pageLabel->setPosition; cocos2d::CCPoint::CCPoint( &v106, (float)((float)(v104.width * 0.5) + 220.0) - 50.0, (float)((float)(v104.height * 0.5) + 145.0) - 8.0); v82(m_pageLabel, &v106); v83 = a1->m_pageLabel; v84 = v83->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v106, 1.0, 1.0); v84(v83, &v106); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))a1->m_pageLabel->setScale)(a1->m_pageLabel, 1053609165); v85 = LoadingCircleSprite::create(1.0); a1->m_circleSprite = v85; a1->m_mainLayer->addChild(a1->m_mainLayer, v85); m_circleSprite = a1->m_circleSprite; v87 = m_circleSprite->setPosition; cocos2d::CCPoint::CCPoint(&v106, v104.width * 0.5, v104.height * 0.5); v87(m_circleSprite, &v106); v88 = MusicDownloadManager::sharedState(); MusicDownloadManager::addMusicDownloadDelegate(v88, &a1->MusicDownloadDelegate); if ( !MusicDownloadManager::sharedState()->m_sfxObjects ) { v89 = MusicDownloadManager::sharedState(); MusicDownloadManager::parseSFXLibrary(v89); } SFXBrowser::trySetupSFXBrowser(a1); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source