// // cocos2d::extension::CCControlHuePicker::setHuePercentage from 0xa9d048 to 0xa9d140 (248 bytes) // // 2 xrefs: // > @ 0x4f4a0 // > @ 0x11f60b8 // // 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 cocos2d::extension::CCControlHuePicker::setHuePercentage(cocos2d::extension::CCControlHuePicker *a1, float a2) { cocos2d::CCSprite *m_background; // x0 float v4; // s8 float v5; // s12 float v6; // s0 cocos2d::CCSprite *m_slider; // x22 float x; // s2 float y; // s1 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x19 cocos2d::CCPoint v11; // [xsp+70h] [xbp+70h] BYREF float v12; // [xsp+80h] [xbp+80h] float v13; // [xsp+84h] [xbp+84h] m_background = a1->m_background; a1->m_huePercentage = a2; a1->m_hue = a2 * 360.0; cocos2d::CCNode::boundingBox(m_background); v4 = (float)((float)(a1->m_huePercentage * 360.0) + -180.0) * 0.017453; v5 = cosf(v4); v6 = sinf(v4); m_slider = a1->m_slider; x = a1->m_startPos.x; y = a1->m_startPos.y; setPosition = m_slider->setPosition; cocos2d::CCPoint::CCPoint( &v11, (float)(x + (float)(v12 * 0.5)) + (float)((float)((float)(v12 * 0.5) + -15.0) * v5), (float)(y + (float)(v13 * 0.5)) + (float)((float)((float)(v12 * 0.5) + -15.0) * v6)); setPosition(m_slider, &v11); }
GD Web Decomp Icon

GD Web Decomp

Raw Source