//
// SetGroupIDLayer::textChanged from 0x50b958 to 0x50ba98 (320 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SetGroupIDLayer::textChanged @ 0x50baa0
//
// 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 SetGroupIDLayer::textChanged(SetGroupIDLayer *a1, CCTextInputNode *a2)
{
int m_groupIDValue; // r2
char *v5[3]; // [sp+0h] [bp-Ch] BYREF
v5[0] = (char *)a1;
v5[1] = (char *)a2;
if ( !a1->m_editorLayerEdited )
{
if ( a2->getTag(a2) == 1 )
{
CCTextInputNode::getString((CCTextInputNode *)v5, (int)a2);
a1->m_groupIDValue = atoi(v5[0]);
sub_774008(v5);
m_groupIDValue = a1->m_groupIDValue;
if ( m_groupIDValue > 9999 )
a1->m_groupIDValue = 9999;
else
a1->m_groupIDValue = m_groupIDValue;
}
else if ( a2->getTag(a2) == 5 )
{
CCTextInputNode::getString((CCTextInputNode *)v5, (int)a2);
a1->m_editorLayerValue = atoi(v5[0]);
sub_774008(v5);
SetGroupIDLayer::updateEditorLayerID(a1);
}
else if ( a2->getTag(a2) == 6 )
{
CCTextInputNode::getString((CCTextInputNode *)v5, (int)a2);
a1->m_editorLayer2Value = atoi(v5[0]);
sub_774008(v5);
SetGroupIDLayer::updateEditorLayerID2(a1);
}
else if ( a2->getTag(a2) == 7 )
{
CCTextInputNode::getString((CCTextInputNode *)v5, (int)a2);
a1->m_zOrderValue = atoi(v5[0]);
sub_774008(v5);
SetGroupIDLayer::updateZOrder(a1);
}
else if ( a2->getTag(a2) == 3 )
{
CCTextInputNode::getString((CCTextInputNode *)v5, (int)a2);
a1->m_orderValue = atoi(v5[0]);
sub_774008(v5);
SetGroupIDLayer::updateEditorOrder(a1);
}
else if ( a2->getTag(a2) == 4 )
{
CCTextInputNode::getString((CCTextInputNode *)v5, (int)a2);
a1->m_channelValue = atoi(v5[0]);
sub_774008(v5);
SetGroupIDLayer::updateOrderChannel(a1);
}
}
}