//
// ColorSelectLiveOverlay::updateColorValue from 0x10056a3d0 to 0x10056a43e (110 bytes)
//
// 0 xrefs:
//
// 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 ColorSelectLiveOverlay::updateColorValue(ColorSelectLiveOverlay *a1)
{
EffectGameObject *m_effectGameObject; // rax
__int16 v2; // cx
int v3; // eax
ColorAction *m_detailColorAction; // rcx
if ( !a1->m_updateColor )
{
m_effectGameObject = a1->m_effectGameObject;
if ( m_effectGameObject )
{
v2 = *(_WORD *)&a1->m_targetColor.r;
m_effectGameObject->m_triggerTargetColor.b = a1->m_targetColor.b;
*(_WORD *)&m_effectGameObject->m_triggerTargetColor.r = v2;
}
else
{
v3 = *(unsigned __int16 *)&a1->m_targetColor.r | (a1->m_targetColor.b << 16);
if ( a1->m_detailColorSelected )
m_detailColorAction = a1->m_detailColorAction;
else
m_detailColorAction = a1->m_baseColorAction;
*(_WORD *)&m_detailColorAction->m_fromColor.r = *(_WORD *)&a1->m_targetColor.r;
m_detailColorAction->m_fromColor.b = BYTE2(v3);
}
}
}