// // LeaderboardsLayer::toggleTabButtons from 0x1402c35a0 to 0x1402c3822 (642 bytes) // // 4 xrefs: // > LeaderboardsLayer::selectLeaderboard @ 0x1402c32f9 // > @ 0x14068cc68 // > @ 0x14068cc9c // > @ 0x1406d2a38 // // 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 LeaderboardsLayer::toggleTabButtons(LeaderboardsLayer *a1) { _BOOL8 v2; // rdx _BOOL8 v3; // rdx _BOOL8 v4; // rdx _BOOL8 v5; // rdx cocos2d::CCNode *v6; // rbx __int64 v7; // rax unsigned int v8; // edi __int64 v9; // r8 cocos2d::CCNode *v10; // rbx __int64 v11; // rax __int64 v12; // r8 cocos2d::CCNode *v13; // rbx __int64 v14; // rax __int64 v15; // r8 cocos2d::CCNode *v16; // rbx __int64 v17; // rax cocos2d::CCArray *m_modeButtons; // rsi cocos2d::ccArray *data; // rsi __int64 num; // rax cocos2d::CCObject **arr; // rsi cocos2d::CCObject **i; // r14 cocos2d::CCObject *v23; // rbx ButtonSprite *v24; // rdi int v25; // eax const char *v26; // rdx __int64 v27; // rdx 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); LOBYTE(v2) = a1->m_type != Top100; a1->m_topBtn->setEnabled(a1->m_topBtn, v2); LOBYTE(v3) = a1->m_type != Friends; a1->m_friendsBtn->setEnabled(a1->m_friendsBtn, v3); LOBYTE(v4) = a1->m_type != Global; a1->m_globalBtn->setEnabled(a1->m_globalBtn, v4); LOBYTE(v5) = a1->m_type != Creator; a1->m_creatorsBtn->setEnabled(a1->m_creatorsBtn, v5); v6 = a1->m_topBtn->getParent(a1->m_topBtn); v7 = (__int64)v6->getParent(v6); v8 = -1; v9 = 0xFFFFFFFFLL; if ( a1->m_type == Top100 ) v9 = 2; (*(void (__fastcall **)(__int64, cocos2d::CCNode *, __int64))(*(_QWORD *)v7 + 568LL))(v7, v6, v9); v10 = a1->m_friendsBtn->getParent(a1->m_friendsBtn); v11 = (__int64)v10->getParent(v10); v12 = 0xFFFFFFFFLL; if ( a1->m_type == Friends ) v12 = 2; (*(void (__fastcall **)(__int64, cocos2d::CCNode *, __int64))(*(_QWORD *)v11 + 568LL))(v11, v10, v12); v13 = a1->m_globalBtn->getParent(a1->m_globalBtn); v14 = (__int64)v13->getParent(v13); v15 = 0xFFFFFFFFLL; if ( a1->m_type == Global ) v15 = 2; (*(void (__fastcall **)(__int64, cocos2d::CCNode *, __int64))(*(_QWORD *)v14 + 568LL))(v14, v13, v15); v16 = a1->m_creatorsBtn->getParent(a1->m_creatorsBtn); v17 = (__int64)v16->getParent(v16); if ( a1->m_type == Creator ) v8 = 2; (*(void (__fastcall **)(__int64, cocos2d::CCNode *, _QWORD))(*(_QWORD *)v17 + 568LL))(v17, v16, v8); LeaderboardsLayer::refreshTabs(a1); m_modeButtons = a1->m_modeButtons; if ( m_modeButtons ) { data = m_modeButtons->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { v23 = *arr; if ( !*arr ) break; v24 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))v23->__vftable[13].copyWithZone)(*arr); v25 = v23->getTag(v23); v26 = "GJ_button_01.png"; if ( v25 == a1->m_stat ) v26 = "GJ_button_02.png"; ButtonSprite::updateBGImage(v24, v26); LOBYTE(v27) = a1->m_type != Creator; ((void (__fastcall *)(cocos2d::CCObject *, __int64))v23->__vftable[4].update)(v23, v27); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source