//
// cocos2d::extension::CCControlColourPicker::hueSliderValueChanged from 0x5a26a8 to 0x5a2750 (168 bytes)
//
// 0 xrefs:
//
// 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::hueSliderValueChanged(
cocos2d::extension::CCControlColourPicker *a1,
cocos2d::CCObject *a2,
unsigned int a3)
{
double v4; // d7
GLubyte v5; // r3
double v6; // d7
cocos2d::extension::CCControlColourPicker_vtbl *v7; // r3
cocos2d::CCSprite *m_colorTarget; // r0
cocos2d::extension::ColorPickerDelegate *m_delegate; // r0
double v10[4]; // [sp+10h] [bp-20h] BYREF
a1->m_hsv.h = *(float *)&a2[7].m_uID;
cocos2d::extension::CCControlUtils::RGBfromHSV(
(int)v10,
HIDWORD(a1->m_hsv.s),
LODWORD(a1->m_hsv.h),
HIDWORD(a1->m_hsv.h),
a1->m_hsv.s,
a1->m_hsv.v);
v4 = v10[2] * 255.0;
a1->m_rgb.g = (unsigned int)(v10[1] * 255.0);
v5 = (unsigned int)v4;
v6 = v10[0] * 255.0;
a1->m_rgb.b = v5;
v7 = a1->cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_rgb.r = (unsigned int)v6;
v7->sendActionsForControlEvents(a1, 256);
cocos2d::extension::CCControlColourPicker::updateControlPicker(a1);
m_colorTarget = a1->m_colorTarget;
if ( m_colorTarget )
m_colorTarget->setColor(m_colorTarget, &a1->m_rgb);
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(cocos2d::extension::ColorPickerDelegate *, _DWORD))m_delegate->colorValueChanged)(
m_delegate,
*(_DWORD *)&a1->m_rgb.r);
}