//
// GameObject::setScaleX from 0x140198250 to 0x14019832f (223 bytes)
//
// 49 xrefs:
// > PlayerObject::setScaleX @ 0x1403a3910
// > ParticleGameObject::setScaleX @ 0x1404a0ff1
// > ??> @ 0x140556428
// > ??> @ 0x140556b98
// > ??> @ 0x14055dbd0
// > ??> @ 0x14055e250
// > ??> @ 0x14060ddc8
// > ??> @ 0x14060e4e8
// > ??> @ 0x14060ed20
// > ??> @ 0x14060f3c8
// > ??> @ 0x14060fa98
// > ??> @ 0x140610150
// > ??> @ 0x140610898
// > ??> @ 0x1406110f8
// > ??> @ 0x140611830
// > ??> @ 0x140612018
// > ??> @ 0x1406126c0
// > ??> @ 0x140612d68
// > ??> @ 0x1406134d8
// > ??> @ 0x140613b80
// > ??> @ 0x140614368
// > ??> @ 0x140614ba0
// > ??> @ 0x1406152e8
// > ??> @ 0x140615990
// > ??> @ 0x1406160d8
// > ??> @ 0x140616898
// > ??> @ 0x140616f40
// > ??> @ 0x1406175e8
// > ??> @ 0x140617d58
// > ??> @ 0x140618400
// > ??> @ 0x140618b48
// > ??> @ 0x1406195e8
// > ??> @ 0x140619c90
// > ??> @ 0x14061a338
// > ??> @ 0x14061aa58
// > ??> @ 0x14061b100
// > ??> @ 0x14061b848
// > ??> @ 0x14061bfe0
// > ??> @ 0x14061c688
// > ??> @ 0x14061cd30
// > ??> @ 0x14061d3d8
// > ??> @ 0x14061da80
// > ??> @ 0x14061e128
// > ??> @ 0x14061e7d0
// > ??> @ 0x14061efe0
// > ??> @ 0x14061f778
// > ??> @ 0x140678e78
// > ??> @ 0x140678e88
// > ??> @ 0x1406cbb98
//
// 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 GameObject::setScaleX(GameObject *a1, float a2)
{
unsigned int i; // edi
struct cocos2d::CCObject *v4; // rax
cocos2d::CCSprite *m_glowSprite; // rcx
cocos2d::CCSprite *m_colorSprite; // rcx
cocos2d::CCParticleSystemQuad *m_particle; // rcx
a1->m_isOrientedBoxDirty = 1;
cocos2d::CCSprite::setScaleX(a1, a2);
if ( a1->m_hasFollower && a1->m_propagateScaleChanges )
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_followers); ++i )
{
v4 = cocos2d::CCArray::objectAtIndex(a1->m_followers, i);
v4->__vftable[1].canEncode(v4);
}
}
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
((void (__fastcall *)(cocos2d::CCSprite *))m_glowSprite->setScaleX)(m_glowSprite);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite && !a1->m_colorSpriteLocked )
((void (__fastcall *)(cocos2d::CCSprite *))m_colorSprite->setScaleX)(m_colorSprite);
m_particle = a1->m_particle;
if ( m_particle )
{
if ( !a1->m_isParticleSpriteLocked )
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setScaleX)(m_particle);
}
}