//
// ConfigureHSVWidget::sliderChanged from 0x4b6ee0 to 0x4b6fa2 (194 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 ConfigureHSVWidget::sliderChanged(ConfigureHSVWidget *a1, cocos2d::CCObject *a2)
{
float Value; // s16
int v5; // r0
const char *v6; // r1
cocos2d::CCString *v7; // r0
float v8; // r0
float v9; // s15
cocos2d::CCString *v10; // r0
float v11; // r0
float v12; // s15
HSVWidgetDelegate *m_delegate; // r0
Value = SliderThumb::getValue((SliderThumb *)a2);
v5 = a2->getTag(a2);
switch ( v5 )
{
case 2:
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%0.2f", v6, Value);
v8 = cocos2d::CCString::floatValue(v7);
v9 = v8 + v8;
if ( a1->m_hsv.absoluteSaturation )
v9 = v9 - 1.0;
a1->m_hsv.s = v9;
break;
case 3:
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%0.2f", v6, Value);
v11 = cocos2d::CCString::floatValue(v10);
v12 = v11 + v11;
if ( a1->m_hsv.absoluteBrightness )
v12 = v12 - 1.0;
a1->m_hsv.v = v12;
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 )
m_delegate->hsvChanged(m_delegate, a1);
}