//
// ColorSelectLiveOverlay::updateColorValue from 0x90ab40 to 0x90ab9c (92 bytes)
//
// 2 xrefs:
// > ColorSelectLiveOverlay::sliderChanged @ 0x90ad8c
// > ??> @ 0x8e938
//
// 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 ColorSelectLiveOverlay::updateColorValue(ColorSelectLiveOverlay *a1)
{
EffectGameObject *m_effectGameObject; // x1
GLubyte r; // w3
GLubyte g; // w2
ColorAction *m_detailColorAction; // x1
GLubyte v5; // w3
GLubyte v6; // w2
if ( !a1->m_updateColor )
{
m_effectGameObject = a1->m_effectGameObject;
if ( m_effectGameObject )
{
r = a1->m_targetColor.r;
g = a1->m_targetColor.g;
m_effectGameObject->m_triggerTargetColor.b = a1->m_targetColor.b;
m_effectGameObject->m_triggerTargetColor.r = r;
m_effectGameObject->m_triggerTargetColor.g = g;
}
else
{
if ( a1->m_detailColorSelected )
m_detailColorAction = a1->m_detailColorAction;
else
m_detailColorAction = a1->m_baseColorAction;
v5 = a1->m_targetColor.r;
v6 = a1->m_targetColor.g;
m_detailColorAction->m_fromColor.b = a1->m_targetColor.b;
m_detailColorAction->m_fromColor.r = v5;
m_detailColorAction->m_fromColor.g = v6;
}
}
}