//
// GameObject::setVisible from 0x140198c50 to 0x140198d64 (276 bytes)
//
// 47 xrefs:
// > EndPortalObject::setVisible @ 0x1401383e7
// > PlayerObject::setVisible @ 0x1403a3955
// > ??> @ 0x1405564f0
// > ??> @ 0x14055dc98
// > ??> @ 0x14055e318
// > ??> @ 0x14060d540
// > ??> @ 0x14060de90
// > ??> @ 0x14060e5b0
// > ??> @ 0x14060ede8
// > ??> @ 0x14060f490
// > ??> @ 0x14060fb60
// > ??> @ 0x140610218
// > ??> @ 0x140610960
// > ??> @ 0x1406111c0
// > ??> @ 0x1406118f8
// > ??> @ 0x1406120e0
// > ??> @ 0x140612788
// > ??> @ 0x140612e30
// > ??> @ 0x1406135a0
// > ??> @ 0x140613c48
// > ??> @ 0x140614430
// > ??> @ 0x140614c68
// > ??> @ 0x1406153b0
// > ??> @ 0x140615a58
// > ??> @ 0x1406161a0
// > ??> @ 0x140616960
// > ??> @ 0x140617008
// > ??> @ 0x1406176b0
// > ??> @ 0x140617e20
// > ??> @ 0x1406184c8
// > ??> @ 0x140618c10
// > ??> @ 0x1406196b0
// > ??> @ 0x140619d58
// > ??> @ 0x14061a400
// > ??> @ 0x14061ab20
// > ??> @ 0x14061b1c8
// > ??> @ 0x14061b910
// > ??> @ 0x14061c0a8
// > ??> @ 0x14061c750
// > ??> @ 0x14061cdf8
// > ??> @ 0x14061d4a0
// > ??> @ 0x14061db48
// > ??> @ 0x14061e1f0
// > ??> @ 0x14061e898
// > ??> @ 0x14061f0a8
// > ??> @ 0x14061f840
// > ??> @ 0x1406cbcd0
//
// 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::setVisible(GameObject *a1, bool a2)
{
cocos2d::CCParticleSystemQuad *m_particle; // rcx
_BOOL8 v5; // rdx
cocos2d::CCSprite *m_glowSprite; // rcx
cocos2d::CCSprite *m_colorSprite; // rcx
if ( a1->m_hasParticles && a2 != a1->isVisible(a1) )
{
if ( a2 )
{
if ( !a1->m_particle )
a1->claimParticle(a1);
}
else
{
a1->unclaimParticle(a1);
}
m_particle = a1->m_particle;
if ( m_particle )
{
m_particle->setVisible(m_particle, a2);
if ( a2 )
{
if ( a1->m_objectID != 2065 || !a1->getHasSyncedAnimation(a1) )
cocos2d::CCParticleSystem::resetSystem(a1->m_particle);
a1->particleWasActivated(a1);
}
else
{
cocos2d::CCParticleSystem::stopSystem(a1->m_particle);
}
}
}
cocos2d::CCSprite::setVisible(a1, a2);
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
{
if ( !a2 || a1->m_hasNoGlow )
v5 = 0;
else
LOBYTE(v5) = 1;
m_glowSprite->setVisible(m_glowSprite, v5);
}
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite )
m_colorSprite->setVisible(m_colorSprite, a2);
}