//
// ConfigureHSVWidget::textChanged from 0x4b6b58 to 0x4b6c3a (226 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ConfigureHSVWidget::textChanged @ 0x4b6c50
//
// 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 ConfigureHSVWidget::textChanged(ConfigureHSVWidget *a1, CCTextInputNode *a2)
{
int v4; // r0
int v5; // r4
int v6; // r3
double v7; // r0
cocos2d::CCString *v8; // r0
float v9; // r4
double v10; // r0
cocos2d::CCString *v11; // r0
float v12; // r4
char *v13[3]; // [sp+0h] [bp-Ch] BYREF
v13[0] = (char *)a1;
v13[1] = (char *)a2;
if ( !a1->m_updating )
{
v4 = a2->getTag(a2);
switch ( v4 )
{
case 2:
CCTextInputNode::getString((CCTextInputNode *)v13, (int)a2);
v7 = atof(v13[0]);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.2f",
(const char *)HIDWORD(v7),
v7);
v9 = cocos2d::CCString::floatValue(v8);
sub_774008(v13);
a1->m_hsv.s = v9;
break;
case 3:
CCTextInputNode::getString((CCTextInputNode *)v13, (int)a2);
v10 = atof(v13[0]);
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.2f",
(const char *)HIDWORD(v10),
v10);
v12 = cocos2d::CCString::floatValue(v11);
sub_774008(v13);
a1->m_hsv.v = v12;
break;
case 1:
CCTextInputNode::getString((CCTextInputNode *)v13, (int)a2);
v5 = atoi(v13[0]);
sub_774008(v13);
v6 = -360;
if ( v5 > -360 )
v6 = v5;
if ( v6 >= 360 )
v6 = 360;
a1->m_hsv.h = (float)v6;
break;
}
ConfigureHSVWidget::updateSliders(a1);
}
}