//
// LevelSettingsLayer::updateColorSprite from 0xa357d8 to 0xa3587c (164 bytes)
//
// 7 xrefs:
// > LevelSettingsLayer::updateColorSprites @ 0xa35890
// > LevelSettingsLayer::updateColorSprites @ 0xa3589c
// > LevelSettingsLayer::updateColorSprites @ 0xa358a8
// > LevelSettingsLayer::updateColorSprites @ 0xa358b4
// > LevelSettingsLayer::updateColorSprites @ 0xa358c0
// > LevelSettingsLayer::updateColorSprites @ 0xa358d4
// > ??> @ 0x46c80
//
// 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 LevelSettingsLayer::updateColorSprite(LevelSettingsLayer *a1, ColorChannelSprite *a2)
{
int v4; // w21
ColorAction *ColorAction; // x0
if ( a1->m_editorLayer )
{
v4 = a2->getTag(a2);
if ( GJEffectManager::colorExists(a1->m_editorLayer->m_levelSettings->m_effectManager, v4) )
{
ColorAction = GJEffectManager::getColorAction(a1->m_editorLayer->m_levelSettings->m_effectManager, v4);
ColorChannelSprite::updateValues(a2, ColorAction);
}
else
{
a2->setColor(a2, (const cocos2d::ccColor3B *)&off_F0F830);
}
}
}