//
// cocos2d::CCProgressTimer::setPercentage from 0x18005e070 to 0x18005e0d5 (101 bytes)
//
// 9 xrefs:
// > cocos2d::CCProgressTo::update @ 0x1800395ca
// > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x180057807
// > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x180057917
// > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x180057a2c
// > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x180057af5
// > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180057bc5
// > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180057cd4
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b324c
//
// 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 cocos2d::CCProgressTimer::setPercentage(cocos2d::CCProgressTimer *this, float a2)
{
float v3; // xmm0_4
cocos2d::CCProgressTimerType m_eType; // ecx
if ( this->m_fPercentage != a2 )
{
v3 = cocos2d::clampf((cocos2d *)this, 0.0, 100.0, a2);
m_eType = this->m_eType;
this->m_fPercentage = v3;
if ( m_eType )
{
if ( m_eType == kCCProgressTimerTypeBar )
cocos2d::CCProgressTimer::updateBar(this);
}
else
{
cocos2d::CCProgressTimer::updateRadial(this);
}
}
}