//
// SetupOpacityPopup::sliderChanged from 0x8e8d8c to 0x8e8ea8 (284 bytes)
//
// 4 xrefs:
// > ??> @ 0xa4688
// > SetupOpacityPopup::init @ 0x8e86a4
// > SetupOpacityPopup::init @ 0x8e87d0
// > ??> @ 0x122db00
//
// 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; // s8
const char *v5; // x1
int v6; // w0
const char *v7; // x1
bool v8; // w19
cocos2d::CCString *v9; // x0
float v10; // s0
cocos2d::CCString *v11; // x0
Value = SliderThumb::getValue((SliderThumb *)a2);
if ( a2->getTag(a2) == 2 )
{
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v5, Value);
v10 = cocos2d::CCString::floatValue(v9);
if ( v10 > 0.02 )
{
if ( v10 >= 0.98 )
v10 = 1.0;
a1->m_opacity = v10;
SetupOpacityPopup::updateOpacity(a1);
SetupOpacityPopup::updateOpacityLabel(a1);
}
else
{
a1->m_opacity = 0.0;
SetupOpacityPopup::updateOpacity(a1);
SetupOpacityPopup::updateOpacityLabel(a1);
}
}
else
{
v6 = a2->getTag(a2);
v8 = v6;
if ( v6 == 1 )
{
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.02f",
v7,
(float)(Value * 10.0));
a1->m_fadeTime = cocos2d::CCString::floatValue(v11);
SetupOpacityPopup::updateDuration(a1);
SetupOpacityPopup::updateDurLabel(a1, v8);
}
}
}