//
// ColorSelectPopup::updateColorValue from 0x3da198 to 0x3da21e (134 bytes)
//
// 1 xrefs:
// > ColorSelectPopup::colorValueChanged @ 0x3dcb4e
//
// 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 ColorSelectPopup::updateColorValue(ColorSelectPopup *a1)
{
EffectGameObject *m_gameObject; // r3
GLubyte g; // r1
GLubyte b; // r2
EffectGameObject *v5; // r5
_BYTE *v6; // r0
GLubyte v7; // r2
GLubyte v8; // r3
ColorAction *m_colorAction; // r3
GLubyte v10; // r1
GLubyte v11; // r2
if ( !a1->m_initializing )
{
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
g = a1->m_currentColor.g;
b = a1->m_currentColor.b;
m_gameObject->m_triggerTargetColor.r = a1->m_currentColor.r;
m_gameObject->m_triggerTargetColor.g = g;
m_gameObject->m_triggerTargetColor.b = b;
}
else if ( a1->m_gameObjects )
{
v5 = a1->m_gameObject;
while ( (unsigned int)v5 < cocos2d::CCArray::count(a1->m_gameObjects) )
{
v6 = (_BYTE *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)v5);
v7 = a1->m_currentColor.g;
v5 = (EffectGameObject *)((char *)v5 + 1);
v8 = a1->m_currentColor.b;
v6[1260] = a1->m_currentColor.r;
v6[1261] = v7;
v6[1262] = v8;
}
}
else
{
m_colorAction = a1->m_colorAction;
if ( m_colorAction )
{
v10 = a1->m_currentColor.g;
v11 = a1->m_currentColor.b;
m_colorAction->m_fromColor.r = a1->m_currentColor.r;
m_colorAction->m_fromColor.g = v10;
m_colorAction->m_fromColor.b = v11;
}
}
}
}