//
// SetupOpacityPopup::sliderChanged from 0x4bb430 to 0x4bb4f4 (196 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 SetupOpacityPopup::sliderChanged(SetupOpacityPopup *a1, cocos2d::CCObject *a2)
{
float Value; // s16
const char *v5; // r1
cocos2d::CCString *v6; // r0
float v7; // r0
float v8; // r3
const char *v9; // r1
cocos2d::CCString *v10; // r0
Value = SliderThumb::getValue((SliderThumb *)a2);
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_8:
SetupOpacityPopup::updateOpacity(a1);
SetupOpacityPopup::updateOpacityLabel(a1);
return;
}
v8 = 1.0;
}
else
{
v8 = 0.0;
}
a1->m_opacity = v8;
goto LABEL_8;
}
if ( a2->getTag(a2) == 1 )
{
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.02f",
v9,
(float)(Value * 10.0));
a1->m_fadeTime = cocos2d::CCString::floatValue(v10);
SetupOpacityPopup::updateDuration(a1);
SetupOpacityPopup::updateDurLabel(a1, 1);
}
}