//
// ConfigureHSVWidget::sliderChanged from 0x1000ffb3c to 0x1000ffc68 (300 bytes)
//
// 3 xrefs:
// > ConfigureHSVWidget::init @ 0x1000ff284
// > ConfigureHSVWidget::init @ 0x1000ff3ec
// > ConfigureHSVWidget::init @ 0x1000ff558
//
// 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 __fastcall ConfigureHSVWidget::sliderChanged(ConfigureHSVWidget *a1, cocos2d::CCObject *a2)
{
float Value; // s8
int v5; // w0
cocos2d::CCString *v6; // x0
float v7; // s0
float v8; // s1
float v9; // s0
cocos2d::CCString *v10; // x0
float v11; // s0
float v12; // s1
float v13; // s0
HSVWidgetDelegate *m_delegate; // x0
Value = SliderThumb::getValue((SliderThumb *)a2);
v5 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
switch ( v5 )
{
case 3:
v10 = (cocos2d::CCString *)sub_100268F4C("%0.2f", Value);
v11 = cocos2d::CCString::floatValue(v10);
v12 = (float)(v11 * 2.0) + -1.0;
v13 = v11 + v11;
if ( a1->m_hsv.absoluteBrightness )
v13 = v12;
a1->m_hsv.v = v13;
break;
case 2:
v6 = (cocos2d::CCString *)sub_100268F4C("%0.2f", Value);
v7 = cocos2d::CCString::floatValue(v6);
v8 = (float)(v7 * 2.0) + -1.0;
v9 = v7 + v7;
if ( a1->m_hsv.absoluteSaturation )
v9 = v8;
a1->m_hsv.s = v9;
break;
case 1:
a1->m_hsv.h = (float)(int)(float)((float)(Value * 360.0) + -180.0);
break;
}
ConfigureHSVWidget::updateLabels(a1);
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(HSVWidgetDelegate *, ConfigureHSVWidget *))m_delegate->hsvChanged)(m_delegate, a1);
}