//
// ColorSelectPopup::sliderChanged from 0x862c94 to 0x862d7c (232 bytes)
//
// 4 xrefs:
// > ??> @ 0x68fc8
// > ColorSelectPopup::init @ 0x86431c
// > ColorSelectPopup::init @ 0x865f9c
// > ??> @ 0x1542920
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:55:37 +0000
//
__int64 __fastcall ColorSelectPopup::sliderChanged(ColorSelectPopup *this, cocos2d::CCObject *a2)
{
float Value; // s8
__int64 result; // x0
const char *v6; // x1
cocos2d::CCString *v7; // x0
float v8; // s0
Value = SliderThumb::getValue(a2);
if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
*((float *)this + 282) = Value * 10.0;
ColorSelectPopup::updateDuration(this);
return ColorSelectPopup::updateDurLabel(this);
}
else
{
result = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 2 )
{
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v6, Value);
cocos2d::CCString::floatValue(v7);
if ( v8 > 0.02 )
{
if ( v8 >= 0.98 )
v8 = 1.0;
*((float *)this + 285) = v8;
}
else
{
*((_DWORD *)this + 285) = 0;
}
ColorSelectPopup::updateOpacity(this);
return ColorSelectPopup::updateOpacityLabel((__int64)this);
}
}
return result;
}