//
// CustomizeObjectLayer::highlightSelected from 0x84166c to 0x8417a0 (308 bytes)
//
// 5 xrefs:
// > CustomizeObjectLayer::onSelectColor @ 0x8417f4
// > CustomizeObjectLayer::colorSetupClosed @ 0x841874
// > CustomizeObjectLayer::onNextColorChannel @ 0x84190c
// > CustomizeObjectLayer::updateCurrentSelection @ 0x84198c
// > ??> @ 0x55a88
//
// 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::highlightSelected(CustomizeObjectLayer *a1, ButtonSprite *a2)
{
unsigned int v4; // w19
ButtonSprite *v5; // x20
const char *v6; // x1
bool v7; // cf
unsigned int v8; // w1
_BOOL4 v9; // w19
v4 = 0;
while ( 1 )
{
v7 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_colorButtons);
v8 = v4++;
if ( v7 )
break;
v5 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_colorButtons, v8);
if ( v5->getTag(v5) == 1008 )
v6 = "GJ_button_05.png";
else
v6 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v5, v6);
}
if ( a2 )
{
ButtonSprite::updateBGImage(a2, "GJ_button_02.png");
v9 = ((__int64 (__fastcall *)(ButtonSprite *))a2->getTag)(a2) == 1008;
}
else
{
v9 = 0;
}
a1->m_arrowDown->setVisible(a1->m_arrowDown, v9);
a1->m_arrowUp->setVisible(a1->m_arrowUp, v9);
a1->m_customColorInput->setTouchEnabled(a1->m_customColorInput, v9);
a1->m_customColorInput->setVisible(a1->m_customColorInput, v9);
a1->m_customColorInputBG->setVisible(a1->m_customColorInputBG, v9);
}