// // LevelBrowserLayer::setupLevelBrowser from 0x3bb050 to 0x3bb240 (496 bytes) // // 7 xrefs: // > LevelBrowserLayer::loadLevelsFinished @ 0x3bb2b0 // > LevelBrowserLayer::loadPage @ 0x3bbf2a // > LevelBrowserLayer::onEnter @ 0x3bdea2 // > LevelListLayer::onRefreshLevelList @ 0x58ee26 // > LevelListLayer::init @ 0x591826 // > LevelListLayer::setIDPopupClosed @ 0x591c5e // > LevelListLayer::cellPerformedAction @ 0x5923d0 // // 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 // void LevelBrowserLayer::setupLevelBrowser(LevelBrowserLayer *a1, cocos2d::CCArray *a2) { int v2; // s15 float v3; // s16 cocos2d::CCDirector *v6; // r0 cocos2d::CCTouchDispatcher *v7; // r0 cocos2d::CCDirector *v8; // r0 int m_listHeight; // r5 GJSearchObject *m_searchObject; // r3 bool v11; // cc unsigned int m_searchType; // r5 _BOOL4 v13; // r5 GJListLayer *m_list; // r5 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6 cocos2d::CCSize v16; // [sp+14h] [bp-14h] BYREF cocos2d::CCPoint v17; // [sp+1Ch] [bp-Ch] BYREF if ( a1->m_list ) { v6 = cocos2d::CCDirector::sharedDirector(); v7 = v6->getTouchDispatcher(v6); cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, a1->m_list); a1->m_list->removeMeAndCleanup(a1->m_list); a1->m_list = nullptr; } v8 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v16, v8); m_listHeight = a1->m_listHeight; m_searchObject = a1->m_searchObject; v11 = m_listHeight <= 0; if ( m_listHeight <= 0 ) v3 = 220.0; else v2 = a1->m_listHeight; m_searchType = m_searchObject->m_searchType; if ( !v11 ) v3 = (float)v2; if ( m_searchObject->m_searchMode != 1 ) { if ( m_searchType != 26 ) { if ( m_searchType > 0x1A ) { if ( m_searchType != 101 ) { if ( m_searchType > 0x65 ) { if ( m_searchType != 102 && m_searchType != 103 ) goto LABEL_29; } else if ( m_searchType != 98 ) { goto LABEL_29; } } LABEL_33: if ( !a2 ) { v13 = 0; goto LABEL_32; } goto LABEL_30; } if ( m_searchType == 14 ) goto LABEL_33; if ( m_searchType != 25 ) { if ( m_searchType != 9 ) goto LABEL_29; goto LABEL_33; } } a2 = a1->updateResultArray(a1, a2); goto LABEL_29; } if ( m_searchType == 102 ) goto LABEL_33; LABEL_29: if ( a2 ) LABEL_30: a2 = (cocos2d::CCArray *)CustomListView::create(a2, (BoomListType)&a1->TableViewCellDelegate, v3, 356.0); v13 = (unsigned int)(a1->m_searchObject->m_searchType - 25) <= 1; LABEL_32: LevelBrowserLayer::getSearchTitle((LevelBrowserLayer *)&v17, (int)a1); a1->m_list = GJListLayer::create( (BoomListView *)a2, (const char *)LODWORD(v17.x), (cocos2d::ccColor4B)-12684609, 356.0, v3, v13); sub_774008(&v17); a1->addChild(a1, a1->m_list); m_list = a1->m_list; setPosition = m_list->setPosition; cocos2d::CCPoint::CCPoint( &v17, (float)(v16.width - 356.0) * 0.5, (float)((float)((float)((float)(v16.height - v3) * 0.5) - 10.0) + 5.0) + a1->m_unkFloat); setPosition(m_list, &v17); }
GD Web Decomp Icon

GD Web Decomp

Raw Source