// // BoomScrollLayer::moveToPage from 0x2e252c to 0x2e264e (290 bytes) // // 9 xrefs: // > BoomScrollLayer::ccTouchEnded @ 0x2e27a0 // > BoomScrollLayer::addPage @ 0x2e28da // > BoomScrollLayer::removePage @ 0x2e294e // > ListButtonBar::goToPage @ 0x2fd456 // > LevelSelectLayer::onNext @ 0x4085f0 // > LevelSelectLayer::onPrev @ 0x40860e // > GauntletSelectLayer::goToPage @ 0x4d7206 // > WorldSelectLayer::goToPage @ 0x4fd090 // > SecretRewardsLayer::goToPage @ 0x58513e // // 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 BoomScrollLayer::moveToPage(BoomScrollLayer *a1, int a2) { float m_touchQuotient; // s15 float m_minSpeed; // s14 bool v6; // fzf bool v7; // fnf float v8; // s15 float v9; // s15 float m_unkFloat2; // s14 cocos2d::CCEaseElasticOut *v11; // r0 float v12; // r2 cocos2d::CCSequence *v13; // r0 cocos2d::CCSequence *v14; // r9 cocos2d::CCFiniteTimeAction *v15; // r0 cocos2d::CCAction *v16; // r5 BoomScrollLayerDelegate *m_delegate; // r0 cocos2d::CCPoint v18; // [sp+4h] [bp-10h] BYREF if ( a1->m_looped || a2 >= 0 && a2 < BoomScrollLayer::getTotalPages(a1) ) { a1->m_pageMoving = 1; BoomScrollLayer::positionForPageWithNumber(&v18, a1, a2); cocos2d::CCPoint::operator=(&a1->m_position, &v18); cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2); m_touchQuotient = a1->m_touchQuotient; if ( m_touchQuotient > a1->m_maxSpeed ) { v8 = 0.4; } else { m_minSpeed = a1->m_minSpeed; v6 = m_touchQuotient == m_minSpeed; v7 = m_touchQuotient < m_minSpeed; v8 = 0.6; if ( v7 || v6 ) v8 = 0.8; } a1->m_touchQuotient = 0.0; v9 = v8 * 1.2; m_unkFloat2 = a1->m_unkFloat2; if ( m_unkFloat2 > 0.0 ) v9 = v9 * m_unkFloat2; v11 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create(v9, &a1->m_position); v13 = (cocos2d::CCSequence *)cocos2d::CCEaseElasticOut::create(v11, (cocos2d::CCActionInterval *)0x3F000000, v12); v18.y = 0.0; LODWORD(v18.x) = BoomScrollLayer::moveToPageEnded; v14 = v13; v15 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, BoomScrollLayer::moveToPageEnded, 0); v16 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v14, v15, 0); cocos2d::CCNode::runAction(a1->m_extendedLayer, v16); v16->setTag(v16, 2); m_delegate = a1->m_delegate; a1->m_page = a2; if ( m_delegate ) m_delegate->scrollLayerWillScrollToPage(m_delegate, a1, a2); if ( a1->m_looped ) BoomScrollLayer::repositionPagesLooped(a1); } }