//
// ConfigureHSVWidget::sliderChanged from 0xa3b0e8 to 0xa3b200 (280 bytes)
//
// 5 xrefs:
// > ??> @ 0xebab0
// > ConfigureHSVWidget::init @ 0xa3b4a0
// > ConfigureHSVWidget::init @ 0xa3b5bc
// > ConfigureHSVWidget::init @ 0xa3b6dc
// > ??> @ 0x15471d0
//
// 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:59:53 +0000
//
__int64 __fastcall ConfigureHSVWidget::sliderChanged(ConfigureHSVWidget *this, cocos2d::CCObject *a2)
{
int v3; // w0
const char *v4; // x1
__int64 result; // x0
cocos2d::CCString *v6; // x0
float v7; // s0
float v8; // s0
cocos2d::CCString *v9; // x0
float v10; // s0
float v11; // s0
float Value; // [xsp+30h] [xbp+30h]
Value = SliderThumb::getValue(a2);
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
switch ( v3 )
{
case 2:
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%0.2f", v4, Value);
cocos2d::CCString::floatValue(v9);
if ( *((_BYTE *)this + 388) )
v11 = (float)(v10 * 2.0) + -1.0;
else
v11 = v10 + v10;
*((float *)this + 95) = v11;
break;
case 3:
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%0.2f", v4, Value);
cocos2d::CCString::floatValue(v6);
if ( *((_BYTE *)this + 389) )
v8 = (float)(v7 * 2.0) + -1.0;
else
v8 = v7 + v7;
*((float *)this + 96) = v8;
break;
case 1:
*((float *)this + 94) = (float)(int)(float)((float)(Value * 360.0) + -180.0);
break;
}
ConfigureHSVWidget::updateLabels(this);
ConfigureHSVWidget::updateColorPreview(this);
result = *((_QWORD *)this + 50);
if ( result )
return (*(__int64 (__fastcall **)(__int64, ConfigureHSVWidget *))(*(_QWORD *)result + 8LL))(result, this);
return result;
}