// // cocos2d::extension::CCControlColourPicker::setColorValue from 0xa9cab0 to 0xa9cb88 (216 bytes) // // 2 xrefs: // > @ 0x55518 // > @ 0x11f59c0 // // 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::CCControlColourPicker::setColorValue( cocos2d::extension::CCControlColourPicker *a1, const cocos2d::ccColor3B *a2) { cocos2d::ccColor3B *p_m_rgb; // x21 double v4; // d1 double v5; // d2 cocos2d::CCSprite *m_colorTarget; // x0 cocos2d::extension::ColorPickerDelegate *m_delegate; // x0 p_m_rgb = &a1->m_rgb; a1->m_rgb = *a2; a1->m_hsv.h = cocos2d::extension::CCControlUtils::HSVfromRGB( (float)((float)a2->r / 255.0), (float)((float)a2->g / 255.0), (float)((float)a2->b / 255.0), 1.0); a1->m_hsv.s = v4; a1->m_hsv.v = v5; cocos2d::extension::CCControlColourPicker::updateHueAndControlPicker(a1); m_colorTarget = a1->m_colorTarget; if ( m_colorTarget ) m_colorTarget->setColor(m_colorTarget, p_m_rgb); m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(cocos2d::extension::ColorPickerDelegate *, _QWORD))m_delegate->colorValueChanged)( m_delegate, *(_QWORD *)&a1->m_rgb.r); }
GD Web Decomp Icon

GD Web Decomp

Raw Source