//
// ConfigureHSVWidget::sliderChanged from 0x1400979b0 to 0x140097ac2 (274 bytes)
//
// 4 xrefs:
// > ConfigureHSVWidget::init @ 0x140096ccf
// > ConfigureHSVWidget::init @ 0x140096e67
// > ConfigureHSVWidget::init @ 0x140096fee
// > ??> @ 0x1406c72fc
//
// 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 ConfigureHSVWidget::sliderChanged(ConfigureHSVWidget *a1, cocos2d::CCObject *a2)
{
float Value; // xmm0_4
int v5; // eax
int v6; // eax
cocos2d::CCString *v7; // rax
float v8; // xmm0_4
float v9; // xmm0_4
cocos2d::CCString *v10; // rax
float v11; // xmm0_4
float v12; // xmm0_4
HSVWidgetDelegate *m_delegate; // rcx
Value = SliderThumb::getValue((SliderThumb *)a2);
v5 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) - 1;
if ( v5 )
{
v6 = v5 - 1;
if ( v6 )
{
if ( v6 == 1 )
{
v7 = cocos2d::CCString::createWithFormat("%0.2f", Value);
v8 = cocos2d::CCString::floatValue(v7);
v9 = v8 + v8;
if ( a1->m_hsv.absoluteBrightness )
v9 = v9 - 1.0;
a1->m_hsv.v = v9;
}
}
else
{
v10 = cocos2d::CCString::createWithFormat("%0.2f", Value);
v11 = cocos2d::CCString::floatValue(v10);
v12 = v11 + v11;
if ( a1->m_hsv.absoluteSaturation )
v12 = v12 - 1.0;
a1->m_hsv.s = v12;
}
}
else
{
a1->m_hsv.h = (float)(int)(float)((float)(Value * 360.0) - 180.0);
}
ConfigureHSVWidget::updateLabels(a1);
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->hsvChanged(m_delegate, a1);
}