//
// cocos2d::CCProgressTimer::setPercentage from 0x180060260 to 0x1800602c5 (101 bytes)
//
// 9 xrefs:
// > cocos2d::CCProgressTo::update @ 0x180039d0a
// > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x180059727
// > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x180059837
// > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x18005994c
// > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x180059a15
// > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180059ae5
// > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180059bf4
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd510
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:50 +0000
//
void __fastcall cocos2d::CCProgressTimer::setPercentage(cocos2d::CCProgressTimer *this, float a2)
{
float v3; // xmm0_4
int v4; // ecx
if ( *((float *)this + 87) != a2 )
{
v3 = cocos2d::clampf(this, 0.0, 100.0, a2);
v4 = *((_DWORD *)this + 86);
*((float *)this + 87) = v3;
if ( v4 )
{
if ( v4 == 1 )
cocos2d::CCProgressTimer::updateBar(this);
}
else
{
cocos2d::CCProgressTimer::updateRadial(this);
}
}
}