//
// SetupEnterTriggerPopup::onEnterType from 0x1002d2d04 to 0x1002d2dd0 (204 bytes)
//
// 2 xrefs:
// > SetupEnterTriggerPopup::init @ 0x1002d2a6c
// > SetupEnterTriggerPopup::init @ 0x1002d2b30
//
// 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 __fastcall SetupEnterTriggerPopup::onEnterType(SetupEnterTriggerPopup *a1, cocos2d::CCObject *a2)
{
int v4; // w0
EffectGameObject *m_gameObject; // x8
unsigned int v6; // w20
if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == a1->m_enterType )
v4 = 0;
else
v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
a1->m_enterType = v4;
CCMenuItemToggler::toggle(a1->m_enterOnlyToggler, v4 == 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 if ( (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) )
{
v6 = 0;
do
*(_DWORD *)(sub_10024A388((__int64)a1->m_gameObjects, v6++) + 1836) = a1->m_enterType;
while ( v6 < (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) );
}
}