//
// ColorSelectPopup::sliderChanged from 0x3da0e0 to 0x3da18c (172 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 ColorSelectPopup::sliderChanged(ColorSelectPopup *a1, cocos2d::CCObject *a2)
{
float Value; // s16
const char *v5; // r1
cocos2d::CCString *v6; // r0
float v7; // r0
float v8; // r3
Value = SliderThumb::getValue((SliderThumb *)a2);
if ( a2->getTag(a2) == 1 )
{
a1->m_fadeTime = Value * 10.0;
ColorSelectPopup::updateDuration(a1);
ColorSelectPopup::updateDurLabel(a1);
return;
}
if ( a2->getTag(a2) == 2 )
{
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v5, Value);
v7 = cocos2d::CCString::floatValue(v6);
if ( v7 > 0.02 )
{
if ( v7 < 0.98 )
{
a1->m_opacity = v7;
LABEL_10:
ColorSelectPopup::updateOpacity(a1);
ColorSelectPopup::updateOpacityLabel(a1);
return;
}
v8 = 1.0;
}
else
{
v8 = 0.0;
}
a1->m_opacity = v8;
goto LABEL_10;
}
}