// // LeaderboardsLayer::toggleTabButtons from 0x1003b1a70 to 0x1003b1cf8 (648 bytes) // // 1 xrefs: // > LeaderboardsLayer::selectLeaderboard @ 0x1003b1664 // // 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 __fastcall LeaderboardsLayer::toggleTabButtons(LeaderboardsLayer *a1) { __int64 v2; // x20 __int64 v3; // x0 __int64 v4; // x2 __int64 v5; // x20 __int64 v6; // x0 __int64 v7; // x2 __int64 v8; // x20 __int64 v9; // x0 __int64 v10; // x2 __int64 v11; // x20 __int64 v12; // x0 __int64 v13; // x2 cocos2d::CCArray *m_modeButtons; // x8 cocos2d::ccArray *data; // x9 __int64 num; // x8 cocos2d::CCObject **arr; // x22 unsigned __int64 v18; // x23 cocos2d::CCObject *v19; // x20 ButtonSprite *v20; // x21 const char *v21; // x1 CCMenuItemToggler::toggle(a1->m_topBtn, a1->m_type == Top100); CCMenuItemToggler::toggle(a1->m_friendsBtn, a1->m_type == Friends); CCMenuItemToggler::toggle(a1->m_globalBtn, a1->m_type == Global); CCMenuItemToggler::toggle(a1->m_creatorsBtn, a1->m_type == Creator); ((void (__fastcall *)(CCMenuItemToggler *, bool))a1->m_topBtn->setEnabled)(a1->m_topBtn, a1->m_type != Top100); ((void (__fastcall *)(CCMenuItemToggler *, bool))a1->m_friendsBtn->setEnabled)( a1->m_friendsBtn, a1->m_type != Friends); ((void (__fastcall *)(CCMenuItemToggler *, bool))a1->m_globalBtn->setEnabled)(a1->m_globalBtn, a1->m_type != Global); ((void (__fastcall *)(CCMenuItemToggler *, bool))a1->m_creatorsBtn->setEnabled)( a1->m_creatorsBtn, a1->m_type != Creator); v2 = ((__int64 (__fastcall *)(CCMenuItemToggler *))a1->m_topBtn->getParent)(a1->m_topBtn); v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 496LL))(v2); if ( a1->m_type == Top100 ) v4 = 2; else v4 = 0xFFFFFFFFLL; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v3 + 576LL))(v3, v2, v4); v5 = ((__int64 (__fastcall *)(CCMenuItemToggler *))a1->m_friendsBtn->getParent)(a1->m_friendsBtn); v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 496LL))(v5); if ( a1->m_type == Friends ) v7 = 2; else v7 = 0xFFFFFFFFLL; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v6 + 576LL))(v6, v5, v7); v8 = ((__int64 (__fastcall *)(CCMenuItemToggler *))a1->m_globalBtn->getParent)(a1->m_globalBtn); v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 496LL))(v8); if ( a1->m_type == Global ) v10 = 2; else v10 = 0xFFFFFFFFLL; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v9 + 576LL))(v9, v8, v10); v11 = ((__int64 (__fastcall *)(CCMenuItemToggler *))a1->m_creatorsBtn->getParent)(a1->m_creatorsBtn); v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 496LL))(v11); if ( a1->m_type == Creator ) v13 = 2; else v13 = 0xFFFFFFFFLL; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v12 + 576LL))(v12, v11, v13); LeaderboardsLayer::refreshTabs(a1); m_modeButtons = a1->m_modeButtons; if ( m_modeButtons ) { data = m_modeButtons->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; v18 = (unsigned __int64)&arr[num - 1]; do { v19 = *arr; if ( !*arr ) break; v20 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))v19->__vftable[13].~CCObject_0)(*arr); v21 = ((unsigned int (__fastcall *)(cocos2d::CCObject *))v19->getTag)(v19) == a1->m_stat ? "GJ_button_02.png" : "GJ_button_01.png"; ButtonSprite::updateBGImage(v20, v21); ((void (__fastcall *)(cocos2d::CCObject *, bool))v19->__vftable[4].~CCObject)(v19, a1->m_type != Creator); ++arr; } while ( (unsigned __int64)arr <= v18 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source