//
// CustomizeObjectLayer::colorSetupClosed from 0x140142450 to 0x140142530 (224 bytes)
//
// 2 xrefs:
// > ??> @ 0x140739718
// > ??> @ 0x140917360
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:27:10 +0000
//
__int64 __fastcall CustomizeObjectLayer::colorSetupClosed(__int64 a1, int a2)
{
unsigned int v4; // ebp
__int64 ButtonByTag; // rax
const char *CString; // rdx
cocos2d::CCString *v7; // rax
CustomizeObjectLayer::updateSelected(a1 - 680);
v4 = a2;
if ( (unsigned int)(a2 - 10) <= 0x3DD )
{
*(_DWORD *)(a1 + 68) = a2;
v4 = 1008;
*(_BYTE *)(a1 + 242) = 1;
CustomizeObjectLayer::updateCustomColorLabels(a1 - 680);
*(_BYTE *)(a1 + 242) = 0;
}
ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1 - 680, v4);
CustomizeObjectLayer::highlightSelected(a1 - 680, ButtonByTag);
CustomizeObjectLayer::updateColorSprite(a1 - 680);
if ( a2 < 1000 )
{
if ( a2 <= 0 )
{
CString = " ";
}
else
{
v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)a2);
CString = cocos2d::CCString::getCString(v7);
}
}
else
{
CString = (const char *)GJSpecialColorSelect::textForColorIdx((unsigned int)a2);
}
return (**(__int64 (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 128) + 360LL))(
*(_QWORD *)(a1 + 128) + 360LL,
CString);
}