//
// SetupEnterTriggerPopup::onEnterType from 0x4a7b74 to 0x4a7bf6 (130 bytes)
//
// 0 xrefs:
//
// 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)
{
EffectGameObject *m_gameObject; // r5
int v5; // r0
if ( a2->getTag(a2) == a1->m_enterType )
a1->m_enterType = 0;
else
a1->m_enterType = a2->getTag(a2);
CCMenuItemToggler::toggle(a1->m_enterOnlyToggler, a1->m_enterType == 1);
CCMenuItemToggler::toggle(a1->m_exitOnlyToggler, a1->m_enterType == 2);
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
*(_DWORD *)(&m_gameObject->m_canSpawnTriggers + 1) = a1->m_enterType;
}
else
{
while ( (unsigned int)m_gameObject < cocos2d::CCArray::count(a1->m_gameObjects) )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)m_gameObject);
m_gameObject = (EffectGameObject *)((char *)m_gameObject + 1);
*(_DWORD *)(v5 + 1636) = a1->m_enterType;
}
}
}