//
// CustomizeObjectLayer::onNextColorChannel from 0x10004ff24 to 0x10004ffb8 (148 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::init @ 0x10004efd4
//
// 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::onNextColorChannel(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
int NextColorChannel; // w0
int v5; // w20
int v6; // w21
ButtonSprite *ButtonByTag; // x0
v3 = GameManager::sharedState();
NextColorChannel = LevelEditorLayer::getNextColorChannel(v3->m_levelEditorLayer);
v5 = NextColorChannel;
v6 = NextColorChannel;
if ( (unsigned int)(NextColorChannel - 10) <= 0x3DD )
{
a1->m_customColorChannel = NextColorChannel;
a1->m_disableTextDelegate = 1;
CustomizeObjectLayer::updateCustomColorLabels(a1);
a1->m_disableTextDelegate = 0;
v6 = 1008;
}
CustomizeObjectLayer::updateSelected(a1, v5);
ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, v6);
CustomizeObjectLayer::highlightSelected(a1, ButtonByTag);
CustomizeObjectLayer::updateColorSprite(a1);
CustomizeObjectLayer::updateChannelLabel(a1, v5);
}