// // SliderThumb::setValue from 0x593bf4 to 0x593d44 (336 bytes) // // 4 xrefs: // > SliderThumb::setRotated @ 0x593db0 // > SliderThumb::setMaxOffset @ 0x593e48 // > Slider::setValue @ 0x59481c // > @ 0x3a1a0 // // 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 SliderThumb::setValue(SliderThumb *a1, float a2) { float v4; // s8 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 float v6; // s8 float v7; // s9 long double v8; // q0 const cocos2d::CCPoint *v9; // x0 float x; // s11 float m_length; // s9 float v12; // s9 float v13; // s8 float v14; // s0 float v15; // [xsp+50h] [xbp+50h] cocos2d::CCPoint v16; // [xsp+70h] [xbp+70h] BYREF if ( a1->m_vertical ) { setPosition = a1->setPosition; x = a1->getPosition(a1)->x; m_length = a1->m_length; v12 = m_length * a1->getScale(a1); v13 = a1->m_length; v14 = a1->getScale(a1); cocos2d::CCPoint::CCPoint(&v16, x, -(float)((float)((float)(v13 * v14) * 0.5) - (float)(v12 * a2))); } else { v4 = a1->m_length; setPosition = a1->setPosition; v6 = v4 * a1->getScale(a1); v7 = a1->m_length; v8 = ((long double (__fastcall *)(SliderThumb *))a1->getScale)(a1); v15 = -(float)((float)((float)(v7 * *(float *)&v8) * 0.5) - (float)(v6 * a2)); v9 = a1->getPosition(a1); cocos2d::CCPoint::CCPoint(&v16, v15, v9->y); } setPosition(a1, &v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source