//
// CustomizeObjectLayer::textChanged from 0x461dc4 to 0x461e94 (208 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CustomizeObjectLayer::textChanged @ 0x461ea0
//
// 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 CustomizeObjectLayer::textChanged(CustomizeObjectLayer *a1, CCTextInputNode *a2)
{
int v4; // r0
cocos2d::CCString *v5; // r0
const char *CString; // r0
int *m_targetObject; // r8
char *v8; // [sp+4h] [bp-Ch] BYREF
char *v9; // [sp+8h] [bp-8h] BYREF
v8 = (char *)a2;
if ( !a1->m_disableTextDelegate )
{
v4 = a2->getTag(a2);
if ( v4 )
{
if ( v4 == 1 )
{
m_targetObject = (int *)a1->m_targetObject;
CCTextInputNode::getString((CCTextInputNode *)&v8, (int)a2);
sub_776584((int)&v9, v8);
TextGameObject::updateTextObject(m_targetObject, (const char **)&v9, 0);
sub_774008(&v9);
sub_774008(&v8);
}
}
else
{
CCTextInputNode::getString((CCTextInputNode *)&v9, (int)a2);
a1->m_customColorChannel = atoi(v9);
sub_774008(&v9);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)a1->m_customColorChannel);
CString = cocos2d::CCString::getCString(v5);
ButtonSprite::setString(a1->m_customColorButtonSprite, CString);
CustomizeObjectLayer::updateSelected(a1, a1->m_customColorChannel);
CustomizeObjectLayer::updateColorSprite(a1);
CustomizeObjectLayer::updateChannelLabel(a1, a1->m_customColorChannel);
}
}
}