//
// CustomizeObjectLayer::updateCurrentSelection from 0x4620ce to 0x462112 (68 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::onPaste @ 0x46212c
// > CustomizeObjectLayer::toggleVisible @ 0x462210
//
// 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; // r0
int v3; // r1
ButtonSprite *ButtonByTag; // r1
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 0);
v3 = ActiveMode;
if ( (unsigned int)(ActiveMode - 10) <= 0x3DD )
{
a1->m_customColorChannel = ActiveMode;
a1->m_disableTextDelegate = 1;
CustomizeObjectLayer::updateCustomColorLabels(a1);
v3 = 1008;
a1->m_disableTextDelegate = 0;
}
ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, v3);
CustomizeObjectLayer::highlightSelected(a1, ButtonByTag);
}