//
// CustomizeObjectLayer::onSelectColor from 0x461fc0 to 0x46200c (76 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::onSelectColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)
{
int v4; // r0
int m_customColorChannel; // r1
ButtonSprite *v6; // r0
int ActiveMode; // r1
v4 = a2->getTag(a2);
if ( v4 == 1008 )
m_customColorChannel = a1->m_customColorChannel;
else
m_customColorChannel = v4;
CustomizeObjectLayer::updateSelected(a1, m_customColorChannel);
v6 = (ButtonSprite *)((int (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);
CustomizeObjectLayer::highlightSelected(a1, v6);
CustomizeObjectLayer::updateColorSprite(a1);
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);
CustomizeObjectLayer::updateChannelLabel(a1, ActiveMode);
}