//
// SetupEnterTriggerPopup::onEnterType from 0x14028f8b0 to 0x14028f98e (222 bytes)
//
// 3 xrefs:
// > SetupEnterTriggerPopup::init @ 0x14028f584
// > SetupEnterTriggerPopup::init @ 0x14028f667
// > ??> @ 0x1406d1904
//
// 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 SetupEnterTriggerPopup::onEnterType(SetupEnterTriggerPopup *a1, cocos2d::CCObject *a2)
{
unsigned int v4; // edi
int v5; // eax
EffectGameObject *m_gameObject; // rcx
struct cocos2d::CCObject *v7; // rax
v4 = 0;
if ( a2->getTag(a2) == a1->m_enterType )
v5 = 0;
else
v5 = a2->getTag(a2);
a1->m_enterType = v5;
CCMenuItemToggler::toggle(a1->m_enterOnlyToggler, v5 == 1);
CCMenuItemToggler::toggle(a1->m_exitOnlyToggler, a1->m_enterType == 2);
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
LODWORD(m_gameObject[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = a1->m_enterType;
}
else if ( cocos2d::CCArray::count(a1->m_gameObjects) )
{
do
{
v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v4++);
v7[33].m_uID = a1->m_enterType;
}
while ( v4 < cocos2d::CCArray::count(a1->m_gameObjects) );
}
}