//
// CustomizeObjectLayer::colorSetupClosed from 0x100050484 to 0x1000504f8 (116 bytes)
//
// 2 xrefs:
// > sub_1000507A0 @ 0x1000507a4
// > ??> @ 0x1007714b0
//
// 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::colorSetupClosed(CustomizeObjectLayer *a1, int a2)
{
int v4; // w1
ButtonSprite *ButtonByTag; // x0
CustomizeObjectLayer::updateSelected(a1, a2);
v4 = a2;
if ( (unsigned int)(a2 - 10) <= 0x3DD )
{
a1->m_customColorChannel = a2;
a1->m_disableTextDelegate = 1;
CustomizeObjectLayer::updateCustomColorLabels(a1);
a1->m_disableTextDelegate = 0;
v4 = 1008;
}
ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, v4);
CustomizeObjectLayer::highlightSelected(a1, ButtonByTag);
CustomizeObjectLayer::updateColorSprite(a1);
CustomizeObjectLayer::updateChannelLabel(a1, a2);
}