//
// CustomizeObjectLayer::onSelectColor from 0x10004fa5c to 0x10004fadc (128 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::init @ 0x10004de00
//
// 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 __fastcall CustomizeObjectLayer::onSelectColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)
{
int m_customColorChannel; // w1
ButtonSprite *v5; // x0
int ActiveMode; // w1
m_customColorChannel = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( m_customColorChannel == 1008 )
m_customColorChannel = a1->m_customColorChannel;
CustomizeObjectLayer::updateSelected(a1, m_customColorChannel);
v5 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);
CustomizeObjectLayer::highlightSelected(a1, v5);
CustomizeObjectLayer::updateColorSprite(a1);
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);
CustomizeObjectLayer::updateChannelLabel(a1, ActiveMode);
}