//
// SetupRandTriggerPopup::textChanged from 0x50591c to 0x5059f4 (216 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SetupRandTriggerPopup::textChanged @ 0x505a00
//
// 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 SetupRandTriggerPopup::textChanged(SetupRandTriggerPopup *a1, CCTextInputNode *a2)
{
double v4; // d8
const char *v5; // r1
cocos2d::CCString *v6; // r0
char *v7; // [sp+0h] [bp-Ch] BYREF
if ( !a1->m_disableTextDelegate )
{
if ( a2->getTag(a2) == 3 )
{
CCTextInputNode::getString((CCTextInputNode *)&v7, (int)a2);
a1->m_groupID1 = atoi(v7);
sub_774008(&v7);
SetupRandTriggerPopup::updateTargetID(a1);
LABEL_6:
SetupTriggerPopup::updateEditorLabel(a1);
return;
}
if ( a2->getTag(a2) == 5 )
{
CCTextInputNode::getString((CCTextInputNode *)&v7, (int)a2);
a1->m_groupID2 = atoi(v7);
sub_774008(&v7);
SetupRandTriggerPopup::updateTargetID2(a1);
goto LABEL_6;
}
if ( a2->getTag(a2) == 4 )
{
CCTextInputNode::getString((CCTextInputNode *)&v7, (int)a2);
v4 = atof(v7);
sub_774008(&v7);
*(float *)&v4 = v4;
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.04f", v5, *(float *)&v4);
a1->m_chancePercent = cocos2d::CCString::floatValue(v6);
SetupRandTriggerPopup::updateChance(a1);
}
}
}