//
// CustomizeObjectLayer::onUpdateCustomColor from 0x1001f7ac0 to 0x1001f7b86 (198 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::init @ 0x1001f61e6
//
// 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::onUpdateCustomColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)
{
char v2; // al
int v3; // eax
int v4; // ecx
int v5; // eax
int m_customColorChannel; // esi
const char *CString; // rax
cocos2d::CCString *v8; // rax
const std::string::value_type *v9; // rsi
char v10; // [rsp-8h] [rbp-10h]
v10 = v2;
a1->m_disableTextDelegate = 1;
v3 = a1->m_customColorChannel + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1) - 1;
v4 = 10;
if ( v3 >= 11 )
v4 = v3;
v5 = 999;
if ( v4 < 999 )
v5 = v4;
a1->m_customColorChannel = v5;
CustomizeObjectLayer::updateCustomColorLabels(a1);
CustomizeObjectLayer::updateSelected(a1, a1->m_customColorChannel);
a1->m_disableTextDelegate = 0;
CustomizeObjectLayer::updateColorSprite(a1);
m_customColorChannel = a1->m_customColorChannel;
if ( m_customColorChannel < 1000 )
{
if ( m_customColorChannel <= 0 )
{
v9 = " ";
goto LABEL_10;
}
v8 = (cocos2d::CCString *)sub_1007AB580("%i", v10);
CString = cocos2d::CCString::getCString(v8);
}
else
{
CString = GJSpecialColorSelect::textForColorIdx(m_customColorChannel);
}
v9 = CString;
LABEL_10:
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))a1->m_selectedColorLabel->setString)(
a1->m_selectedColorLabel,
v9);
}