//
// ConfigureHSVWidget::onToggleVConst from 0x8e1730 to 0x8e1798 (104 bytes)
//
// 3 xrefs:
// > ??> @ 0x8ed40
// > ConfigureHSVWidget::init @ 0x8e1d74
// > ??> @ 0x122cdc8
//
// 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::onToggleVConst(ConfigureHSVWidget *a1, cocos2d::CCObject *a2)
{
bool absoluteBrightness; // w1
Slider *m_brightnessSlider; // x0
float v5; // s0
HSVWidgetDelegate *m_delegate; // x0
absoluteBrightness = a1->m_hsv.absoluteBrightness;
m_brightnessSlider = a1->m_brightnessSlider;
a1->m_hsv.absoluteBrightness = !absoluteBrightness;
Slider::setValue(m_brightnessSlider, 0.5);
v5 = 0.0;
if ( !a1->m_hsv.absoluteBrightness )
v5 = 1.0;
a1->m_hsv.v = v5;
ConfigureHSVWidget::updateLabels(a1);
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->hsvChanged(m_delegate, a1);
}