//
// cocos2d::CCProgressTimer::updateColor from 0xaf84f8 to 0xaf8560 (104 bytes)
//
// 7 xrefs:
// > CCCountdown::init @ 0x5743b4
// > cocos2d::CCProgressTimer::setColor @ 0xaf8590
// > cocos2d::CCProgressTimer::setOpacity @ 0xaf85cc
// > cocos2d::CCProgressTimer::updateBar @ 0xaf8830
// > cocos2d::CCProgressTimer::updateRadial @ 0xaf8df4
// > cocos2d::CCProgressTimer::updateRadial @ 0xaf8fec
// > ??> @ 0x50730
//
// 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 cocos2d::CCProgressTimer::updateColor(cocos2d::CCProgressTimer *a1)
{
cocos2d::CCSprite *m_pSprite; // x2
cocos2d::ccV2F_C4B_T2F *m_pVertexData; // x1
GLubyte r; // w5
GLubyte g; // w4
GLubyte b; // w6
GLubyte a; // w7
__int64 v7; // x3
int v8; // w2
cocos2d::ccV2F_C4B_T2F *v9; // x1
m_pSprite = a1->m_pSprite;
if ( m_pSprite )
{
m_pVertexData = a1->m_pVertexData;
if ( m_pVertexData )
{
r = m_pSprite->m_sQuad.tl.colors.r;
g = m_pSprite->m_sQuad.tl.colors.g;
b = m_pSprite->m_sQuad.tl.colors.b;
a = m_pSprite->m_sQuad.tl.colors.a;
if ( a1->m_nVertexDataCount > 0 )
{
v7 = 0;
v8 = 0;
while ( 1 )
{
v9 = &m_pVertexData[v7];
++v8;
++v7;
v9->colors.r = r;
v9->colors.g = g;
v9->colors.b = b;
v9->colors.a = a;
if ( a1->m_nVertexDataCount <= v8 )
break;
m_pVertexData = a1->m_pVertexData;
}
}
}
}
}