//
// CustomizeObjectLayer::hsvPopupClosed from 0x461918 to 0x46198c (116 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CustomizeObjectLayer::hsvPopupClosed @ 0x461990
//
// 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::hsvPopupClosed(CustomizeObjectLayer *a1, HSVWidgetPopup *a2, cocos2d::ccHSVValue a3)
{
bool v4; // zf
GameObject *m_targetObject; // r0
int v6; // r7
GJSpriteColor *RelativeSpriteColor; // r0
unsigned int i; // r4
GameObject *v9; // r0
GJSpriteColor *v10; // r0
v4 = a2->getTag(a2) == 1;
m_targetObject = a1->m_targetObject;
if ( v4 )
v6 = 1;
else
v6 = 2;
if ( m_targetObject )
{
RelativeSpriteColor = GameObject::getRelativeSpriteColor(m_targetObject, v6);
if ( RelativeSpriteColor )
RelativeSpriteColor->m_hsv = a3;
}
else
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_targetObjects); ++i )
{
v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i);
v10 = GameObject::getRelativeSpriteColor(v9, v6);
if ( v10 )
v10->m_hsv = a3;
}
}
CustomizeObjectLayer::updateHSVButtons(a1);
}