//
// SetItemIDLayer::valueDidChange from 0x140401a60 to 0x140401b4f (239 bytes)
//
// 4 xrefs:
// > ??> @ 0x1405d78c8
// > ??> @ 0x14069e9a0
// > ??> @ 0x14069e9d4
// > ??> @ 0x1406d8864
//
// 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 SetItemIDLayer::valueDidChange(SetItemIDLayer *a1, int a2, float a3)
{
cocos2d::CCArray *m_gameObjects; // rbx
unsigned int i; // edi
LabelGameObject *v6; // rax
if ( a2 == 391 )
{
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);
}
else
{
m_gameObjects = a1->m_gameObjects;
}
for ( i = 0; i < cocos2d::CCArray::count(m_gameObjects); ++i )
{
v6 = (LabelGameObject *)cocos2d::CCArray::objectAtIndex(m_gameObjects, i);
LabelGameObject::updateLabelAlign(v6, (int)a3);
}
}
else if ( a2 == 390 )
{
if ( a3 == -1.0 )
a1->toggleGroup(a1, a2, 1);
else
a1->toggleGroup(a1, 390, 0);
}
}