//
// SetupTriggerPopup::onTouchTriggered from 0x10012f820 to 0x10012f868 (72 bytes)
//
// 4 xrefs:
// > SetupCountTriggerPopup::init @ 0x1000f4368
// > SetupTriggerPopup::createMultiTriggerItems @ 0x10012f39c
// > SetupPulsePopup::init @ 0x1003b4848
// > ColorSelectPopup::init @ 0x10041d148
//
// 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; // w8
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);
}