//
// ConfigureHSVWidget::onToggleSConst from 0x8e16c8 to 0x8e1730 (104 bytes)
//
// 3 xrefs:
// > ??> @ 0x6c8e8
// > ConfigureHSVWidget::init @ 0x8e1ca8
// > ??> @ 0x122b8e0
//
// 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::onToggleSConst(ConfigureHSVWidget *a1, cocos2d::CCObject *a2)
{
bool absoluteSaturation; // w1
Slider *m_saturationSlider; // x0
float v5; // s0
HSVWidgetDelegate *m_delegate; // x0
absoluteSaturation = a1->m_hsv.absoluteSaturation;
m_saturationSlider = a1->m_saturationSlider;
a1->m_hsv.absoluteSaturation = !absoluteSaturation;
Slider::setValue(m_saturationSlider, 0.5);
v5 = 0.0;
if ( !a1->m_hsv.absoluteSaturation )
v5 = 1.0;
a1->m_hsv.s = v5;
ConfigureHSVWidget::updateLabels(a1);
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->hsvChanged(m_delegate, a1);
}