//
// CustomizeObjectLayer::colorSetupClosed from 0x1400a83a0 to 0x1400a8480 (224 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405453f0
// > ??> @ 0x1406c77a0
//
// 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::colorSetupClosed(CustomizeObjectLayer *a1, int a2)
{
int v4; // ebp
ButtonSprite *ButtonByTag; // rax
const char *CString; // rdx
cocos2d::CCString *v7; // rax
CustomizeObjectLayer::updateSelected((CustomizeObjectLayer *)((char *)a1 - 656), a2);
v4 = a2;
if ( (unsigned int)(a2 - 10) <= 0x3DD )
{
LODWORD(a1->m_fScaleY) = a2;
v4 = 1008;
BYTE2(a1->m_pShaderProgram) = 1;
CustomizeObjectLayer::updateCustomColorLabels((CustomizeObjectLayer *)((char *)a1 - 656));
BYTE2(a1->m_pShaderProgram) = 0;
}
ButtonByTag = CustomizeObjectLayer::getButtonByTag((CustomizeObjectLayer *)((char *)a1 - 656), v4);
CustomizeObjectLayer::highlightSelected((CustomizeObjectLayer *)((char *)a1 - 656), ButtonByTag);
CustomizeObjectLayer::updateColorSprite((CustomizeObjectLayer *)((char *)a1 - 656));
if ( a2 < 1000 )
{
if ( a2 <= 0 )
{
CString = " ";
}
else
{
v7 = cocos2d::CCString::createWithFormat("%i", a2);
CString = cocos2d::CCString::getCString(v7);
}
}
else
{
CString = GJSpecialColorSelect::textForColorIdx(a2);
}
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)&a1->m_sAdditionalTransform.d + 360LL))(
*(_QWORD *)&a1->m_sAdditionalTransform.d + 360LL,
CString);
}