// // cocos2d::extension::CCTableView::scrollViewDidScroll from 0x5a9ff8 to 0x5aa1a8 (432 bytes) // // 1 xrefs: // > `non-virtual thunk to'cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x5aa1b4 // // 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 cocos2d::extension::CCTableView::scrollViewDidScroll( cocos2d::extension::CCTableView *a1, cocos2d::extension::CCScrollView *a2) { int v3; // r6 int m_unknown2; // r0 unsigned int v5; // r6 float y; // s16 float height; // s17 cocos2d::CCNode *Container; // r0 cocos2d::CCPoint v9; // r1 unsigned int v10; // r0 float v11; // s16 float v12; // r9 cocos2d::CCNode *v13; // r0 float v14; // r0 float v15; // s16 cocos2d::CCNode *v16; // r0 float v17; // r0 float width; // s16 cocos2d::CCNode *v19; // r0 float v20; // r0 cocos2d::CCPoint v21; // r1 unsigned int v22; // r0 unsigned int v23; // r8 cocos2d::extension::CCTableViewCell *v24; // r10 cocos2d::extension::CCTableViewCell *Object; // r10 unsigned int Idx; // r0 cocos2d::CCPoint v27; // [sp+4h] [bp-14h] BYREF cocos2d::CCPoint v28; // [sp+Ch] [bp-Ch] BYREF v3 = (*(int (__fastcall **)(int, cocos2d::extension::CCTableView *))(*(_DWORD *)a1[1].m_uUnknown + 20))( a1[1].m_uUnknown, a1); if ( v3 ) { m_unknown2 = a1[1].m_unknown2; if ( m_unknown2 ) (*(void (__fastcall **)(int, cocos2d::extension::CCTableView *))(*(_DWORD *)m_unknown2 + 8))(m_unknown2, a1); v5 = v3 - 1; cocos2d::extension::CCScrollView::getContentOffset(&v28, a1); cocos2d::CCPoint::operator*(&v27, &v28, -1082130432); if ( !a1[1].m_uID ) { y = v27.y; height = a1->m_tViewSize.height; Container = cocos2d::extension::CCScrollView::getContainer(a1); v27.y = y + (float)(height / Container->getScaleY(Container)); } cocos2d::CCPoint::CCPoint(&v28, &v27); LODWORD(v9.x) = &v28; v10 = cocos2d::extension::CCTableView::_indexFromOffset(a1, v9); v11 = a1->m_tViewSize.height; if ( v10 == -1 ) v12 = *(float *)&v5; else v12 = *(float *)&v10; if ( a1[1].m_uID ) { v16 = cocos2d::extension::CCScrollView::getContainer(a1); v17 = v16->getScaleY(v16); v15 = v27.y + (float)(v11 / v17); } else { v13 = cocos2d::extension::CCScrollView::getContainer(a1); v14 = v13->getScaleY(v13); v15 = v27.y - (float)(v11 / v14); } v27.y = v15; width = a1->m_tViewSize.width; v19 = cocos2d::extension::CCScrollView::getContainer(a1); v20 = v19->getScaleX(v19); v27.x = v27.x + (float)(width / v20); cocos2d::CCPoint::CCPoint(&v28, &v27); LODWORD(v21.x) = &v28; v22 = cocos2d::extension::CCTableView::_indexFromOffset(a1, v21); if ( v22 == -1 ) v23 = v5; else v23 = v22; while ( cocos2d::CCArray::count((cocos2d::CCArray *)a1[1].m_eObjType) ) { v24 = (cocos2d::extension::CCTableViewCell *)cocos2d::CCArray::objectAtIndex( (cocos2d::CCArray *)a1[1].m_eObjType, 0); if ( cocos2d::extension::CCTableViewCell::getIdx(v24) >= LODWORD(v12) ) break; cocos2d::extension::CCTableView::_moveCellOutOfSight(a1, v24); } while ( cocos2d::CCArray::count((cocos2d::CCArray *)a1[1].m_eObjType) ) { Object = (cocos2d::extension::CCTableViewCell *)cocos2d::CCArray::lastObject((cocos2d::CCArray *)a1[1].m_eObjType); Idx = cocos2d::extension::CCTableViewCell::getIdx(Object); if ( Idx > v5 || Idx <= v23 ) break; cocos2d::extension::CCTableView::_moveCellOutOfSight(a1, Object); } for ( v28.x = v12; LODWORD(v28.x) <= v23; ++LODWORD(v28.x) ) { if ( (_DWORD *)(a1[1].m_nLuaID + 4) == std::_Rb_tree,std::less,std::allocator>::find( a1[1].m_nLuaID, &v28) ) cocos2d::extension::CCTableView::updateCellAtIndex(a1, LODWORD(v28.x)); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source