//
// CustomizeObjectLayer::onUpdateCustomColor from 0x461ea4 to 0x461f04 (96 bytes)
//
// 0 xrefs:
//
// 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)
{
int v3; // r0
int m_customColorChannel; // r3
int v5; // r3
a1->m_disableTextDelegate = 1;
v3 = a2->getTag(a2);
m_customColorChannel = a1->m_customColorChannel;
if ( v3 == 1 )
v5 = m_customColorChannel + 1;
else
v5 = m_customColorChannel - 1;
if ( v5 < 10 )
v5 = 10;
if ( v5 > 999 )
a1->m_customColorChannel = 999;
else
a1->m_customColorChannel = v5;
CustomizeObjectLayer::updateCustomColorLabels(a1);
CustomizeObjectLayer::updateSelected(a1, a1->m_customColorChannel);
a1->m_disableTextDelegate = 0;
CustomizeObjectLayer::updateColorSprite(a1);
CustomizeObjectLayer::updateChannelLabel(a1, a1->m_customColorChannel);
}