//
// CustomizeObjectLayer::updateCurrentSelection from 0x841930 to 0x841990 (96 bytes)
//
// 3 xrefs:
// > CustomizeObjectLayer::onPaste @ 0x8419b8
// > CustomizeObjectLayer::toggleVisible @ 0x841b00
// > ??> @ 0x72f30
//
// 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::updateCurrentSelection(CustomizeObjectLayer *a1)
{
int ActiveMode; // w1
ButtonSprite *ButtonByTag; // x0
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 0);
if ( (unsigned int)(ActiveMode - 10) <= 0x3DD )
{
a1->m_customColorChannel = ActiveMode;
a1->m_disableTextDelegate = 1;
CustomizeObjectLayer::updateCustomColorLabels(a1);
a1->m_disableTextDelegate = 0;
ActiveMode = 1008;
}
ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, ActiveMode);
CustomizeObjectLayer::highlightSelected(a1, ButtonByTag);
}