//
// SetupOpacityPopup::textChanged from 0x4bb55c to 0x4bb648 (236 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SetupOpacityPopup::textChanged @ 0x4bb658
//
// 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::textChanged(SetupOpacityPopup *a1, CCTextInputNode *a2)
{
double v4; // d8
const char *v5; // r1
cocos2d::CCString *v6; // r0
float v7; // s15
char *v8; // [sp+0h] [bp-Ch] BYREF
if ( !a1->m_disableTextDelegate )
{
if ( a2->getTag(a2) == 3 )
{
CCTextInputNode::getString((CCTextInputNode *)&v8, (int)a2);
a1->m_groupID = atoi(v8);
sub_774008(&v8);
SetupOpacityPopup::updateTargetID(a1);
SetupTriggerPopup::updateEditorLabel(a1);
}
else if ( a2->getTag(a2) == 4 )
{
CCTextInputNode::getString((CCTextInputNode *)&v8, (int)a2);
v4 = atof(v8);
sub_774008(&v8);
*(float *)&v4 = v4;
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v5, *(float *)&v4);
a1->m_fadeTime = cocos2d::CCString::floatValue(v6);
SetupOpacityPopup::updateDuration(a1);
v7 = a1->m_fadeTime / 10.0;
if ( v7 >= 1.0 )
{
v7 = 1.0;
}
else if ( v7 <= 0.0 )
{
v7 = 0.0;
}
Slider::setValue(a1->m_fadeTimeSlider, v7);
}
}
}