// // SliderTouchLogic::ccTouchMoved from 0x2f5ad8 to 0x2f5bd4 (252 bytes) // // 1 xrefs: // > `non-virtual thunk to'SliderTouchLogic::ccTouchMoved @ 0x2f5be0 // // 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 SliderTouchLogic::ccTouchMoved(SliderTouchLogic *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { SliderThumb *m_thumb; // r6 float x; // s14 float m_length; // s15 float v7; // s13 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 float v9; // r1 float v10; // r2 float v11; // s15 Slider *m_slider; // r0 cocos2d::CCPoint v13; // [sp+4h] [bp-14h] BYREF cocos2d::CCPoint v14; // [sp+Ch] [bp-Ch] BYREF cocos2d::CCNode::convertTouchToNodeSpace(&v13, a1, a2); cocos2d::CCPoint::operator-(&v14, &v13, &a1->m_position); cocos2d::CCPoint::operator=(&v13, &v14); m_thumb = a1->m_thumb; x = v13.x; if ( a1->m_rotated ) x = v13.y; m_length = a1->m_length; v7 = -(float)(m_length * 0.5); if ( x >= v7 ) { v11 = m_length * 0.5; v10 = *(float *)&m_thumb->cocos2d::CCMenuItemImage::cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; setPosition = m_thumb->setPosition; if ( x <= v11 ) { if ( a1->m_rotated ) { v9 = 0.0; } else { v9 = x; v10 = 0.0; } if ( a1->m_rotated ) v10 = x; } else { if ( a1->m_rotated ) { v9 = 0.0; } else { v9 = v11; v11 = 0.0; } v10 = v11; } } else { setPosition = m_thumb->setPosition; if ( a1->m_rotated ) { v9 = 0.0; } else { v9 = -(float)(m_length * 0.5); v7 = 0.0; } v10 = v7; } cocos2d::CCPoint::CCPoint(&v14, v9, v10); setPosition(m_thumb, &v14); if ( a1->m_activateThumb ) a1->m_thumb->activate(a1->m_thumb); m_slider = a1->m_slider; if ( m_slider ) Slider::updateBar(m_slider); }
GD Web Decomp Icon

GD Web Decomp

Raw Source