// // BoomScrollLayer::moveToPage from 0x10012c0e0 to 0x10012c27c (412 bytes) // // 7 xrefs: // > BoomScrollLayer::ccTouchEnded @ 0x10012c990 // > ListButtonBar::goToPage @ 0x100168258 // > GauntletSelectLayer::goToPage @ 0x1001bfdc8 // > SecretRewardsLayer::goToPage @ 0x1002ea1a0 // > LevelSelectLayer::onPrev @ 0x10040231c // > LevelSelectLayer::onNext @ 0x10040234c // > LevelSelectLayer::keyDown @ 0x1004038e4 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall BoomScrollLayer::moveToPage(BoomScrollLayer *a1, int a2) { __int64 v2; // x20 __int64 v4; // x8 __n128 v5; // q0 __n128 v6; // q1 float m_touchQuotient; // s0 float v8; // s0 float m_unkFloat2; // s1 cocos2d::CCMoveTo *v10; // x0 cocos2d::CCEaseElasticOut *v11; // x21 cocos2d::CCAction *v12; // x21 BoomScrollLayerDelegate *m_delegate; // x0 double v14; // [xsp+18h] [xbp-38h] BYREF cocos2d::SEL_CallFunc v15; // 0:x1.16 v2 = *(_QWORD *)&a2; if ( a1->m_looped ) goto LABEL_6; if ( (a2 & 0x80000000) == 0 ) { v4 = 472; if ( a1->m_dynamic ) v4 = 440; if ( (int)sub_10024A36C(*(BoomScrollLayer_vtbl **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v4)) > a2 ) { LABEL_6: a1->m_pageMoving = 1; v5.n128_f32[0] = (float)(*(float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1) - a1->m_pageOffset) * (float)-(int)v2; v6.n128_u32[0] = 0; sub_100022980(v5, v6, &v14); sub_1000229D0(&a1->m_position, &v14); cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2); m_touchQuotient = a1->m_touchQuotient; if ( m_touchQuotient <= a1->m_maxSpeed ) { if ( m_touchQuotient <= a1->m_minSpeed ) v8 = 0.96; else v8 = 0.72; } else { v8 = 0.48; } m_unkFloat2 = a1->m_unkFloat2; if ( m_unkFloat2 <= 0.0 ) m_unkFloat2 = 1.0; a1->m_touchQuotient = 0.0; v10 = cocos2d::CCMoveTo::create(v8 * m_unkFloat2, &a1->m_position); v11 = cocos2d::CCEaseElasticOut::create(v10, 0.5); v15.ptr = (void (*)(void))BoomScrollLayer::moveToPageEnded; v15.adj = 0; cocos2d::CCCallFunc::create(a1, v15); v12 = (cocos2d::CCAction *)sub_10018A494(v11); cocos2d::CCNode::runAction(a1->m_extendedLayer, v12); ((void (__fastcall *)(cocos2d::CCAction *, __int64))v12->setTag)(v12, 2); a1->m_page = v2; m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(BoomScrollLayerDelegate *, BoomScrollLayer *, __int64))m_delegate->scrollLayerWillScrollToPage)( m_delegate, a1, v2); if ( a1->m_looped ) BoomScrollLayer::repositionPagesLooped(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source