//
// SetupTriggerPopup::onTouchTriggered from 0x1002369b0 to 0x1002369ff (79 bytes)
//
// 4 xrefs:
// > SetupTriggerPopup::createMultiTriggerItems @ 0x1002363d1
// > SetupCountTriggerPopup::init @ 0x1002bbee4
// > SetupPulsePopup::init @ 0x1003abad0
// > ColorSelectPopup::init @ 0x100725d6b
//
// 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::onTouchTriggered(SetupTriggerPopup *a1, cocos2d::CCObject *a2)
{
bool m_touchTriggered; // al
m_touchTriggered = a1->m_touchTriggered;
a1->m_touchTriggered = !m_touchTriggered;
if ( !m_touchTriggered )
{
a1->m_spawnTriggered = 0;
SetupTriggerPopup::updateSpawnedByTrigger(a1);
CCMenuItemToggler::toggle(a1->m_spawnToggle, a1->m_spawnTriggered);
}
SetupTriggerPopup::updateTouchTriggered(a1);
}