// // SliderTouchLogic::ccTouchMoved from 0x594664 to 0x5947f8 (404 bytes) // // 3 xrefs: // > `non-virtual thunk to'SliderTouchLogic::ccTouchMoved @ 0x5947fc // > @ 0x824a0 // > @ 0x113fb38 // // 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) { float v4; // s0 float v5; // s1 float m_length; // s0 float v7; // s1 SliderThumb *m_thumb; // x23 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 float v10; // s1 float v11; // s0 float v12; // s1 SliderThumb *v13; // x23 void (__fastcall *v14)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 Slider *m_slider; // x0 float v16; // [xsp+48h] [xbp+48h] BYREF float v17; // [xsp+4Ch] [xbp+4Ch] cocos2d::CCPoint v18; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCNode::convertTouchToNodeSpace(a1, a2); cocos2d::CCPoint::operator-(&v18, &v16, &a1->m_position); cocos2d::CCPoint::operator=(&v16, v4, v5); if ( a1->m_rotated ) { m_length = a1->m_length; v7 = (float)-m_length * 0.5; if ( v17 < v7 || (v7 = m_length * 0.5, v17 > (float)(m_length * 0.5)) ) { m_thumb = a1->m_thumb; setPosition = m_thumb->setPosition; cocos2d::CCPoint::CCPoint(&v18, 0.0, v7); setPosition(m_thumb, &v18); if ( !a1->m_activateThumb ) goto LABEL_8; goto LABEL_4; } v12 = v17; v13 = a1->m_thumb; v11 = 0.0; v14 = v13->setPosition; } else { v10 = a1->m_length; v11 = (float)-v10 * 0.5; if ( v16 < v11 || (v11 = v10 * 0.5, (float)(v10 * 0.5) < v16) ) { v12 = 0.0; v13 = a1->m_thumb; v14 = v13->setPosition; } else { v11 = v16; v13 = a1->m_thumb; v12 = 0.0; v14 = v13->setPosition; } } cocos2d::CCPoint::CCPoint(&v18, v11, v12); v14(v13, &v18); if ( a1->m_activateThumb ) LABEL_4: a1->m_thumb->activate(a1->m_thumb); LABEL_8: m_slider = a1->m_slider; if ( m_slider ) Slider::updateBar(m_slider); }
GD Web Decomp Icon

GD Web Decomp

Raw Source