//
// SetupTriggerPopup::onClose from 0x10013090c to 0x10013099c (144 bytes)
//
// 101 xrefs:
// > SetupOpacityPopup::onClose @ 0x1000240c0
// > SetupRandAdvTriggerPopup::onClose @ 0x10002f508
// > SetupAreaTintTriggerPopup::onClose @ 0x100038624
// > CustomizeObjectSettingsPopup::onClose @ 0x1000510ac
// > CustomizeObjectSettingsPopup::onClose @ 0x1000510f8
// > SetupAdvFollowPopup::onClose @ 0x10006329c
// > SetupCountTriggerPopup::onClose @ 0x1000f4f3c
// > SetupSpawnPopup::onClose @ 0x1000f8cb0
// > GJFollowCommandLayer::onClose @ 0x100137f68
// > SetupTimeWarpPopup::onClose @ 0x1001483c0
// > GJPFollowCommandLayer::onClose @ 0x100160d20
// > SetupReverbPopup::onClose @ 0x10017fa14
// > SetupSFXPopup::onClose @ 0x100180db0
// > SetupShaderEffectPopup::onClose @ 0x10018a0a4
// > SetupCameraOffsetTrigger::onClose @ 0x100190e48
// > SetupObjectTogglePopup::onClose @ 0x1001a34cc
// > GJRateLevelLayer::onClose @ 0x1001b2cf4
// > SetupKeyframePopup::onClose @ 0x1001b5dd8
// > SetupZoomTriggerPopup::onClose @ 0x1001b8748
// > SetupInstantCountPopup::onClose @ 0x1001bd1ac
// > SetupSongTriggerPopup::onClose @ 0x1001c381c
// > SetupRandTriggerPopup::onClose @ 0x1001cafb0
// > SetupCollisionTriggerPopup::onClose @ 0x100230b3c
// > SetupCameraEdgePopup::onClose @ 0x10023ad68
// > SetupTouchTogglePopup::onClose @ 0x10024c0bc
// > SetupRotatePopup::onClose @ 0x100268944
// > SetupEndPopup::onClose @ 0x1002add74
// > EditTriggersPopup::onClose @ 0x1002d27a0
// > EditorOptionsLayer::onClose @ 0x1002d4b30
// > UIOptionsLayer::onClose @ 0x1002e417c
// > UIPOptionsLayer::onClose @ 0x1002e6214
// > SetupAnimSettingsPopup::onClose @ 0x1002e7d8c
// > SetupMGTrigger::onClose @ 0x1002f3438
// > SetupShakePopup::onClose @ 0x1003aa210
// > SetupCameraModePopup::onClose @ 0x1003ab134
// > SetupPulsePopup::onClose @ 0x1003b74e0
// > SetupAnimationPopup::onClose @ 0x1003c41e0
// > SetupEnterEffectPopup::onClose @ 0x1004015e8
// > SelectEventLayer::onClose @ 0x10040918c
// > SetupStopTriggerPopup::onClose @ 0x100411abc
// > SetupInteractObjectPopup::onClose @ 0x1004131c8
// > SetItemIDLayer::onClose @ 0x10041a4e4
// > ??> @ 0x100762a50
// > ??> @ 0x100765e78
// > ??> @ 0x100766670
// > ??> @ 0x100766e68
// > ??> @ 0x1007696b8
// > ??> @ 0x100769eb0
// > ??> @ 0x10076a6a8
// > ??> @ 0x10076aea0
// > ??> @ 0x10076bee8
// > ??> @ 0x10076e368
// > ??> @ 0x10076f3c8
// > ??> @ 0x100770790
// > ??> @ 0x100776868
// > ??> @ 0x100777060
// > ??> @ 0x100792db8
// > ??> @ 0x1007a1f70
// > ??> @ 0x1007a2780
// > ??> @ 0x1007a3010
// > ??> @ 0x1007a4898
// > ??> @ 0x1007aa5d0
// > ??> @ 0x1007aadc8
// > ??> @ 0x1007b24a0
// > ??> @ 0x1007bd060
// > ??> @ 0x1007be008
// > ??> @ 0x1007c2628
// > ??> @ 0x1007c56b0
// > ??> @ 0x1007c5ea8
// > ??> @ 0x1007c66a0
// > ??> @ 0x1007d4120
// > ??> @ 0x1007d7060
// > ??> @ 0x1007d9058
// > ??> @ 0x1007dd238
// > ??> @ 0x1007de938
// > ??> @ 0x1007e0200
// > ??> @ 0x1007e2ae8
// > ??> @ 0x1007e4d78
// > ??> @ 0x1007e8808
// > ??> @ 0x1007f1000
// > ??> @ 0x100818060
// > ??> @ 0x100819038
// > ??> @ 0x100819848
// > ??> @ 0x10081a040
// > ??> @ 0x10081a838
// > ??> @ 0x10081b030
// > ??> @ 0x10081b828
// > ??> @ 0x10081c020
// > ??> @ 0x10081c858
// > ??> @ 0x10081d050
// > ??> @ 0x10081e080
// > ??> @ 0x10081e878
// > ??> @ 0x10081f070
// > ??> @ 0x10081f868
// > ??> @ 0x100820060
// > ??> @ 0x100820858
// > ??> @ 0x100821050
// > ??> @ 0x100821848
// > ??> @ 0x100822960
// > ??> @ 0x1008241d8
// > ??> @ 0x100825360
//
// 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 SetupTriggerPopup::onClose(SetupTriggerPopup *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
cocos2d::CCDictionary *m_inputNodes; // x8
cocos2d::CCDictElement *m_pElements; // x8
cocos2d::CCDictElement *next; // x20
_QWORD *v7; // x0
v3 = GameManager::sharedState();
LevelEditorLayer::resetEffectTriggerOptim(v3->m_levelEditorLayer, a1->m_gameObject, a1->m_gameObjects);
m_inputNodes = a1->m_inputNodes;
if ( m_inputNodes )
{
m_pElements = m_inputNodes->m_pElements;
if ( m_pElements )
{
do
{
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
v7 = &m_pElements->m_pObject->__vftable;
v7[68] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v7 + 1144LL))(v7, 0);
m_pElements = next;
}
while ( next );
}
}
SetupTriggerPopup::updateEditorLabel(a1);
((void (__fastcall *)(SetupTriggerPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(SetupTriggerPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}