//
// CustomizeObjectLayer::onUpdateCustomColor from 0x8415dc to 0x84166c (144 bytes)
//
// 4 xrefs:
// > ??> @ 0x43170
// > CustomizeObjectLayer::init @ 0x842d68
// > CustomizeObjectLayer::init @ 0x842e34
// > ??> @ 0x122a1e8
//
// 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::onUpdateCustomColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCObject_vtbl *v4; // x1
int v5; // w0
int m_customColorChannel; // w1
int v7; // w1
v4 = a2->__vftable;
a1->m_disableTextDelegate = 1;
v5 = v4->getTag(a2);
m_customColorChannel = a1->m_customColorChannel;
if ( v5 == 1 )
v7 = m_customColorChannel + 1;
else
v7 = m_customColorChannel - 1;
if ( v7 < 10 )
v7 = 10;
if ( v7 > 999 )
v7 = 999;
a1->m_customColorChannel = v7;
CustomizeObjectLayer::updateCustomColorLabels(a1);
CustomizeObjectLayer::updateSelected(a1, a1->m_customColorChannel);
a1->m_disableTextDelegate = 0;
CustomizeObjectLayer::updateColorSprite(a1);
CustomizeObjectLayer::updateChannelLabel(a1, a1->m_customColorChannel);
}