//
// ColorSelectPopup::updateOpacity from 0x3d9f9a to 0x3d9fea (80 bytes)
//
// 2 xrefs:
// > ColorSelectPopup::sliderChanged @ 0x3da174
// > ColorSelectPopup::onDefault @ 0x3da2f0
//
// 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::updateOpacity(ColorSelectPopup *a1)
{
EffectGameObject *m_gameObject; // r4
int v3; // r0
ColorAction *m_colorAction; // r3
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_opacity = a1->m_opacity;
}
else if ( a1->m_gameObjects )
{
while ( (unsigned int)m_gameObject < cocos2d::CCArray::count(a1->m_gameObjects) )
{
v3 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)m_gameObject);
m_gameObject = (EffectGameObject *)((char *)m_gameObject + 1);
*(float *)(v3 + 1268) = a1->m_opacity;
}
}
else
{
m_colorAction = a1->m_colorAction;
if ( m_colorAction )
m_colorAction->m_fromOpacity = a1->m_opacity;
}
}