//
// CustomizeObjectLayer::updateCurrentSelection from 0x10005015c to 0x1000501bc (96 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::onPaste @ 0x100050008
// > CustomizeObjectLayer::toggleVisible @ 0x1000509a8
//
// 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::updateCurrentSelection(CustomizeObjectLayer *a1)
{
int ActiveMode; // w0
int v3; // w1
ButtonSprite *ButtonByTag; // x1
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 0);
v3 = ActiveMode;
if ( (unsigned int)(ActiveMode - 10) <= 0x3DD )
{
a1->m_disableTextDelegate = 1;
a1->m_customColorChannel = ActiveMode;
CustomizeObjectLayer::updateCustomColorLabels(a1);
a1->m_disableTextDelegate = 0;
v3 = 1008;
}
ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, v3);
CustomizeObjectLayer::highlightSelected(a1, ButtonByTag);
}