//
// ColorChannelSprite::updateValues from 0x1002d9080 to 0x1002d9166 (230 bytes)
//
// 10 xrefs:
// > CustomizeObjectLayer::updateColorSprite @ 0x1001f8593
// > GJColorSetupLayer::updateSpriteColors @ 0x10020be95
// > GJColorSetupLayer::updateSpriteColor @ 0x10020c0ae
// > LevelSettingsLayer::updateColorSprites @ 0x10026dc72
// > LevelSettingsLayer::updateColorSprites @ 0x10026dcfe
// > LevelSettingsLayer::updateColorSprites @ 0x10026dd8a
// > LevelSettingsLayer::updateColorSprites @ 0x10026de16
// > LevelSettingsLayer::updateColorSprites @ 0x10026dea6
// > LevelSettingsLayer::updateColorSprites @ 0x10026df1a
// > LevelSettingsLayer::updateColorSprite @ 0x10026f114
//
// 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 ColorChannelSprite::updateValues(ColorChannelSprite *a1, ColorAction *a2)
{
__int16 v3; // ax
cocos2d::CCLabelBMFont *m_copyLabel; // rdi
cocos2d::CCLabelBMFont *m_opacityLabel; // rdi
cocos2d::CCLabelBMFont *m_blendingLabel; // rdi
__int16 v7; // [rsp+Ch] [rbp-14h] BYREF
GLubyte b; // [rsp+Eh] [rbp-12h]
if ( a2 )
{
ColorChannelSprite::updateCopyLabel(a1, a2->m_copyID, a2->m_copyColorLoop);
ColorChannelSprite::updateOpacity(a1, a2->m_fromOpacity);
ColorChannelSprite::updateBlending(a1, a2->m_blending);
v3 = *(_WORD *)&a2->m_fromColor.r;
b = a2->m_fromColor.b;
v7 = v3;
if ( a2->m_copyID )
{
if ( !a2->m_copyColorLoop )
{
b = -90;
v7 = -22874;
}
}
((void (__fastcall *)(ColorChannelSprite *, __int16 *))a1->setColor)(a1, &v7);
}
else
{
((void (__fastcall *)(ColorChannelSprite *, void *))a1->setColor)(a1, &unk_10081948B);
m_copyLabel = a1->m_copyLabel;
if ( m_copyLabel )
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))m_copyLabel->setVisible)(m_copyLabel, 0);
m_opacityLabel = a1->m_opacityLabel;
if ( m_opacityLabel )
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))m_opacityLabel->setVisible)(m_opacityLabel, 0);
m_blendingLabel = a1->m_blendingLabel;
if ( m_blendingLabel )
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))m_blendingLabel->setVisible)(m_blendingLabel, 0);
}
}